fastlane-plugin-farol 0.4.1 → 0.4.2
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/farol/lib/farol.rb +5 -1
- data/lib/fastlane/plugin/farol/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af4a7a42c77bcb8f4d3fc47e99a31b12f0bce533
|
4
|
+
data.tar.gz: cf95b262959eb2de56d05645f7e8a5b40508bd5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e3bbe7b3906fdf32f2fa203230de25ef52a0257c4394b88bf20d79df140670caa641440bd12113675dd1a3576819884659ea8d82e007bb8a7c922d2b47b2968
|
7
|
+
data.tar.gz: 3cea979a6d2dde7945bbb878da041df702d43ae40cd0e7f47843db07193eed2a94666d78d9d30d905b0f7f1dc66b5990d36708fe867ae9c183244978594ff0f1
|
@@ -27,7 +27,11 @@ module Fastlane
|
|
27
27
|
response = http.request request # Net::HTTPResponse object
|
28
28
|
case response
|
29
29
|
when Net::HTTPSuccess
|
30
|
-
|
30
|
+
if response.read_body
|
31
|
+
return JSON.parse response.read_body
|
32
|
+
else
|
33
|
+
return true
|
34
|
+
end
|
31
35
|
when Net::HTTPUnauthorized
|
32
36
|
UI.error("Farol: #{response.message} - is your authorization token correct?")
|
33
37
|
when Net::HTTPServerError
|