breach-mitigation-rails 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,11 @@ require 'breach_mitigation/masking_secrets'
4
4
  module BreachMitigation
5
5
  class Railtie < Rails::Railtie
6
6
  initializer "breach-mitigation-rails.insert_middleware" do |app|
7
- app.config.middleware.insert_before 'Rack::ETag', "BreachMitigation::LengthHiding"
7
+ if Rails.version.include?("3.0.")
8
+ app.config.middleware.use "BreachMitigation::LengthHiding"
9
+ else
10
+ app.config.middleware.insert_before "Rack::ETag", "BreachMitigation::LengthHiding"
11
+ end
8
12
  end
9
13
  end
10
14
  end
@@ -1,3 +1,3 @@
1
1
  module BreachMitigation
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: breach-mitigation-rails
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Bradley Buda
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-07 00:00:00.000000000 Z
12
+ date: 2013-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  version_requirements: !ruby/object:Gem::Requirement