summaryrefslogtreecommitdiff
path: root/lib/bundler/source/metadata.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/source/metadata.rb')
-rw-r--r--lib/bundler/source/metadata.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/bundler/source/metadata.rb b/lib/bundler/source/metadata.rb
new file mode 100644
index 0000000000..173c897998
--- /dev/null
+++ b/lib/bundler/source/metadata.rb
@@ -0,0 +1,31 @@
+# frozen_string_literal: true
+
+module Bundler
+ class Source
+ class Metadata < Source
+ def specs
+ @specs ||= Index.build do |idx|
+ idx << Gem::Specification.new("ruby\0", RubyVersion.system.to_gem_version_with_patchlevel)
+ idx << Gem::Specification.new("rubygems\0", Gem::VERSION)
+ end
+ end
+
+ def cached!; end
+
+ def remote!; end
+
+ def to_s
+ "the local ruby installation"
+ end
+
+ def ==(other)
+ self.class == other.class
+ end
+ alias_method :eql?, :==
+
+ def hash
+ self.class.hash
+ end
+ end
+ end
+end