jasny_bundle 1.3.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jasny_bundle/middleware.rb +1 -1
- data/lib/jasny_bundle/railtie.rb +3 -3
- data/lib/jasny_bundle/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1850688125a0bfcca16609d5f5ac712b3407710
|
4
|
+
data.tar.gz: a6b3baf9f1d2598ae726e029e905a61849c0718f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46fc9d45ca980e3180b97c6ef4abde1565f1ca95300d29f8c8df587614600d48efb4bbeb43d5d9629a7fcffa1223e43e772e19e03fa75a19afb13c3ceb5ad02f
|
7
|
+
data.tar.gz: 5356cb1d4192d1a8eca6c0d0af92174f57a0c329ca8282821865ea5b9abb93a879fbc279aa892b100bbc43c70e195006ad8668773c06f8ecec9a3071ea50956e
|
data/lib/jasny_bundle/railtie.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
require '
|
1
|
+
require 'jasny_bundle/middleware'
|
2
2
|
|
3
3
|
module FontAssets
|
4
4
|
class Railtie < Rails::Railtie
|
5
5
|
config.font_assets = ActiveSupport::OrderedOptions.new
|
6
6
|
|
7
|
-
initializer "
|
7
|
+
initializer "jasny_bundle.configure_rails_initialization" do |app|
|
8
8
|
config.font_assets.origin ||= "*"
|
9
9
|
config.font_assets.options ||= { allow_ssl: true }
|
10
10
|
|
@@ -14,7 +14,7 @@ module FontAssets
|
|
14
14
|
'Rack::Runtime'
|
15
15
|
end
|
16
16
|
|
17
|
-
app.middleware.insert_before insert_target,
|
17
|
+
app.middleware.insert_before insert_target, JasnyBundle::Middleware, config.font_assets.origin, config.font_assets.options
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
data/lib/jasny_bundle/version.rb
CHANGED