fastlane 2.33.0.beta.20170519010039 → 2.33.0.beta.20170520010019

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: 19ec74be8a4fd5f9df2f14901dfd62412ab3379b
4
- data.tar.gz: 8db25a920512b13291ece7a7b36672385ea009a2
3
+ metadata.gz: 71d39cb763fb3850b7adf49a4d967ecfcc757e2f
4
+ data.tar.gz: 59f07b871fb2ce51f52a7d47568899c568edaff1
5
5
  SHA512:
6
- metadata.gz: 56e22beaba26f1da2d11f07fb159ec4d20c3318a79bbf152ae00e15aa0e2b305f3e57892966017a19a726f45c9af64143b3b23967918e326c1c3f026bdb28038
7
- data.tar.gz: 953120b04eaba5ee902eef7c7af275ae3c84d442ca0a2c70ac74bac400543526fbed55fd06975b8860e9170b1461be570ed9c95561d42f424713f8b5b5b2780f
6
+ metadata.gz: f110118dadb01c0b760a63fc222fd60ab0e79e2cdda561177d3d28c9375f804d259efbf5de9f81455b46c8679ddac60e9f590c2ea0d19e250e167600088bc2f6
7
+ data.tar.gz: 5308fd9c8ed0646cca05acd01ef3e591f0fccebcad70ade69ce52dc452f0493f06e1518e6184926c6d2931e42d24e33d25004f45d3504db3c6770b54fee6cb22
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.33.0.beta.20170519010039'.freeze
2
+ VERSION = '2.33.0.beta.20170520010019'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
@@ -38,7 +38,7 @@ require 'fastlane_core/ui/errors/fastlane_exception'
38
38
  require 'fastlane_core/ui/errors/fastlane_error'
39
39
  require 'fastlane_core/ui/errors/fastlane_crash'
40
40
  require 'fastlane_core/ui/errors/fastlane_shell_error'
41
- require 'fastlane_core/ui/errors/fastlane_not_counted_error'
41
+ require 'fastlane_core/ui/errors/fastlane_common_error'
42
42
 
43
43
  # Third Party code
44
44
  require 'colored'
@@ -15,9 +15,20 @@ module FastlaneCore
15
15
  end
16
16
  end
17
17
 
18
+ def includes_method_missing?
19
+ return false if backtrace.nil? || backtrace[1].nil?
20
+ second_frame = backtrace[1]
21
+ second_frame.include?('method_missing') && second_frame.include?('ui.rb')
22
+ end
23
+
18
24
  def trim_backtrace(method_name: nil)
19
25
  if caused_by_calling_ui_method?(method_name: method_name)
20
- backtrace.drop(2)
26
+ if includes_method_missing?
27
+ drop_count = 2
28
+ else
29
+ drop_count = 1
30
+ end
31
+ backtrace.drop(drop_count)
21
32
  else
22
33
  backtrace
23
34
  end
@@ -107,6 +107,10 @@ module FastlaneCore
107
107
  not_implemented(__method__)
108
108
  end
109
109
 
110
+ #####################################################
111
+ # @!group Abort helper methods
112
+ #####################################################
113
+
110
114
  # Pass an exception to this method to exit the program
111
115
  # using the given exception
112
116
  # Use this method instead of user_error! if this error is
@@ -158,6 +162,18 @@ module FastlaneCore
158
162
  raise FastlaneTestFailure.new, error_message
159
163
  end
160
164
 
165
+ # Use this method to exit the program because of terminal state
166
+ # that is neither the fault of fastlane, nor a problem with the
167
+ # user's input. Using this method instead of user_error! will
168
+ # avoid tracking this outcome as a fastlane failure.
169
+ #
170
+ # e.g. tests ran successfully, but no screenshots were found
171
+ #
172
+ # This will show the message, but hide the full stack trace.
173
+ def abort_with_message!(message)
174
+ raise FastlaneCommonException.new, message
175
+ end
176
+
161
177
  #####################################################
162
178
  # @!group Helpers
163
179
  #####################################################
@@ -292,7 +292,7 @@ module Screengrab
292
292
  # success based on whether there are more screenshots there than when we started.
293
293
  if starting_screenshot_count == ending_screenshot_count
294
294
  UI.error "Make sure you've used Screengrab.screenshot() in your tests and that your expected tests are being run."
295
- UI.user_error! "No screenshots were detected 📷❌"
295
+ UI.abort_with_message! "No screenshots were detected 📷❌"
296
296
  end
297
297
 
298
298
  ending_screenshot_count - starting_screenshot_count
@@ -6,8 +6,14 @@ module Snapshot
6
6
  # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7
7
 
8
8
  sure = true if FastlaneCore::Env.truthy?("SNAPSHOT_FORCE_DELETE") || force
9
- sure = UI.confirm("Are you sure? All your simulators will be DELETED and new ones will be created!") unless sure
10
- UI.user_error!("User cancelled action") unless sure
9
+ begin
10
+ sure = UI.confirm("Are you sure? All your simulators will be DELETED and new ones will be created!") unless sure
11
+ rescue => e
12
+ UI.user_error!("Please make sure to pass the `--force` option to reset simulators when running in non-interactive mode") unless UI.interactive?
13
+ raise e
14
+ end
15
+
16
+ UI.abort_with_message!("User cancelled action") unless sure
11
17
 
12
18
  devices.each do |device|
13
19
  _, name, id = device
@@ -39,8 +39,8 @@ module Spaceship
39
39
  end
40
40
 
41
41
  def self.interactive?
42
- if Object.const_defined?("FastlaneCore") && FastlaneCore.const_defined?("Helper")
43
- return FastlaneCore::Helper.interactive?
42
+ if Object.const_defined?("FastlaneCore") && FastlaneCore.const_defined?("UI")
43
+ return FastlaneCore::UI.interactive?
44
44
  end
45
45
  return true
46
46
  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.33.0.beta.20170519010039
4
+ version: 2.33.0.beta.20170520010019
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-19 00:00:00.000000000 Z
18
+ date: 2017-05-20 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier
@@ -1108,10 +1108,10 @@ files:
1108
1108
  - fastlane_core/lib/fastlane_core/swag.rb
1109
1109
  - fastlane_core/lib/fastlane_core/tool_collector.rb
1110
1110
  - fastlane_core/lib/fastlane_core/ui/disable_colors.rb
1111
+ - fastlane_core/lib/fastlane_core/ui/errors/fastlane_common_error.rb
1111
1112
  - fastlane_core/lib/fastlane_core/ui/errors/fastlane_crash.rb
1112
1113
  - fastlane_core/lib/fastlane_core/ui/errors/fastlane_error.rb
1113
1114
  - fastlane_core/lib/fastlane_core/ui/errors/fastlane_exception.rb
1114
- - fastlane_core/lib/fastlane_core/ui/errors/fastlane_not_counted_error.rb
1115
1115
  - fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb
1116
1116
  - fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb
1117
1117
  - fastlane_core/lib/fastlane_core/ui/github_issue_inspector_reporter.rb
@@ -1367,23 +1367,23 @@ metadata:
1367
1367
  post_install_message:
1368
1368
  rdoc_options: []
1369
1369
  require_paths:
1370
- - scan/lib
1370
+ - produce/lib
1371
+ - snapshot/lib
1372
+ - pem/lib
1373
+ - deliver/lib
1371
1374
  - spaceship/lib
1372
- - screengrab/lib
1375
+ - pilot/lib
1373
1376
  - fastlane/lib
1377
+ - cert/lib
1378
+ - frameit/lib
1374
1379
  - credentials_manager/lib
1375
1380
  - sigh/lib
1381
+ - supply/lib
1382
+ - screengrab/lib
1383
+ - scan/lib
1376
1384
  - match/lib
1377
- - pilot/lib
1378
- - fastlane_core/lib
1379
1385
  - gym/lib
1380
- - supply/lib
1381
- - pem/lib
1382
- - frameit/lib
1383
- - produce/lib
1384
- - deliver/lib
1385
- - cert/lib
1386
- - snapshot/lib
1386
+ - fastlane_core/lib
1387
1387
  required_ruby_version: !ruby/object:Gem::Requirement
1388
1388
  requirements:
1389
1389
  - - ">="