diff options
author | Samuel E. Giddins <segiddins@segiddins.me> | 2015-07-22 20:22:23 -0700 |
---|---|---|
committer | Samuel E. Giddins <segiddins@segiddins.me> | 2015-07-22 20:22:23 -0700 |
commit | 08a50060cd448324a10970bf69af676eca3dc1fd (patch) | |
tree | e61cadf2be5e9bc57da3ede553c27482a13bdf28 /lib/bundler/dep_proxy.rb | |
parent | 0163e2170ba6f3161412418deb1f184a99171900 (diff) | |
download | bundler-08a50060cd448324a10970bf69af676eca3dc1fd.tar.gz |
Get rid of clean_req in favor of a nicer #to_s in DepProxy
Diffstat (limited to 'lib/bundler/dep_proxy.rb')
-rw-r--r-- | lib/bundler/dep_proxy.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bundler/dep_proxy.rb b/lib/bundler/dep_proxy.rb index 0ce69531a2..f007546777 100644 --- a/lib/bundler/dep_proxy.rb +++ b/lib/bundler/dep_proxy.rb @@ -29,7 +29,10 @@ module Bundler end def to_s - "#{name} (#{requirement}) #{__platform}" + s = name.dup + s << " (#{requirement})" unless requirement == Gem::Requirement.default + s << " #{__platform}" unless __platform == Gem::Platform::RUBY + s end private |