Sha256: 74fad5ede92fc97a76ebb7c8d1fd2c7fb4b41f055e8c63ea941f3b21c0570838
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
require 'bundler/setup' require 'bundler/gem_tasks' require 'rspec/core/rake_task' require 'coveralls/rake/task' require 'yard' require 'yard-rspec' 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 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 rubocop . && bundle exec rake spec && bundle exec rake coveralls:push') else exec('bundle exec rubocop -a . && bundle exec rake spec') end end task :docs do exec(' bundle exec rubocop -a . && bundle exec inch --pedantic && bundle exec yard') end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
celluloid_pubsub-0.3.2 | Rakefile |