rapper 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
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.2
1
+ 0.2.3
@@ -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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rapper}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tyson Tate"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rapper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tyson Tate