lib/rubygems/dependency_resolver/index_specification.rb in rubygems-update-2.1.0.rc.2 vs lib/rubygems/dependency_resolver/index_specification.rb in rubygems-update-2.1.0

- old
+ new

@@ -6,10 +6,12 @@ class Gem::DependencyResolver::IndexSpecification attr_reader :name + attr_reader :platform + attr_reader :source attr_reader :version def initialize set, name, version, source, plat @@ -37,17 +39,22 @@ def pretty_print q # :nodoc: q.group 2, '[Index specification', ']' do q.breakable q.text full_name + unless Gem::Platform::RUBY == @platform then + q.breakable + q.text @platform + end + q.breakable - q.text ' source ' + q.text 'source ' q.pp @source end end def spec - @spec ||= @set.load_spec(@name, @version, @source) + @spec ||= @set.load_spec(@name, @version, @platform, @source) end end