sinatra-asset-pipeline 2.1.0 → 2.2.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: 651b4d002a8ad1cc9eef1146d1254c6b7300336b20bc913fa14088abcf21734d
4
- data.tar.gz: f8c09d24b97f0a4e0c11fd8c634e27f05e6d19aa2c269185672a90568b4ff2cc
3
+ metadata.gz: 17c6e96536f34558e39a0ed2202439352ecd13185d73fdb0c9c7e1e7542d2810
4
+ data.tar.gz: 5034357370835a2594c76388c8d97e81e441c706b34eb95e546a6ebfe6f938d1
5
5
  SHA512:
6
- metadata.gz: d834ce8cefaf06d5afef0a21be4fd591cada4208be92f1c3685d488dc28262489a5b3b4b705d61610c64809219e8c6597e0a2708e5df4a52782f95570b70910f
7
- data.tar.gz: 14094cddca87b2f6ef499667d6a179af6fd4568992e8737396d38e6a65fe83cebc7540fad11d7611cf0c00837ca2d6911870925c056a4258e8733e275b956991
6
+ metadata.gz: fb1967107bd15fe8cecdaca0ce25276ba15acc0b6afd9a0a8000c6f9148ebf8b00441e6ac6ff762ebd717ba2e43a59d610d584f51658d64ccf83e3fe41136298
7
+ data.tar.gz: a0ef54f0ef8033b3be22cef8ba2e13d800e848fe7d090fbdc622d147617d1aeb228750627a3891eb2d8cd656b491a1fcae0b6b9508d918799c99245244b9c068
data/README.md CHANGED
@@ -91,6 +91,9 @@ class App < Sinatra::Base
91
91
 
92
92
  # Register the AssetPipeline extension, make sure this goes after all customization
93
93
  register Sinatra::AssetPipeline
94
+
95
+ # If you need more environments
96
+ set :precompiled_environments, %i(staging uat production)
94
97
 
95
98
  get '/' do
96
99
  'hi'
@@ -22,7 +22,7 @@ module Sinatra
22
22
 
23
23
  app.configure do
24
24
  app.assets_paths.each do |path|
25
- app.sprockets.append_path File.join(app.root, path)
25
+ app.sprockets.append_path(Pathname.new(path).absolute? ? path : File.join(app.root, path))
26
26
  end
27
27
 
28
28
  ::Sprockets::Helpers.configure do |config|
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module AssetPipeline
3
- VERSION = '2.1.0'
3
+ VERSION = '2.2.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.1.0
4
+ version: 2.2.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-06-02 00:00:00.000000000 Z
11
+ date: 2018-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake