Rakefile in outdatedbrowser_rails-1.0.2.0 vs Rakefile in outdatedbrowser_rails-1.1.0
- old
+ new
@@ -43,10 +43,11 @@
dependencies.each do |filetype, filenames|
filenames.each do |filename|
rm_rf "app/assets/#{filetype}/outdatedbrowser/#{filename}"
end
end
+ rm_rf 'app/views/outdatedbrowser/lang'
end
namespace :generate do
desc "Generate assets"
task :assets do
@@ -57,7 +58,11 @@
Rake.rake_output_message "Copying css files"
target_dir = "app/assets/stylesheets/outdatedbrowser"
mkdir_p target_dir
puts FileUtils.cp(Dir.glob("#{origin}/outdatedBrowser.css"), target_dir)
+
+ Rake.rake_output_message "Copying html files"
+ target_dir = "app/views/outdatedbrowser"
+ puts FileUtils.cp_r(Dir.glob("#{origin}/lang"), target_dir)
end
end