authlogic-oid 1.0.0 → 1.0.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/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,7 @@
1
- == 1.0.0
1
+ == 1.0.1 released 2009-3-30
2
+
3
+ * Change password validation option when included, and prepend the OpenID module.
4
+
5
+ == 1.0.0 released 2009-3-30
2
6
 
3
7
  * Initial release
data/README.rdoc CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Authlogic OpenID is an extension of the Authlogic library to add OpenID support. Authlogic v2.0 introduced an enhanced API that makes "plugging in" alternate authentication methods as easy as installing a gem.
4
4
 
5
+ == Helpful links
6
+
7
+ * <b>Documentation:</b> http://authlogic.rubyforge.org
8
+ * <b>Authlogic:</b> http://github.com/binarylogic/authlogic
9
+
5
10
  == Install and use
6
11
 
7
12
  === 1. Make some simple changes to your database:
data/Rakefile CHANGED
@@ -15,6 +15,7 @@ Hoe.new("Authlogic OpenID", AuthlogicOpenid::Version::STRING) do |p|
15
15
  p.history_file = "CHANGELOG.rdoc"
16
16
  p.readme_file = "README.rdoc"
17
17
  p.extra_rdoc_files = ["CHANGELOG.rdoc", "README.rdoc"]
18
+ p.remote_rdoc_dir = ''
18
19
  p.test_globs = ["test/*/test_*.rb", "test/*_test.rb", "test/*/*_test.rb"]
19
20
  p.extra_deps = %w(authlogic)
20
21
  end
@@ -2,5 +2,7 @@ require "authlogic_openid/version"
2
2
  require "authlogic_openid/acts_as_authentic"
3
3
  require "authlogic_openid/session"
4
4
 
5
- ActiveRecord::Base.send(:include, AuthlogicOpenid::ActsAsAuthentic)
6
- Authlogic::Session::Base.send(:include, AuthlogicOpenid::Session)
5
+ config.to_prepare do
6
+ ActiveRecord::Base.send(:include, AuthlogicOpenid::ActsAsAuthentic)
7
+ Authlogic::Session::Base.send(:include, AuthlogicOpenid::Session)
8
+ end
@@ -8,10 +8,7 @@ module AuthlogicOpenid
8
8
  # OpenID is being used.
9
9
  def self.included(klass)
10
10
  klass.class_eval do
11
- add_acts_as_authentic_module(Methods)
12
- validates_length_of_password_field_options validates_length_of_password_field_options.merge(:if => :validate_password_with_openid?)
13
- validates_confirmation_of_password_field_options validates_confirmation_of_password_field_options.merge(:if => :validate_password_with_openid?)
14
- validates_length_of_password_confirmation_field_options validates_length_of_password_confirmation_field_options.merge(:if => :validate_password_with_openid?)
11
+ add_acts_as_authentic_module(Methods, :prepend)
15
12
  end
16
13
  end
17
14
 
@@ -21,6 +18,9 @@ module AuthlogicOpenid
21
18
  klass.class_eval do
22
19
  validates_uniqueness_of :openid_identifier, :scope => validations_scope, :if => :using_openid?
23
20
  validate :validate_openid
21
+ validates_length_of_password_field_options validates_length_of_password_field_options.merge(:if => :validate_password_with_openid?)
22
+ validates_confirmation_of_password_field_options validates_confirmation_of_password_field_options.merge(:if => :validate_password_with_openid?)
23
+ validates_length_of_password_confirmation_field_options validates_length_of_password_confirmation_field_options.merge(:if => :validate_password_with_openid?)
24
24
  end
25
25
  end
26
26
 
@@ -41,7 +41,7 @@ module AuthlogicOpenid
41
41
 
42
42
  MAJOR = 1
43
43
  MINOR = 0
44
- TINY = 0
44
+ TINY = 1
45
45
 
46
46
  # The current version as a Version instance
47
47
  CURRENT = new(MAJOR, MINOR, TINY)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authlogic-oid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Johnson of Binary Logic
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-29 00:00:00 -04:00
12
+ date: 2009-03-30 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency