Skip to content

Commit

Permalink
Ruby 1.9 compat: use String#lines instead of to_a in Ruby 1.9
Browse files Browse the repository at this point in the history
[#1001 state:resolved]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information
amatsuda authored and jeremy committed Sep 9, 2008
1 parent 07eb9ff commit 8e68ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/commands/plugin.rb
Expand Up @@ -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

Expand Down

0 comments on commit 8e68ec4

Please sign in to comment.