summaryrefslogtreecommitdiff
path: root/lib/bundler/source/gemspec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/source/gemspec.rb')
-rw-r--r--lib/bundler/source/gemspec.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/bundler/source/gemspec.rb b/lib/bundler/source/gemspec.rb
new file mode 100644
index 0000000000..ed766dbe74
--- /dev/null
+++ b/lib/bundler/source/gemspec.rb
@@ -0,0 +1,19 @@
+# frozen_string_literal: true
+
+module Bundler
+ class Source
+ class Gemspec < Path
+ attr_reader :gemspec
+ attr_writer :checksum_store
+
+ def initialize(options)
+ super
+ @gemspec = options["gemspec"]
+ end
+
+ def to_s
+ "gemspec at `#{@path}`"
+ end
+ end
+ end
+end