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.
@@ -8,7 +8,13 @@ module FontAssets
8
8
  config.font_assets.origin ||= "*"
9
9
  config.font_assets.options ||= { allow_ssl: true }
10
10
 
11
- app.middleware.insert_before 'Rack::Lock', FontAssets::Middleware, config.font_assets.origin, config.font_assets.options
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
@@ -1,3 +1,3 @@
1
1
  module FontAssets
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
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.6
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-02-06 00:00:00.000000000 Z
12
+ date: 2013-05-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack