Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove double-implementation of Dependency#to_lock

  • Loading branch information...
commit cb1dd15b383ab7333a0c481c3e8debcf35f5bb00 1 parent 667f001
@indirect indirect authored
Showing with 1 addition and 8 deletions.
  1. +1 −8 lib/bundler/dependency.rb
View
9 lib/bundler/dependency.rb
@@ -71,15 +71,8 @@ def current_platform?
end
def to_lock
- out = " #{name}"
-
- unless requirement == Gem::Requirement.default
- reqs = requirement.requirements.map{|o,v| "#{o} #{v}" }
- out << " (#{reqs.join(', ')})"
- end
-
+ out = super
out << '!' if source
-
out << "\n"
end
Please sign in to comment.
Something went wrong with that request. Please try again.