lib/tasks/sitemap.rake in sitemap-0.3 vs lib/tasks/sitemap.rake in sitemap-0.3.1

- old
+ new

@@ -5,13 +5,13 @@ end desc "Generates a new sitemap." task :generate => :environment do setup - path = File.join(Rails.public_path, "sitemap.xml") + root = Sitemap.configuration.save_path || ENV["LOCATION"] || Rails.public_path + path = File.join(root, "sitemap.xml") Sitemap::Generator.instance.build! Sitemap::Generator.instance.save path - File.chmod(0755,path) end desc "Ping engines." task :ping => :environment do Sitemap::Ping.send_request ENV["LOCATION"]