aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/source/installed.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/source/installed.rb')
-rw-r--r--lib/rubygems/source/installed.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/rubygems/source/installed.rb b/lib/rubygems/source/installed.rb
index 6d343c2439..bd05c75af1 100644
--- a/lib/rubygems/source/installed.rb
+++ b/lib/rubygems/source/installed.rb
@@ -12,7 +12,8 @@ class Gem::Source::Installed < Gem::Source
def <=> other
case other
- when Gem::Source::Lock,
+ when Gem::Source::Git,
+ Gem::Source::Lock,
Gem::Source::Vendor then
-1
when Gem::Source::Installed then
@@ -31,5 +32,9 @@ class Gem::Source::Installed < Gem::Source
nil
end
+ def pretty_print q # :nodoc:
+ q.text '[Installed]'
+ end
+
end