fastlane 2.31.0.beta.20170512010054 → 2.31.0.beta.20170513010043

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: 4251f7ff9b325c4b4ed5f415d230a37ced150b90
4
- data.tar.gz: 4509c43ca2933dbbfdb7dd0c2e5eeae5ee809024
3
+ metadata.gz: feb5df299a2b15900156713294dfcd10df1559ad
4
+ data.tar.gz: 6b3e87d53709212af43a70f71d18b2d6efded2c1
5
5
  SHA512:
6
- metadata.gz: 7b837fd3c4c14fc9a39ebbd0ae3090b62425a867435484f0cfbb8700391be0a1c3da92fadab27c14f5d7077bc0d42ffbb747cb256c34ced74faf29b7608effde
7
- data.tar.gz: 223ff8bcfd4f3975ff07d2ea18441926d0152ea4503700272ec24440e1f4d92263b24b207984366f622a5fcb1679bf697ad24ab85646ac2a790666ebf217ba7e
6
+ metadata.gz: adb662509c7ad985094139523e6efc4d23df387d7dd530e9dc32cc7d50cb16e93f53ebbf45f32ad8f6c1e4f8980d3d46a4b78e1897df5a8618b8046093f68280
7
+ data.tar.gz: 7bd79825c66ca2c9ec8b1681ff3d4735844a90b9716226b9b29a0a86541cce62782bef36dab8813ac88906c66684346e1c6f0fd586054a4f230b4c720e3a953f
@@ -252,12 +252,14 @@ module Fastlane
252
252
  class_ref.run(arguments)
253
253
  end
254
254
  end
255
+ rescue \
256
+ FastlaneCore::Interface::FastlaneBuildFailure, # build_failure!
257
+ FastlaneCore::Interface::FastlaneTestFailure => e # test_failure!
258
+ raise e
255
259
  rescue FastlaneCore::Interface::FastlaneError => e # user_error!
256
260
  FastlaneCore::CrashReporter.report_crash(type: :user_error, exception: e, action: method_sym)
257
261
  collector.did_raise_error(method_sym)
258
262
  raise e
259
- rescue FastlaneCore::Interface::FastlaneTestFailure => e # test_failure!
260
- raise e
261
263
  rescue Exception => e # rubocop:disable Lint/RescueException
262
264
  # high chance this is actually FastlaneCore::Interface::FastlaneCrash, but can be anything else
263
265
  # Catches all exceptions, since some plugins might use system exits to get out
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.31.0.beta.20170512010054'.freeze
2
+ VERSION = '2.31.0.beta.20170513010043'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
@@ -68,6 +68,8 @@ module FastlaneCore
68
68
 
69
69
  def save_file(payload: "{}")
70
70
  File.write(crash_report_path, payload)
71
+ rescue
72
+ UI.message("fastlane failed to write the crash report to #{crash_report_path}.")
71
73
  end
72
74
 
73
75
  def send_report(payload: "{}")
@@ -70,6 +70,10 @@ module Commander
70
70
  FastlaneCore::CrashReporter.report_crash(type: :option_parser, exception: e, action: @program[:name])
71
71
  abort e.to_s
72
72
  end
73
+ rescue \
74
+ FastlaneCore::Interface::FastlaneBuildFailure, # build_failure!
75
+ FastlaneCore::Interface::FastlaneTestFailure => e # test_failure!
76
+ display_user_error!(e, e.to_s)
73
77
  rescue FastlaneCore::Interface::FastlaneError => e # user_error!
74
78
  collector.did_raise_error(@program[:name])
75
79
  show_github_issues(e.message) if e.show_github_issues
@@ -83,8 +87,6 @@ module Commander
83
87
  puts ""
84
88
  FastlaneCore::CrashReporter.report_crash(type: :system, exception: e, action: @program[:name])
85
89
  raise e
86
- rescue FastlaneCore::Interface::FastlaneTestFailure => e # test_failure!
87
- display_user_error!(e, e.to_s)
88
90
  rescue Faraday::SSLError => e # SSL issues are very common
89
91
  handle_ssl_error!(e)
90
92
  rescue Faraday::ConnectionFailed => e
@@ -126,6 +126,10 @@ module FastlaneCore
126
126
  end
127
127
  end
128
128
 
129
+ # raised from build_failure!
130
+ class FastlaneBuildFailure < FastlaneError
131
+ end
132
+
129
133
  # raised from test_failure!
130
134
  class FastlaneTestFailure < StandardError
131
135
  end
@@ -150,6 +154,16 @@ module FastlaneCore
150
154
  raise FastlaneError.new(options), error_message.to_s
151
155
  end
152
156
 
157
+ # Use this method to exit the program because of a build failure
158
+ # that's caused by the source code of the user. Example for this
159
+ # is that gym will fail when the code doesn't compile or because
160
+ # settings for the project are incorrect.
161
+ # By using this method we'll have more accurate results about
162
+ # fastlane failures
163
+ def build_failure!(error_message, options = {})
164
+ raise FastlaneBuildFailure.new(options), error_message.to_s
165
+ end
166
+
153
167
  # Use this method to exit the program because of a test failure
154
168
  # that's caused by the source code of the user. Example for this
155
169
  # is that scan will fail when the tests fail.
@@ -55,7 +55,7 @@ module Gym
55
55
  print_xcode_path_instructions
56
56
  print_xcode_version
57
57
  raise_legacy_build_api_error(output) if Gym.config[:use_legacy_build_api]
58
- UI.user_error!("Error building the application - see the log above", error_info: output)
58
+ UI.build_failure!("Error building the application - see the log above", error_info: output)
59
59
  end
60
60
 
61
61
  # @param [Array] The output of the errored build (line by line)
@@ -86,7 +86,7 @@ module Gym
86
86
  print "provisioning profile and code signing identity."
87
87
  end
88
88
  print_full_log_path
89
- UI.user_error!("Error packaging up the application", error_info: output)
89
+ UI.build_failure!("Error packaging up the application", error_info: output)
90
90
  end
91
91
 
92
92
  def handle_empty_archive
@@ -96,7 +96,7 @@ module Gym
96
96
  print "Also, make sure to have a valid code signing identity and provisioning profile installed"
97
97
  print "Follow this guide to setup code signing https://docs.fastlane.tools/codesigning/GettingStarted/"
98
98
  print "If your intention was only to export an ipa be sure to provide a valid archive at the archive path."
99
- UI.user_error!("Archive invalid")
99
+ UI.build_failure!("Archive invalid")
100
100
  end
101
101
 
102
102
  def find_standard_output_path(output)
@@ -110,7 +110,7 @@ module Gym
110
110
  UI.error("and was removed with Xcode 8.3")
111
111
  UI.error("Please update your Fastfile to include the export_method too")
112
112
  UI.error("more information about how to migrate away: https://github.com/fastlane/fastlane/releases/tag/2.24.0")
113
- UI.user_error!("Build failed. Please remove the `use_legacy_build_api` option in your Fastfile and try again", error_info: output)
113
+ UI.build_failure!("Build failed. Please remove the `use_legacy_build_api` option in your Fastfile and try again", error_info: output)
114
114
  end
115
115
 
116
116
  private
@@ -287,7 +287,7 @@ module Spaceship
287
287
 
288
288
  # look up the app_id by the bundle_id
289
289
  if bundle_id
290
- app = Spaceship::App.find(bundle_id)
290
+ app = Spaceship::App.set_client(client).find(bundle_id)
291
291
  raise "Could not find app with bundle id '#{bundle_id}'" unless app
292
292
  app_id = app.app_id
293
293
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.31.0.beta.20170512010054
4
+ version: 2.31.0.beta.20170513010043
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2017-05-12 00:00:00.000000000 Z
18
+ date: 2017-05-13 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier
@@ -1361,22 +1361,22 @@ metadata:
1361
1361
  post_install_message:
1362
1362
  rdoc_options: []
1363
1363
  require_paths:
1364
- - sigh/lib
1365
- - scan/lib
1366
- - supply/lib
1367
- - match/lib
1368
- - snapshot/lib
1369
- - spaceship/lib
1370
- - fastlane_core/lib
1371
- - pilot/lib
1364
+ - cert/lib
1372
1365
  - gym/lib
1366
+ - pilot/lib
1367
+ - screengrab/lib
1368
+ - sigh/lib
1373
1369
  - deliver/lib
1374
1370
  - produce/lib
1375
1371
  - fastlane/lib
1372
+ - spaceship/lib
1373
+ - snapshot/lib
1374
+ - scan/lib
1375
+ - match/lib
1376
+ - fastlane_core/lib
1376
1377
  - credentials_manager/lib
1377
- - screengrab/lib
1378
1378
  - pem/lib
1379
- - cert/lib
1379
+ - supply/lib
1380
1380
  - frameit/lib
1381
1381
  required_ruby_version: !ruby/object:Gem::Requirement
1382
1382
  requirements: