Skip to content

Commit

Permalink
Ruby 1.9 compat: remove constants from block parameters
Browse files Browse the repository at this point in the history
[#1002 state:resolved]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information
amatsuda authored and jeremy committed Sep 9, 2008
1 parent d5893a5 commit 07eb9ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions actionpack/Rakefile
Expand Up @@ -32,6 +32,7 @@ Rake::TestTask.new(:test_action_pack) { |t|
t.test_files=Dir.glob( "test/[cft]*/**/*_test.rb" ).sort t.test_files=Dir.glob( "test/[cft]*/**/*_test.rb" ).sort
# t.pattern = 'test/*/*_test.rb' # t.pattern = 'test/*/*_test.rb'
t.verbose = true t.verbose = true
t.warning = true
} }


desc 'ActiveRecord Integration Tests' desc 'ActiveRecord Integration Tests'
Expand Down
4 changes: 2 additions & 2 deletions railties/lib/commands/process/spawner.rb
Expand Up @@ -181,10 +181,10 @@ def self.can_bind_to_custom_address?


opts.on(" Options:") 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? 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 end


opts.on("-p", "--port=number", Integer, "Starting port number (default: #{OPTIONS[:port]})") { |v| OPTIONS[:port] = v } opts.on("-p", "--port=number", Integer, "Starting port number (default: #{OPTIONS[:port]})") { |v| OPTIONS[:port] = v }
Expand Down

0 comments on commit 07eb9ff

Please sign in to comment.