Sha256: 39b8bbbb60291ec7ced0ae9f15b8fd7c85cd32a974414e6dbf87bca39a6e367a

Contents?: true

Size: 662 Bytes

Versions: 2

Compression:

Stored size: 662 Bytes

Contents

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'yard'

YARD::Rake::YardocTask.new do |t|
  t.files = %w(lib/**/*.rb - History.rdoc)
  t.options = %W(--title log_switch Documentation (#{LogSwitch::VERSION}))
  t.options += %w(--main README.rdoc)
end

RSpec::Core::RakeTask.new do |t|
  t.ruby_opts = %w(-w)
end

if defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby" && RUBY_VERSION > "1.9"
  require 'tailor/rake_task'

  Tailor::RakeTask.new do |task|
    task.file_set 'lib/**/*.rb'
    task.file_set 'spec/**/*.rb', :specs
  end

# Alias for rubygems-test
  task :test => [:spec, :tailor]
else
  task :test => :spec
end

task :default => :test

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
log_switch-1.0.0 Rakefile
log_switch-0.4.0 Rakefile