font_assets 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/font_assets/railtie.rb +7 -1
- data/lib/font_assets/version.rb +1 -1
- metadata +2 -2
data/lib/font_assets/railtie.rb
CHANGED
@@ -8,7 +8,13 @@ module FontAssets
|
|
8
8
|
config.font_assets.origin ||= "*"
|
9
9
|
config.font_assets.options ||= { allow_ssl: true }
|
10
10
|
|
11
|
-
|
11
|
+
insert_target = if defined?(ActionDispatch::Static)
|
12
|
+
'ActionDispatch::Static'
|
13
|
+
else
|
14
|
+
'Rack::Lock'
|
15
|
+
end
|
16
|
+
|
17
|
+
app.middleware.insert_before insert_target, FontAssets::Middleware, config.font_assets.origin, config.font_assets.options
|
12
18
|
end
|
13
19
|
end
|
14
20
|
end
|
data/lib/font_assets/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: font_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|