gh 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore CHANGED
@@ -1,4 +1,3 @@
1
1
  *.gem
2
2
  .bundle
3
- Gemfile.lock
4
3
  pkg/*
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
@@ -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
@@ -1,4 +1,4 @@
1
1
  module GH
2
2
  # Public: Library version.
3
- VERSION = "0.11.0"
3
+ VERSION = "0.11.1"
4
4
  end
data/spec/spec_helper.rb CHANGED
@@ -73,7 +73,6 @@ module GH
73
73
  private
74
74
 
75
75
  def allow_http
76
- raise Faraday::Error::ResourceNotFound if ENV['CI']
77
76
  WebMock.allow_net_connect!
78
77
  yield
79
78
  ensure
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.0
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-04-29 00:00:00.000000000 Z
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