5 Jeweler::Tasks.new do |gem|
6 gem.name = "http_accept_language"
7 gem.summary = %Q{Parse the HTTP Accept Language Header}
8 gem.description = %Q{Find out which locale the user preferes by reading the languages they specified in their browser}
9 gem.email = "iain@iain.nl"
10 gem.homepage = "http://github.com/iain/http_accept_language"
11 gem.authors = ["Iain Hecker"]
13 Jeweler::GemcutterTasks.new
15 puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
18 require 'rake/testtask'
19 desc 'Test the http_accept_language plugin.'
20 Rake::TestTask.new(:test) do |t|
22 t.pattern = 'test/**/*_test.rb'
26 desc 'Default: run unit tests.'
27 task :default => :test
29 require 'rake/rdoctask'
30 desc 'Generate documentation for the http_accept_language plugin.'
31 Rake::RDocTask.new(:rdoc) do |rdoc|
32 rdoc.rdoc_dir = 'rdoc'
33 rdoc.title = 'HttpAcceptLanguage'
34 rdoc.options << '--line-numbers' << '--inline-source'
35 rdoc.rdoc_files.include('README')
36 rdoc.rdoc_files.include('lib/**/*.rb')