forked from infused/dbf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
31 lines (25 loc) · 831 Bytes
/
Rakefile
File metadata and controls
31 lines (25 loc) · 831 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
# encoding: utf-8
require 'rubygems'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new :spec do |t|
t.rspec_opts = %w(-fs --color)
end
require 'rake'
require 'rdoc/task'
Rake::RDocTask.new { |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = "DBF - A small fast library for reading dBase, xBase, Clipper and FoxPro database files."
rdoc.options << '--line-numbers'
rdoc.template = "#{ENV['template']}.rb" if ENV['template']
rdoc.rdoc_files.include('README.md', 'docs/supported_types.markdown', 'lib/**/*.rb')
}
task :default => :spec
desc "Open an irb session preloaded with this library"
task :console do
sh "irb -rubygems -I lib -r dbf.rb"
end
# require 'metric_fu'
# MetricFu::Configuration.run do |config|
# config.rcov[:test_files] = ['spec/**/*_spec.rb']
# config.rcov[:rcov_opts] << "-Ispec"
# end