public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
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>
amatsuda (author)
Tue Sep 09 01:24:23 -0700 2008
jeremy (committer)
Tue Sep 09 10:35:24 -0700 2008
commit  8e68ec4dcceb606853a50d41076c7d5e118089b7
tree    e6da3a96615363eca898579417217d69be12041d
parent  07eb9ffd151b622eccb1dd527455b4f6f10973ff
...
901
902
903
904
 
905
906
907
...
901
902
903
 
904
905
906
907
0
@@ -901,7 +901,7 @@ class RecursiveHTTPFetcher
0
   def initialize(urls_to_fetch, level = 1, cwd = ".")
0
     @level = level
0
     @cwd = cwd
0
-    @urls_to_fetch = urls_to_fetch.to_a
0
+    @urls_to_fetch = RUBY_VERSION >= '1.9' ? urls_to_fetch.lines : urls_to_fetch.to_a
0
     @quiet = false
0
   end
0
 

Comments