rack-ssl 1.3.4 → 1.4.1

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -0
  3. data/lib/rack/ssl.rb +1 -2
  4. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39ffec4cba9fa627c631f6918127cdffa0465347
4
- data.tar.gz: 24d2eef19474804739a8de8c83a52e88261a4ab4
3
+ metadata.gz: aa61f71b6c14a4e23c45b7e8010cda8fc7707b87
4
+ data.tar.gz: 1c951c415524973dce7728fdc624134462138b31
5
5
  SHA512:
6
- metadata.gz: 3f64885c726eb1b0fd929e23a7cb7532a0c4745daaffa567d2c6a344aec75e43e9bb22cf608a3597c4d090196179827dc61acd1fc33b189261db430fe4314736
7
- data.tar.gz: 98c4f268463a1732ee25f0e4f638750333395d9e82b1587d843f49a3b29c4e750a13b8dfd38f00ce4b7f3d511d0898443f9f46c1130a3a9a1f2f6f7b357d26de
6
+ metadata.gz: 0a3c6192b67eeb7d6a3ff1c09f1d37369b8160b3acdcadf50ac04827d188731c4371598e9ecb7e7d45647684a4ed89836377821a002bd3c089d5b49afc360670
7
+ data.tar.gz: 1c21cbee87a2faf372ead0a249be3b26d188600920f9001e61a3aa00e18942cfd6ebbb440be9e03d33b21f0594f0005ae0bbafc40d8c3b781fb86048e5d2b617
data/README.md CHANGED
@@ -7,7 +7,15 @@ Force SSL/TLS in your app.
7
7
  2. Set `Strict-Transport-Security` header
8
8
  3. Flag all cookies as "secure"
9
9
 
10
+
11
+ Installation
12
+ ------------
13
+
14
+ gem install rack-ssl
15
+
16
+
10
17
  Usage
11
18
  -----
12
19
 
20
+ require 'rack/ssl'
13
21
  use Rack::SSL
data/lib/rack/ssl.rb CHANGED
@@ -52,8 +52,7 @@ module Rack
52
52
  location = "https://#{host}#{req.fullpath}"
53
53
 
54
54
  status = %w[GET HEAD].include?(req.request_method) ? 301 : 307
55
- headers = hsts_headers.merge('Content-Type' => 'text/html',
56
- 'Location' => location)
55
+ headers = { 'Content-Type' => 'text/html', 'Location' => location }
57
56
 
58
57
  [status, headers, []]
59
58
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-ssl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Peek
@@ -35,7 +35,8 @@ files:
35
35
  - LICENSE
36
36
  - README.md
37
37
  homepage: https://github.com/josh/rack-ssl
38
- licenses: []
38
+ licenses:
39
+ - MIT
39
40
  metadata: {}
40
41
  post_install_message:
41
42
  rdoc_options: []