提交 8e68ec4d 编写于 作者: A Akira Matsuda 提交者: Jeremy Kemper

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

[#1001 state:resolved]
Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
上级 07eb9ffd
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册