-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathRakefile
39 lines (32 loc) · 869 Bytes
/
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
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rake'
require 'rake/testtask'
require 'rdoc/task'
$LOAD_PATH << File.join(File.dirname(__FILE__), 'lib')
require 'strongbox'
desc 'Default: run tests.'
task :default => :test
desc 'Test the strongbox gem.'
Rake::TestTask.new(:test) do |t|
t.libs << '.'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for the strongbox gem.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = 'Strongbox'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
desc "Generate a gemspec file for GitHub"
task :gemspec do
$spec = eval(File.read('strongbox.gemspec'))
$spec.validate
end
desc "Build the gem"
task :build => :gemspec do
Gem::Builder.new($spec).build
end