fastlane-plugin-gs_deliver 0.2.18 → 0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3509b2d2d5b8ec2c8297b0b97bb7cb9ea5653744
4
- data.tar.gz: ef1372c2b00ec7ccda7493213ce157475cb66540
3
+ metadata.gz: df4980a105dbdd2593ef3e00d18b1bc5fdd8c9f8
4
+ data.tar.gz: d1547377421fe8a5cbdf554c1dbd877390d8e65a
5
5
  SHA512:
6
- metadata.gz: 33656b3131abb87f9efd3bb67a788bd2a6fdbebce14226def8512a0ade2587fb4cf1664bb5801f1fd1b2286f983fff6be8f35ee1a9ac846a2ecd18962b6d5a41
7
- data.tar.gz: b17a1b5978edd9e0401f0650b3c13fbcb7020e8f4555225d727b67bec1c00274cec9abb7a6d02b168343d5e4579f602699c398e3e62fc34dd019d9636815c2e3
6
+ metadata.gz: 11a38a18235b649510d4ba5c730d2aeba35f5df4a19786d9681d56d23bc410f21badfa45899028b9d64f9c15df22c698ea067e45bc4f82e98e376b19197a2c47
7
+ data.tar.gz: 21e948dfafa1dc9228d9eb787f9d8c0b081da7316ece8fb33841bbf3b4a31c0a038f10fded4b43897e0f19ac1a81219ac4ae33c139a888d5b82e788f4a8f491c
@@ -21,6 +21,9 @@ module Fastlane
21
21
  class GsExecuteCommandAction < Action
22
22
  def self.run(options)
23
23
  require 'json'
24
+ if options[:request] == nil
25
+ raise "Can't send command to server. :request is required field"
26
+ end
24
27
 
25
28
  if options[:callCmd] != nil && options[:callCmd].class == Hash
26
29
  if options[:storeIdentificator] == nil || options[:storeVersion] == nil || options[:platform] == nil || options[:rc] == nil || options[:callCmd] == nil
@@ -40,12 +43,12 @@ module Fastlane
40
43
 
41
44
  params = {}
42
45
  options.all_keys.each do |key|
43
- params[key] = options[key] if options[key] != nil && key != :lang
46
+ params[key] = options[key] if options[key] != nil && key != :lang && key != :request
44
47
  end
45
48
  json_params = params.to_json
46
49
  response = ""
47
50
  if options[:cmd].class != Hash && (options[:cmd].include? "file")
48
- UI.message("curl -k -H \"Content-Type: application/json\" -d \'#{json_params}\' https://mobile.geo4.io/bot/releaseBuilder/cmd")
51
+ UI.message("curl -k -H \"Content-Type: application/json\" -d \'#{json_params}\' https://mobile.geo4.io/bot/releaseBuilder/#{options[:request]}")
49
52
  response = `curl -k -H "Content-Type: application/json" -d '#{json_params}' https://mobile.geo4.io/bot/releaseBuilder/cmd`
50
53
  FileHelper.write(Dir.pwd + "/../../notes/" + options[:project] + "/" +
51
54
  options[:displayVersionName] + "_" + options[:lang] + ".txt", response)
@@ -138,6 +141,10 @@ module Fastlane
138
141
  FastlaneCore::ConfigItem.new(key: :storeVersion,
139
142
  description: "storeVersion",
140
143
  optional: true,
144
+ type: String),
145
+ FastlaneCore::ConfigItem.new(key: :request,
146
+ description: "request",
147
+ optional: true,
141
148
  type: String)
142
149
  ]
143
150
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GsDeliver
3
- VERSION = "0.2.18"
3
+ VERSION = "0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-gs_deliver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.18
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Сергей Веселовский