gh-issues-inspector 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inspector/version.rb +1 -1
- data/lib/sidekick.rb +2 -4
- 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: 41cc27e21c69039ed07ddb55b21500e4df86fe00
|
4
|
+
data.tar.gz: f676c3562d7ef1bdc57be85e52338a75ef75cc97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3bece1359e31516eb5e535764edf88274abe307ad8b157339c7f1df5a8e3947e444e4ca527bc2e1e24661c6641bb07afbce7fba19387085e36d7809545988fc
|
7
|
+
data.tar.gz: a4e2f3ca6159313397fbe8d68d52c08eff54ba735f7618ffd5b42a30b25b0f7200e5e90a7dcd5fec3af44ecc952ecba7c9436984cfb787cad8fef0b9648ed206
|
data/lib/inspector/version.rb
CHANGED
data/lib/sidekick.rb
CHANGED
@@ -48,9 +48,7 @@ module Inspector
|
|
48
48
|
|
49
49
|
# Generates a URL for the request
|
50
50
|
def url_for_request(query)
|
51
|
-
|
52
|
-
"search/issues?q=#{query}%2Brepo%3A#{repo_owner}%2F#{repo_name}&sort=created&order=asc"
|
53
|
-
URI.escape root
|
51
|
+
"https://api.github.com/search/issues?q=#{URI.escape query}&repo=#{repo_owner}/#{repo_name}&sort=created&order=asc"
|
54
52
|
end
|
55
53
|
|
56
54
|
# Gets the search results
|
@@ -59,7 +57,7 @@ module Inspector
|
|
59
57
|
http = Net::HTTP.new(uri.host, uri.port)
|
60
58
|
http.use_ssl = true
|
61
59
|
|
62
|
-
request = Net::HTTP::Get.new uri.request_uri
|
60
|
+
request = Net::HTTP::Get.new URI.escape(uri.request_uri)
|
63
61
|
response = http.request request
|
64
62
|
|
65
63
|
JSON.parse response.body
|
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.2
|
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-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|