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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f15ae8b2f52e79c45e7a98dbd5d6e0697fcdc12404c185ad2548a0acb0b3cab1
|
4
|
+
data.tar.gz: 16be6283bf196e2d050c58030b36b78b122ec85f3dc84e9d2cb15d0244a9898e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
if
|
60
|
-
|
61
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2024-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|