Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Release v2.0.12

  • Loading branch information...
commit dd8e0e6e88330d811bec9db6772058e83879a35b 1 parent a9c60c4
@binarylogic binarylogic authored
View
2  CHANGELOG.rdoc
@@ -1,4 +1,4 @@
-== 2.0.12
+== 2.0.12 release 2009-5-13
* Added the ability to add a last_request_update_allowed? method in your controller to pragmatically tell Authlogic when and when not to update the last_request_at field in your database. This only takes effect if the method if present.
* Extracted Authlogic's regular expressions into it's own module to allow easy use of them outside of Authlogic. See Authlogic::Regex for more info.
View
2  lib/authlogic/regex.rb
@@ -19,7 +19,7 @@ def self.email
# A simple regular expression that only allows for letters, numbers, spaces, and .-_@. Just a standard login / username
# regular expression.
def self.login
- /\A\w[\w\.+-_@ ]+\z/
+ /\A\w[\w\.+\-_@ ]+\z/
end
end
end
View
2  lib/authlogic/version.rb
@@ -41,7 +41,7 @@ def to_a
MAJOR = 2
MINOR = 0
- TINY = 11
+ TINY = 12
# The current version as a Version instance
CURRENT = new(MAJOR, MINOR, TINY)
View
2  test/acts_as_authentic_test/login_test.rb
@@ -33,7 +33,7 @@ def test_validates_length_of_login_field_options_config
end
def test_validates_format_of_login_field_options_config
- default = {:with => /\A\w[\w\.+-_@ ]+\z/, :message => I18n.t('error_messages.login_invalid', :default => "should use only letters, numbers, spaces, and .-_@ please.")}
+ default = {:with => /\A\w[\w\.+\-_@ ]+\z/, :message => I18n.t('error_messages.login_invalid', :default => "should use only letters, numbers, spaces, and .-_@ please.")}
assert_equal default, User.validates_format_of_login_field_options
assert_equal default, Employee.validates_format_of_login_field_options
Please sign in to comment.
Something went wrong with that request. Please try again.