rails3-opensocial 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,6 +32,8 @@ module OAuth::RequestProxy #:nodoc: all
32
32
  # proxies ActionController::AbstractRequest
33
33
  if ActionController.const_defined?(:AbstractRequest)
34
34
  proxies ActionController::AbstractRequest
35
+ elsif ActionDispatch.const_defined?(:Request)
36
+ proxies ActionDispatch::Request
35
37
  else
36
38
  proxies ActionController::Request
37
39
  end
@@ -90,4 +92,4 @@ module OAuth::RequestProxy #:nodoc: all
90
92
  end
91
93
 
92
94
  end
93
- end
95
+ end
@@ -130,7 +130,7 @@ module OpenSocial #:nodoc:
130
130
  rc = json['code']
131
131
  message = json['message']
132
132
  case rc
133
- when 401:
133
+ when 401
134
134
  raise AuthException.new('The request lacked proper authentication ' +
135
135
  'credentials to retrieve data.')
136
136
  else
@@ -255,4 +255,4 @@ module OpenSocial #:nodoc:
255
255
 
256
256
 
257
257
  class AuthException < RuntimeError; end
258
- end
258
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails3-opensocial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google
@@ -32,26 +32,6 @@ dependencies:
32
32
  - !ruby/object:Gem::Version
33
33
  version: "0"
34
34
  version:
35
- - !ruby/object:Gem::Dependency
36
- name: activesupport
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: 3.0.0
44
- version:
45
- - !ruby/object:Gem::Dependency
46
- name: actionpack
47
- type: :runtime
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: 3.0.0
54
- version:
55
35
  description: OpenSocial Google Gem. Gemified by Robert R Evans
56
36
  email: google@gmail.com
57
37
  executables: []