butler_static 0.0.8.alpha.21 → 0.0.8.alpha.22

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.
@@ -12,8 +12,8 @@ module Butler
12
12
  # header_rules = Rails.application.config.assets.header_rules || {}
13
13
  # options = { header_rules: header_rules }
14
14
 
15
- initializer "butler.configure_rails_initialization" do |app|
16
- app.middleware.swap 'ActionDispatch::Static', 'Butler::Static'
15
+ initializer "butler.add_middleware" do |app|
16
+ app.middleware.use Static
17
17
  # if use_butler
18
18
  # if defined? ActionDispatch::Static
19
19
  # if defined? Rack::Cache # will not work
@@ -27,5 +27,6 @@ module Butler
27
27
  # end
28
28
  # end
29
29
  end
30
+
30
31
  end
31
32
  end
@@ -1,3 +1,3 @@
1
1
  module Butler
2
- VERSION = "0.0.8.alpha.21"
2
+ VERSION = "0.0.8.alpha.22"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: butler_static
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8.alpha.21
4
+ version: 0.0.8.alpha.22
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -168,7 +168,7 @@ rubyforge_project:
168
168
  rubygems_version: 1.8.23
169
169
  signing_key:
170
170
  specification_version: 3
171
- summary: butler_static-0.0.8.alpha.21
171
+ summary: butler_static-0.0.8.alpha.22
172
172
  test_files:
173
173
  - spec/butler/asset_spec.rb
174
174
  - spec/butler/files/index.html