-
Notifications
You must be signed in to change notification settings - Fork 4
/
Rakefile
49 lines (45 loc) · 1.43 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
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "scriptty"
gemspec.summary = "write expect-like script to control full-screen terminal-based applications"
gemspec.description = <<EOF
ScripTTY is a JRuby application and library that lets you control full-screen
terminal applications using an expect-like scripting language and a full-screen
matching engine.
EOF
gemspec.platform = "java"
gemspec.email = "[email protected]"
gemspec.homepage = "http://github.com/infonium/scriptty"
gemspec.authors = ["Dwayne Litzenberger"]
gemspec.add_dependency "treetop"
gemspec.add_dependency "multibyte"
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end
require 'rake/rdoctask'
Rake::RDocTask.new do |t|
t.rdoc_files = Dir.glob(%w( README* COPYING* lib/**/*.rb *.rdoc )).uniq
t.main = "README.rdoc"
t.title = "ScripTTY - RDoc Documentation"
t.options = %w( --charset -UTF-8 --line-numbers )
end
require 'rake/testtask'
Rake::TestTask.new(:test) do |t|
t.pattern = 'test/**/*_test.rb'
end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |t|
t.pattern = 'test/**/*_test.rb'
t.rcov_opts = ['--text-report', '--exclude', 'gems,rcov,jruby.*,\(eval\)']
end
rescue LoadError
$stderr.puts "warning: rcov not installed; coverage testing not available."
end
task :clobber do
rm "scriptty.gemspec"
rm_r "pkg"
end