rapper 0.2.2 → 0.2.3
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.
- data/README.markdown +1 -0
- data/VERSION +1 -1
- data/lib/rapper/html_tags.rb +10 -0
- data/rapper.gemspec +1 -1
- metadata +3 -3
data/README.markdown
CHANGED
@@ -126,6 +126,7 @@ Rapper's got a Gemfile. You know what to do.
|
|
126
126
|
|
127
127
|
## Version history
|
128
128
|
|
129
|
+
* **0.2.3** - Add tag_paths() to get all file paths for a given asset.
|
129
130
|
* **0.2.2** - Change tag_root behavior to not add `.../assets` path suffix when a `destination_root` is defined.
|
130
131
|
* **0.2.1** - Add tag_files() to get all file paths for a given asset.
|
131
132
|
* **0.2.0** - Custom asset destination roots, fix Rake task.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/lib/rapper/html_tags.rb
CHANGED
@@ -58,6 +58,16 @@ module Rapper
|
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
61
|
+
# Same as `tag_files`, but includes version query string if needed.
|
62
|
+
def tag_paths( type, name )
|
63
|
+
if self.get_config( 'version' )
|
64
|
+
version = definition.get_version( name )
|
65
|
+
tag_paths( type, name ).map{|path| "#{path}?v=#{version}"}
|
66
|
+
else
|
67
|
+
tag_paths( type, name )
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
61
71
|
protected
|
62
72
|
|
63
73
|
def get_tag( klass, type, name )
|
data/rapper.gemspec
CHANGED
metadata
CHANGED