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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1785884553210f042d4f6a4f531bc8273d44a25
4
- data.tar.gz: 593da3c7c0dcb7b79440c47b1e4884d4be33aef8
3
+ metadata.gz: 41cc27e21c69039ed07ddb55b21500e4df86fe00
4
+ data.tar.gz: f676c3562d7ef1bdc57be85e52338a75ef75cc97
5
5
  SHA512:
6
- metadata.gz: b5bcc5f22495dc971d129344b3e0bbb982d9a079ed2398b7322a1ff87330a1086c24b2e836e121119bfb41668eab2e246d6e5ecdc5a2c220ee4b4afbbc3d8e21
7
- data.tar.gz: c5b39ccf4e852e4f5b42a5ef383856c6b835922fa9e0aacd1047643f48fd520b5308b28d765b636bdf9829b396f3b2c06bdbec5226728f0a19c3d5029b01f534
6
+ metadata.gz: a3bece1359e31516eb5e535764edf88274abe307ad8b157339c7f1df5a8e3947e444e4ca527bc2e1e24661c6641bb07afbce7fba19387085e36d7809545988fc
7
+ data.tar.gz: a4e2f3ca6159313397fbe8d68d52c08eff54ba735f7618ffd5b42a30b25b0f7200e5e90a7dcd5fec3af44ecc952ecba7c9436984cfb787cad8fef0b9648ed206
@@ -1,3 +1,3 @@
1
1
  module Inspector
2
- VERSION = '0.5.1'.freeze
2
+ VERSION = '0.5.2'.freeze
3
3
  end
@@ -48,9 +48,7 @@ module Inspector
48
48
 
49
49
  # Generates a URL for the request
50
50
  def url_for_request(query)
51
- root = 'https://api.github.com/' \
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.1
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-27 00:00:00.000000000 Z
11
+ date: 2016-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler