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: 82b09a7fe923b9f8ea150119279f720113464ac0
4
- data.tar.gz: 3b549baf3c47f66b91aa11c72c0c49662278eec2
3
+ metadata.gz: b18ed0f97fbda93363f1a8bc6a17f088f371925e
4
+ data.tar.gz: 8d3a32e846a7ab93d4bba16934e07ddc095ad644
5
5
  SHA512:
6
- metadata.gz: cda70a5d6148c970c49f6f6f4fbe716becc2a0a7374485c406e2441255598a086914925c2d43986c2694cb24e41d6dc5d4b0c5d84a90869f5d5779d0c3a87e5b
7
- data.tar.gz: b8c01e2954e8d08c91318d3fc7db8d6d33d436e5da3f1eb4fa64b0df91a624f49deb4cfa9f6312b0c0004447c3e7a44211ed35c68c5745712231cdf07e87ba92
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.include? " #{flavor} "
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.include? " #{flavor} "
31
+ unless line.match(regex_flavor)
31
32
  temp_file.puts line
32
33
  next
33
34
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AndroidVersioning
3
- VERSION = "0.5.3"
3
+ VERSION = "0.5.4"
4
4
  end
5
5
  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.3
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: 2020-01-09 00:00:00.000000000 Z
11
+ date: 2021-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry