forked from iain/http_accept_language
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
37 lines (33 loc) · 1.15 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "panmind-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 = "marcello.barnaba@gmail.com"
gem.homepage = "http://github.com/Panmind/http_accept_language"
gem.authors = ["Iain Hecker", "Marcello Barnaba"]
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'
t.pattern = 'test/**/*_test.rb'
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'
rdoc.title = 'HttpAcceptLanguage'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end