kenn-userify 0.1.1 → 0.1.2
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.
- data/Rakefile +1 -1
- data/lib/userify/user.rb +3 -3
- metadata +4 -4
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.
|
38
|
+
gem_spec.version = "0.1.2"
|
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
@@ -10,7 +10,7 @@ module Userify
|
|
10
10
|
model.send(:include, InstanceMethods)
|
11
11
|
|
12
12
|
model.class_eval do
|
13
|
-
attr_accessible :username, :email, :password
|
13
|
+
attr_accessible :username, :email, :password, :fullname
|
14
14
|
attr_accessor :password
|
15
15
|
|
16
16
|
before_validation :normalize_email
|
@@ -43,8 +43,8 @@ module Userify
|
|
43
43
|
token_expires_at and Time.now.utc < token_expires_at
|
44
44
|
end
|
45
45
|
|
46
|
-
def remember_me!
|
47
|
-
remember_me_until!
|
46
|
+
def remember_me!(duration=183)
|
47
|
+
remember_me_until! duration.days.from_now.utc
|
48
48
|
end
|
49
49
|
|
50
50
|
def forget_me!
|
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.
|
4
|
+
version: 0.1.2
|
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-
|
12
|
+
date: 2009-06-01 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -65,7 +65,7 @@ files:
|
|
65
65
|
- lib/userify/user.rb
|
66
66
|
- lib/userify.rb
|
67
67
|
- rails/init.rb
|
68
|
-
has_rdoc:
|
68
|
+
has_rdoc: false
|
69
69
|
homepage: http://github.com/kenn/userify
|
70
70
|
post_install_message:
|
71
71
|
rdoc_options: []
|
@@ -89,7 +89,7 @@ requirements: []
|
|
89
89
|
rubyforge_project:
|
90
90
|
rubygems_version: 1.2.0
|
91
91
|
signing_key:
|
92
|
-
specification_version:
|
92
|
+
specification_version: 2
|
93
93
|
summary: Super simple authentication system for Rails, using username, email and password.
|
94
94
|
test_files: []
|
95
95
|
|