breach-mitigation-rails 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64e63c351315be8aaafb77eabd8fbb1a80ee871b
|
4
|
+
data.tar.gz: ab1b890da9969ad175eba5ee6ad1932488ee6033
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0ec64dc560ef8cc8809e31d6a0b046ab4ea7ce657f481284a9f9b89b7a4904b4f44b7eb6dbd3156cde22ec33aed7fdd11bd5e9659ad50c747c1217b8b2d5fd1
|
7
|
+
data.tar.gz: 3ce2a737b1e80ecb4ef833c1b765192ffa037082282821881ecfcc19c86a4d62efd93857ce95d9526837d617628b3580bb45e5744abc54b8338f2734b28f75cc
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "
|
21
|
+
spec.add_dependency "activesupport"
|
22
22
|
spec.add_dependency "rack"
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.3"
|
24
24
|
spec.add_development_dependency "rspec"
|
@@ -10,7 +10,7 @@ module BreachMitigation
|
|
10
10
|
status, headers, body = @app.call(env)
|
11
11
|
|
12
12
|
# Only pad HTML documents
|
13
|
-
if headers['Content-Type'] =~ /text\/html/
|
13
|
+
if headers['Content-Type'] =~ /text\/html/ && env['rack.url_scheme'] == 'https'
|
14
14
|
# Copy the existing response to a new object
|
15
15
|
response = Rack::Response.new(body, status, headers)
|
16
16
|
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breach-mitigation-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bradley Buda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - '>='
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
124
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.0.
|
125
|
+
rubygems_version: 2.0.14
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: Uses length-hiding and CSRF token masking to make it more difficult for an
|