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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7eafd33e7fd1eafc2595fa4380ee9be4d5132d12
4
- data.tar.gz: 4b60ab23fc97aedee5ce352be26edbd3bb1cf16e
3
+ metadata.gz: b676e59d44c4765d81c51f835d59528b1d7d097f
4
+ data.tar.gz: 0c50ae8d35dda5fca9d467f341d5f2ccc9920acc
5
5
  SHA512:
6
- metadata.gz: ed2490598f583eb1f2014819bd0c4d1efb0efbb671dbbf9764258d59dfbc42e02e8d5b85d05e33fc4fda9e65bc9daf6b0cdeb703b91da04ab1d94c17d8ad685d
7
- data.tar.gz: 19ca6f3732a0d9fb0c7fa2812fcced745d140ecbc8b41c2d395ae48a26746f3597a918c9704ebf127eba09fce8189e5cc8dca7d50a8bba29035db8a8874e2776
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(gem_name)
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
- def self.fetch_latest(gem_name)
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
 
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.18.1"
2
+ VERSION = "0.18.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.1
4
+ version: 0.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause