From eaa81a57156c316d4c9f7548fb04e4712b47bfd8 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Thu, 21 Jul 2016 09:32:45 -0500 Subject: [LazySpecification] Add platform in #to_s --- lib/bundler/lazy_specification.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/bundler/lazy_specification.rb') 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 -- cgit v1.2.3