Sha256: e0e4ce46473555f3869570a5dae206e98ebfa9166484b9b06784fd5a32a4b5c3

Contents?: true

Size: 826 Bytes

Versions: 52

Compression:

Stored size: 826 Bytes

Contents

require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rspec/core/rake_task'
require 'bundler/gem_tasks'

CLOBBER.include(
	"coverage"
)

task :default => [:spec]

desc 'Run the code in specs'
RSpec::Core::RakeTask.new(:spec) do |t|
	t.pattern = "spec/**/*_spec.rb"
end

namespace :spec do
	if defined?(RCov)
		desc 'Run the code in specs with RCov'
		RSpec::Core::RakeTask.new(:report) do |t|
			t.pattern = "spec/**/*_spec.rb"
			t.rcov = true
			t.rcov_opts = IO.readlines(File.join('spec', 'rcov.opts')).map {|line| line.chomp.split(" ") }.flatten
		end
	else
		desc 'Run the code in specs with SimpleCov'
		task :report do
			ENV['COVERAGE'] = 'simplecov'
			Rake::Task["spec"].invoke
		end
	end
end

# Local Variables:
# mode: ruby
# indent-tabs-mode: t
# tab-width: 3
# ruby-indent-level: 3
# End:
# vim: ts=3

Version data entries

52 entries across 46 versions & 2 rubygems

Version Path
tdiary-contrib-5.3.0 Rakefile
tdiary-contrib-5.2.4 Rakefile
tdiary-contrib-5.2.3 Rakefile
tdiary-contrib-5.2.2 Rakefile
tdiary-contrib-5.2.1 Rakefile
tdiary-contrib-5.2.0 Rakefile
tdiary-contrib-5.1.7 Rakefile
tdiary-contrib-5.1.6 Rakefile
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/Rakefile
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/bundler/gems/tdiary-contrib-d1e41204db13/Rakefile
tdiary-contrib-5.1.5 Rakefile
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/Rakefile
tdiary-contrib-5.1.4 Rakefile
tdiary-contrib-5.1.3 Rakefile
tdiary-contrib-5.1.2 Rakefile
tdiary-contrib-5.1.1 Rakefile
tdiary-contrib-5.1.0 Rakefile
tdiary-contrib-5.0.13 Rakefile
tdiary-contrib-5.0.12 Rakefile
tdiary-contrib-5.0.11 Rakefile