devise 1.1.6 → 1.1.7
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 +9 -3
- data/Gemfile.lock +1 -1
- data/README.rdoc +2 -2
- data/app/controllers/devise/registrations_controller.rb +1 -1
- data/lib/devise/failure_app.rb +9 -1
- data/lib/devise/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG.rdoc
CHANGED
@@ -1,8 +1,14 @@
|
|
1
|
+
== 1.1.7
|
2
|
+
|
3
|
+
* bugfix
|
4
|
+
* Fix a backward incompatible change with versions prior to Rails 3.0.4
|
5
|
+
|
1
6
|
== 1.1.6
|
2
7
|
|
3
|
-
*
|
4
|
-
*
|
5
|
-
*
|
8
|
+
* bugfix
|
9
|
+
* Use a more secure e-mail regexp
|
10
|
+
* Implement Rails 3.0.4 handle unverified request
|
11
|
+
* Use secure_compare to compare passwords
|
6
12
|
|
7
13
|
== 1.1.5
|
8
14
|
|
data/Gemfile.lock
CHANGED
data/README.rdoc
CHANGED
@@ -24,7 +24,7 @@ Right now it's composed of 11 modules:
|
|
24
24
|
|
25
25
|
Devise 1.1 supports Rails 3 and is NOT backward compatible. You can use the latest Rails 3 beta gem with Devise latest gem:
|
26
26
|
|
27
|
-
gem install devise --version=1.1.
|
27
|
+
gem install devise --version=1.1.7
|
28
28
|
|
29
29
|
If you want to use Rails master (from git repository) you need to use Devise from git repository and vice-versa.
|
30
30
|
|
@@ -42,7 +42,7 @@ Replace MODEL by the class name you want to add devise, like User, Admin, etc. T
|
|
42
42
|
|
43
43
|
If you want to use the Rails 2.3.x version, you should do:
|
44
44
|
|
45
|
-
gem install devise --version=1.0.
|
45
|
+
gem install devise --version=1.0.10
|
46
46
|
|
47
47
|
And please check the README at the v1.0 branch since this one is based on Rails 3:
|
48
48
|
|
data/lib/devise/failure_app.rb
CHANGED
@@ -104,8 +104,16 @@ module Devise
|
|
104
104
|
session[:"#{scope}_return_to"] = attempted_path if request.get? && !http_auth?
|
105
105
|
end
|
106
106
|
|
107
|
+
MIME_REFERENCES = Mime::HTML.respond_to?(:ref)
|
108
|
+
|
107
109
|
def request_format
|
108
|
-
@request_format ||= request.format.respond_to?(:ref)
|
110
|
+
@request_format ||= if request.format.respond_to?(:ref)
|
111
|
+
request.format.ref
|
112
|
+
elsif MIME_REFERENCES
|
113
|
+
request.format
|
114
|
+
else # Rails < 3.0.4
|
115
|
+
request.format.to_sym
|
116
|
+
end
|
109
117
|
end
|
110
118
|
end
|
111
119
|
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: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 7
|
10
|
+
version: 1.1.7
|
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-02-
|
19
|
+
date: 2011-02-16 00:00:00 +01:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|