diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-04-06 20:53:57 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-04-07 12:03:15 -0500 |
commit | aba5e40d174bd8127377718013b0f2fb78939d40 (patch) | |
tree | db47022ea484a3f5a48c60fe3711463fa1168a09 /lib/bundler/remote_specification.rb | |
parent | 4e1ff77ec1148c3170e746d42e77c07d6c1cb19a (diff) | |
download | bundler-aba5e40d174bd8127377718013b0f2fb78939d40.tar.gz |
[StubSpecification] Properly handle full_gem_path for git gems
Diffstat (limited to 'lib/bundler/remote_specification.rb')
-rw-r--r-- | lib/bundler/remote_specification.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bundler/remote_specification.rb b/lib/bundler/remote_specification.rb index c689af46c5..82b5cb8c6f 100644 --- a/lib/bundler/remote_specification.rb +++ b/lib/bundler/remote_specification.rb @@ -82,6 +82,11 @@ module Bundler @dependencies || method_missing(:dependencies) end + def git_version + return unless loaded_from && source.is_a?(Bundler::Source::Git) + " #{source.revision[0..6]}" + end + private def to_ary |