butler_static 0.0.8.alpha.21 → 0.0.8.alpha.22
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/butler/railtie.rb +3 -2
- data/lib/butler/version.rb +1 -1
- metadata +2 -2
data/lib/butler/railtie.rb
CHANGED
@@ -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.
|
16
|
-
app.middleware.
|
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
|
data/lib/butler/version.rb
CHANGED
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.
|
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.
|
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
|