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 8e3a3560bf..2661dd6844 100644
--- a/lib/rubygems/source/installed.rb
+++ b/lib/rubygems/source/installed.rb
@@ -1,6 +1,9 @@
+##
+# Represents an installed gem. This is used for dependency resolution.
+
class Gem::Source::Installed < Gem::Source
- def initialize
+ def initialize # :nodoc:
@uri = nil
end
@@ -9,6 +12,8 @@ class Gem::Source::Installed < Gem::Source
def <=> other
case other
+ when Gem::Source::Vendor then
+ -1
when Gem::Source::Installed then
0
when Gem::Source then