fastlane-plugin-farol 0.4.2 → 0.4.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 +4 -4
- data/lib/fastlane/plugin/farol/lib/farol.rb +9 -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: b87bd3cb956aba298e8620fa458076b213dd22a0
|
|
4
|
+
data.tar.gz: 0d694cb3500f88380b1da7f9e069d5977bfb9db2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 67d2f44e1f0bb5e9e1f545bdc745d4b8eb1ac3ac11fcfa43004cc629fd693884e677ca8e19b7981e847a49fdd12d931595552627da963625a8ecb13bcc98a442
|
|
7
|
+
data.tar.gz: e373f03edec01a607043cf9ea12b75da26c9f0e93fb8905ccced8cd9d239010987cab186378941639bcf038a69039b0ef88e736340839cf27d813fc1a1cfbcb5
|
|
@@ -27,7 +27,7 @@ module Fastlane
|
|
|
27
27
|
response = http.request request # Net::HTTPResponse object
|
|
28
28
|
case response
|
|
29
29
|
when Net::HTTPSuccess
|
|
30
|
-
if response.read_body
|
|
30
|
+
if valid_json(response.read_body)
|
|
31
31
|
return JSON.parse response.read_body
|
|
32
32
|
else
|
|
33
33
|
return true
|
|
@@ -42,6 +42,14 @@ module Fastlane
|
|
|
42
42
|
return false
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
|
+
|
|
46
|
+
# Check if the parameter is a valid JSON string
|
|
47
|
+
def valid_json(json)
|
|
48
|
+
JSON.parse(json)
|
|
49
|
+
return true
|
|
50
|
+
rescue JSON::ParserError => e
|
|
51
|
+
return false
|
|
52
|
+
end
|
|
45
53
|
end
|
|
46
54
|
end
|
|
47
55
|
end
|