Permalink
Browse files

Ruby 1.9 compat: remove constants from block parameters

[#1002 state:resolved]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
1 parent d5893a5 commit 07eb9ffd151b622eccb1dd527455b4f6f10973ff @amatsuda amatsuda committed with jeremy Sep 9, 2008
Showing with 3 additions and 2 deletions.
  1. +1 −0 actionpack/Rakefile
  2. +2 −2 railties/lib/commands/process/spawner.rb
View
@@ -32,6 +32,7 @@ Rake::TestTask.new(:test_action_pack) { |t|
t.test_files=Dir.glob( "test/[cft]*/**/*_test.rb" ).sort
# t.pattern = 'test/*/*_test.rb'
t.verbose = true
+ t.warning = true
}
desc 'ActiveRecord Integration Tests'
@@ -181,10 +181,10 @@ def self.can_bind_to_custom_address?
opts.on(" Options:")
- opts.on("-p", "--port=number", Integer, "Starting port number (default: #{OPTIONS[:port]})") { |OPTIONS[:port]| }
+ opts.on("-p", "--port=number", Integer, "Starting port number (default: #{OPTIONS[:port]})") { |v| OPTIONS[:port] = v }
if spawner_class.can_bind_to_custom_address?
- opts.on("-a", "--address=ip", String, "Bind to IP address (default: #{OPTIONS[:address]})") { |OPTIONS[:address]| }
+ opts.on("-a", "--address=ip", String, "Bind to IP address (default: #{OPTIONS[:address]})") { |v| OPTIONS[:address] = v }
end
opts.on("-p", "--port=number", Integer, "Starting port number (default: #{OPTIONS[:port]})") { |v| OPTIONS[:port] = v }

0 comments on commit 07eb9ff

Please sign in to comment.