fb_graph 2.1.12 → 2.1.13

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.
Files changed (4) hide show
  1. data/Gemfile.lock +1 -2
  2. data/VERSION +1 -1
  3. data/lib/fb_graph/auth.rb +2 -0
  4. metadata +2 -2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fb_graph (2.1.11)
4
+ fb_graph (2.1.12)
5
5
  httpclient (>= 2.2.0.2)
6
6
  rack-oauth2 (>= 0.9.4)
7
7
 
@@ -41,7 +41,6 @@ GEM
41
41
  jruby-openssl (0.7.4)
42
42
  bouncy-castle-java
43
43
  json (1.6.1)
44
- json (1.6.1-java)
45
44
  multi_json (1.0.3)
46
45
  rack (1.3.4)
47
46
  rack-cache (1.0.3)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.12
1
+ 2.1.13
data/lib/fb_graph/auth.rb CHANGED
@@ -72,6 +72,8 @@ module FbGraph
72
72
  self.access_token = client.access_token!
73
73
  self.user = User.new(data[:user_id], :access_token => access_token)
74
74
  self
75
+ rescue Rack::OAuth2::Client::Error => e
76
+ raise Exception.new(e.status, e.message)
75
77
  end
76
78
 
77
79
  def build_access_token(data)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: fb_graph
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.1.12
5
+ version: 2.1.13
6
6
  platform: ruby
7
7
  authors:
8
8
  - nov matake
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-10-25 00:00:00 Z
13
+ date: 2011-10-27 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httpclient