fastlane_core 0.36.5 → 0.36.6

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: 2383e24e8444a32a27dd49cec19df4df01536c57
4
- data.tar.gz: 6849b9a84f29195185a92f176f716716a0ed780d
3
+ metadata.gz: 4e012f676ebfba7da674bbdc5f49579c541303bd
4
+ data.tar.gz: fde98f7042208536ac8359492f90ebb2368e0b53
5
5
  SHA512:
6
- metadata.gz: b75b3193c155c7dc02d44d8a5c4bd2a4a2c16852f7d358677724d1e78cb626cad80d565252471d666e3ac9b35d53b851c8d47cf5c17cef06215fb81d2cdf4639
7
- data.tar.gz: c3555790db0696f0e01f35135b5c7eacf4be7ef335a8eea7be819a91d023503fd9f6ced5e127801a750fee6e120e3410203fb22785f8c16478dd8d0139578af6
6
+ metadata.gz: 262e0f7815aeff18e44d2bb71bbefc728bcb44744807d71f086de7ccd73559c66db4bce87aa32d5dd393fff543fa4ad835ee9d0abe2068f5e66fb2ba113177a3
7
+ data.tar.gz: 1edfcd1009efa2d29b81037f6af6ec126c0ea0d265713b1356d7853785bd020ddc521008f783272997120de75f2d19ea7604962b5242642efdbbf8aa79c70b0f
@@ -255,10 +255,11 @@ module FastlaneCore
255
255
 
256
256
  # xcode >= 6 might hang here if the user schemes are missing
257
257
  begin
258
- require 'timeout'
259
- @raw = Timeout.timeout(10) { `#{command}`.to_s }
258
+ timeout = FastlaneCore::Project.xcode_list_timeout
259
+ @raw = FastlaneCore::Project.run_command(command, timeout: timeout)
260
260
  rescue Timeout::Error
261
- raise "xcodebuild -list timed-out. You might need to recreate the user schemes. See https://github.com/fastlane/gym/issues/143".red
261
+ raise "xcodebuild -list timed-out after #{timeout} seconds. You might need to recreate the user schemes." \
262
+ " You can override the timeout value with the environment variable FASTLANE_XCODE_LIST_TIMEOUT".red
262
263
  end
263
264
 
264
265
  raise "Error parsing xcode file using `#{command}`".red if @raw.length == 0
@@ -266,6 +267,21 @@ module FastlaneCore
266
267
  return @raw
267
268
  end
268
269
 
270
+ # @internal to module
271
+ def self.xcode_list_timeout
272
+ (ENV['FASTLANE_XCODE_LIST_TIMEOUT'] || 10).to_i
273
+ end
274
+
275
+ # @internal to module
276
+ # runs the specified command and kills it if timeouts
277
+ # @raises Timeout::Error if timeout is passed
278
+ # @returns the output
279
+ # Note: currently affected by fastlane/fastlane_core#102
280
+ def self.run_command(command, timeout: 0)
281
+ require 'timeout'
282
+ @raw = Timeout.timeout(timeout) { `#{command}`.to_s }
283
+ end
284
+
269
285
  private
270
286
 
271
287
  def parsed_info
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.36.5"
2
+ VERSION = "0.36.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.5
4
+ version: 0.36.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-17 00:00:00.000000000 Z
11
+ date: 2016-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json