fastlane-plugin-zealot 0.4.1 → 0.5.0

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
  SHA256:
3
- metadata.gz: 876ca038d87e1cd85c34e6f60fec74125e639c7d8a55d5c67b80bd33abb0295a
4
- data.tar.gz: 6346d81d2edddf64242e4d0b3f5891bd2271d143c22b28a37895cbe2e54a0287
3
+ metadata.gz: 64a36e272df98dd1c84814b23963f8dd1acd6f3771838e1b281ebf38e2e331e6
4
+ data.tar.gz: 7105ed9cb6ddca628ff9285c12f2cd66dda401dbb1094d1e679000730bed4725
5
5
  SHA512:
6
- metadata.gz: 8bfd4fd75beee932bb1a6577c27aba4b1437daa4071d83d21a45a03c7f8f05db30e5449b087a5828135bec636fbdb26f2fa770319cef79e09e003478b806b0e6
7
- data.tar.gz: bbc559185354975864ce0f1f12fc1341ed1ca85bd9d319a1dcbdda275a07509775c821d5c3fb6f77d5891fa5953e052aacce1a50b43d40e8853dc565bae9d1a6
6
+ metadata.gz: 4a9fdca9ac0e41266fee8f26a65949bb176ac62950d4a5e4157ae26e8cafa893ee967302e961db19dc41553adcde6070b93c0d5b87774be97dc7748242d5d0dc
7
+ data.tar.gz: baedb7e2dad95eb159d0c6640c525f216858055c72a38ace22ab81f04cefca82d855eee191d3cd5dc1cf7146577fa24a2217d05b27b39659d42fc269a80ca7f5
@@ -31,10 +31,9 @@ module Fastlane
31
31
  end
32
32
 
33
33
  def self.parse_response(response, upload_url, fail_on_error)
34
- return show_error("Error uploading to Zealot: empty response", fail_on_error) unless response
34
+ return unless response
35
35
 
36
36
  UI.verbose response.body.to_s
37
-
38
37
  if response.status != 201
39
38
  return show_error("Error uploading to Zealot [#{response.status}]: #{response.body}", fail_on_error)
40
39
  end
@@ -59,10 +59,9 @@ module Fastlane
59
59
  end
60
60
 
61
61
  def self.parse_response(response, upload_url, fail_on_error)
62
- return show_error("Error uploading to Zealot: empty response", fail_on_error) unless response
62
+ return unless response
63
63
 
64
64
  UI.verbose response.body.to_s
65
-
66
65
  if (body = response.body) && (error = body['error'])
67
66
  return show_error("Error uploading to Zealot: #{response.body}", fail_on_error)
68
67
  end
@@ -138,7 +138,7 @@ module Fastlane
138
138
  #######################################
139
139
 
140
140
  def sync_deivce(params, device)
141
- body = { token: params[:token], name: device.name }
141
+ body = { token: params[:token], name: device.name, model: device.model }
142
142
  http_request(:put, "/api/devices/#{device.udid}", body, params)
143
143
  end
144
144
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Zealot
3
- VERSION = "0.4.1"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-zealot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - icyleaf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-25 00:00:00.000000000 Z
11
+ date: 2020-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday