fastlane-plugin-versioning 0.3.2 → 0.3.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c119d45866d925180dce8969f44e41a4fe594597
|
4
|
+
data.tar.gz: 8720abaf2451bfb9adcfaceb3c6e32703e75175e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7946b575c0cfe92778678fbebe4b37b598987147a9b3ad7e5001a27e7fb72a19133a71e9267ca9dc3b8caa7812583534af8903d3f67ed675042789d4b1bd43c1
|
7
|
+
data.tar.gz: d07f145b6efb251dd724982e8b9f02a399ff008798a0897853c082865c3a7a5eca0c85fa0de41a714bf38c4aa4d4429c366b6ba6687f46c257346d277d408103
|
data/README.md
CHANGED
@@ -32,6 +32,10 @@ increment_version_number_in_plist(
|
|
32
32
|
increment_version_number_in_plist(
|
33
33
|
bump_type: 'minor' # Automatically increment minor version number
|
34
34
|
)
|
35
|
+
increment_version_number_in_plist(
|
36
|
+
bump_type: 'minor',
|
37
|
+
omit_zero_patch_version: true # if true omits zero in patch version(so 42.10.0 will become 42.10 and 42.10.1 will remain 42.10.1), default is false
|
38
|
+
)
|
35
39
|
increment_version_number_in_plist(
|
36
40
|
bump_type: 'major' # Automatically increment major version number
|
37
41
|
)
|
@@ -125,7 +129,7 @@ get_info_plist_path(xcodeproj: 'Test.xcodeproj', # optional
|
|
125
129
|
|
126
130
|
### ci_build_number
|
127
131
|
|
128
|
-
Get CI system build number. Determined using environment variables defined by CI systems. Supports Jenkins, Travis CI, Circle CI, TeamCity, GoCD, Bamboo, Gitlab CI, Xcode Server
|
132
|
+
Get CI system build number. Determined using environment variables defined by CI systems. Supports Jenkins, Travis CI, Circle CI, TeamCity, GoCD, Bamboo, Gitlab CI, Xcode Server, Bitbucket Pipelines and BuddyBuild. Returns `1` if build number cannot be determined.
|
129
133
|
|
130
134
|
```ruby
|
131
135
|
increment_build_number_in_plist(
|
@@ -16,17 +16,20 @@ module Fastlane
|
|
16
16
|
case params[:bump_type]
|
17
17
|
when "patch"
|
18
18
|
version_array[2] = (version_array[2] ? version_array[2] : 0) + 1
|
19
|
-
next_version_number = version_array.join(".")
|
20
19
|
when "minor"
|
21
20
|
version_array[1] = (version_array[1] ? version_array[1] : 0) + 1
|
22
21
|
version_array[2] = version_array[2] = 0
|
23
|
-
next_version_number = version_array.join(".")
|
24
22
|
when "major"
|
25
23
|
version_array[0] = (version_array[0] ? version_array[0] : 0) + 1
|
26
24
|
version_array[1] = version_array[1] = 0
|
27
25
|
version_array[1] = version_array[2] = 0
|
28
|
-
next_version_number = version_array.join(".")
|
29
26
|
end
|
27
|
+
|
28
|
+
if params[:omit_zero_patch_version] && version_array[2] == 0
|
29
|
+
version_array.pop()
|
30
|
+
end
|
31
|
+
|
32
|
+
next_version_number = version_array.join(".")
|
30
33
|
end
|
31
34
|
|
32
35
|
if Helper.test?
|
@@ -63,6 +66,12 @@ module Fastlane
|
|
63
66
|
env_name: "FL_VERSION_NUMBER_VERSION_NUMBER",
|
64
67
|
description: "Change to a specific version. This will replace the bump type value",
|
65
68
|
optional: true),
|
69
|
+
FastlaneCore::ConfigItem.new(key: :omit_zero_patch_version,
|
70
|
+
env_name: "FL_VERSION_NUMBER_OMIT_ZERO_PATCH_VERSION",
|
71
|
+
description: "If true omits zero in patch version(so 42.10.0 will become 42.10 and 42.10.1 will remain 42.10.1)",
|
72
|
+
default_value: false,
|
73
|
+
optional: true,
|
74
|
+
is_string: false),
|
66
75
|
FastlaneCore::ConfigItem.new(key: :bundle_id,
|
67
76
|
env_name: "FL_APPSTORE_VERSION_NUMBER_BUNDLE_ID",
|
68
77
|
description: "Bundle ID of the application",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-versioning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Siarhei Fiedartsou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|