fastlane-plugin-increment_version_build_number 0.0.2 → 0.0.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
  SHA256:
3
- metadata.gz: 26eb254faf6cfcd38869d7e92ea440e17de3371ff0d8982b4b5a68c26d3f8d7f
4
- data.tar.gz: fe6d325a405b7a6d6017c6495cb3d74cd15d9d2038bf27276938d93ad05cff5c
3
+ metadata.gz: f15ae8b2f52e79c45e7a98dbd5d6e0697fcdc12404c185ad2548a0acb0b3cab1
4
+ data.tar.gz: 16be6283bf196e2d050c58030b36b78b122ec85f3dc84e9d2cb15d0244a9898e
5
5
  SHA512:
6
- metadata.gz: 9d42c0e7926929c19f8515b8c69cd3165392196891dba814928e40bd0e65c1589df2e44fd258c50a2dd28186bd789db8d6db6995301a601343d42e711379f21f
7
- data.tar.gz: 52dc1c668b6e6c39ef86ea60b760a6973e6e88d8dc86ddbafe0bc3cc755ac7ca671adbb80bb98e892a3473c56c4eb87fcb431bc61db84491214db56b0ecc5493
6
+ metadata.gz: 0a21308a6f089cf6bd3b0dcd2763881c40f4075ebb60945fc38e2705cd8618d88fcb156b37db53bd4cbaf1198103f10adcdfe7e53b9c42f3b3d71d237192c70a
7
+ data.tar.gz: 10b8618c45ad8f1fdb37feb5c294ea9667aaa507062635cc2071b18877f7d7728ad31b4d94ef9011a3ff62918e65212db4213c298a52c598264b07f5bf48647b
@@ -52,13 +52,19 @@ 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
+
56
+ # Spected format
57
+ # 0 | 1 |2|3
58
+ # def versionBuild = 4
59
+ if versionComponents[1] == constant_name
60
+ version_build_number = versionComponents[versionComponents.length-1].tr("\"","")
61
+ if new_version_build_number <= 0
62
+ new_version_build_number = version_build_number.to_i + 1
63
+ end
64
+ if !!(version_build_number =~ /\A[-+]?[0-9]+\z/)
65
+ line.replace line.sub(version_build_number, new_version_build_number.to_s)
66
+ foundVersionBuildNumber = "true"
67
+ end
62
68
  end
63
69
  temp_file.puts line
64
70
  else
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module IncrementVersionBuildNumber
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.4"
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.4
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