fastlane_core 0.49.0 → 0.50.0
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/device_manager.rb +10 -0
- data/lib/fastlane_core/ui/fastlane_runner.rb +27 -0
- data/lib/fastlane_core/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1789e5a73e83522ad183c1581478a71c9211c919
|
4
|
+
data.tar.gz: 19cc105ec40540bd7d63c36163386f2d3d937ba1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79fcfddbac68f1e03acadf73fab3fd2ba9eb9cf0166519a3d25bccc898cb0c8ddcf8b04e8733fb26c0e7099c624acdd8baa1684da3a80fd7f397439e0cbf103f
|
7
|
+
data.tar.gz: 7ef98b038215eefc42c95f668ee2c894578176272df146b93a2a651af700f42ba20452bfb73458b8ffbf9301c3bb69c98d67978af6b2074153b1ddd1ef8234d4
|
@@ -186,6 +186,16 @@ module FastlaneCore
|
|
186
186
|
def clear_cache
|
187
187
|
@devices = nil
|
188
188
|
end
|
189
|
+
|
190
|
+
def launch(device)
|
191
|
+
return unless device.is_simulator
|
192
|
+
|
193
|
+
simulator_path = File.join(Helper.xcode_path, 'Applications', 'Simulator.app')
|
194
|
+
|
195
|
+
UI.verbose "Launching #{simulator_path} for device: #{device.name} (#{device.udid})"
|
196
|
+
|
197
|
+
Helper.backticks("open -a #{simulator_path} --args -CurrentDeviceUDID #{device.udid}", print: $verbose)
|
198
|
+
end
|
189
199
|
end
|
190
200
|
end
|
191
201
|
|
@@ -2,6 +2,16 @@ module Commander
|
|
2
2
|
# This class override the run method with our custom stack trace handling
|
3
3
|
# In particular we want to distinguish between user_error! and crash! (one with, one without stack trace)
|
4
4
|
class Runner
|
5
|
+
unless Object.const_defined?("Faraday")
|
6
|
+
module Faraday
|
7
|
+
class SSLError < StandardError
|
8
|
+
# We create this empty error class if we didn't require Faraday
|
9
|
+
# so that we can use it in the rescue block below
|
10
|
+
# even if we didn't require Faraday or didn't use it
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
5
15
|
# Code taken from https://github.com/commander-rb/commander/blob/master/lib/commander/runner.rb#L50
|
6
16
|
def run!
|
7
17
|
require_program :version, :description
|
@@ -42,6 +52,23 @@ module Commander
|
|
42
52
|
collector.did_raise_error(@program[:name])
|
43
53
|
show_github_issues(e.message) if e.show_github_issues
|
44
54
|
display_user_error!(e, e.message)
|
55
|
+
rescue Faraday::SSLError => e # SSL issues are very common
|
56
|
+
# SSL errors are very common when the Ruby or OpenSSL installation is somehow broken
|
57
|
+
# We want to show a nice error message to the user here
|
58
|
+
# We have over 20 GitHub issues just for this one error:
|
59
|
+
# https://github.com/fastlane/fastlane/search?q=errno%3D0+state%3DSSLv3+read+server&type=Issues
|
60
|
+
ui = FastlaneCore::UI
|
61
|
+
ui.error "-----------------------------------------------------------------------"
|
62
|
+
ui.error e.to_s
|
63
|
+
ui.error "SSL errors can be caused by various components on your local machine"
|
64
|
+
ui.error "- Make sure OpenSSL is installed with Homebrew: `brew update && brew upgrade openssl`"
|
65
|
+
ui.error "- If you use rvm:"
|
66
|
+
ui.error " - First run `rvm osx-ssl-certs update all`"
|
67
|
+
ui.error " - Then run `rvm reinstall ruby-2.2.3 --with-openssl-dir=/usr/local"
|
68
|
+
ui.error "- If that doesn't fix your issue, please google for the following error message:"
|
69
|
+
ui.error " '#{e}'"
|
70
|
+
ui.error "-----------------------------------------------------------------------"
|
71
|
+
display_user_error!(e, e.to_s)
|
45
72
|
rescue => e # high chance this is actually FastlaneCore::Interface::FastlaneCrash, but can be anything else
|
46
73
|
collector.did_crash(@program[:name])
|
47
74
|
handle_unknown_error!(e)
|
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.
|
4
|
+
version: 0.50.0
|
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-08-
|
11
|
+
date: 2016-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -408,7 +408,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
408
408
|
version: '0'
|
409
409
|
requirements: []
|
410
410
|
rubyforge_project:
|
411
|
-
rubygems_version: 2.
|
411
|
+
rubygems_version: 2.4.5.1
|
412
412
|
signing_key:
|
413
413
|
specification_version: 4
|
414
414
|
summary: Contains all shared code/dependencies of the fastlane.tools
|