diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc index dfcf89a4..a2aa1b5e 100644 --- a/CHANGELOG.rdoc +++ b/CHANGELOG.rdoc @@ -1,3 +1,9 @@ +== 0.9.1 + +* bug fix + * Allow bigger salt size (by github.com/jgeiger) + * Fix relative url root + == 0.9.0 * deprecation diff --git a/lib/devise/mapping.rb b/lib/devise/mapping.rb index 5fa9913e..fe868411 100644 --- a/lib/devise/mapping.rb +++ b/lib/devise/mapping.rb @@ -92,15 +92,12 @@ module Devise self.path_prefix.count("/") end - # Returns the raw path using the current relative_url_root, path_prefix and as. + # Returns the raw path using path_prefix and as. def raw_path path_prefix + as.to_s end - # Returns the parsed path. If you need meta information in your path_prefix, - # you should overwrite this method to use it. The only information supported - # by default is I18n.locale. - # + # Returns the parsed path taking into account the relative url root and raw path. def parsed_path returning (ActionController::Base.relative_url_root.to_s + raw_path) do |path| self.class.default_url_options.each do |key, value| @@ -109,7 +106,6 @@ module Devise end end - # Create magic predicates for verifying what module is activated by this map. # Example: # diff --git a/lib/devise/schema.rb b/lib/devise/schema.rb index 3ce2b89f..6080e006 100644 --- a/lib/devise/schema.rb +++ b/lib/devise/schema.rb @@ -12,9 +12,9 @@ module Devise null = options[:null] || false encryptor = options[:encryptor] || (respond_to?(:encryptor) ? self.encryptor : :sha1) - apply_schema :email, String, :null => null, :limit => 100 + apply_schema :email, String, :null => null apply_schema :encrypted_password, String, :null => null, :limit => Devise::ENCRYPTORS_LENGTH[encryptor] - apply_schema :password_salt, String, :null => null, :limit => 30 + apply_schema :password_salt, String, :null => null end # Creates confirmation_token, confirmed_at and confirmation_sent_at. diff --git a/lib/devise/version.rb b/lib/devise/version.rb index 7c26b76a..799822a1 100644 --- a/lib/devise/version.rb +++ b/lib/devise/version.rb @@ -1,3 +1,3 @@ module Devise - VERSION = "0.9.0".freeze + VERSION = "0.9.1".freeze end