Skip to content
Browse files

- Fixed 1.9+ warnings in multiruby. (bhenderson)

[git-p4: depot-paths = "//src/ZenTest/dev/": change = 7651]
  • Loading branch information...
1 parent d0a5e68 commit 0157b8ea411f2638106dd58b2fd6891df867892b @zenspider zenspider committed Jul 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/multiruby.rb
View
4 lib/multiruby.rb
@@ -327,7 +327,7 @@ def self.tags
tags = File.read(cache).split(/\n/).grep(/^v/).reject {|s| s =~ /preview/}
end
- tags = tags.sort_by { |s| s.scan(/\d+/).map { |s| s.to_i } }
+ tags = tags.sort_by { |t| t.scan(/\d+/).map { |s| s.to_i } }
end
def self.update
@@ -388,7 +388,7 @@ def self.update_rubygems
html = URI.parse(GEM_URL).read
versions = html.scan(/href="rubygems-update-(\d+(?:\.\d+)+).gem/i).flatten
- latest = versions.sort_by { |s| s.scan(/\d+/).map { |s| s.to_i } }.last
+ latest = versions.sort_by { |v| v.scan(/\d+/).map { |s| s.to_i } }.last
Multiruby.in_versions_dir do
file = "rubygems-#{latest}.tgz"

0 comments on commit 0157b8e

Please sign in to comment.
Something went wrong with that request. Please try again.