fastlane-plugin-gs_deliver 0.2.17 → 0.2.18

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: 490ec5c73a14b309abeb0c55d54a9f24053b2f4f
4
- data.tar.gz: 61b490ebe7c21a30d71cbd3eacf3fd67314b78fe
3
+ metadata.gz: 3509b2d2d5b8ec2c8297b0b97bb7cb9ea5653744
4
+ data.tar.gz: ef1372c2b00ec7ccda7493213ce157475cb66540
5
5
  SHA512:
6
- metadata.gz: 44229c241590ea12ec8c27d1d69803b07f8be65835b16aba4fd0c6a43b91e923300f496f4c20a5d9feb9f8ba28f1b31e32aa7c08f27f87dd32dde8937d4ba3d1
7
- data.tar.gz: 6f287068c8f38bfe6077f7894ef190a724f50c770b9ab25f0875e9c4a9ee4661da6616afdbf288a9dfded6a601b3a1cc3d290cfcd0e405da1382f3c60749d03e
6
+ metadata.gz: 33656b3131abb87f9efd3bb67a788bd2a6fdbebce14226def8512a0ade2587fb4cf1664bb5801f1fd1b2286f983fff6be8f35ee1a9ac846a2ecd18962b6d5a41
7
+ data.tar.gz: b17a1b5978edd9e0401f0650b3c13fbcb7020e8f4555225d727b67bec1c00274cec9abb7a6d02b168343d5e4579f602699c398e3e62fc34dd019d9636815c2e3
@@ -0,0 +1,111 @@
1
+ module Fastlane
2
+ module Actions
3
+ class GsExecuteCommandAction < Action
4
+ def self.run(options)
5
+ require 'json'
6
+ if command[:project] == nil || command[:displayVersionName] == nil || command[:cmd] == nil || command[:project] == nil || command[:displayVersionName] == nil || command[:cmd] == nil
7
+
8
+ end
9
+ command = options[:cmd]
10
+ if command[:project] == nil || command[:displayVersionName] == nil || command[:cmd] == nil
11
+ raise "Can't send command to server. :project, :displayVersionName, :cmd are required fields"
12
+ end
13
+ params = {}
14
+ options.all_keys.each do |key|
15
+ params[key] = options[key] if options[key] != nil && key != :lang
16
+ end
17
+ json_params = params.to_json
18
+ cmnd = options[:cmd]
19
+ response = ""
20
+ if cmnd.include? "file"
21
+ UI.message("curl -k -H \"Content-Type: application/json\" -d \'#{json_params}\' https://mobile.geo4.io/bot/releaseBuilder/cmd")
22
+ response = `curl -k -H "Content-Type: application/json" -d '#{json_params}' https://mobile.geo4.io/bot/releaseBuilder/cmd`
23
+ FileHelper.write(Dir.pwd + "/../../notes/" + options[:project] + "/" +
24
+ options[:displayVersionName] + "_" + options[:lang] + ".txt", response)
25
+ else
26
+ UI.message("curl -k -H \"Content-Type: application/json\" -d \'#{json_params}\' https://mobile.geo4.io/bot/releaseBuilder/cmd")
27
+ response = `curl -k -H "Content-Type: application/json" -d '#{json_params}' https://mobile.geo4.io/bot/releaseBuilder/cmd`
28
+ end
29
+ response
30
+ end
31
+
32
+ def self.description
33
+ "Gradoservice plugin to rule apps releases"
34
+ end
35
+
36
+ def self.authors
37
+ ["Сергей Веселовский"]
38
+ end
39
+
40
+ def self.return_value
41
+ # If your method provides a return value, you can describe here what it does
42
+ end
43
+
44
+ def self.details
45
+ # Optional:
46
+ "Gradoservice plugin to rule apps releases for our scheme"
47
+ end
48
+
49
+ def self.available_options
50
+ [
51
+ FastlaneCore::ConfigItem.new(key: :lang,
52
+ description: "For fileBetaRu and etc",
53
+ optional: true,
54
+ type: String),
55
+ FastlaneCore::ConfigItem.new(key: :cmd,
56
+ description: "Command that indicates bot action",
57
+ optional: false,
58
+ type: String),
59
+ FastlaneCore::ConfigItem.new(key: :buildNumber,
60
+ description: "buildNumber",
61
+ optional: true,
62
+ type: Integer),
63
+ FastlaneCore::ConfigItem.new(key: :project,
64
+ description: "project",
65
+ optional: false,
66
+ type: String),
67
+ FastlaneCore::ConfigItem.new(key: :testingProject,
68
+ description: "testingProject",
69
+ optional: true,
70
+ type: String),
71
+ FastlaneCore::ConfigItem.new(key: :displayVersionName,
72
+ description: "displayVersionName",
73
+ optional: false,
74
+ type: String),
75
+ FastlaneCore::ConfigItem.new(key: :forgeVersionName,
76
+ description: "forgeVersionName",
77
+ optional: true,
78
+ type: String),
79
+ FastlaneCore::ConfigItem.new(key: :nameReplacement,
80
+ description: "nameReplacement",
81
+ optional: true,
82
+ type: String),
83
+ FastlaneCore::ConfigItem.new(key: :namePrefix,
84
+ description: "namePrefix",
85
+ optional: true,
86
+ type: String),
87
+ FastlaneCore::ConfigItem.new(key: :namePostfix,
88
+ description: "namePostfix",
89
+ optional: true,
90
+ type: String),
91
+ FastlaneCore::ConfigItem.new(key: :messageHeader,
92
+ description: "messageHeader",
93
+ optional: true,
94
+ type: String),
95
+ FastlaneCore::ConfigItem.new(key: :messageFooter,
96
+ description: "messageFooter",
97
+ optional: true,
98
+ type: String),
99
+ ]
100
+ end
101
+
102
+ def self.is_supported?(platform)
103
+ # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
104
+ # See: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
105
+ #
106
+ # [:ios, :mac, :android].include?(platform)
107
+ true
108
+ end
109
+ end
110
+ end
111
+ end
@@ -22,17 +22,29 @@ module Fastlane
22
22
  def self.run(options)
23
23
  require 'json'
24
24
 
25
- if options[:project] == nil || options[:displayVersionName] == nil || options[:cmd] == nil
26
- raise "Can't send command to server. :project, :displayVersionName, :cmd are required fields"
25
+ if options[:callCmd] != nil && options[:callCmd].class == Hash
26
+ if options[:storeIdentificator] == nil || options[:storeVersion] == nil || options[:platform] == nil || options[:rc] == nil || options[:callCmd] == nil
27
+ raise "Can't send command to server. :storeIdentificator, :storeVersion, :platform, :rc, :callCmd are required fields"
28
+ end
29
+ command = options[:callCmd]
30
+ if command[:project] == nil || command[:storeVersion] == nil || command[:cmd] == nil
31
+ raise "Can't send command to server. :project, :displayVersionName, :cmd are required fields"
32
+ end
33
+ else
34
+ if options[:project] == nil || options[:displayVersionName] == nil || options[:cmd] == nil
35
+ raise "Can't send command to server. :project, :displayVersionName, :cmd are required fields"
36
+ end
27
37
  end
38
+
39
+
40
+
28
41
  params = {}
29
42
  options.all_keys.each do |key|
30
43
  params[key] = options[key] if options[key] != nil && key != :lang
31
44
  end
32
45
  json_params = params.to_json
33
- cmnd = options[:cmd]
34
46
  response = ""
35
- if cmnd.include? "file"
47
+ if options[:cmd].class != Hash && (options[:cmd].include? "file")
36
48
  UI.message("curl -k -H \"Content-Type: application/json\" -d \'#{json_params}\' https://mobile.geo4.io/bot/releaseBuilder/cmd")
37
49
  response = `curl -k -H "Content-Type: application/json" -d '#{json_params}' https://mobile.geo4.io/bot/releaseBuilder/cmd`
38
50
  FileHelper.write(Dir.pwd + "/../../notes/" + options[:project] + "/" +
@@ -69,7 +81,7 @@ module Fastlane
69
81
  type: String),
70
82
  FastlaneCore::ConfigItem.new(key: :cmd,
71
83
  description: "Command that indicates bot action",
72
- optional: false,
84
+ optional: true,
73
85
  type: String),
74
86
  FastlaneCore::ConfigItem.new(key: :buildNumber,
75
87
  description: "buildNumber",
@@ -77,7 +89,7 @@ module Fastlane
77
89
  type: Integer),
78
90
  FastlaneCore::ConfigItem.new(key: :project,
79
91
  description: "project",
80
- optional: false,
92
+ optional: true,
81
93
  type: String),
82
94
  FastlaneCore::ConfigItem.new(key: :testingProject,
83
95
  description: "testingProject",
@@ -85,7 +97,7 @@ module Fastlane
85
97
  type: String),
86
98
  FastlaneCore::ConfigItem.new(key: :displayVersionName,
87
99
  description: "displayVersionName",
88
- optional: false,
100
+ optional: true,
89
101
  type: String),
90
102
  FastlaneCore::ConfigItem.new(key: :forgeVersionName,
91
103
  description: "forgeVersionName",
@@ -107,10 +119,26 @@ module Fastlane
107
119
  description: "messageHeader",
108
120
  optional: true,
109
121
  type: String),
110
- FastlaneCore::ConfigItem.new(key: :messageFooter,
111
- description: "messageFooter",
122
+ FastlaneCore::ConfigItem.new(key: :storeIdentificator,
123
+ description: "storeIdentificator",
112
124
  optional: true,
113
125
  type: String),
126
+ FastlaneCore::ConfigItem.new(key: :platform,
127
+ description: "platform",
128
+ optional: true,
129
+ type: String),
130
+ FastlaneCore::ConfigItem.new(key: :rc,
131
+ description: "rc",
132
+ optional: true,
133
+ type: String),
134
+ FastlaneCore::ConfigItem.new(key: :callCmd,
135
+ description: "callCmd",
136
+ optional: true,
137
+ is_string: false),
138
+ FastlaneCore::ConfigItem.new(key: :storeVersion,
139
+ description: "storeVersion",
140
+ optional: true,
141
+ type: String)
114
142
  ]
115
143
  end
116
144
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GsDeliver
3
- VERSION = "0.2.17"
3
+ VERSION = "0.2.18"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-gs_deliver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.17
4
+ version: 0.2.18
5
5
  platform: ruby
6
6
  authors:
7
- - "Сергей Веселовский"
7
+ - Сергей Веселовский
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-17 00:00:00.000000000 Z
11
+ date: 2017-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: fastlane
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: 2.0.3
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: 2.0.3
97
97
  description:
@@ -100,9 +100,7 @@ executables: []
100
100
  extensions: []
101
101
  extra_rdoc_files: []
102
102
  files:
103
- - LICENSE
104
- - README.md
105
- - lib/fastlane/plugin/gs_deliver.rb
103
+ - lib/fastlane/plugin/gs_deliver/actions/gs_command_pending_build.rb
106
104
  - lib/fastlane/plugin/gs_deliver/actions/gs_deliver_action.rb
107
105
  - lib/fastlane/plugin/gs_deliver/actions/gs_execute_command.rb
108
106
  - lib/fastlane/plugin/gs_deliver/actions/gs_get_app_status.rb
@@ -112,6 +110,9 @@ files:
112
110
  - lib/fastlane/plugin/gs_deliver/actions/gs_reject_latest_version.rb
113
111
  - lib/fastlane/plugin/gs_deliver/helper/gs_deliver_helper.rb
114
112
  - lib/fastlane/plugin/gs_deliver/version.rb
113
+ - lib/fastlane/plugin/gs_deliver.rb
114
+ - README.md
115
+ - LICENSE
115
116
  homepage: https://github.com/SAVeselovskiy/gs_deliver
116
117
  licenses:
117
118
  - MIT
@@ -122,17 +123,17 @@ require_paths:
122
123
  - lib
123
124
  required_ruby_version: !ruby/object:Gem::Requirement
124
125
  requirements:
125
- - - ">="
126
+ - - '>='
126
127
  - !ruby/object:Gem::Version
127
128
  version: '0'
128
129
  required_rubygems_version: !ruby/object:Gem::Requirement
129
130
  requirements:
130
- - - ">="
131
+ - - '>='
131
132
  - !ruby/object:Gem::Version
132
133
  version: '0'
133
134
  requirements: []
134
135
  rubyforge_project:
135
- rubygems_version: 2.4.5.1
136
+ rubygems_version: 2.0.14.1
136
137
  signing_key:
137
138
  specification_version: 4
138
139
  summary: Gradoservice plugin to rule apps releases