summaryrefslogtreecommitdiff
path: root/lib/bundler/index.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/index.rb')
-rw-r--r--lib/bundler/index.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/index.rb b/lib/bundler/index.rb
index 5789fd8d4f..5091d0a18d 100644
--- a/lib/bundler/index.rb
+++ b/lib/bundler/index.rb
@@ -68,7 +68,7 @@ module Bundler
end
end
- results.sort_by {|s| [s.version, s.platform.to_s == 'ruby' ? "\0" : s.platform.to_s] }
+ results.sort_by {|s| [s.version, s.platform.to_s == "ruby" ? "\0" : s.platform.to_s] }
end
def local_search(query, base = nil)
@@ -177,7 +177,7 @@ module Bundler
spec ? [spec] : []
end
- if RUBY_VERSION < '1.9'
+ if RUBY_VERSION < "1.9"
def same_version?(a, b)
regex = /^(.*?)(?:\.0)*$/
a.to_s[regex, 1] == b.to_s[regex, 1]