File: Rakefile

package info (click to toggle)
ruby-dbf 2.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,560 kB
  • ctags: 103
  • sloc: ruby: 1,184; makefile: 8
file content (25 lines) | stat: -rw-r--r-- 561 bytes parent folder | download
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
require 'rubygems'
require 'bundler/setup';
Bundler.setup(:default, :development)

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new :spec do |t|
  t.rspec_opts = %w(--color)
end

RSpec::Core::RakeTask.new :specdoc do |t|
  t.rspec_opts = %w(-fl)
end

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