ext_bundler 2.0.10 → 2.0.11

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
- SHA256:
3
- metadata.gz: 17e212a615bd8894c60e4fd67943876a03882e45e2fdbad1f941c2b31a28911c
4
- data.tar.gz: 2e3488e7ce6cb05c6ec4b2f5b91878c30b48e641d105957385085a79a5269361
2
+ SHA1:
3
+ metadata.gz: f66d78e1b58b9cbdb174b7836f4ad89e8764d94e
4
+ data.tar.gz: ffdf0d485fe81ea413573c87ba220e6c43319a21
5
5
  SHA512:
6
- metadata.gz: 6a04a75a71426cd0bdb94753adfd4410dae3bb70de0ad7a6245c82316fa1f294613b23bf3012cc16821e4a3b066d9f3ef5a47daab1b5e81ea8cbfc79906c170e
7
- data.tar.gz: 76b5998e7a9876a721605d45ff277704130861b29b3cdafda589d69d4b1f27d704b0181ca19d57b85188c27c12f0d1965c2fa702978a88e375f18abc2dd0c839
6
+ metadata.gz: 03a873e7e87b854d74ce2c6c969ca2223124c2f0ec69466ee05a73a4a8c3361da46ce3ead16a9e3568d6fe7da04d07c6ec0c5cb5d17609f499bffc6886f1008e
7
+ data.tar.gz: 87528231373f2fd9a7f47c0c77816cae30efb22000a2167e23e13da047598e3682f70c4178918311488d7f4c93460f5187a7a473dd7385ad2c24e00787361196
@@ -37,14 +37,17 @@ module ExtBundler
37
37
  options = args.last.is_a?(Hash) ? args.pop : {}
38
38
  type = options.delete(:type)&.to_sym
39
39
 
40
- version =
40
+ regexes =
41
41
  case type
42
42
  when :ref
43
- /^ revision: (\w+)(?:\n branch: \w+)?\n specs:\n #{name} \([\w\.]+\)$/m
43
+ [
44
+ /^ revision: (\w+)(?:\n branch: \w+)?\n specs:\n #{name} \([\w\.]+\)$/m,
45
+ /^ remote: .*\/#{name}.git\n revision: (\w+)(?:\n branch: \w+)?\n specs:\n/m
46
+ ]
44
47
  else
45
- /^ #{name} \(([\w\.]+)\)$/
48
+ [/^ #{name} \(([\w\.]+)\)$/]
46
49
  end
47
- version = @gemfile_lock.match(version)[1]
50
+ version = regexes.lazy.map{ |regex| @gemfile_lock.match(regex) }.reject(&:nil?).first[1]
48
51
 
49
52
  case type
50
53
  when :ref
@@ -1,3 +1,3 @@
1
1
  module ExtBundler
2
- VERSION = '2.0.10'
2
+ VERSION = '2.0.11'
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.10
4
+ version: 2.0.11
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-02 00:00:00.000000000 Z
11
+ date: 2018-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  version: '0'
56
56
  requirements: []
57
57
  rubyforge_project:
58
- rubygems_version: 2.7.3
58
+ rubygems_version: 2.6.14
59
59
  signing_key:
60
60
  specification_version: 4
61
61
  summary: ExtBundler