fastlane-plugin-android_versioning 0.5.3 → 0.5.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b18ed0f97fbda93363f1a8bc6a17f088f371925e
|
4
|
+
data.tar.gz: 8d3a32e846a7ab93d4bba16934e07ddc095ad644
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95f9076481db3b049d168028332d04317a2ee2e0cbc703f3bec50a8c569a13ef06f683f319a0b3070d19d85937fa71cdac9d018a468e4a0e92ce55c569cd3059
|
7
|
+
data.tar.gz: 62c6d541464f545696747fa56934b849e394ff06a4a7bbf3355ae0429b0f35611de45149d866bc436825e5e5c5bd8122f469ecd86cd969620b6b49d86127da17
|
@@ -8,6 +8,7 @@ module Fastlane
|
|
8
8
|
regex = Regexp.new(/(?<key>#{params[:key]}\s+)(?<left>[\'\"]?)(?<value>[a-zA-Z0-9\.\_]*)(?<right>[\'\"]?)(?<comment>.*)/)
|
9
9
|
flavor = params[:flavor]
|
10
10
|
flavorSpecified = !(flavor.nil? or flavor.empty?)
|
11
|
+
regex_flavor = Regexp.new(/[ \t]#{flavor}[ \t]/)
|
11
12
|
value = ""
|
12
13
|
found = false
|
13
14
|
flavorFound = false
|
@@ -27,7 +28,7 @@ module Fastlane
|
|
27
28
|
end
|
28
29
|
|
29
30
|
if flavorSpecified and !flavorFound
|
30
|
-
unless line.
|
31
|
+
unless line.match(regex_flavor)
|
31
32
|
next
|
32
33
|
end
|
33
34
|
flavorFound = true
|
@@ -9,6 +9,7 @@ module Fastlane
|
|
9
9
|
regex = Regexp.new(/(?<key>#{params[:key]}\s+)(?<left>[\'\"]?)(?<value>[a-zA-Z0-9\.\_]*)(?<right>[\'\"]?)(?<comment>.*)/)
|
10
10
|
flavor = params[:flavor]
|
11
11
|
flavorSpecified = !(flavor.nil? or flavor.empty?)
|
12
|
+
regex_flavor = Regexp.new(/[ \t]#{flavor}[ \t]/)
|
12
13
|
found = false
|
13
14
|
productFlavorsSection = false
|
14
15
|
flavorFound = false
|
@@ -17,7 +18,7 @@ module Fastlane
|
|
17
18
|
temp_file = Tempfile.new('versioning')
|
18
19
|
File.open(path, 'r') do |file|
|
19
20
|
file.each_line do |line|
|
20
|
-
|
21
|
+
|
21
22
|
if flavorSpecified and !productFlavorsSection
|
22
23
|
unless line.include? "productFlavors" or productFlavorsSection
|
23
24
|
temp_file.puts line
|
@@ -27,7 +28,7 @@ module Fastlane
|
|
27
28
|
end
|
28
29
|
|
29
30
|
if flavorSpecified and !flavorFound
|
30
|
-
unless line.
|
31
|
+
unless line.match(regex_flavor)
|
31
32
|
temp_file.puts line
|
32
33
|
next
|
33
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-android_versioning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manabu OHTAKE
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|