Skip to content

Commit

Permalink
Release v2.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
binarylogic committed May 13, 2009
1 parent a9c60c4 commit dd8e0e6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 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.
Expand Down
2 changes: 1 addition & 1 deletion lib/authlogic/regex.rb
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lib/authlogic/version.rb
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test/acts_as_authentic_test/login_test.rb
Expand Up @@ -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

Expand Down

0 comments on commit dd8e0e6

Please sign in to comment.