rack-ssl-enforcer 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ module Rack
16
16
  @options[:redirect_to] ||= Rack::Request.new(env).url
17
17
  @options[:redirect_to].gsub!(/^#{scheme == "https" ? 'http' : 'https'}:/, "#{scheme}:")
18
18
  @options[:message] ||= "You are being redirected to #{@options[:redirect_to]}."
19
- [301, { 'Location' => @options[:redirect_to] }, @options[:message]]
19
+ [301, { 'Location' => @options[:redirect_to] }, [@options[:message]].flatten]
20
20
  else
21
21
  @app.call(env)
22
22
  end
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class SslEnforcer
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-ssl-enforcer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tobias Matthies
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-31 00:00:00 +02:00
18
+ date: 2010-09-01 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,14 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 15424063
29
+ hash: 23
30
30
  segments:
31
31
  - 1
32
32
  - 0
33
33
  - 0
34
- - rc
35
- - 5
36
- version: 1.0.0.rc.5
34
+ version: 1.0.0
37
35
  type: :development
38
36
  version_requirements: *id001
39
37
  - !ruby/object:Gem::Dependency
@@ -52,6 +50,22 @@ dependencies:
52
50
  version: 2.11.3
53
51
  type: :development
54
52
  version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ name: rack
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ hash: 31
62
+ segments:
63
+ - 1
64
+ - 2
65
+ - 0
66
+ version: 1.2.0
67
+ type: :development
68
+ version_requirements: *id003
55
69
  description: Rack::SslEnforcer is a simple Rack middleware to enforce ssl connections
56
70
  email:
57
71
  - tm@mit2m.de