panmind-sslhelper 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/panmind/ssl_helper.rb +4 -4
  2. metadata +3 -3
@@ -1,6 +1,6 @@
1
1
  module Panmind
2
2
  module SSLHelper
3
- Version = '0.8.1'
3
+ Version = '0.8.2'
4
4
 
5
5
  WITH_SSL = {:protocol => 'https'}
6
6
  WITHOUT_SSL = {:protocol => 'http' }
@@ -103,7 +103,7 @@ module Panmind
103
103
  @ssl_helpers.freeze
104
104
  end
105
105
 
106
- end # REST
106
+ end # Routing
107
107
 
108
108
  module Filters
109
109
  def self.included(base)
@@ -135,11 +135,11 @@ module Panmind
135
135
 
136
136
  protected
137
137
  def ssl_required
138
- redirect_to WITH_SSL.dup unless request.ssl?
138
+ redirect_to params.merge(WITH_SSL) unless request.ssl?
139
139
  end
140
140
 
141
141
  def ssl_refused
142
- redirect_to WITHOUT_SSL.dup if request.ssl?
142
+ redirect_to params.merge(WITHOUT_SSL) if request.ssl?
143
143
  end
144
144
  end # Filters
145
145
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 8
8
- - 1
9
- version: 0.8.1
8
+ - 2
9
+ version: 0.8.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Marcello Barnaba
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-08-03 00:00:00 +02:00
17
+ date: 2010-08-14 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency