Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (23 sloc) 651 Bytes
$LOAD_PATH.push File.expand_path('../lib', __FILE__)
require 'rake'
require 'rubocop/rake_task'
require 'rspec/core/rake_task'
require 'rdoc/task'
require 'wikipedia/version'
task default: [:spec, :rubocop]
desc 'Test the wikipedia plugin.'
RSpec::Core::RakeTask.new(:spec)
desc 'Run spec with coverage'
task :coverage do
ENV['COVERAGE'] = 'true'
Rake::Task['spec'].execute
end
desc 'Run rubocop'
RuboCop::RakeTask.new(:rubocop)
Rake::RDocTask.new do |rdoc|
version = Wikipedia::VERSION
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "wikipedia-client #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end