fastlane_core 0.48.3 → 0.49.0

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: d3f7a756d93705d812415ee2e6bced57f3010edb
4
- data.tar.gz: d5a658c0eab0fb7e3198c75e569617671ebd558b
3
+ metadata.gz: 90bf6fabf15e87e84b57df467e81a6d543ccbb84
4
+ data.tar.gz: 9668ab74de0e5586166b77dff6ecbfad10ec1652
5
5
  SHA512:
6
- metadata.gz: 4744590185a0959bec598895bf316030989c3051a339875c01a21aa5847628773fde90ea1c2a4296de4561f3931fa43554211f12d9683986ad45aa8cbd9ec764
7
- data.tar.gz: 1a37197da3eaa8cb8e788fb5b0c09c18c7ce433e36e8f73429e2a85323e988e7e5f9ddcaf380ae1fd5a0c37beb54e143c175f770cfd8f326ef8883a31b32502c
6
+ metadata.gz: b9c3a37a0bc79fceaaf04de1c6db591db520a45e582387f4c194d1f58a15b259e16d8e11efaf2a36e51dac106407a5012018905a85f8d516db6bb4ff149e584c
7
+ data.tar.gz: 31bb21abba8cbce4f4879b95a9015d31912c108c8cf06e016b00347579aa64993b1360f38b280777169c958117ac76fc4905bfa02d0d116858b3467c9aa3e486
@@ -40,7 +40,7 @@ module Commander
40
40
  abort e.to_s
41
41
  rescue FastlaneCore::Interface::FastlaneError => e # user_error!
42
42
  collector.did_raise_error(@program[:name])
43
- show_github_issues(e.message)
43
+ show_github_issues(e.message) if e.show_github_issues
44
44
  display_user_error!(e, e.message)
45
45
  rescue => e # high chance this is actually FastlaneCore::Interface::FastlaneCrash, but can be anything else
46
46
  collector.did_crash(@program[:name])
@@ -117,6 +117,11 @@ module FastlaneCore
117
117
 
118
118
  # raised from user_error!
119
119
  class FastlaneError < StandardError
120
+ attr_reader :show_github_issues
121
+
122
+ def initialize(show_github_issues: true)
123
+ @show_github_issues = show_github_issues
124
+ end
120
125
  end
121
126
 
122
127
  # Pass an exception to this method to exit the program
@@ -135,8 +140,9 @@ module FastlaneCore
135
140
  # stack trace
136
141
  # Basically this should be used when you actively catch the error
137
142
  # and want to show a nice error message to the user
138
- def user_error!(error_message)
139
- raise FastlaneError.new, error_message.to_s
143
+ def user_error!(error_message, options = {})
144
+ options = { show_github_issues: true }.merge(options)
145
+ raise FastlaneError.new(show_github_issues: options[:show_github_issues]), error_message.to_s
140
146
  end
141
147
 
142
148
  #####################################################
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.48.3".freeze
2
+ VERSION = "0.49.0".freeze
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.48.3
4
+ version: 0.49.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-07-25 00:00:00.000000000 Z
11
+ date: 2016-08-02 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.4.5.1
411
+ rubygems_version: 2.6.6
412
412
  signing_key:
413
413
  specification_version: 4
414
414
  summary: Contains all shared code/dependencies of the fastlane.tools