assetify 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
data/assetify.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{assetify}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Marcos Piccinini"]
@@ -10,7 +10,7 @@ module Assetify
10
10
  raise "NoType" unless type
11
11
  raise "NoName" unless name
12
12
  raise "NoURL" unless url
13
- @type, @name = type, name
13
+ @type, @name = type, name.to_s
14
14
  @url = (@ver = ver) ? url.gsub(/{VERSION}/, @ver) : url
15
15
  @ns = params[:ns] || ""
16
16
  @to = params[:to] || ""
@@ -15,6 +15,11 @@ describe DSL do
15
15
  a.fullpath.should eql("/home/nofxx/git/assetify/spec/rock/foo.rb")
16
16
  end
17
17
 
18
+ it "should not fail with symbols" do
19
+ a = Assetify::DSL.parse("js :jnice, 'foolink'")[0]
20
+ a.should be_an Asset
21
+ a.name.should eql("jnice")
22
+ end
18
23
 
19
24
  describe "Group Assets" do
20
25
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Marcos Piccinini
@@ -122,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - ">="
124
124
  - !ruby/object:Gem::Version
125
- hash: 119346050710265348
125
+ hash: -2020690596737373236
126
126
  segments:
127
127
  - 0
128
128
  version: "0"