Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

lock down requirements order via String#<=>

refs #1375
  • Loading branch information...
commit 3a2a18a112015156e0d5ac1c7f9918cbc0be1b39 1 parent cb1dd15
@indirect indirect authored
Showing with 2 additions and 3 deletions.
  1. +1 −1  lib/bundler/rubygems_ext.rb
  2. +1 −2  spec/lock/lockfile_spec.rb
View
2  lib/bundler/rubygems_ext.rb
@@ -124,7 +124,7 @@ def to_yaml_properties
def to_lock
out = " #{name}"
unless requirement == Gem::Requirement.default
- reqs = requirement.requirements.map{|o,v| "#{o} #{v}" }
+ reqs = requirement.requirements.map{|o,v| "#{o} #{v}" }.sort.reverse
out << " (#{reqs.join(', ')})"
end
out
View
3  spec/lock/lockfile_spec.rb
@@ -70,10 +70,9 @@
G
end
- it "parses lockfiles w/ crazy shit" do
@sferik Collaborator
sferik added a note

LOL!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ it "generates lockfiles with multiple requirements" do
install_gemfile <<-G
source "file://#{gem_repo1}"
-
gem "net-sftp"
G
@sferik

LOL!

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