fastlane-plugin-gs_versioning 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane/plugin/gs_versioning/actions/gs_get_beta_version.rb +53 -0
- data/lib/fastlane/plugin/gs_versioning/actions/gs_get_rc_version.rb +53 -0
- data/lib/fastlane/plugin/gs_versioning/actions/gs_get_release_version.rb +53 -0
- data/lib/fastlane/plugin/gs_versioning/actions/gs_increment_release_version.rb +1 -6
- data/lib/fastlane/plugin/gs_versioning/actions/gs_save_beta_version.rb +1 -1
- data/lib/fastlane/plugin/gs_versioning/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3f7b84d129551ca93a9af1e8070d1358438be06
|
4
|
+
data.tar.gz: a238056ba947323d065f0a5353cfd2dbc9f4b2d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 263f5ed20d8ab4c605e80980c795d7be24222d7d1e83afe1d179ba2f0b50358907eec8e6dc1022655a4d0d2ef08515d66177ecb71ce8e6dc21b7be7269b32c3e
|
7
|
+
data.tar.gz: 343f741245c2530d8880558752f520fef30ec3c5ac19d38a3ff20c97e163030aa470eb5ea3466ed24fc05fa0d73d4ee0d3c5691e98c5219962f97557d1047955
|
@@ -0,0 +1,53 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
class GsGetBetaVersionAction < Action
|
4
|
+
def self.run(params)
|
5
|
+
require 'json'
|
6
|
+
jsonstr = FileHelper.read(params[:path]) #TODO: впилить проверку если не указан путь
|
7
|
+
UI.message(jsonstr)
|
8
|
+
json = JSON.parse(jsonstr)
|
9
|
+
v = Version.parse(json[params[:project_name]])
|
10
|
+
v["beta"]
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.description
|
14
|
+
"Plugin for GradoService versioning system"
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.authors
|
18
|
+
["SAVeselovskiy"]
|
19
|
+
end
|
20
|
+
def self.return_value
|
21
|
+
# If your method provides a return value, you can describe here what it does
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.details
|
25
|
+
# Optional:
|
26
|
+
"Plugin for GradoService versioning system"
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.available_options
|
30
|
+
[
|
31
|
+
FastlaneCore::ConfigItem.new(key: :path,
|
32
|
+
env_name: "GS_VERSIONS_FILE_PATH",
|
33
|
+
description: "path to versions file",
|
34
|
+
optional: false,
|
35
|
+
type: String),
|
36
|
+
FastlaneCore::ConfigItem.new(key: :project_name,
|
37
|
+
env_name: "PROJECT_NAME",
|
38
|
+
description: "project name for versions file access",
|
39
|
+
optional: false,
|
40
|
+
type: String)
|
41
|
+
]
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.is_supported?(platform)
|
45
|
+
# Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
|
46
|
+
# See: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
|
47
|
+
#
|
48
|
+
# [:ios, :mac, :android].include?(platform)
|
49
|
+
true
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
class GsGetBetaVersionAction < Action
|
4
|
+
def self.run(params)
|
5
|
+
require 'json'
|
6
|
+
jsonstr = FileHelper.read(params[:path]) #TODO: впилить проверку если не указан путь
|
7
|
+
UI.message(jsonstr)
|
8
|
+
json = JSON.parse(jsonstr)
|
9
|
+
v = Version.parse(json[params[:project_name]])
|
10
|
+
v["rc"]
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.description
|
14
|
+
"Plugin for GradoService versioning system"
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.authors
|
18
|
+
["SAVeselovskiy"]
|
19
|
+
end
|
20
|
+
def self.return_value
|
21
|
+
# If your method provides a return value, you can describe here what it does
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.details
|
25
|
+
# Optional:
|
26
|
+
"Plugin for GradoService versioning system"
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.available_options
|
30
|
+
[
|
31
|
+
FastlaneCore::ConfigItem.new(key: :path,
|
32
|
+
env_name: "GS_VERSIONS_FILE_PATH",
|
33
|
+
description: "path to versions file",
|
34
|
+
optional: false,
|
35
|
+
type: String),
|
36
|
+
FastlaneCore::ConfigItem.new(key: :project_name,
|
37
|
+
env_name: "PROJECT_NAME",
|
38
|
+
description: "project name for versions file access",
|
39
|
+
optional: false,
|
40
|
+
type: String)
|
41
|
+
]
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.is_supported?(platform)
|
45
|
+
# Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
|
46
|
+
# See: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
|
47
|
+
#
|
48
|
+
# [:ios, :mac, :android].include?(platform)
|
49
|
+
true
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
class GsGetBetaVersionAction < Action
|
4
|
+
def self.run(params)
|
5
|
+
require 'json'
|
6
|
+
jsonstr = FileHelper.read(params[:path]) #TODO: впилить проверку если не указан путь
|
7
|
+
UI.message(jsonstr)
|
8
|
+
json = JSON.parse(jsonstr)
|
9
|
+
v = Version.parse(json[params[:project_name]])
|
10
|
+
v["release"]
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.description
|
14
|
+
"Plugin for GradoService versioning system"
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.authors
|
18
|
+
["SAVeselovskiy"]
|
19
|
+
end
|
20
|
+
def self.return_value
|
21
|
+
# If your method provides a return value, you can describe here what it does
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.details
|
25
|
+
# Optional:
|
26
|
+
"Plugin for GradoService versioning system"
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.available_options
|
30
|
+
[
|
31
|
+
FastlaneCore::ConfigItem.new(key: :path,
|
32
|
+
env_name: "GS_VERSIONS_FILE_PATH",
|
33
|
+
description: "path to versions file",
|
34
|
+
optional: false,
|
35
|
+
type: String),
|
36
|
+
FastlaneCore::ConfigItem.new(key: :project_name,
|
37
|
+
env_name: "PROJECT_NAME",
|
38
|
+
description: "project name for versions file access",
|
39
|
+
optional: false,
|
40
|
+
type: String)
|
41
|
+
]
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.is_supported?(platform)
|
45
|
+
# Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
|
46
|
+
# See: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
|
47
|
+
#
|
48
|
+
# [:ios, :mac, :android].include?(platform)
|
49
|
+
true
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -9,12 +9,7 @@ module Fastlane
|
|
9
9
|
json = JSON.parse(jsonstr)
|
10
10
|
v = Version.parse(json[params[:project_name]])
|
11
11
|
|
12
|
-
|
13
|
-
major = build.split('.')[0].to_i
|
14
|
-
|
15
|
-
if major < v["release"].major
|
16
|
-
raise "Wrong major number specified in Info.plist. Version major number can't be less than current major number on app store (and versions.json file)"
|
17
|
-
elsif v["rc"] <= v["release"]
|
12
|
+
if v["rc"] <= v["release"]
|
18
13
|
raise "Release candidate version lower than release version. You have to send release candidate version
|
19
14
|
on TestFlight and test it first. After that you can send version to review."
|
20
15
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-gs_versioning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SAVeselovskiy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane-plugin-versioning
|
@@ -117,6 +117,9 @@ files:
|
|
117
117
|
- LICENSE
|
118
118
|
- README.md
|
119
119
|
- lib/fastlane/plugin/gs_versioning.rb
|
120
|
+
- lib/fastlane/plugin/gs_versioning/actions/gs_get_beta_version.rb
|
121
|
+
- lib/fastlane/plugin/gs_versioning/actions/gs_get_rc_version.rb
|
122
|
+
- lib/fastlane/plugin/gs_versioning/actions/gs_get_release_version.rb
|
120
123
|
- lib/fastlane/plugin/gs_versioning/actions/gs_get_versions_filepath.rb
|
121
124
|
- lib/fastlane/plugin/gs_versioning/actions/gs_increment_beta_version.rb
|
122
125
|
- lib/fastlane/plugin/gs_versioning/actions/gs_increment_rc_version.rb
|