This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Commented entries have reasonable defaults. | |
### Uncomment to edit them. | |
Section: misc | |
Priority: optional | |
Standards-Version: 3.6.2 | |
Package: appserver-setup | |
Version: 1.0 | |
Maintainer: Shin-ichiro OGAWA <[email protected]> | |
# Pre-Depends: <comma-separated list of packages> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
module Kernel | |
alias :default_p :p | |
def p(*args, &block) | |
case RUBY_PLATFORM | |
when /linux/ | |
require 'n' | |
n(*args, &block) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% if var -%> | |
ok | |
<% else -%> | |
ng | |
<% end -%> | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rust@:[~/Works/programs/gae/mybot] | |
% ls -la | |
total 8 | |
drwxr-xr-x 3 rust staff 102 3 2 22:44 . | |
drwxr-xr-x 5 rust staff 170 2 25 20:46 .. | |
-rw-r--r-- 1 rust staff 2560 3 2 22:44 rails2_td_appengine.rb | |
rust@:[~/Works/programs/gae/mybot] | |
% which ruby | |
/opt/local/bin/ruby | |
rust@:[~/Works/programs/gae/mybot] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/jpmobile/hook_action_controller.rb b/lib/jpmobile/hook_action_controller.rb | |
index cca89d1..59d89f1 100644 | |
--- a/lib/jpmobile/hook_action_controller.rb | |
+++ b/lib/jpmobile/hook_action_controller.rb | |
@@ -29,3 +29,26 @@ module ActionController | |
end | |
ActionController::Request.send :include, Jpmobile::Encoding | |
+ | |
+module ActionDispatch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/jpmobile/rack.rb b/lib/jpmobile/rack.rb | |
index c4c6a66..09187bc 100644 | |
--- a/lib/jpmobile/rack.rb | |
+++ b/lib/jpmobile/rack.rb | |
@@ -7,13 +7,35 @@ module Jpmobile | |
autoload :ParamsFilter, 'jpmobile/rack/params_filter.rb' | |
autoload :Filter, 'jpmobile/rack/filter.rb' | |
autoload :Config, 'jpmobile/rack/config.rb' | |
+ | |
+ module_function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% gem list | |
*** LOCAL GEMS *** | |
abstract (1.0.0) | |
actionmailer (3.0.0.rc, 3.0.0.beta4) | |
actionpack (3.0.0.rc, 3.0.0.beta4) | |
activemodel (3.0.0.rc, 3.0.0.beta4) | |
activerecord (3.0.0.rc, 3.0.0.beta4) | |
activeresource (3.0.0.rc, 3.0.0.beta4) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% ruby -v | |
ruby 1.9.2dev (2010-07-11 revision 28618) [x86_64-linux] | |
% gem install --no-ri --no-rdoc capistrano capistrano_ext capistrano_colors | |
Successfully installed net-ssh-2.0.23 | |
Successfully installed net-sftp-2.0.4 | |
Successfully installed net-scp-1.0.2 | |
Successfully installed net-ssh-gateway-1.0.1 | |
Successfully installed highline-1.6.1 | |
Successfully installed capistrano-2.5.19 | |
Successfully installed capistrano_colors-0.5.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Emacs < Formula | |
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3a.tar.bz2' | |
md5 'f2cf8dc6f28f8ae59bc695b4ddda339c' | |
homepage 'http://www.gnu.org/software/emacs/' | |
if ARGV.include? "--use-git-head" | |
head 'git://repo.or.cz/emacs.git' | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= paginator.render do | |
%div | |
= prev_page_tag | |
= (current_page.to_i - 1) * per_page + 1 | |
\- | |
= [current_page.to_i * per_page, total_count].min | |
\/ | |
= total_count | |
件 | |
= next_page_tag |