-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
44 lines (37 loc) · 967 Bytes
/
Rakefile
File metadata and controls
44 lines (37 loc) · 967 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
37
38
39
40
41
42
43
44
$VERBOSE = true
require_relative 'lib/daisy'
desc 'build & install gem'
task 'gem' do
system 'gem build daisy.gemspec'
system 'gem install daisy-audio --local'
end
desc 'publish the gem'
task 'push' do
gemfile = Dir['*.gem'].sort.last
system "gem push #{gemfile}"
end
desc 'create RDoc documentation'
task 'rdoc' do
require 'rdoc/rdoc'
FileUtils.rm_r 'doc/rdoc' if File.directory?('doc/rdoc')
args = %w(--force-update --force-output --all) # --hyperlink-all
args << '-f' << 'babel'
args << '-c' << 'utf-8'
args << '--see-standard-ancestors'
args << '-o' << 'doc/rdoc'
args << '-t' << 'DAISY Audio'
args << '--main' << 'README.md'
args.concat %w(README.md HISTORY.md lib)
RDoc::RDoc.new.document(args)
end
desc 'run the tests'
task 'test' do
Dir.chdir('test') do
ARGV.clear
ARGV << 'fixtures-id3tag'
Daisy::CLI.new('daisy').run
ARGV.clear
ARGV << 'fixtures-mp3info'
Daisy::CLI.new('daisy').run
end
end