gh 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -1
- data/Gemfile.lock +46 -0
- data/lib/gh/token_check.rb +1 -1
- data/lib/gh/version.rb +1 -1
- data/spec/spec_helper.rb +0 -1
- metadata +3 -2
data/.gitignore
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
gh (0.11.0)
|
5
|
+
addressable
|
6
|
+
backports
|
7
|
+
faraday (~> 0.8)
|
8
|
+
multi_json (~> 1.0)
|
9
|
+
net-http-persistent (>= 2.7)
|
10
|
+
net-http-pipeline
|
11
|
+
|
12
|
+
GEM
|
13
|
+
remote: http://rubygems.org/
|
14
|
+
specs:
|
15
|
+
addressable (2.3.4)
|
16
|
+
backports (3.3.0)
|
17
|
+
crack (0.3.2)
|
18
|
+
diff-lcs (1.2.4)
|
19
|
+
faraday (0.8.7)
|
20
|
+
multipart-post (~> 1.1)
|
21
|
+
multi_json (1.7.2)
|
22
|
+
multipart-post (1.2.0)
|
23
|
+
net-http-persistent (2.8)
|
24
|
+
net-http-pipeline (1.0.1)
|
25
|
+
rake (10.0.4)
|
26
|
+
rspec (2.13.0)
|
27
|
+
rspec-core (~> 2.13.0)
|
28
|
+
rspec-expectations (~> 2.13.0)
|
29
|
+
rspec-mocks (~> 2.13.0)
|
30
|
+
rspec-core (2.13.1)
|
31
|
+
rspec-expectations (2.13.0)
|
32
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
33
|
+
rspec-mocks (2.13.1)
|
34
|
+
webmock (1.11.0)
|
35
|
+
addressable (>= 2.2.7)
|
36
|
+
crack (>= 0.3.2)
|
37
|
+
|
38
|
+
PLATFORMS
|
39
|
+
ruby
|
40
|
+
|
41
|
+
DEPENDENCIES
|
42
|
+
gh!
|
43
|
+
jruby-openssl
|
44
|
+
rake
|
45
|
+
rspec
|
46
|
+
webmock
|
data/lib/gh/token_check.rb
CHANGED
@@ -18,7 +18,7 @@ module GH
|
|
18
18
|
auth_header = "Basic %s" % Base64.encode64("#{client_id}:#{client_secret}").gsub("\n", "")
|
19
19
|
http :head, "/applications/#{client_id}/tokens/#{token}", "Authorization" => auth_header
|
20
20
|
@check_token = false
|
21
|
-
rescue GH::Error => error
|
21
|
+
rescue GH::Error(:response_status => 404) => error
|
22
22
|
raise GH::TokenInvalid, error
|
23
23
|
end
|
24
24
|
|
data/lib/gh/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -149,6 +149,7 @@ files:
|
|
149
149
|
- .gitignore
|
150
150
|
- .travis.yml
|
151
151
|
- Gemfile
|
152
|
+
- Gemfile.lock
|
152
153
|
- README.md
|
153
154
|
- Rakefile
|
154
155
|
- gh.gemspec
|