Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ruby 1.9 compat: use String#lines instead of to_a in Ruby 1.9

[#1001 state:resolved]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
commit 8e68ec4dcceb606853a50d41076c7d5e118089b7 1 parent 07eb9ff
@amatsuda amatsuda authored jeremy committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/commands/plugin.rb
View
2  railties/lib/commands/plugin.rb
@@ -901,7 +901,7 @@ class RecursiveHTTPFetcher
def initialize(urls_to_fetch, level = 1, cwd = ".")
@level = level
@cwd = cwd
- @urls_to_fetch = urls_to_fetch.to_a
+ @urls_to_fetch = RUBY_VERSION >= '1.9' ? urls_to_fetch.lines : urls_to_fetch.to_a
@quiet = false
end
Please sign in to comment.
Something went wrong with that request. Please try again.