sinatra-asset-pipeline 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sinatra/asset_pipeline.rb +3 -2
- data/lib/sinatra/asset_pipeline/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 651b4d002a8ad1cc9eef1146d1254c6b7300336b20bc913fa14088abcf21734d
|
4
|
+
data.tar.gz: f8c09d24b97f0a4e0c11fd8c634e27f05e6d19aa2c269185672a90568b4ff2cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d834ce8cefaf06d5afef0a21be4fd591cada4208be92f1c3685d488dc28262489a5b3b4b705d61610c64809219e8c6597e0a2708e5df4a52782f95570b70910f
|
7
|
+
data.tar.gz: 14094cddca87b2f6ef499667d6a179af6fd4568992e8737396d38e6a65fe83cebc7540fad11d7611cf0c00837ca2d6911870925c056a4258e8733e275b956991
|
@@ -15,6 +15,7 @@ module Sinatra
|
|
15
15
|
app.set_default :assets_prefix, '/assets'
|
16
16
|
app.set_default :assets_digest, true
|
17
17
|
app.set_default :assets_debug, false
|
18
|
+
app.set_default :precompiled_environments, %i(staging production)
|
18
19
|
|
19
20
|
app.set :static, :true
|
20
21
|
app.set :static_cache_control, [:public, :max_age => 60 * 60 * 24 * 365]
|
@@ -32,14 +33,14 @@ module Sinatra
|
|
32
33
|
end
|
33
34
|
end
|
34
35
|
|
35
|
-
app.configure
|
36
|
+
app.configure(*app.precompiled_environments) do
|
36
37
|
::Sprockets::Helpers.configure do |config|
|
37
38
|
config.manifest = ::Sprockets::Manifest.new(app.sprockets, app.assets_public_path)
|
38
39
|
config.prefix = app.assets_prefix unless app.assets_prefix.nil?
|
39
40
|
end
|
40
41
|
end
|
41
42
|
|
42
|
-
app.configure
|
43
|
+
app.configure(*app.precompiled_environments) do
|
43
44
|
app.sprockets.css_compressor = app.assets_css_compressor unless app.assets_css_compressor.nil?
|
44
45
|
app.sprockets.js_compressor = app.assets_js_compressor unless app.assets_js_compressor.nil?
|
45
46
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-asset-pipeline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joakim Ekberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|