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 +4 -4
- data/.rubocop.yml +3 -0
- data/README.md +7 -3
- data/lib/evidence.rb +3 -3
- data/lib/inspector.rb +1 -1
- data/lib/inspector/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1785884553210f042d4f6a4f531bc8273d44a25
|
4
|
+
data.tar.gz: 593da3c7c0dcb7b79440c47b1e4884d4be33aef8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5bcc5f22495dc971d129344b3e0bbb982d9a079ed2398b7322a1ff87330a1086c24b2e836e121119bfb41668eab2e246d6e5ecdc5a2c220ee4b4afbbc3d8e21
|
7
|
+
data.tar.gz: c5b39ccf4e852e4f5b42a5ef383856c6b835922fa9e0aacd1047643f48fd520b5308b28d765b636bdf9829b396f3b2c06bdbec5226728f0a19c3d5029b01f534
|
data/.rubocop.yml
CHANGED
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(
|
70
|
-
- `inspector_successfully_recieved_report(report,
|
71
|
-
- `inspector_recieved_empty_report(
|
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(
|
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,
|
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(
|
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
data/lib/inspector/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|