Sha256: 5b15ffaca73bcadc602b5641ed68cbcd2b719a4404ec6f97e760e857d529b0df
Contents?: true
Size: 875 Bytes
Versions: 7
Compression:
Stored size: 875 Bytes
Contents
require 'bundler/setup' require 'bundler/gem_tasks' require 'rspec/core/rake_task' require 'yard' require 'yard-rspec' require 'tax_generator' RSpec::Core::RakeTask.new(:spec) do |spec| spec.rspec_opts = ['--backtrace '] if ENV['DEBUG'] end YARD::Config.options[:load_plugins] = true YARD::Config.load_plugins # dirty hack for YardocTask ::Rake.application.class.class_eval do alias_method :last_comment, :last_description end YARD::Rake::YardocTask.new do |t| t.files = ['lib/**/*.rb', 'spec/**/*_spec.rb'] # optional t.options = ['--any', '--extra', '--opts', '--markup-provider=redcarpet', '--markup=markdown', '--debug'] # optional t.stats_options = ['--list-undoc'] # optional end desc 'Default: run the unit tests.' task default: [:all] desc 'Test the plugin under all supported Rails versions.' task :all do |_t| exec('bundle exec rake spec') end
Version data entries
7 entries across 7 versions & 1 rubygems