Rakefile in dropzonejs-rails-0.4.0 vs Rakefile in dropzonejs-rails-0.4.1
- old
+ new
@@ -56,11 +56,11 @@
end
def fix_image_links(css_file)
file_name = DropzonejsRails::Engine.root.join(css_file)
original_css = File.read(file_name)
- fixed_css = original_css.gsub(/url\(\"\.\.\/images\/(.+\.png)\"\)/, 'image-path("dropzone/\1")')
+ fixed_css = original_css.gsub(/url\(\"\.\.\/images\/(.+\.png)\"\)/, 'image-url("dropzone/\1")')
File.open(file_name, 'w') { |file| file << fixed_css }
end
def sed(filename, replacements)
@@ -73,6 +73,6 @@
def new_version
parts = DropzonejsRails::VERSION.split('.')
parts[2] = parts[2].to_i + 1
parts.join '.'
-end
\ No newline at end of file
+end