easy_auth-oauth2 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,8 +30,8 @@ module EasyAuth
30
30
  camelcased_provider_name = params[:provider].to_s.camelcase
31
31
  if respond_to?(method_name)
32
32
  send(method_name, params)
33
- elsif eval("defined?(Identities::Oauth2::#{camelcased_provider_name})")
34
- eval("Identities::Oauth2::#{camelcased_provider_name}")
33
+ elsif eval("::Identities::Oauth2::#{camelcased_provider_name} rescue nil")
34
+ eval("::Identities::Oauth2::#{camelcased_provider_name}")
35
35
  else
36
36
  camelcased_provider_name.constantize
37
37
  end
@@ -1,5 +1,5 @@
1
1
  module EasyAuth
2
2
  module Oauth2
3
- VERSION = '0.0.2'
3
+ VERSION = '0.1.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_auth-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -177,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
177
177
  version: '0'
178
178
  segments:
179
179
  - 0
180
- hash: -4384553740171571441
180
+ hash: -3784856238616428420
181
181
  required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements:
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  version: '0'
187
187
  segments:
188
188
  - 0
189
- hash: -4384553740171571441
189
+ hash: -3784856238616428420
190
190
  requirements: []
191
191
  rubyforge_project:
192
192
  rubygems_version: 1.8.23