rubhub 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/github/github.rb +6 -6
  2. metadata +5 -5
@@ -21,7 +21,7 @@ class Github
21
21
  uri = URI(buildurl(path))
22
22
  req = Net::HTTP::Head.new(uri.request_uri)
23
23
  req.basic_auth @username, @password
24
- res = Net::HTTP.start(uri.hostname, use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) { |http|
24
+ res = Net::HTTP.start('api.github.com', use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) { |http|
25
25
  http.request(req)
26
26
  }
27
27
  JSON.parse(res.body)
@@ -31,7 +31,7 @@ class Github
31
31
  uri = URI(buildurl(path))
32
32
  req = Net::HTTP::Get.new(uri.request_uri)
33
33
  req.basic_auth @username, @password
34
- res = Net::HTTP.start(uri.hostname, use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) { |http|
34
+ res = Net::HTTP.start('api.github.com', use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) { |http|
35
35
  http.request(req)
36
36
  }
37
37
  JSON.parse(res.body)
@@ -42,7 +42,7 @@ class Github
42
42
  req = Net::HTTP::Post.new(uri.request_uri, initheader = {'Content-Type' => 'application/json'})
43
43
  req.basic_auth @username, @password
44
44
  req.body = data
45
- res = Net::HTTP.start(uri.hostname, use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) { |http|
45
+ res = Net::HTTP.start('api.github.com', use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) { |http|
46
46
  http.request(req)
47
47
  }
48
48
  res.body
@@ -53,7 +53,7 @@ class Github
53
53
  req = Net::HTTP::Patch.new(uri.request_uri, initheader = {'Content-Type' => 'application/json'})
54
54
  req.basic_auth @username, @password
55
55
  req.body = data
56
- res = Net::HTTP.start(uri.hostname, use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) { |http|
56
+ res = Net::HTTP.start('api.github.com', use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) { |http|
57
57
  http.request(req)
58
58
  }
59
59
  JSON.parse(res.body)
@@ -64,7 +64,7 @@ class Github
64
64
  req = Net::HTTP::Put.new(uri.request_uri, initheader = {'Content-Type' => 'application/json'})
65
65
  req.basic_auth @username, @password
66
66
  req.body = data
67
- res = Net::HTTP.start(uri.hostname, use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) { |http|
67
+ res = Net::HTTP.start('api.github.com', use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) { |http|
68
68
  http.request(req)
69
69
  }
70
70
  JSON.parse(res.body)
@@ -75,7 +75,7 @@ class Github
75
75
  req = Net::HTTP::Delete.new(uri.request_uri)
76
76
  req.basic_auth @username, @password
77
77
  req.body = data
78
- res = Net::HTTP.start(uri.hostname, use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) { |http|
78
+ res = Net::HTTP.start('api.github.com', use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) { |http|
79
79
  http.request(req)
80
80
  }
81
81
  res.body ? JSON.parse(res.body) : res.code
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.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
16
- requirement: &21903528 !ruby/object:Gem::Requirement
16
+ requirement: &21510312 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.5.4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *21903528
24
+ version_requirements: *21510312
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rest-client
27
- requirement: &21919428 !ruby/object:Gem::Requirement
27
+ requirement: &21526212 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 1.6.7
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *21919428
35
+ version_requirements: *21526212
36
36
  description: An intuitive wrapper for the Github Api v3.
37
37
  email: cspheregreen@gmail.com
38
38
  executables: []