dynamic_assets 0.7.5 → 0.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,13 +28,17 @@ module DynamicAssetsHelpers
28
28
  end
29
29
 
30
30
 
31
- protected
31
+ private
32
32
 
33
33
  def asset_path(asset_ref, options = {})
34
- # Omit signature if we see an explicit :signature => false option.
35
- signature = (options[:signature] == false) ? nil :
36
- asset_ref.signature(DynamicAssets::ViewContext.get(controller))
37
- options = options.reverse_merge :name => asset_ref.name, :signature => signature
34
+ options = options.reverse_merge :name => asset_ref.name
35
+
36
+ # Omit signature if we see an explicit :signature => false option
37
+ if options[:signature] == false
38
+ options.delete :signature
39
+ else
40
+ options[:signature] = asset_ref.signature(DynamicAssets::ViewContext.get(controller))
41
+ end
38
42
 
39
43
  case asset_ref
40
44
  when DynamicAssets::StylesheetReference then stylesheet_asset_path options
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: dynamic_assets
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.7.5
5
+ version: 0.7.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Robert Davis
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-30 00:00:00 -05:00
14
- default_executable:
13
+ date: 2011-11-10 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: rails
@@ -114,7 +113,6 @@ files:
114
113
  - lib/dynamic_assets/reference/stylesheet_reference.rb
115
114
  - lib/dynamic_assets/view_context.rb
116
115
  - README.rdoc
117
- has_rdoc: true
118
116
  homepage: http://github.com/davisre/dynamic_assets
119
117
  licenses:
120
118
  - MIT
@@ -128,7 +126,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
128
126
  requirements:
129
127
  - - ">="
130
128
  - !ruby/object:Gem::Version
131
- hash: -1933479551771191958
129
+ hash: -2285263343840822720
132
130
  segments:
133
131
  - 0
134
132
  version: "0"
@@ -141,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
139
  requirements: []
142
140
 
143
141
  rubyforge_project:
144
- rubygems_version: 1.6.2
142
+ rubygems_version: 1.8.5
145
143
  signing_key:
146
144
  specification_version: 3
147
145
  summary: Allow your Rails 3 app to package and process your CSS and JS assets on the fly.