lib/bundler/lazy_specification.rb in bundler-1.14.6 vs lib/bundler/lazy_specification.rb in bundler-1.15.0.pre.1

- old
+ new

@@ -77,10 +77,11 @@ Bundler.ui.warn "Unable to use the platform-specific (#{search.platform}) version of #{name} (#{version}) " \ "because it has different dependencies from the #{platform} version. " \ "To use the platform-specific version of the gem, run `bundle config specific_platform true` and install again." search = source.specs.search(self).last end + search.dependencies = dependencies if search.is_a?(RemoteSpecification) || search.is_a?(EndpointSpecification) search end end def respond_to?(*args) @@ -95,9 +96,14 @@ end end def identifier @__identifier ||= Identifier.new(name, version, source, platform, dependencies) + end + + def git_version + return unless source.is_a?(Bundler::Source::Git) + " #{source.revision[0..6]}" end private def to_ary