aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/lazy_specification.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-07-21 09:32:45 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-07-21 17:05:48 -0400
commiteaa81a57156c316d4c9f7548fb04e4712b47bfd8 (patch)
tree3d19034bb55f3003e9318b0c69f67f431c5ead46 /lib/bundler/lazy_specification.rb
parent6eeeb9249dc87e380b25aa60cb18e267a5371ab4 (diff)
downloadbundler-eaa81a57156c316d4c9f7548fb04e4712b47bfd8.tar.gz
[LazySpecification] Add platform in #to_s
Diffstat (limited to 'lib/bundler/lazy_specification.rb')
-rw-r--r--lib/bundler/lazy_specification.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bundler/lazy_specification.rb b/lib/bundler/lazy_specification.rb
index ccaa791c..4c1af93b 100644
--- a/lib/bundler/lazy_specification.rb
+++ b/lib/bundler/lazy_specification.rb
@@ -61,7 +61,11 @@ module Bundler
end
def to_s
- @__to_s ||= "#{name} (#{version})"
+ @__to_s ||= if platform == Gem::Platform::RUBY || platform.nil?
+ "#{name} (#{version})"
+ else
+ "#{name} (#{version}-#{platform})"
+ end
end
def identifier