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 +5 -5
- data/lib/ext_bundler.rb +7 -4
- data/lib/ext_bundler/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f66d78e1b58b9cbdb174b7836f4ad89e8764d94e
|
4
|
+
data.tar.gz: ffdf0d485fe81ea413573c87ba220e6c43319a21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03a873e7e87b854d74ce2c6c969ca2223124c2f0ec69466ee05a73a4a8c3361da46ce3ead16a9e3568d6fe7da04d07c6ec0c5cb5d17609f499bffc6886f1008e
|
7
|
+
data.tar.gz: 87528231373f2fd9a7f47c0c77816cae30efb22000a2167e23e13da047598e3682f70c4178918311488d7f4c93460f5187a7a473dd7385ad2c24e00787361196
|
data/lib/ext_bundler.rb
CHANGED
@@ -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
|
-
|
40
|
+
regexes =
|
41
41
|
case type
|
42
42
|
when :ref
|
43
|
-
|
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(
|
50
|
+
version = regexes.lazy.map{ |regex| @gemfile_lock.match(regex) }.reject(&:nil?).first[1]
|
48
51
|
|
49
52
|
case type
|
50
53
|
when :ref
|
data/lib/ext_bundler/version.rb
CHANGED
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.
|
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-
|
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.
|
58
|
+
rubygems_version: 2.6.14
|
59
59
|
signing_key:
|
60
60
|
specification_version: 4
|
61
61
|
summary: ExtBundler
|