diff options
author | Andre Arko <andre@arko.net> | 2015-01-24 12:49:56 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-01-25 23:30:30 -0800 |
commit | a1f1cc6bef69d96b6998f128a84a633595cffa15 (patch) | |
tree | bcca97c523023cb2a1599c709280414324bde156 /lib/bundler/rubygems_ext.rb | |
parent | 4dc8cf6c778d7aed0c020f1564cf93827e3b0403 (diff) | |
download | bundler-a1f1cc6bef69d96b6998f128a84a633595cffa15.tar.gz |
Revert "svn source support"
We're pulling out svn source support into a plugin. While we work on
that, you can use the 1.8.0.svn release, but subversion sources aren't
an official part of Bundler itself.
This reverts commit 049d281d0fdcc29297a21c6a66cd7efc38690675.
This reverts commit 22fecdd07fdf02edb1a8824fb73dd7e015507644.
This reverts commit 38f195e11f37ce5139af4ff3384eb2f26c2edb19.
This reverts commit 500436a33de0b884525dbf82cfc69332fc96f8b9.
This reverts commit 2c356be90a23921058cd14fd0e4a366da195021a.
Diffstat (limited to 'lib/bundler/rubygems_ext.rb')
-rw-r--r-- | lib/bundler/rubygems_ext.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb index 5d7177415d..55f2139a59 100644 --- a/lib/bundler/rubygems_ext.rb +++ b/lib/bundler/rubygems_ext.rb @@ -66,12 +66,9 @@ module Gem @groups ||= [] end - def scm_version - return unless loaded_from - case source - when Bundler::Source::Git then " #{source.revision[0..6]}" - when Bundler::Source::SVN then " #{source.revision}" - end + def git_version + return unless loaded_from && source.is_a?(Bundler::Source::Git) + " #{source.revision[0..6]}" end def to_gemfile(path = nil) |