summaryrefslogtreecommitdiff
path: root/lib/bundler/dsl.rb
diff options
context:
space:
mode:
authorPetr Skocik <pskocik@gmail.com>2015-03-12 15:08:11 +0100
committerPetr Skocik <pskocik@gmail.com>2015-03-12 15:08:11 +0100
commit93aa1ac7ce1aaba85c35ca980c07a006556c7c36 (patch)
treeb6a49edfe29de73adf2b521b182a6fe51eeb7017 /lib/bundler/dsl.rb
parent4502d8ad088275481d230d0b824f3e69f5f99057 (diff)
downloadbundler-93aa1ac7ce1aaba85c35ca980c07a006556c7c36.tar.gz
pass glob explicitly
Diffstat (limited to 'lib/bundler/dsl.rb')
-rw-r--r--lib/bundler/dsl.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb
index 5cb3be025a..b90342e0fd 100644
--- a/lib/bundler/dsl.rb
+++ b/lib/bundler/dsl.rb
@@ -42,6 +42,7 @@ module Bundler
def gemspec(opts = nil)
path = opts && opts[:path] || '.'
+ glob = opts && opts[:glob] #|| nil
name = opts && opts[:name] || '{,*}'
development_group = opts && opts[:development_group] || :development
expanded_path = File.expand_path(path, Bundler.default_gemfile.dirname)
@@ -52,8 +53,7 @@ module Bundler
when 1
spec = Bundler.load_gemspec(gemspecs.first)
raise InvalidOption, "There was an error loading the gemspec at #{gemspecs.first}." unless spec
- opts ||= {}
- gem spec.name, opts.merge(:path => path)
+ gem spec.name, path: path, glob: glob
group(development_group) do
spec.development_dependencies.each do |dep|
gem dep.name, *(dep.requirement.as_list + [:type => :development])