fastlane_core 0.36.5 → 0.36.6
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_core/project.rb +19 -3
- data/lib/fastlane_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e012f676ebfba7da674bbdc5f49579c541303bd
|
4
|
+
data.tar.gz: fde98f7042208536ac8359492f90ebb2368e0b53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
259
|
-
@raw =
|
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.
|
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
|
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.
|
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-
|
11
|
+
date: 2016-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|