fastlane-plugin-diawi 0.1.2 → 0.1.3

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: c3dc5124f453a0558dc7332d7cd868923da4c198
4
- data.tar.gz: '086fc126687de2a519a212e98c832fdf4ea789c4'
3
+ metadata.gz: cca39d536267ab306d8568d565726673d7b8569b
4
+ data.tar.gz: a7fdff6b8a4916a8c01e370a166f6b82c46b52f3
5
5
  SHA512:
6
- metadata.gz: 39495c86d894c49fc6dc4a08ffea44cf6c28f82327e9da4715399506bd3dd6cf63e78698cae5c79c6cc809072986844328856b9b4592adfe83bbd73f742163ce
7
- data.tar.gz: a2b6c6fae61bca6d4d8a9947b6f2c404cd8433833eeb0c86e18e0dcdb3efeb4b552e9e57c63b0fad8bf2eede137389e6ec8d4b32330ce6b579cc6681bbc73668
6
+ metadata.gz: 8f18d2f815f7ab70ae77b4528b8747bc48ae82c1a23a9cc35ac90debd85524a9de32b262c305adf431e8f4b8d0c8d29765bd50a456feff76052471a78bd8911d
7
+ data.tar.gz: 766d06d57d2c783dbfd0920d4cafdc127805bc9ce2059b34b04e31d316a2cdbbf8415191afbb14f2de863f1f4cb211394314c514bc7e4e0439e5124a302640e3
@@ -35,6 +35,7 @@ module Fastlane
35
35
  Faraday.new(url: ENDPOINT) do |builder|
36
36
  builder.request :multipart
37
37
  builder.request :url_encoded
38
+ builder.request :retry
38
39
  builder.response :json, content_type: /\bjson$/
39
40
  builder.use FaradayMiddleware::FollowRedirects
40
41
  builder.adapter :net_http
@@ -69,12 +70,12 @@ module Fastlane
69
70
  when status_in_progress
70
71
  UI.message("Uploading...")
71
72
  when status_error
72
- UI.error("Error uploading file to diawi. Message: #{response.body['message']}")
73
- UI.error("Try to upload file by yourself: #{file}")
73
+ UI.warning("Error uploading file to diawi. Message: #{response.body['message']}")
74
+ UI.warning("Try to upload file by yourself: #{file}")
74
75
  return
75
76
  else
76
- UI.error("Unknown error uploading file to diawi.")
77
- UI.error("Try to upload file by yourself: #{file}")
77
+ UI.warning("Unknown error uploading file to diawi.")
78
+ UI.warning("Try to upload file by yourself: #{file}")
78
79
  return
79
80
  end
80
81
 
@@ -82,8 +83,8 @@ module Fastlane
82
83
  sleep(2)
83
84
  end
84
85
 
85
- UI.error("`In progress` status took more than 10 sec, so raise error. Check out the https://dashboard.diawi.com/. Maybe your file has been uploaded successfully.")
86
- UI.error("If not, try to upload file by yourself: #{file}")
86
+ UI.warning("`In progress` status took more than 10 sec, so raise error. Check out the https://dashboard.diawi.com/. Maybe your file has been uploaded successfully.")
87
+ UI.warning("If not, try to upload file by yourself: #{file}")
87
88
  end
88
89
 
89
90
  def self.upload(file, token, options)
@@ -102,7 +103,7 @@ module Fastlane
102
103
  if response.body && response.body.key?("job")
103
104
  return response.body["job"]
104
105
  else
105
- UI.error("Error uploading file to diawi: #{response.body['message']}")
106
+ UI.warning("Error uploading file to diawi: #{response.body['message']}")
106
107
  return
107
108
  end
108
109
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Diawi
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-diawi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - pacification
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-14 00:00:00.000000000 Z
11
+ date: 2017-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry