Sha256: ded1a7f8f4f3bfbbc21c6e33375cf1c3d967bd022ee5a0bfc037d064f141d7c8
Contents?: true
Size: 1.06 KB
Versions: 9
Compression:
Stored size: 1.06 KB
Contents
require 'bundler/setup' require 'bundler/gem_tasks' require 'rspec/core/rake_task' require 'coveralls/rake/task' require 'yard' Coveralls::RakeTask.new RSpec::Core::RakeTask.new(:spec) do |spec| spec.rspec_opts = ['--backtrace', '--fail-fast'] 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| if ENV['TRAVIS'] exec('bundle exec rake spec && bundle exec rake coveralls:push') else exec('bundle exec rake spec') end end task :docs do exec('bundle exec inch --pedantic && bundle exec yard --list-undoc') end
Version data entries
9 entries across 9 versions & 2 rubygems