gh_inspector 1.0.3 → 1.1.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: 8e938b9d4693ba53787f155cb39737c9d515ebe9
4
- data.tar.gz: 0cebe01e047889fa770e1ed59323f48cf4c232f8
3
+ metadata.gz: bc631a268c46ddf8d681b061dc5f0d9b05b47955
4
+ data.tar.gz: 8ef73fba20dbe881e33add01f48c3f5daba9d1bf
5
5
  SHA512:
6
- metadata.gz: 0788a4f00d105e08289bee13a4419dc659fa20a91c9abf572c4e8c5d132508c4c1425e42d6700aa5b6201555794638af3a6614a46527a463cf511abe46c336ef
7
- data.tar.gz: bab69021608975fe5b07d8b21de248df6831d71f9b942546f604feb6bebc191c97129ca542249b8f410d56ec65689272be96460cccf110a126059f75c3c77800
6
+ metadata.gz: 141da60a8452e22094e68c4588458dcc5bb757c97963cd051ba74229cf9111bd0049090371f57ba93845feb6b834c4c77e43525fb65f1ecc25aa8bc5277ce23d
7
+ data.tar.gz: ab2aa3aa2a07397c0481d794f4d07ad440c6e9a19697ed2c216b1c31d7c50df1e190b9f6739648c9dddf7c5b6e487367cf56e47f1adc0d22ffd284fed9476c0e
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.1.3
4
+
4
5
  before_install: gem install bundler -v 1.11.2
@@ -1,5 +1,8 @@
1
1
  ### Master
2
2
 
3
+ ### 1.1.0
4
+
5
+ * Fixes typos in the delegate methods - revolter
3
6
  * Adds support for showing how to click on a link in terminal - 0xced
4
7
 
5
8
  ### 1.0.3
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Orta Therox and Felix Krause
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -80,8 +80,8 @@ inspector.search_query "Someone set us up the bomb", FastlaneUI.new
80
80
  Protocol for custom objects:
81
81
 
82
82
  - `inspector_started_query(query, inspector)` - Called just as the investigation has begun.
83
- - `inspector_successfully_recieved_report(report, inspector)` - Called once the inspector has received a report with more than one issue.
84
- - `inspector_recieved_empty_report(report, inspector)` - Called once the report has been received, but when there are no issues found.
83
+ - `inspector_successfully_received_report(report, inspector)` - Called once the inspector has received a report with more than one issue.
84
+ - `inspector_received_empty_report(report, inspector)` - Called once the report has been received, but when there are no issues found.
85
85
  - `inspector_could_not_create_report(error, query, inspector)` - Called when there have been networking issues in creating the report.
86
86
 
87
87
 
File without changes
@@ -1,4 +1,4 @@
1
- # coding: utf-8
1
+
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'gh_inspector/version'
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_development_dependency 'bundler', '~> 1.11'
22
+ spec.add_development_dependency 'pry', '~> 0.6'
22
23
  spec.add_development_dependency 'rake', '~> 10.0'
23
24
  spec.add_development_dependency 'rspec', '~> 3.0'
24
- spec.add_development_dependency 'pry', '~> 0.6'
25
25
  spec.add_development_dependency 'rubocop', '~> 0', '> 0'
26
26
  end
@@ -29,8 +29,14 @@ module GhInspector
29
29
  puts ""
30
30
  end
31
31
 
32
- # Called once the inspector has recieved a report with more than one issue.
32
+ # Deprecated: Please use `inspector_successfully_received_report` instead
33
33
  def inspector_successfully_recieved_report(report, inspector)
34
+ warn "[DEPRECATION] `inspector_successfully_recieved_report` is deprecated. Please use `inspector_successfully_received_report` instead."
35
+ inspector_successfully_received_report(report, inspector)
36
+ end
37
+
38
+ # Called once the inspector has received a report with more than one issue.
39
+ def inspector_successfully_received_report(report, inspector)
34
40
  report.issues[0..(NUMBER_OF_ISSUES_INLINE - 1)].each { |issue| print_issue_full(issue) }
35
41
 
36
42
  if report.issues.count > NUMBER_OF_ISSUES_INLINE
@@ -41,8 +47,14 @@ module GhInspector
41
47
  print_open_link_hint
42
48
  end
43
49
 
44
- # Called once the report has been recieved, but when there are no issues found.
50
+ # Deprecated: Please use `inspector_received_empty_report` instead
45
51
  def inspector_recieved_empty_report(report, inspector)
52
+ warn "[DEPRECATION] `inspector_recieved_empty_report` is deprecated. Please use `inspector_received_empty_report` instead."
53
+ inspector_received_empty_report(report, inspector)
54
+ end
55
+
56
+ # Called once the report has been received, but when there are no issues found.
57
+ def inspector_received_empty_report(report, inspector)
46
58
  puts "Found no similar issues. To create a new issue, please visit:"
47
59
  puts "https://github.com/#{inspector.repo_owner}/#{inspector.repo_name}/issues/new"
48
60
  print_open_link_hint(true)
@@ -34,9 +34,9 @@ module GhInspector
34
34
  # TODO: progress callback
35
35
 
36
36
  if report.issues.any?
37
- delegate.inspector_successfully_recieved_report(report, inspector)
37
+ delegate.inspector_successfully_received_report(report, inspector)
38
38
  else
39
- delegate.inspector_recieved_empty_report(report, inspector)
39
+ delegate.inspector_received_empty_report(report, inspector)
40
40
  end
41
41
 
42
42
  report
@@ -1,3 +1,3 @@
1
1
  module GhInspector
2
- VERSION = '1.0.3'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gh_inspector
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-01-11 00:00:00.000000000 Z
12
+ date: 2018-02-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -26,47 +26,47 @@ dependencies:
26
26
  - !ruby/object:Gem::Version
27
27
  version: '1.11'
28
28
  - !ruby/object:Gem::Dependency
29
- name: rake
29
+ name: pry
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '10.0'
34
+ version: '0.6'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '10.0'
41
+ version: '0.6'
42
42
  - !ruby/object:Gem::Dependency
43
- name: rspec
43
+ name: rake
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '3.0'
48
+ version: '10.0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '3.0'
55
+ version: '10.0'
56
56
  - !ruby/object:Gem::Dependency
57
- name: pry
57
+ name: rspec
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '0.6'
62
+ version: '3.0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '0.6'
69
+ version: '3.0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rubocop
72
72
  requirement: !ruby/object:Gem::Requirement
@@ -102,6 +102,7 @@ files:
102
102
  - ".travis.yml"
103
103
  - CHANGELOG.md
104
104
  - Gemfile
105
+ - LICENSE
105
106
  - README.md
106
107
  - Rakefile
107
108
  - bin/console
@@ -133,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
134
  version: '0'
134
135
  requirements: []
135
136
  rubyforge_project:
136
- rubygems_version: 2.2.2
137
+ rubygems_version: 2.6.14
137
138
  signing_key:
138
139
  specification_version: 4
139
140
  summary: Search through GitHub issues for your project for existing issues about a