./lib/lux_assets/asset.rb in lux_assets-0.1.9 vs ./lib/lux_assets/asset.rb in lux_assets-0.1.10
- old
+ new
@@ -46,16 +46,12 @@
def save_data data
@asset_file = '/assets/%s' % (@target.sub('/', '-') + '-' + Digest::SHA1.hexdigest(data) + '.' + @ext.to_s)
@asset_path = "./public#{@asset_file}"
- File.write(@asset_path, data)
-
if LuxAssets::Manifest.add(@target, @asset_file)
+ File.write(@asset_path, data)
yield
-
- LuxAssets.run 'touch -t 201001010101 %s' % @asset_path
- LuxAssets.run 'gzip -k %s' % @asset_path
end
end
def compile_js
save_data @data.join(";\n") do
\ No newline at end of file