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
merb_gems_version = ">= 1.0.8.1" | |
dm_gems_version = ">= 0.9.9" | |
do_gems_version = ">= 0.9.10.1" |
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
Problem: | |
"merb --version" doesn't work | |
Check: | |
(maiha-no-macbook-air)<~>% ruby19 -r rubygems -e "gem 'merb-core', '>= 0'" | |
<internal:gem_prelude>:249:in `push_gem_version_on_load_path': undefined method `<=>' for nil:NilClass (NoMethodError) | |
from <internal:gem_prelude>:14:in `gem' | |
from -e:1:in `<main>' | |
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
############################################################ | |
### Problem | |
############################################################ | |
Cannot install merb gem | |
############################################################ | |
### Detail | |
############################################################ | |
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 1.8 + merb-action-args | |
###################################################### | |
% irb -r rubygems -r merb-core -r merb-action-args | |
>> def foo(a,b); end | |
>> method(:foo).get_args | |
=> [[[:a], [:b]], []] | |
###################################################### | |
### ruby 1.9 trunk (aka 1.9.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
############################################################ | |
### Problem | |
############################################################ | |
Merb::Router.compiled_statement generates invalid ruby codes | |
############################################################ | |
### Detail | |
############################################################ | |
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
# first install dependent gems | |
gem1.9 install echoe cgi_multipart_eof_fix -V | |
# manually install mongrel from github | |
git clone git://github.com/mongrel/mongrel.git | |
cd mongrel | |
vi Rakefile # comment out fastthread dependency | |
rake package | |
# install mongrel gem from file |
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
def foo | |
@_erb_buf.concat( | |
form_for @user, :action => "/foo" do | |
end | |
).to_s | |
end | |
__END__ | |
% ruby1.8 -c foo.rb | |
Syntax OK |
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
% mkdir -p a/foo b | |
% touch b/foo | |
% ls -ld a/* b/* | |
drwxr-xr-x 2 maiha maiha 4096 Feb 15 16:40 a/foo/ | |
-rw-r--r-- 1 maiha maiha 0 Feb 15 16:40 b/foo | |
% ruby1.9 -Ia -Ib -e 'load "foo"' | |
-e:1:in `load': Is a directory - /data/home/maiha/load-test/a/foo (Errno::EISDIR) | |
from -e:1:in `<main>' | |