Sha256: 8074785d7bba85396b862553918d14269a47ea8086f6303dd5bbe9bca84e7a48

Contents?: true

Size: 769 Bytes

Versions: 12

Compression:

Stored size: 769 Bytes

Contents

require 'bundler/setup'
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'rdoc/task'

Rake::RDocTask.new do |rdoc|
  if File.exist?('VERSION')
    version = File.read('VERSION')
  else
    version = ""
  end

  rdoc.rdoc_dir = 'rdoc'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.title = "timecop #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('History.rdoc')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

task :test do
  failed = Dir["test/*_test.rb"].map do |test|
    command = "ruby #{test}"
    puts
    puts command
    command unless system(command)
  end.compact
  if failed.any?
    abort "#{failed.count} Tests failed\n#{failed.join("\n")}"
  end
end

desc 'Default: run tests'
task :default => [:test]

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
timecop-0.9.10 Rakefile
timecop-0.9.9 Rakefile
timecop-0.9.8 Rakefile
timecop-0.9.7 Rakefile
timecop-0.9.6 Rakefile
timecop-0.9.5 Rakefile
timecop-0.9.4 Rakefile
timecop-0.9.3 Rakefile
timecop-0.9.2 Rakefile
timecop-0.9.1 Rakefile
timecop-0.9.0 Rakefile
timecop-0.8.1 Rakefile