Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 14 lines (12 sloc) 0.403 kB
9f723eb @rweng initial import: 0.0.1
authored
1 require "bundler/gem_tasks"
d327b60 @s-andringa Add rake task for replacing url() with image-url() in scss
s-andringa authored
2
3 desc "Fixes css image paths in scss files."
4 task :fix_css do
5716549 Renamed .css.scss files to .scss to resolve deprecation warnings rela…
knoxygen authored
5 Dir.glob(File.join("app/assets/stylesheets/dataTables", "*.scss")).each do |filename|
d327b60 @s-andringa Add rake task for replacing url() with image-url() in scss
s-andringa authored
6 content = File.read(filename)
7 content.gsub!(/url\('\.\.\/images\/([A-Za-z0-9_]*\.png)'\)/) do
8 "image-url('dataTables/#{$1}')"
9 end
10 File.open(filename, 'w') { |f| f << content }
11 end
12 print "Done.\n"
13 end
Something went wrong with that request. Please try again.