Sha256: 82bf1e66c79f995c8e0f05c4e42aefeefd565af9bd817ff997e3288fc7d623ca
Contents?: true
Size: 853 Bytes
Versions: 6
Compression:
Stored size: 853 Bytes
Contents
desc "Update" task :update do system("rm -rf multi-select-src") system("git clone https://github.com/lou/multi-select.git multi-select-src") system("cp multi-select-src/img/switch.png app/assets/images/switch.png") system("cp multi-select-src/css/multi-select.css app/assets/stylesheets/multi-select.scss") system("cp multi-select-src/js/jquery.multi-select.js app/assets/javascripts/multi-select.js") fixes system("rm -rf multi-select-src") end def fixes replace_string_in_file("app/assets/stylesheets/multi-select.scss", "url('../img/switch.png')", "image-url('switch.png')") end def replace_string_in_file(file, find, replace) file_content = File.read(file) File.open(file, "w") do |f| f.puts file_content.gsub!(find, replace) end end desc "Build" task "build" do system("gem build multi-select-rails.gemspec") end
Version data entries
6 entries across 6 versions & 1 rubygems