rubhub 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/github/github.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c987f79834f9921f839e692a751fc15e9a0c5372
4
- data.tar.gz: 979c0405de3c95988c5123bac1e62cd1514b03fc
3
+ metadata.gz: 870e22bde369ab2791b75adda142189c644fdc7e
4
+ data.tar.gz: c83cfabd6e843ccaa92ea738fbb30d670fa743db
5
5
  SHA512:
6
- metadata.gz: 9599f7ab9fc4c59d0ae1570a1029dabd3b9a9f2e5a7dd14b0d7622d1caf9111d95e2f88365cd3238bd4922bfff372c6d844ba05beb81608f7c19d8e5692d08ad
7
- data.tar.gz: c84b8266b092d6be81f7431ed730dc89d4c3aabd12e589b3f5ef9340f4be54285af981cb319541c977867a7d5a69bf3fb920dce67d637c94645d02d430c2c2c3
6
+ metadata.gz: a8c55c011b02889dd12cc3bc946e2dcb779f3aec1e20bd029715c54af2835d2713f56dc474361edeb57dc3917750f4b9183240f3f925961ebb5c41396952052f
7
+ data.tar.gz: 74c858280213d97e7dd6565265a73bc17af1072b288c2140b2f4f477600742c1783aaf2f95acf7e9172dc0c4a02260d1c938a57533afeba503fd1deab1120ec6
@@ -29,7 +29,7 @@ class Github
29
29
 
30
30
  def get(path)
31
31
  uri = URI(buildurl(path))
32
- req = Net::HTTP::Get.new(uri.request_uri)
32
+ req = Net::HTTP::Get.new(uri.request_uri, initheader = {'Accept' => 'application/json'})
33
33
  req.basic_auth @username, @password
34
34
  res = Net::HTTP.start(uri.hostname, use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) { |http|
35
35
  http.request(req)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubhub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Kennedy