Rakefile in bootstrap-x-editable-rails-1.4.4 vs Rakefile in bootstrap-x-editable-rails-1.4.5

- old
+ new

@@ -7,22 +7,22 @@ system("git clone https://github.com/vitalets/x-editable #{src_path}") system("cd #{src_path} && npm install") system("cd #{src_path} && grunt build") - system("cp #{dist_path}/img/clear.png vendor/assets/images/") - system("cp #{dist_path}/img/loading.gif vendor/assets/images/") - system("cp #{dist_path}/css/bootstrap-editable.css vendor/assets/stylesheets/bootstrap-editable.scss") - system("cp #{dist_path}/js/bootstrap-editable.js vendor/assets/javascripts/") + system("cp #{dist_path}/img/clear.png app/assets/images/") + system("cp #{dist_path}/img/loading.gif app/assets/images/") + system("cp #{dist_path}/css/bootstrap-editable.css app/assets/stylesheets/bootstrap-editable.scss") + system("cp #{dist_path}/js/bootstrap-editable.js app/assets/javascripts/") fixes system("rm -rf x-editable-src") end def fixes - replace_string_in_file("vendor/assets/stylesheets/bootstrap-editable.scss", "url('../img/loading.gif')", "image-url('loading.gif')") - replace_string_in_file("vendor/assets/stylesheets/bootstrap-editable.scss", "url('../img/clear.png')", "image-url('clear.png')") + replace_string_in_file("app/assets/stylesheets/bootstrap-editable.scss", "url('../img/loading.gif')", "image-url('loading.gif')") + replace_string_in_file("app/assets/stylesheets/bootstrap-editable.scss", "url('../img/clear.png')", "image-url('clear.png')") end def replace_string_in_file(file, find, replace) file_content = File.read(file)