forked from carmen-ruby/carmen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
53 lines (45 loc) · 1.49 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
require 'rubygems'
require 'rake'
require 'hanna/rdoctask'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "carmen"
gem.summary = %Q{A collection of geographic country and state names for Ruby}
gem.description = %Q{A collection of geographic country and state names for Ruby. Also includes replacements for Rails' country_select and state_select plugins}
gem.email = "[email protected]"
gem.homepage = "http://github.com/jim/carmen"
gem.authors = ["Jim Benton"]
end
Jeweler::RubygemsDotOrgTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
rescue LoadError
task :rcov do
abort "RCov is not available. In order to run rcov, you must: gem install spicycode-rcov"
end
end
task :default => :test
desc 'Generate RDoc documentation for the carmen plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('README.rdoc', 'MIT-LICENSE').
include('lib/**/*.rb')
rdoc.main = "README.rdoc" # page to start on
rdoc.title = "carmen documentation"
rdoc.rdoc_dir = 'doc' # rdoc output folder
rdoc.options << '--webcvs=http://github.com/jim/carmen/tree/master/'
end