fastlane-plugin-gs_project_flow_ios 0.4.9 → 0.4.10

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: 45136839673c9a91f21e10fdf49d87122df1e91a
4
- data.tar.gz: b30eb94a44fb73ab1b4a117a27298bb23af6b2f2
3
+ metadata.gz: ab90228b16f8973b09d4fc43f3ebe60d4b86ccc0
4
+ data.tar.gz: 7eb71ade4ae04199472e9aa2bf7bb590eed5d4bc
5
5
  SHA512:
6
- metadata.gz: 1d5eae29bc1bc663df0084a5a23666c33b3492fb05cb9686f8aab63b40e14857ca93344081c764301bba4f387ac4b5ca1a3bfe963c7fb6020f411bd23df95611
7
- data.tar.gz: c4a2e425473d3cf754a873f874bf1f8dee785c983e5b0a016c53cb211220891e3065f53a239f7fe9d214cf9381aaa2c9f1938c12c743946551c03995b92530cd
6
+ metadata.gz: 94b232dc34353276fea12eb10ed186b1a729b33f476a400679c646ec210144b8b4fba94fc07b1a6b8d5c1b24c1a6849daa1abc4c9f816e90699a7cb5de3e8141
7
+ data.tar.gz: 2db480d6bb3b11478947f26f8f6bcea2efe047b50ddcc9f4e41f6f4de8e6af97738b2a32af692705c54b957edd9b30a10a3fe2c682579c59bb2f1840c7a79d69
@@ -105,35 +105,43 @@ module Fastlane
105
105
  end
106
106
  def self.send_report(message, buildState, lane)
107
107
  # Dir.chdir Dir.pwd+"/../../../../" do
108
- UI.message(Dir.pwd)
109
- params = Hash.new
110
- params["state"] = buildState
111
- params["alias"] = ENV["ALIAS"]
108
+ UI.message(Dir.pwd)
109
+ params = Hash.new
110
+ params["state"] = buildState
111
+ params["alias"] = ENV["ALIAS"]
112
112
 
113
- if buildState == BuildState::FAILURE
114
- params["message"] = message
115
- end
113
+ if buildState == BuildState::FAILURE
114
+ params["message"] = message
115
+ end
116
116
 
117
- if lane == :beta
118
- params["cmd"] = "beta"
119
- elsif lane == :rc
120
- params["cmd"] = "rc"
121
- elsif lane == :release
122
- params["cmd"] = "release"
123
- end
117
+ if lane == :beta
118
+ params["cmd"] = "beta"
119
+ elsif lane == :rc
120
+ params["cmd"] = "rc"
121
+ elsif lane == :release
122
+ params["cmd"] = "release"
123
+ end
124
124
 
125
125
 
126
126
 
127
- paramsJSON = params.to_json
127
+ paramsJSON = params.to_json
128
128
 
129
129
 
130
- client = Spaceship::GSBotClient.new
131
- url = 'jobStates'
132
- client.request(:post) do |req|
133
- req.url url
134
- req.body = paramsJSON
135
- req.headers['Content-Type'] = 'application/json'
136
- end
130
+ client = Spaceship::GSBotClient.new
131
+ url = 'jobStates'
132
+ response = client.request(:post) do |req|
133
+ req.url url
134
+ req.body = paramsJSON
135
+ req.headers['Content-Type'] = 'application/json'
136
+ end
137
+
138
+ if response.success?
139
+ UI.important('status' + response.status)
140
+ return response
141
+ else
142
+ raise (client.class.hostname + url + ' ' + response.status.to_s + ' ' + response.body['message'])
143
+ end
144
+
137
145
 
138
146
  # Actions::ShAction.run(FastlaneCore::Configuration.create(Actions::ShAction.available_options,
139
147
  # {command:"curl -X POST -H \"Content-Type: application/json\" -d '#{paramsJSON}' http://mobile.geo4.io/bot/releaseBuilder/jobStates"}))
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GsProjectFlowIos
3
- VERSION = "0.4.9"
3
+ VERSION = "0.4.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-gs_project_flow_ios
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Сергей Веселовский