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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8940b084da32484db38b94dee13ccaf39091f07ec2cdd7178b50139054478fd3
4
- data.tar.gz: 73323e81756b6d29e89388f9a5d2b0f3618d29df29a9199e733886dd5c796b60
3
+ metadata.gz: 651b4d002a8ad1cc9eef1146d1254c6b7300336b20bc913fa14088abcf21734d
4
+ data.tar.gz: f8c09d24b97f0a4e0c11fd8c634e27f05e6d19aa2c269185672a90568b4ff2cc
5
5
  SHA512:
6
- metadata.gz: d2b4d32d885d3f618399601ac2a41f6a6773459ae21e2591ff9b7900fb88f63229a400c829e4d75d9a5a24db85a5e8836df65d6830f42bbfd54273abb90676da
7
- data.tar.gz: bc13a552c3928a04a1deb6bf858893c7e4b99fe2eb7ea90849f5354e9c4d4407faf7f54316d8d2b501a0e221479f6d577365ab790d9fc0242d29aaa7bfc0e05e
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 :staging, :production do
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 :staging, :production do
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
 
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module AssetPipeline
3
- VERSION = '2.0.1'
3
+ VERSION = '2.1.0'
4
4
  end
5
5
  end
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.1
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-05-21 00:00:00.000000000 Z
11
+ date: 2018-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake