oauth-plugin 0.3.13 → 0.3.14

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/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 10/08/2009
2
+ 0.3.14
3
+ - Fixed the class generation when you have a custom token defined. [Brian Morearty]
1
4
  10/05/2009
2
5
  0.3.13
3
6
  - Got rid of yahoo token. To support it correctly requires way too much work. Let them suffer the consequences of their decissions.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.13
1
+ 0.3.14
@@ -10,8 +10,13 @@ if defined? ConsumerToken && defined? OAUTH_CREDENTIALS
10
10
  if File.exists?(File.join(File.dirname(__FILE__), "services","#{key.to_s}_token.rb"))
11
11
  require File.join(File.dirname(__FILE__), "services","#{key.to_s}_token")
12
12
  else
13
- super_class = value[:super_class]||"ConsumerToken"
14
- eval "class #{class_name} < #{super_class} ;end"
13
+ begin
14
+ # Let Rails auto-load from the models folder
15
+ eval class_name
16
+ rescue NameError
17
+ super_class = value[:super_class]||"ConsumerToken"
18
+ eval "class #{class_name} < #{super_class} ;end"
19
+ end
15
20
  end
16
21
  end
17
22
  end
data/oauth-plugin.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{oauth-plugin}
8
- s.version = "0.3.13"
8
+ s.version = "0.3.14"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Pelle Braendgaard"]
12
- s.date = %q{2009-10-05}
12
+ s.date = %q{2009-10-08}
13
13
  s.description = %q{Rails plugin for implementing an OAuth Provider or Consumer}
14
14
  s.email = %q{oauth-ruby@googlegroups.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oauth-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.13
4
+ version: 0.3.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pelle Braendgaard
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-05 00:00:00 -04:00
12
+ date: 2009-10-08 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency