fastlane-plugin-properties 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -13
- data/lib/fastlane/plugin/properties/actions/get_properties_value.rb +2 -4
- data/lib/fastlane/plugin/properties/actions/increment_version_code_in_properties_file.rb +2 -4
- data/lib/fastlane/plugin/properties/actions/increment_version_name_in_properties_file.rb +4 -7
- data/lib/fastlane/plugin/properties/actions/set_properties_value.rb +4 -7
- data/lib/fastlane/plugin/properties/helper/properties_helper.rb +8 -8
- data/lib/fastlane/plugin/properties/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f6b0505e8097b587ca267abd2afd94f75b345ac
|
4
|
+
data.tar.gz: d836caf79513a4ce80d2036ad5ea3d7fe20181c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dea7c4a1b0bf2fb23f3195cba3d4f3b2b2948c717a713fd8289a01b19e95ee95f020d029379a688cbce9f64a37dd5b64dd047d19ac7e93cbc59a35856abf327e
|
7
|
+
data.tar.gz: dc7295037d7c12d52fe6d9666859cb81eed1c3dfff67ac663933324c3980dd19de9114b5531695f7553b62cbf61b0b7bbe824b025e34573e6a48883f4c6765f7
|
data/README.md
CHANGED
@@ -51,19 +51,6 @@ lane :test do
|
|
51
51
|
end
|
52
52
|
```
|
53
53
|
|
54
|
-
## Run tests for this plugin
|
55
|
-
|
56
|
-
To run both the tests, and code style validation, run
|
57
|
-
|
58
|
-
```
|
59
|
-
rake
|
60
|
-
```
|
61
|
-
|
62
|
-
To automatically fix many of the styling issues, use
|
63
|
-
```
|
64
|
-
rubocop -a
|
65
|
-
```
|
66
|
-
|
67
54
|
## Issues and Feedback
|
68
55
|
|
69
56
|
For any other issues and feedback about this plugin, please submit it to this repository.
|
@@ -33,8 +33,7 @@ module Fastlane
|
|
33
33
|
env_name: "PROPERIES_GET_VALUE_PARAM_KEY",
|
34
34
|
description: "Key of properie in .properties file",
|
35
35
|
optional: false,
|
36
|
-
type: String
|
37
|
-
),
|
36
|
+
type: String),
|
38
37
|
FastlaneCore::ConfigItem.new(key: :path,
|
39
38
|
env_name: "PROPERIES_GET_VALUE_PARAM_PATH",
|
40
39
|
description: "Path to .properies file you want to update",
|
@@ -42,8 +41,7 @@ module Fastlane
|
|
42
41
|
optional: false,
|
43
42
|
verify_block: proc do |value|
|
44
43
|
UI.user_error!("Couldn't find .properties file at path '#{value}'") unless File.exist?(File.expand_path(value))
|
45
|
-
end
|
46
|
-
)
|
44
|
+
end)
|
47
45
|
]
|
48
46
|
end
|
49
47
|
|
@@ -36,8 +36,7 @@ module Fastlane
|
|
36
36
|
env_name: "PROPERIES_GET_VALUE_PARAM_KEY",
|
37
37
|
description: "Key of properie in .properties file",
|
38
38
|
optional: false,
|
39
|
-
type: String
|
40
|
-
),
|
39
|
+
type: String),
|
41
40
|
FastlaneCore::ConfigItem.new(key: :path,
|
42
41
|
env_name: "PROPERIES_GET_VALUE_PARAM_PATH",
|
43
42
|
description: "Path to .properies file you want to update",
|
@@ -45,8 +44,7 @@ module Fastlane
|
|
45
44
|
optional: false,
|
46
45
|
verify_block: proc do |value|
|
47
46
|
UI.user_error!("Couldn't find .properties file at path '#{value}'") unless File.exist?(File.expand_path(value))
|
48
|
-
end
|
49
|
-
)
|
47
|
+
end)
|
50
48
|
]
|
51
49
|
end
|
52
50
|
|
@@ -23,7 +23,7 @@ module Fastlane
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def self.return_value
|
26
|
-
"New version name."
|
26
|
+
"New version name."
|
27
27
|
end
|
28
28
|
|
29
29
|
def self.details
|
@@ -37,8 +37,7 @@ module Fastlane
|
|
37
37
|
env_name: "PROPERIES_GET_VALUE_PARAM_KEY",
|
38
38
|
description: "Key of properie in .properties file",
|
39
39
|
optional: false,
|
40
|
-
type: String
|
41
|
-
),
|
40
|
+
type: String),
|
42
41
|
FastlaneCore::ConfigItem.new(key: :path,
|
43
42
|
env_name: "PROPERIES_GET_VALUE_PARAM_PATH",
|
44
43
|
description: "Path to .properies file you want to update",
|
@@ -46,14 +45,12 @@ module Fastlane
|
|
46
45
|
optional: false,
|
47
46
|
verify_block: proc do |value|
|
48
47
|
UI.user_error!("Couldn't find .properties file at path '#{value}'") unless File.exist?(File.expand_path(value))
|
49
|
-
end
|
50
|
-
),
|
48
|
+
end),
|
51
49
|
FastlaneCore::ConfigItem.new(key: :update_type,
|
52
50
|
env_name: "PROPERIES_GET_VALUE_PARAM_KEY",
|
53
51
|
description: "Key of properie in .properties file",
|
54
52
|
optional: true,
|
55
|
-
type: String
|
56
|
-
)
|
53
|
+
type: String)
|
57
54
|
]
|
58
55
|
end
|
59
56
|
|
@@ -20,7 +20,7 @@ module Fastlane
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def self.return_value
|
23
|
-
nil
|
23
|
+
nil
|
24
24
|
end
|
25
25
|
|
26
26
|
def self.details
|
@@ -34,15 +34,13 @@ module Fastlane
|
|
34
34
|
env_name: "PROPERIES_GET_VALUE_PARAM_KEY",
|
35
35
|
description: "Key of properie in .properties file",
|
36
36
|
optional: false,
|
37
|
-
type: String
|
38
|
-
),
|
37
|
+
type: String),
|
39
38
|
FastlaneCore::ConfigItem.new(key: :value,
|
40
39
|
env_name: "PROPERIES_SET_VALUE_PARAM_VALUE",
|
41
40
|
description: "Value to set",
|
42
41
|
skip_type_validation: true, # skipping type validation as fastlane converts YES/NO/true/false strings into booleans
|
43
42
|
type: String,
|
44
|
-
optional: false
|
45
|
-
),
|
43
|
+
optional: false),
|
46
44
|
FastlaneCore::ConfigItem.new(key: :path,
|
47
45
|
env_name: "PROPERIES_GET_VALUE_PARAM_PATH",
|
48
46
|
description: "Path to .properies file you want to update",
|
@@ -50,8 +48,7 @@ module Fastlane
|
|
50
48
|
optional: false,
|
51
49
|
verify_block: proc do |value|
|
52
50
|
UI.user_error!("Couldn't find .properties file at path '#{value}'") unless File.exist?(File.expand_path(value))
|
53
|
-
end
|
54
|
-
)
|
51
|
+
end)
|
55
52
|
]
|
56
53
|
end
|
57
54
|
|
@@ -7,27 +7,27 @@ module Fastlane
|
|
7
7
|
class PropertiesHelper
|
8
8
|
# Available in actions as `Helper::PropertiesHelper.update_semver_version`
|
9
9
|
def self.update_semver_version(type, version_name)
|
10
|
-
type
|
10
|
+
type ||= 'minor'
|
11
11
|
version = version_name.split(".")
|
12
12
|
major = version[0].to_i
|
13
13
|
minor = version[1].to_i
|
14
14
|
patch = version[2].to_i
|
15
|
-
|
15
|
+
|
16
16
|
if type == 'major'
|
17
|
-
major+=1
|
17
|
+
major += 1
|
18
18
|
minor = 0
|
19
19
|
patch = 0
|
20
20
|
end
|
21
|
-
|
21
|
+
|
22
22
|
if type == 'minor'
|
23
|
-
minor+=1
|
23
|
+
minor += 1
|
24
24
|
patch = 0
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
if type == 'patch'
|
28
|
-
patch+=1
|
28
|
+
patch += 1
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
31
|
return "#{major}.#{minor}.#{patch}"
|
32
32
|
end
|
33
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-properties
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavlo Pakholka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -151,7 +151,7 @@ files:
|
|
151
151
|
- lib/fastlane/plugin/properties/actions/set_properties_value.rb
|
152
152
|
- lib/fastlane/plugin/properties/helper/properties_helper.rb
|
153
153
|
- lib/fastlane/plugin/properties/version.rb
|
154
|
-
homepage:
|
154
|
+
homepage: https://github.com/Kerizer/fastlane-plugin-properties
|
155
155
|
licenses:
|
156
156
|
- MIT
|
157
157
|
metadata: {}
|