-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
36 lines (28 loc) · 737 Bytes
/
Rakefile
File metadata and controls
36 lines (28 loc) · 737 Bytes
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
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'fileutils'
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require "ruby_template_handler/version"
desc "builds the gem"
task :build do
FileUtils.mkdir_p "pkg"
system "gem build ruby_template_handler.gemspec && mv *.gem pkg/"
end
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
task :default => :test
begin
require 'yard'
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', "README.markdown", "LICENSE"]
t.options = ["--private", "--protected", '-odoc']
end
rescue LoadError
task :yard do
puts "The yard gem couldn't be loaded."
end
end