fastlane-plugin-increment_version_build_number 0.0.2 → 0.0.3

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
  SHA256:
3
- metadata.gz: 26eb254faf6cfcd38869d7e92ea440e17de3371ff0d8982b4b5a68c26d3f8d7f
4
- data.tar.gz: fe6d325a405b7a6d6017c6495cb3d74cd15d9d2038bf27276938d93ad05cff5c
3
+ metadata.gz: c38ec05b205fb194bea4fd82307ee9ccc8a7f365466f228aee9e1e2bb176f65b
4
+ data.tar.gz: dd1804d25fd96c0caa261f42533bd54b923d9e6878fa29d14e251e218093ab22
5
5
  SHA512:
6
- metadata.gz: 9d42c0e7926929c19f8515b8c69cd3165392196891dba814928e40bd0e65c1589df2e44fd258c50a2dd28186bd789db8d6db6995301a601343d42e711379f21f
7
- data.tar.gz: 52dc1c668b6e6c39ef86ea60b760a6973e6e88d8dc86ddbafe0bc3cc755ac7ca671adbb80bb98e892a3473c56c4eb87fcb431bc61db84491214db56b0ecc5493
6
+ metadata.gz: 9cf26349c6d205d35fc713eccc6b1f84049daa8857906636b1c676a7a40c70ec053f44cc28b4d333e9e5506e3297d81b3b50c6c08b998104ce2967d5d6e2ae14
7
+ data.tar.gz: 1554bc000882b8b6d346539bfb97a9fded6dd028ca733e9cb3ee76a106ea8c952a420fa2f63154d03c2f0f7f114f1e08adb7122f285addb39aeb9d797c771a85
@@ -52,13 +52,15 @@ module Fastlane
52
52
  if line.include? constant_name and foundVersionBuildNumber=="false"
53
53
  UI.message(" -> line: (#{line})!")
54
54
  versionComponents = line.strip.split(' ')
55
- version_build_number = versionComponents[versionComponents.length-1].tr("\"","")
56
- if new_version_build_number <= 0
57
- new_version_build_number = version_build_number.to_i + 1
58
- end
59
- if !!(version_build_number =~ /\A[-+]?[0-9]+\z/)
60
- line.replace line.sub(version_build_number, new_version_build_number.to_s)
61
- foundVersionBuildNumber = "true"
55
+ if versionComponents[0] == constant_name
56
+ version_build_number = versionComponents[versionComponents.length-1].tr("\"","")
57
+ if new_version_build_number <= 0
58
+ new_version_build_number = version_build_number.to_i + 1
59
+ end
60
+ if !!(version_build_number =~ /\A[-+]?[0-9]+\z/)
61
+ line.replace line.sub(version_build_number, new_version_build_number.to_s)
62
+ foundVersionBuildNumber = "true"
63
+ end
62
64
  end
63
65
  temp_file.puts line
64
66
  else
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module IncrementVersionBuildNumber
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-increment_version_build_number
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jems
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-24 00:00:00.000000000 Z
11
+ date: 2024-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry