devise 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of devise might be problematic. Click here for more details.
- data/CHANGELOG.rdoc +5 -0
- data/Gemfile.lock +1 -1
- data/lib/devise/rails.rb +8 -6
- data/lib/devise/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG.rdoc
CHANGED
data/Gemfile.lock
CHANGED
data/lib/devise/rails.rb
CHANGED
@@ -42,16 +42,18 @@ module Devise
|
|
42
42
|
when :bcrypt
|
43
43
|
puts "[DEVISE] From version 1.2, there is no need to set your encryptor to bcrypt " \
|
44
44
|
"since encryptors are only enabled if you include :encryptable in your models. " \
|
45
|
-
"
|
46
|
-
"
|
47
|
-
"
|
45
|
+
"To update your app, please:\n\n" \
|
46
|
+
"1) Remove config.encryptor from your initializer;\n" \
|
47
|
+
"2) Add t.encryptable to your old migrations;\n" \
|
48
|
+
"3) [Optional] Remove password_salt in a new recent migration. Bcrypt does not require it anymore.\n"
|
48
49
|
when nil
|
49
50
|
# Nothing to say
|
50
51
|
else
|
51
52
|
puts "[DEVISE] You are using #{Devise.encryptor} as encryptor. From version 1.2, " \
|
52
|
-
"you need to explicitly add
|
53
|
-
"
|
54
|
-
"
|
53
|
+
"you need to explicitly add encryptable as dependency. To update your app, please:\n\n" \
|
54
|
+
"1) Remove config.encryptor from your initializer;\n" \
|
55
|
+
"2) Add t.encryptable to your old migrations;\n" \
|
56
|
+
"3) Add `devise :encryptable, :encryptor => :#{Devise.encryptor}` to your models.\n"
|
55
57
|
end
|
56
58
|
end
|
57
59
|
end
|
data/lib/devise/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 1
|
10
|
+
version: 1.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Jos\xC3\xA9 Valim"
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-03-
|
19
|
+
date: 2011-03-28 00:00:00 +02:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|