fastlane_core 0.18.1 → 0.18.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_core/update_checker.rb +8 -2
- data/lib/fastlane_core/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: b676e59d44c4765d81c51f835d59528b1d7d097f
|
4
|
+
data.tar.gz: 0c50ae8d35dda5fca9d467f341d5f2ccc9920acc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f665773841eb949b5f3cd7909d6fe13e06bdb6daf38593959f17dfe55013b344dfa384c869bc2cfa6793e742f9a8fb55c79e3679ee3463db9203dc32bc2b69a5
|
7
|
+
data.tar.gz: d83427a804a5038a3fcee7f4e81d85f8c4574235ee1b5be6aef7f1e30d10e1615fedcc3c00dee9c4b04573f288b702a271291c934be9a9e7d20acc0f3cf2229b
|
@@ -13,9 +13,10 @@ module FastlaneCore
|
|
13
13
|
|
14
14
|
@start_time = Time.now
|
15
15
|
|
16
|
+
url = generate_fetch_url(gem_name)
|
16
17
|
Thread.new do
|
17
18
|
begin
|
18
|
-
server_results[gem_name] = fetch_latest(
|
19
|
+
server_results[gem_name] = fetch_latest(url)
|
19
20
|
rescue
|
20
21
|
end
|
21
22
|
end
|
@@ -55,12 +56,17 @@ module FastlaneCore
|
|
55
56
|
puts '#######################################################################'.green
|
56
57
|
end
|
57
58
|
|
58
|
-
|
59
|
+
# Generate the URL on the main thread (since we're switching directory)
|
60
|
+
def self.generate_fetch_url(gem_name)
|
59
61
|
url = UPDATE_URL + gem_name
|
60
62
|
params = {}
|
61
63
|
params["ci"] = "1" if Helper.is_ci?
|
62
64
|
params["p_hash"] = p_hash if p_hash
|
63
65
|
url += "?" + URI.encode_www_form(params) if params.count > 0
|
66
|
+
return url
|
67
|
+
end
|
68
|
+
|
69
|
+
def self.fetch_latest(url)
|
64
70
|
JSON.parse(Excon.post(url).body).fetch("version", nil)
|
65
71
|
end
|
66
72
|
|