# (c) 2017 Ribose Inc. # # require 'rake' # require 'rake/testtask' # require 'rake/rdoctask' require "bundler/gem_tasks" load "tasks/db.rake" # desc 'Generate documentation for the attr_masker gem.' # Rake::RDocTask.new(:rdoc) do |rdoc| # rdoc.rdoc_dir = 'rdoc' # rdoc.title = 'attr_masker' # rdoc.options << '--line-numbers' << '--inline-source' # rdoc.rdoc_files.include('README*') # rdoc.rdoc_files.include('lib/**/*.rb') # end # # if RUBY_VERSION < '1.9.3' # require 'rcov/rcovtask' # # task :rcov do # system "rcov -o coverage/rcov --exclude '^(?!lib)' " + FileList[ 'test/**/*_test.rb' ].join(' ') # end # # desc 'Default: run unit tests under rcov.' # task :default => :rcov # else # desc 'Default: run unit tests.' # task :default => :test # end