fastlane_core 0.48.0 → 0.48.1

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: b47d400f7d9be30ebcfd2e00d25b5e98eb307a7a
4
- data.tar.gz: 95fcd3768d5271698c26357a61e2b8690275743c
3
+ metadata.gz: 3ea8d74ee1ce721295375f5a126b3561078c7a91
4
+ data.tar.gz: bc7199c387cedd346a5d86a2be9c3daa870ad008
5
5
  SHA512:
6
- metadata.gz: a631d21250a522b6d94bbd464c4f7e05d8754111cb8a632a046f7fb94c9df608f7f2d22bd4e03d1752bae222c3692f0b15c0de2a944fd77703826b2ed7c44e88
7
- data.tar.gz: a9cf5f87090e72912df1d5000746ff5674576274fbb44e0a401daa66df1eb87e191f0937451e8832f9461c8abe9cbd8fe3bd8adab42de5266e69fd2c468f0697
6
+ metadata.gz: 597401ffd1a6cba13799d67dbce1f890eab8689d5b2e90a2907782374d04cccd40b081859d6e72247c5c4e0323301646bb5c09f0f923560af753151e0582d02d
7
+ data.tar.gz: 61f9c88f956c3dce7c70ef77eee7a35a1a722dc661ca9f9b85efcaa8d882302aa134e3dc3efb824557df0cbe1c022df9a076322e7a508885b688d84671cfad6e
@@ -65,7 +65,8 @@ module Commander
65
65
 
66
66
  display_user_error!(e, error_info)
67
67
  else
68
- show_github_issues(e.message)
68
+ # Pass the error instead of a message so that the inspector can do extra work to simplify the query
69
+ show_github_issues(e)
69
70
 
70
71
  # From https://stackoverflow.com/a/4789702/445598
71
72
  # We do this to make the actual error message red and therefore more visible
@@ -85,7 +86,7 @@ module Commander
85
86
  raise e, "[!] #{message}".red, e.backtrace
86
87
  end
87
88
 
88
- def show_github_issues(message)
89
+ def show_github_issues(message_or_error)
89
90
  return if ENV["FASTLANE_HIDE_GITHUB_ISSUES"]
90
91
  return if FastlaneCore::Helper.test?
91
92
 
@@ -94,9 +95,13 @@ module Commander
94
95
 
95
96
  inspector = GhInspector::Inspector.new("fastlane", "fastlane", verbose: $verbose)
96
97
  delegate = Fastlane::InspectorReporter.new
97
- inspector.search_query(message, delegate)
98
+ if message_or_error.kind_of?(String)
99
+ inspector.search_query(message_or_error, delegate)
100
+ else
101
+ inspector.search_exception(message_or_error, delegate)
102
+ end
98
103
  rescue => ex
99
- UI.error("Error finding relevant GitHub issues: #{ex}")
104
+ FastlaneCore::UI.error("Error finding relevant GitHub issues: #{ex}")
100
105
  end
101
106
  end
102
107
  end
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.48.0".freeze
2
+ VERSION = "0.48.1".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.0
4
+ version: 0.48.1
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-06-23 00:00:00.000000000 Z
11
+ date: 2016-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json