X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/53b4d645d80cbe4ac397cfc004e8985317aed6a8..2bceba38bad5dfcf70023da99d17a5953183cd84:/vendor/plugins/http_accept_language/Rakefile?ds=inline 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'