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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7fde33e040fde5c56548dc0762044619a61fda63
4
- data.tar.gz: 2bdb4b2e0aeb61051597de560e233df1d499bee0
3
+ metadata.gz: b3f7b84d129551ca93a9af1e8070d1358438be06
4
+ data.tar.gz: a238056ba947323d065f0a5353cfd2dbc9f4b2d6
5
5
  SHA512:
6
- metadata.gz: 7f5990baaaf08a5a15a3cb5ed44c10ed20ac57add49a8ac9c6ca1b805a7f34abbb1ccea27cbddc0b65da5dc906882f3304d888a743d2df4c9f2de5857a29f37a
7
- data.tar.gz: 8975f3994861ac2520ae6cc259e707a032db43ce8eadaaa890c7f7c59b394bb025678b0b4608afe6ebc468cce118c02ace7fab75f66b08a7b105e1ba8c004e25
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
- build = GetVersionNumberFromPlistAction.run(xcodeproj:ENV["xcodeproj"], target:ENV["target"])
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
@@ -57,7 +57,7 @@ module Fastlane
57
57
  json[params[:project_name]]["beta"]["version"] = res
58
58
  FileHelper.write(params[:path],json.to_json)
59
59
  UI.message("The gs_versioning plugin is working!")
60
- "res"
60
+ res
61
61
  end
62
62
 
63
63
  def self.description
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GsVersioning
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
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
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-23 00:00:00.000000000 Z
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