kenn-userify 0.1.7 → 0.1.8

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.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/userify/user.rb +2 -2
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -35,7 +35,7 @@ task :default => ['test:all', 'test:features']
35
35
 
36
36
  gem_spec = Gem::Specification.new do |gem_spec|
37
37
  gem_spec.name = "userify"
38
- gem_spec.version = "0.1.7"
38
+ gem_spec.version = "0.1.8"
39
39
  gem_spec.summary = "Super simple authentication system for Rails, using username, email and password."
40
40
  gem_spec.email = "kenn.ejima <at> gmail.com"
41
41
  gem_spec.homepage = "http://github.com/kenn/userify"
data/lib/userify/user.rb CHANGED
@@ -23,7 +23,7 @@ module Userify
23
23
  validates_uniqueness_of :email, :case_sensitive => false
24
24
  validates_format_of :email, :with => /.+@.+\..+/
25
25
  validates_presence_of :password, :if => :password_required?
26
- validates_length_of :fullname, :maximum => columns_hash['fullname'].limit
26
+ validates_length_of :fullname, :maximum => columns_hash['fullname'].limit, :allow_nil => true
27
27
 
28
28
  before_save :initialize_salt, :encrypt_password, :initialize_token
29
29
  end
@@ -79,7 +79,7 @@ module Userify
79
79
  end
80
80
 
81
81
  def normalize_email
82
- self.email.downcase!
82
+ self.email.downcase! unless self.email.nil?
83
83
  return true
84
84
  end
85
85
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kenn-userify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenn Ejima
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-05 00:00:00 -07:00
12
+ date: 2009-06-07 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15