sha_header 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ require 'sha_header/railtie' if defined?(::Rails::Railtie)
2
+
1
3
  module SHAHeader
2
4
  autoload 'Middleware', 'sha_header/middleware'
3
5
  end
@@ -3,8 +3,8 @@ require 'rails'
3
3
 
4
4
  module SHAHeader
5
5
  class Railtie < Rails::Railtie
6
- initializer "sha_header.configure_rails_initialization" do |app|
7
- app.middleware.use SHAHeader::Middleware
6
+ initializer "sha_header.use_rack_middleware" do |app|
7
+ app.middleware.use "SHAHeader::Middleware"
8
8
  end
9
9
  end
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module SHAHeader
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sha_header
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nathaniel Bibler