lib/assetify/asset.rb in assetify-0.2.1 vs lib/assetify/asset.rb in assetify-0.2.2

- old
+ new

@@ -8,10 +8,10 @@ def initialize(type, name, url, ver = nil, params={}) raise "NoType" unless type raise "NoName" unless name raise "NoURL" unless url - @type, @name = type, name + @type, @name = type, name.to_s @url = (@ver = ver) ? url.gsub(/{VERSION}/, @ver) : url @ns = params[:ns] || "" @to = params[:to] || "" @pkg = params[:pkg] end