gh-issues-inspector 0.5.0 → 0.5.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: 3fd9721c6b868db5ec4786787fcc9ffd2e8522a7
4
- data.tar.gz: 531b0f5e2b0b5ae52c8597dbe2483f7ceef06011
3
+ metadata.gz: b1785884553210f042d4f6a4f531bc8273d44a25
4
+ data.tar.gz: 593da3c7c0dcb7b79440c47b1e4884d4be33aef8
5
5
  SHA512:
6
- metadata.gz: 3e4f9986e0e09d55122852a3eab9104caf82227228ccc97b8693969c19893f2f79c82f3c41e69ac1b4b0bfea14778a9ca8ad80ed8ec1397c193e3db98ec6c412
7
- data.tar.gz: e3e04cd2a582ddb4df0f6033a63673757f2c3198335889b47f20749051182fdfcd3ed21cc97d13436f676d1a6fec940328a06262d5b24aa69d6f87a59ff511f9
6
+ metadata.gz: b5bcc5f22495dc971d129344b3e0bbb982d9a079ed2398b7322a1ff87330a1086c24b2e836e121119bfb41668eab2e246d6e5ecdc5a2c220ee4b4afbbc3d8e21
7
+ data.tar.gz: c5b39ccf4e852e4f5b42a5ef383856c6b835922fa9e0aacd1047643f48fd520b5308b28d765b636bdf9829b396f3b2c06bdbec5226728f0a19c3d5029b01f534
data/.rubocop.yml CHANGED
@@ -118,3 +118,6 @@ Style/Documentation:
118
118
 
119
119
  Style/ZeroLengthPredicate:
120
120
  Enabled: false
121
+
122
+ Lint/UnusedMethodArgument:
123
+ Enabled: false
data/README.md CHANGED
@@ -66,9 +66,9 @@ inspector.search_query "Someone set us up the bomb", ArtsyUI.new
66
66
  ```
67
67
  Protocol for custom objects:
68
68
 
69
- - `inspector_started_query(_query, inspector)` - Called just as the investigation has begun.
70
- - `inspector_successfully_recieved_report(report, _inspector)` - Called once the inspector has recieved a report with more than one issue.
71
- - `inspector_recieved_empty_report(_report, inspector)` - Called once the report has been recieved, but when there are no issues found.
69
+ - `inspector_started_query(query, inspector)` - Called just as the investigation has begun.
70
+ - `inspector_successfully_recieved_report(report, inspector)` - Called once the inspector has recieved a report with more than one issue.
71
+ - `inspector_recieved_empty_report(report, inspector)` - Called once the report has been recieved, but when there are no issues found.
72
72
  - `inspector_could_not_create_report(error, query, inspector)` - Called when there have been networking issues in creating the report.
73
73
 
74
74
 
@@ -80,6 +80,10 @@ The usage section of this README is generated from inline documentation inside t
80
80
 
81
81
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
82
82
 
83
+ ## Vision
84
+
85
+ I don't expect this project to grow too much, there's space around improving the search query for an exception, mainly. Other than that the project is effectively done and just needs some production usage to iron out any kinks. This project is well tested, and has zero dependencies.
86
+
83
87
  ## Contributing
84
88
 
85
89
  Bug reports and pull requests are welcome on GitHub at https://github.com/orta/gh-issues-inspector.
data/lib/evidence.rb CHANGED
@@ -21,12 +21,12 @@ module Inspector
21
21
 
22
22
  class Evidence
23
23
  # Called just as the investigation has begun.
24
- def inspector_started_query(_query, inspector)
24
+ def inspector_started_query(query, inspector)
25
25
  puts "Looking for related issues on #{inspector.repo_owner}/#{inspector.repo_name}..."
26
26
  end
27
27
 
28
28
  # Called once the inspector has recieved a report with more than one issue.
29
- def inspector_successfully_recieved_report(report, _inspector)
29
+ def inspector_successfully_recieved_report(report, inspector)
30
30
  report.issues[0..2].each { |issue| print_issue_full(issue) }
31
31
 
32
32
  if report.issues.count > 3
@@ -36,7 +36,7 @@ module Inspector
36
36
  end
37
37
 
38
38
  # Called once the report has been recieved, but when there are no issues found.
39
- def inspector_recieved_empty_report(_report, inspector)
39
+ def inspector_recieved_empty_report(report, inspector)
40
40
  puts "Found no similar issues. To create a new issue, please visit:"
41
41
  puts "https://github.com/#{inspector.repo_owner}/#{inspector.repo_name}/issues/new"
42
42
  end
data/lib/inspector.rb CHANGED
@@ -65,7 +65,7 @@ module Inspector
65
65
  end
66
66
 
67
67
  # Queries for an specific search string
68
- def search_query(query, _delegate = nil)
68
+ def search_query(query, delegate = nil)
69
69
  delegate ||= Evidence.new
70
70
  sidekick.search(query, delegate)
71
71
  end
@@ -1,3 +1,3 @@
1
1
  module Inspector
2
- VERSION = '0.5.0'.freeze
2
+ VERSION = '0.5.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gh-issues-inspector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-08 00:00:00.000000000 Z
11
+ date: 2016-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler