sinatra-asset-pipeline 1.0.0 → 1.0.1
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 +5 -5
- data/lib/sinatra/asset_pipeline/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a03ebd8f237d8964ff8fba7c5f4fc502f7dc04bc
|
4
|
+
data.tar.gz: ed812b7f82ea5dc596c997df6d82a963217a65bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df0c69f99fb86bf0927f1bdd3328e039c3eec4a09e9eb7bd233dbfedf10ae9b7ba4958c3cdb531ecfc8d998aa28984518818e4486e9b6097f7b4e87e36b891f6
|
7
|
+
data.tar.gz: 7d7428000910adc2c98fa3d31f525c01338726741d1b8f87ebc7349aaf62a255f96f6a741bb4e539025a6757f701ce2edc1e892e6040e7e8ced9aeff7888d89e
|
@@ -4,7 +4,7 @@ require 'sprockets-helpers'
|
|
4
4
|
module Sinatra
|
5
5
|
module AssetPipeline
|
6
6
|
def self.registered(app)
|
7
|
-
app.set_default :sprockets, Sprockets::Environment.new
|
7
|
+
app.set_default :sprockets, ::Sprockets::Environment.new
|
8
8
|
app.set_default :assets_paths, %w(assets)
|
9
9
|
app.set_default :assets_precompile, %w(app.js app.css *.png *.jpg *.svg *.eot *.ttf *.woff *.woff2)
|
10
10
|
app.set_default :assets_public_path, -> { File.join(public_folder, "assets") }
|
@@ -24,7 +24,7 @@ module Sinatra
|
|
24
24
|
app.sprockets.append_path File.join(app.root, path)
|
25
25
|
end
|
26
26
|
|
27
|
-
Sprockets::Helpers.configure do |config|
|
27
|
+
::Sprockets::Helpers.configure do |config|
|
28
28
|
config.environment = app.sprockets
|
29
29
|
config.digest = app.assets_digest
|
30
30
|
config.prefix = app.assets_prefix unless app.assets_prefix.nil?
|
@@ -33,7 +33,7 @@ module Sinatra
|
|
33
33
|
end
|
34
34
|
|
35
35
|
app.configure :staging, :production do
|
36
|
-
Sprockets::Helpers.configure do |config|
|
36
|
+
::Sprockets::Helpers.configure do |config|
|
37
37
|
config.manifest = Sprockets::Manifest.new(app.sprockets, app.assets_public_path)
|
38
38
|
config.prefix = app.assets_prefix unless app.assets_prefix.nil?
|
39
39
|
end
|
@@ -43,14 +43,14 @@ module Sinatra
|
|
43
43
|
app.sprockets.css_compressor = app.assets_css_compressor unless app.assets_css_compressor.nil?
|
44
44
|
app.sprockets.js_compressor = app.assets_js_compressor unless app.assets_js_compressor.nil?
|
45
45
|
|
46
|
-
Sprockets::Helpers.configure do |config|
|
46
|
+
::Sprockets::Helpers.configure do |config|
|
47
47
|
config.protocol = app.assets_protocol
|
48
48
|
config.asset_host = app.assets_host unless app.assets_host.nil?
|
49
49
|
config.prefix = app.assets_prefix unless app.assets_prefix.nil?
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
app.helpers Sprockets::Helpers
|
53
|
+
app.helpers ::Sprockets::Helpers
|
54
54
|
|
55
55
|
app.configure :test, :development do
|
56
56
|
app.get "#{app.assets_prefix}/*" do |path|
|
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: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joakim Ekberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|