nobrainer-devise 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +1 -1
- data/lib/generators/nobrainer/devise_generator.rb +17 -17
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjQwODRmNTkyOTE3MzYxYTc3MDc5ZDgzMzhlMmY0ZDRkNzkzMmNhNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2RkYTY0YzQ1MWFiMWQ1ZTFjZTAyMmRlNzZmODdjODMxZGM5NWY3YQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjIzZWU5YzgzMDk0M2RhMDAwZmM1ODNjOTMzNjdmZjMxYzc2YzY5NzcwZTNk
|
10
|
+
NzIzZWVlNTQ5ZTQ5MDRmYTczMTgxMzRiODdhNzJiYjYxMmUwMTllYWUxZjhh
|
11
|
+
YmE5MDQ2ZWY2NmU5ZDQ4ODQ1Njk0M2Y4ODcyMzE0OTM1NTdiZjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTQ5NmYyYjk4MDRkNTExZDk2MDQ3NGJiZTVjNmUzZTg3OGU2ZTk3NmUxZDgw
|
14
|
+
MjZmZTBkMWQ4NDRkNTI0MGNiNDUyZjFmNThhNjg2MGVhMmJlY2ExMTVmYTUw
|
15
|
+
N2ZhMTlhYTA3Yzk3NmJhZTdjM2ZjNTMzN2ViZjA4MjQ2OGViYzQ=
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ gem 'nobrainer-devise'
|
|
16
16
|
|
17
17
|
Use devise as usual.
|
18
18
|
|
19
|
-
If
|
19
|
+
If devise does not work, make sure that your `config/initializers/devise.rb` file
|
20
20
|
contains `require 'devise/orm/nobrainer'`.
|
21
21
|
|
22
22
|
License
|
@@ -25,33 +25,33 @@ module NoBrainer
|
|
25
25
|
def migration_data
|
26
26
|
<<RUBY
|
27
27
|
## Database authenticatable
|
28
|
-
field :email, :default => ""
|
29
|
-
field :encrypted_password, :default => ""
|
28
|
+
field :email, :type => String, :default => ""
|
29
|
+
field :encrypted_password, :type => String, :default => ""
|
30
30
|
|
31
31
|
## Recoverable
|
32
|
-
field :reset_password_token
|
33
|
-
field :reset_password_sent_at
|
32
|
+
field :reset_password_token, :type => String
|
33
|
+
field :reset_password_sent_at, :type => Time
|
34
34
|
|
35
35
|
## Rememberable
|
36
|
-
field :remember_created_at
|
36
|
+
field :remember_created_at, :type => Time
|
37
37
|
|
38
38
|
## Trackable
|
39
|
-
field :sign_in_count, :default => 0
|
40
|
-
field :current_sign_in_at
|
41
|
-
field :last_sign_in_at
|
42
|
-
field :current_sign_in_ip
|
43
|
-
field :last_sign_in_ip
|
39
|
+
field :sign_in_count, :type => Integer, :default => 0
|
40
|
+
field :current_sign_in_at, :type => Time
|
41
|
+
field :last_sign_in_at, :type => Time
|
42
|
+
field :current_sign_in_ip, :type => String
|
43
|
+
field :last_sign_in_ip, :type => String
|
44
44
|
|
45
45
|
## Confirmable
|
46
|
-
# field :confirmation_token
|
47
|
-
# field :confirmed_at
|
48
|
-
# field :confirmation_sent_at
|
49
|
-
# field :unconfirmed_email # Only if using reconfirmable
|
46
|
+
# field :confirmation_token, :type => String
|
47
|
+
# field :confirmed_at, :type => Time
|
48
|
+
# field :confirmation_sent_at, :type => Time
|
49
|
+
# field :unconfirmed_email, :type => String # Only if using reconfirmable
|
50
50
|
|
51
51
|
## Lockable
|
52
|
-
# field :failed_attempts, :default => 0 # Only if lock strategy is :failed_attempts
|
53
|
-
# field :unlock_token,
|
54
|
-
# field :locked_at
|
52
|
+
# field :failed_attempts, :type => Integer, :default => 0 # Only if lock strategy is :failed_attempts
|
53
|
+
# field :unlock_token, :type => String # Only if unlock strategy is :email or :both
|
54
|
+
# field :locked_at, :type => Time
|
55
55
|
RUBY
|
56
56
|
end
|
57
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nobrainer-devise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Viennot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
type: :runtime
|
@@ -32,12 +32,12 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - ! '>='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.10.0
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ! '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.10.0
|
41
41
|
description: NoBrainer adapter for Devise
|
42
42
|
email:
|
43
43
|
- nicolas@viennot.biz
|