-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrakefile.rb
38 lines (30 loc) · 842 Bytes
/
rakefile.rb
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
#!/usr/bin/env rake
# coding: utf-8
require 'rake/testtask'
require 'rdoc/task'
require "bundler/gem_tasks"
#Generate internal documentation with rdoc.
RDoc::Task.new do |rdoc|
rdoc.rdoc_dir = "rdoc"
#List out all the files to be documented.
rdoc.rdoc_files.include("lib/**/*.rb", "license.txt")
#Make all access levels visible.
rdoc.options << '--visibility' << 'private'
#Set a title.
rdoc.options << '--title' << 'My Shell Gem Internals'
end
#Run the mini_readline unit test suite.
Rake::TestTask.new do |t|
#List out all the test files.
t.test_files = FileList['tests/**/*.rb']
t.verbose = false
end
desc "Run a scan for smelly code!"
task :reek do |t|
`reek --no-color lib > reek.txt`
end
desc "What version of mysh is this?"
task :vers do |t|
puts
puts "mysh (My Shell) version = #{Mysh::VERSION}"
end