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.

@@ -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
- * Use a more secure e-mail regexp
4
- * Implement Rails 3.0.4 handle unverified request
5
- * Use secure_compare to compare passwords
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
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- devise (1.1.5)
4
+ devise (1.1.6)
5
5
  bcrypt-ruby (~> 2.1.2)
6
6
  warden (~> 1.0.2)
7
7
 
@@ -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.3
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.8
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
 
@@ -9,7 +9,7 @@ class Devise::RegistrationsController < ApplicationController
9
9
  render_with_scope :new
10
10
  end
11
11
 
12
- # POST /resource/sign_up
12
+ # POST /resource
13
13
  def create
14
14
  build_resource
15
15
 
@@ -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) ? request.format.ref : request.format
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
@@ -1,3 +1,3 @@
1
1
  module Devise
2
- VERSION = "1.1.6".freeze
2
+ VERSION = "1.1.7".freeze
3
3
  end
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: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 6
10
- version: 1.1.6
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-15 00:00:00 +01:00
19
+ date: 2011-02-16 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency