Sha256: 024a5eb4c64546166b03653de747fb29e636dfbeb6921b34382b72e658968a51
Contents?: true
Size: 686 Bytes
Versions: 6
Compression:
Stored size: 686 Bytes
Contents
#!/usr/bin/env rake require "bundler/gem_tasks" require 'rspec/core/rake_task' require 'rake/testtask' require 'yard' require 'yard/rake/yardoc_task' task :default => :spec desc 'Test the plugin.' RSpec::Core::RakeTask.new('spec') do |t| t.pattern = FileList['spec/**/*_spec.rb'] end desc 'Generate docs' YARD::Rake::YardocTask.new do |t| t.files = ['lib/**/*.rb'] #t.options = ['--plugin', 'yard-tomdoc'] end if RUBY_VERSION =~ /^1\.9/ desc "Code coverage detail" task :simplecov do ENV['COVERAGE'] = "true" Rake::Task['spec'].execute end else RSpec::Core::RakeTask.new(:rcov) do |spec| spec.pattern = 'spec/**/*_spec.rb' spec.rcov = true end end
Version data entries
6 entries across 6 versions & 2 rubygems