From 8e68ec4dcceb606853a50d41076c7d5e118089b7 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Tue, 9 Sep 2008 17:24:23 +0900 Subject: Ruby 1.9 compat: use String#lines instead of to_a in Ruby 1.9 [#1001 state:resolved] Signed-off-by: Jeremy Kemper --- railties/lib/commands/plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties') diff --git a/railties/lib/commands/plugin.rb b/railties/lib/commands/plugin.rb index 980244a71b..5c6cb7605c 100644 --- a/railties/lib/commands/plugin.rb +++ b/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 -- cgit v1.2.3