summaryrefslogtreecommitdiff
path: root/lib/bundler/dsl.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/dsl.rb')
-rw-r--r--lib/bundler/dsl.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb
index 8ed5cd6a93..d26bd1b375 100644
--- a/lib/bundler/dsl.rb
+++ b/lib/bundler/dsl.rb
@@ -13,6 +13,7 @@ module Bundler
VALID_PLATFORMS = Bundler::Dependency::PLATFORM_MAP.keys.freeze
+ attr_reader :gemspecs
attr_accessor :dependencies
def initialize
@@ -26,6 +27,7 @@ module Bundler
@platforms = []
@env = nil
@ruby_version = nil
+ @gemspecs = []
add_git_sources
end
@@ -65,6 +67,8 @@ module Bundler
gem dep.name, *(dep.requirement.as_list + [:type => :development])
end
end
+
+ @gemspecs << gemspecs.first
when 0
raise InvalidOption, "There are no gemspecs at #{expanded_path}."
else