X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d0b845fc6025f2fb84a4cf4fa10cbb71084843a7..e756dbae7f3715561de5688e6503b60fdfe0327d:/vendor/plugins/http_accept_language/Rakefile diff --git a/vendor/plugins/http_accept_language/Rakefile b/vendor/plugins/http_accept_language/Rakefile index c764e2be4..6c5a4f57a 100644 --- a/vendor/plugins/http_accept_language/Rakefile +++ b/vendor/plugins/http_accept_language/Rakefile @@ -1,10 +1,21 @@ require 'rake' -require 'rake/testtask' -require 'rake/rdoctask' -desc 'Default: run unit tests.' -task :default => :test +begin + require 'jeweler' + Jeweler::Tasks.new do |gem| + gem.name = "http_accept_language" + gem.summary = %Q{Parse the HTTP Accept Language Header} + gem.description = %Q{Find out which locale the user preferes by reading the languages they specified in their browser} + gem.email = "iain@iain.nl" + gem.homepage = "http://github.com/iain/http_accept_language" + gem.authors = ["Iain Hecker"] + end + Jeweler::GemcutterTasks.new +rescue LoadError + puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" +end +require 'rake/testtask' desc 'Test the http_accept_language plugin.' Rake::TestTask.new(:test) do |t| t.libs << 'lib' @@ -12,6 +23,10 @@ Rake::TestTask.new(:test) do |t| t.verbose = true end +desc 'Default: run unit tests.' +task :default => :test + +require 'rake/rdoctask' desc 'Generate documentation for the http_accept_language plugin.' Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc'