summaryrefslogtreecommitdiff
path: root/lib/bundler/remote_specification.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-04-06 20:53:57 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-04-07 12:03:15 -0500
commitaba5e40d174bd8127377718013b0f2fb78939d40 (patch)
treedb47022ea484a3f5a48c60fe3711463fa1168a09 /lib/bundler/remote_specification.rb
parent4e1ff77ec1148c3170e746d42e77c07d6c1cb19a (diff)
downloadbundler-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.rb5
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