ssl_routes 0.1.2 → 0.1.3
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/lib/ssl_routes/rails3.rb +1 -1
- data/lib/ssl_routes/version.rb +1 -1
- metadata +9 -9
data/lib/ssl_routes/rails3.rb
CHANGED
@@ -39,7 +39,7 @@ module SslRoutes
|
|
39
39
|
|
40
40
|
def ensure_protocol
|
41
41
|
routes = Rails.application.routes
|
42
|
-
options = routes.recognize_path request.path, request.env
|
42
|
+
options = routes.recognize_path request.path, {:method => request.env['REQUEST_METHOD']}
|
43
43
|
current, target = determine_protocols(options)
|
44
44
|
if current != target && !request.xhr? && request.get?
|
45
45
|
flash.keep
|
data/lib/ssl_routes/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ssl_routes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Cedric Howe
|
@@ -15,10 +15,12 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-09-26 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
21
|
+
name: rails
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
22
24
|
none: false
|
23
25
|
requirements:
|
24
26
|
- - ">="
|
@@ -28,10 +30,8 @@ dependencies:
|
|
28
30
|
- 2
|
29
31
|
- 3
|
30
32
|
version: "2.3"
|
31
|
-
prerelease: false
|
32
33
|
type: :runtime
|
33
|
-
|
34
|
-
name: rails
|
34
|
+
version_requirements: *id001
|
35
35
|
description: Define your SSL settings in one place to enforce in your controller, generate URLs with the correct protocol, and protect yourself against session hijacking.
|
36
36
|
email: cedric@howe.net
|
37
37
|
executables: []
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
requirements: []
|
79
79
|
|
80
80
|
rubyforge_project: ssl_routes
|
81
|
-
rubygems_version: 1.
|
81
|
+
rubygems_version: 1.7.2
|
82
82
|
signing_key:
|
83
83
|
specification_version: 3
|
84
84
|
summary: Enforce SSL based on your Rails routes.
|