fastlane-plugin-gs_deliver 0.3.4 → 0.3.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_deliver/actions/gs_execute_command.rb +2 -2
- data/lib/fastlane/plugin/gs_deliver/actions/gs_get_release_notes.rb +2 -2
- data/lib/fastlane/plugin/gs_deliver/version.rb +1 -1
- metadata +2 -3
- data/lib/fastlane/plugin/gs_deliver/actions/gs_command_pending_build.rb +0 -111
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4768a701d7a81f8d7bd7456fcc348541376f7ebf
|
4
|
+
data.tar.gz: dfbc803633df6fea9fe7ee9b2c37c4b19b933cb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 244ed5258c14b61bd50171a165bc0d10bca380d1a66775524105a76e7265b130806a8bf60008ba228e180c5896270aa2cf5e236d1ed82a5578229267a16717db
|
7
|
+
data.tar.gz: b9b90e524e38966920beccb13652cfa16ea6373399a7bf60019cb472886147d2a9c88ce75745db12fa51378a739feadcb711f5507832bb6b32647010abb5d405
|
@@ -48,8 +48,8 @@ module Fastlane
|
|
48
48
|
UI.message(params.to_s)
|
49
49
|
json_params = params.to_json
|
50
50
|
response = ""
|
51
|
-
UI.message("curl -k -H \"Content-Type: application/json\" -d \'#{json_params}\'
|
52
|
-
response = `curl -k -H "Content-Type: application/json" -d '#{json_params}'
|
51
|
+
UI.message("curl -k -H \"Content-Type: application/json\" -d \'#{json_params}\' http://mobile.geo4.io/bot/releaseBuilder/#{options[:request]}")
|
52
|
+
response = `curl -k -H "Content-Type: application/json" -d '#{json_params}' http://mobile.geo4.io/bot/releaseBuilder/#{options[:request]}`
|
53
53
|
response
|
54
54
|
end
|
55
55
|
|
@@ -8,8 +8,8 @@ module Fastlane
|
|
8
8
|
params[key] = options[key] if options[key] != nil && key != :lang
|
9
9
|
end
|
10
10
|
json_params = params.to_json
|
11
|
-
UI.message("curl -k -H \"Content-Type: application/json\" -d \'#{json_params}\'
|
12
|
-
response = `curl -k -H "Content-Type: application/json" -d '#{json_params}'
|
11
|
+
UI.message("curl -k -H \"Content-Type: application/json\" -d \'#{json_params}\' http://mobile.geo4.io/bot/releaseBuilder/cmd")
|
12
|
+
response = `curl -k -H "Content-Type: application/json" -d '#{json_params}' http://mobile.geo4.io/bot/releaseBuilder/cmd`
|
13
13
|
UI.message("Saving notes to" + Dir.pwd + "/../../notes/" + options[:project] + "/" +
|
14
14
|
options[:displayVersionName] + "_" + options[:lang] + ".txt")
|
15
15
|
FileHelper.write(Dir.pwd + "/../../notes/" + options[:project] + "/" +
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-gs_deliver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Сергей Веселовский
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -100,7 +100,6 @@ executables: []
|
|
100
100
|
extensions: []
|
101
101
|
extra_rdoc_files: []
|
102
102
|
files:
|
103
|
-
- lib/fastlane/plugin/gs_deliver/actions/gs_command_pending_build.rb
|
104
103
|
- lib/fastlane/plugin/gs_deliver/actions/gs_deliver_action.rb
|
105
104
|
- lib/fastlane/plugin/gs_deliver/actions/gs_execute_command.rb
|
106
105
|
- lib/fastlane/plugin/gs_deliver/actions/gs_get_app_status.rb
|
@@ -1,111 +0,0 @@
|
|
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
|