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 +4 -4
- data/README.md +3 -0
- data/lib/sinatra/asset_pipeline.rb +1 -1
- 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: 17c6e96536f34558e39a0ed2202439352ecd13185d73fdb0c9c7e1e7542d2810
|
4
|
+
data.tar.gz: 5034357370835a2594c76388c8d97e81e441c706b34eb95e546a6ebfe6f938d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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|
|
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.
|
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-
|
11
|
+
date: 2018-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|