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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67c14af31acb5da1a991e3285ec7c2d061c7c1ca
4
- data.tar.gz: d6f476d835ab2cd9f56fed6ece5d878046409163
3
+ metadata.gz: a03ebd8f237d8964ff8fba7c5f4fc502f7dc04bc
4
+ data.tar.gz: ed812b7f82ea5dc596c997df6d82a963217a65bf
5
5
  SHA512:
6
- metadata.gz: 8b283cb132aca67a3742b9733db31a0875fe2136b226c8e668dba6141c2e6f941d88345aeb37a8edfccfaccc63d29a2853deee873b83e914a6c2a384b7ce1bbf
7
- data.tar.gz: 20121e1bb86b608eb517077c8932a53ccbc12dd62e3e0cced02a187989551808e169280128c587dd9063dd0542394555ebfb858c0af8b8e61dab0d8e1d054c3a
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|
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module AssetPipeline
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
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: 1.0.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-02 00:00:00.000000000 Z
11
+ date: 2016-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake