From dd8e0e6e88330d811bec9db6772058e83879a35b Mon Sep 17 00:00:00 2001 From: binarylogic Date: Wed, 13 May 2009 00:45:59 -0400 Subject: [PATCH] Release v2.0.12 --- CHANGELOG.rdoc | 2 +- lib/authlogic/regex.rb | 2 +- lib/authlogic/version.rb | 2 +- test/acts_as_authentic_test/login_test.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc index ab37f6ba..e6161bba 100644 --- a/CHANGELOG.rdoc +++ b/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. diff --git a/lib/authlogic/regex.rb b/lib/authlogic/regex.rb index 629dfdca..b709d78f 100644 --- a/lib/authlogic/regex.rb +++ b/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 \ No newline at end of file diff --git a/lib/authlogic/version.rb b/lib/authlogic/version.rb index 0cf11575..338c0ab2 100644 --- a/lib/authlogic/version.rb +++ b/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) diff --git a/test/acts_as_authentic_test/login_test.rb b/test/acts_as_authentic_test/login_test.rb index 332ed53e..301a8eaa 100644 --- a/test/acts_as_authentic_test/login_test.rb +++ b/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