alphasights-sinatra-sprockets 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -92,7 +92,8 @@ module Sinatra
92
92
 
93
93
  def asset_path(source, options={})
94
94
  source = source.logical_path if source.respond_to?(:logical_path)
95
- path = asset_paths.compute_public_path(source, config.prefix, options.merge(:body => true))
95
+ digest = options.key?(:digest) ? options.delete(:digest) : config.digest_assets?
96
+ path = asset_paths.compute_public_path(source, config.prefix, options.merge(:body => true, :digest => digest))
96
97
  options[:body] ? "#{path}?body=1" : path
97
98
  end
98
99
 
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module Sprockets
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alphasights-sinatra-sprockets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-16 00:00:00.000000000 Z
12
+ date: 2012-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sprockets
16
- requirement: &70221410951920 !ruby/object:Gem::Requirement
16
+ requirement: &70321319797480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '2.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70221410951920
24
+ version_requirements: *70321319797480
25
25
  description: Use Sprockets effectively with Sinatra.
26
26
  email:
27
27
  - jessereiss@gmail.com