-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
41 lines (36 loc) · 1005 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
40
41
# -*- mode: ruby; coding: utf-8 -*-
gem "rdoc"
require "rake"
require "rake/clean"
require "rdoc/task"
require "rubygems/package_task"
require "paint"
ENV["RDOCOPT"] = "" if ENV["RDOCOPT"]
CLOBBER.include("doc")
desc "Starts up IRB with the backend library loaded."
task :console do
ARGV.clear # IRB runs havoc otherwise
require "irb"
require_relative "lib/open_ruby_rmk/backend"
puts Paint["include OpenRubyRMK::Backend", :green]
include OpenRubyRMK::Backend
puts "Loaded the OpenRubyRMK's backend library, version #{OpenRubyRMK::Backend.version}."
IRB.start
end
desc "Run the test suite."
task :test do
cd "test" do
Dir["test_*.rb"].each do |file|
load(file)
end
end
end
RDoc::Task.new do |rt|
rt.rdoc_dir = "doc"
rt.rdoc_files.include("lib/**/*.rb", "**/*.rdoc", "COPYING")
rt.title = "OpenRubyRMK RDocs ‒ Backend"
rt.main = "README.rdoc"
rt.generator = "emerald"
end
load "openrubyrmk-backend.gemspec"
Gem::PackageTask.new(ORR_BACKEND_GEMSPEC).define