ext_bundler 2.0.11 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f66d78e1b58b9cbdb174b7836f4ad89e8764d94e
4
- data.tar.gz: ffdf0d485fe81ea413573c87ba220e6c43319a21
3
+ metadata.gz: ae67ccf8cf39f237d6be93af850bfe9bb76f0868
4
+ data.tar.gz: 5281117093425ef7c423aecaa15a11b6b232deba
5
5
  SHA512:
6
- metadata.gz: 03a873e7e87b854d74ce2c6c969ca2223124c2f0ec69466ee05a73a4a8c3361da46ce3ead16a9e3568d6fe7da04d07c6ec0c5cb5d17609f499bffc6886f1008e
7
- data.tar.gz: 87528231373f2fd9a7f47c0c77816cae30efb22000a2167e23e13da047598e3682f70c4178918311488d7f4c93460f5187a7a473dd7385ad2c24e00787361196
6
+ metadata.gz: e627890905ef669083fb647324ef17ca4008131320eee23f2190f9d175aa748ed2fd7288f2f40d8d246ee8f4884b8277c37cfdf8679d931c9fade37855c60013
7
+ data.tar.gz: 39ac018973d6a868aec8954449455d5c26481d785d91c560899dc3955a112bbbc2abffb4f310f6a091943c9aa09f4c5f3244d6f049f6dccdb49aac5589818afd
@@ -15,9 +15,11 @@ module ExtBundler
15
15
  path = @gem_dev_paths.lazy.map{ |root| File.expand_path("#{root}/#{names}") }.find{ |path| Dir.exist? path }
16
16
  end
17
17
  @@gem_dev[names.to_sym] ? gem(names, path: path, require: false) : gem(names, *args)
18
+ options = args.last.is_a?(Hash) ? args.last : {}
19
+ groups = options[:group] ? Array(options[:group]) : options[:groups]
18
20
  @@gem_dev[names.to_sym] = {
19
- require: (args.last.is_a?(Hash) ? args.last : {})[:require].nil?,
20
- groups: @groups.dup,
21
+ require: options[:require].nil?,
22
+ groups: (groups || @groups.dup).map(&:to_sym),
21
23
  }
22
24
  end
23
25
  end
@@ -1,3 +1,3 @@
1
1
  module ExtBundler
2
- VERSION = '2.0.11'
2
+ VERSION = '2.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ext_bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.11
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrice Lebel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-18 00:00:00.000000000 Z
11
+ date: 2018-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler