forked from jstrait/wavefile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
executable file
·29 lines (25 loc) · 788 Bytes
/
Rakefile
File metadata and controls
executable file
·29 lines (25 loc) · 788 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
require 'rake/testtask'
require 'rdoc/task'
#$:.push File.expand_path("../tools", __FILE__)
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/**/*_test.rb']
end
RDoc::Task.new do |rdoc|
rdoc.rdoc_files.include("README.rdoc", "lib")
rdoc.main = "README.rdoc"
rdoc.title = "WaveFile Gem - Read/Write *.wav Files with Ruby"
rdoc.markup = "tomdoc"
rdoc.rdoc_dir = "doc"
end
namespace :test do
task :create_fixtures do
["valid", "invalid", "unsupported"].each do |subfolder|
fixtures = Dir.glob("test/fixtures/yaml/#{subfolder}/*.yml")
fixtures.each do |fixture|
basename = File.basename(fixture, ".yml")
`ruby tools/fixture_writer.rb #{fixture} test/fixtures/#{subfolder}/#{basename}.wav`
end
end
end
end