gh 0.12.1 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gh/token_check.rb +1 -1
- data/lib/gh/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: 17c62259f2ff6776d135b5079091dee7976a24e5
|
4
|
+
data.tar.gz: 7cd1b53054db693b769fa6e82efd4503125a8ea1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c051a03e105602daee90fef644b4e9a88a9ba71f5482676670615530c553b4f4706da8fbe89975d07fa8b3219d1aeb21772089e69c5ea5d056781847e6361d06
|
7
|
+
data.tar.gz: 27d56e64807726a167d68985709d4b880b9a9adfe44b608f1e9ec33b1dc55f6f41b71d9881565d83b679c4e2a98f344a1ea26718b816706c96f9d8704c345149
|
data/lib/gh/token_check.rb
CHANGED
@@ -18,7 +18,7 @@ module GH
|
|
18
18
|
@check_token = false
|
19
19
|
|
20
20
|
auth_header = "Basic %s" % Base64.encode64("#{client_id}:#{client_secret}").gsub("\n", "")
|
21
|
-
http :head, "/applications/#{client_id}/tokens/#{token}?client_id=#{client_id}&client_secret=#{client_secret}", "Authorization" => auth_header
|
21
|
+
http :head, path_for("/applications/#{client_id}/tokens/#{token}?client_id=#{client_id}&client_secret=#{client_secret}"), "Authorization" => auth_header
|
22
22
|
rescue GH::Error(:response_status => 404) => error
|
23
23
|
raise GH::TokenInvalid, error
|
24
24
|
end
|
data/lib/gh/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|