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: 74c1a7de9636f721f2e92b041b3ed08a937ad32a
4
- data.tar.gz: ae23af3cbc57389c803b998e632b0e58fc53d289
3
+ metadata.gz: 64e63c351315be8aaafb77eabd8fbb1a80ee871b
4
+ data.tar.gz: ab1b890da9969ad175eba5ee6ad1932488ee6033
5
5
  SHA512:
6
- metadata.gz: ee4194896a9732748dedbbebc9fab2d0b1a4a882c5e67c7f2994cb9408697096408edd6a59baa56712ea74791a4a58d0a0a92e95591f65b1341f87ecd3c8a582
7
- data.tar.gz: 2a9d8009430cb46d7597c406b71ca70d68f5a06ffbb207c1cac2870e3f1eb381205c21985c2268a52dd33574420b8cb217cf6a83cc201a924c21914184e42070
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 "active_support"
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
 
@@ -1,3 +1,3 @@
1
1
  module BreachMitigation
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.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: 2013-11-06 00:00:00.000000000 Z
11
+ date: 2014-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: active_support
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.3
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