Sha256: bd1e4d7f69cd376057fe81a89cb9d388bf1f63153fc85e8fc4defc37fa648dbe

Contents?: true

Size: 611 Bytes

Versions: 1

Compression:

Stored size: 611 Bytes

Contents

begin
  require "bundler/gem_tasks"
rescue LoadError
end

require "rake/testtask"
Rake::TestTask.new(:test) do |t|
  t.test_files = FileList["test/**/test_*.rb"]
end

require "rdoc/task"
RDoc::Task.new do |doc|
  doc.main   = "README.md"
  doc.title  = "Logger -- Ruby Standard Logger"
  doc.rdoc_files = FileList.new %w[README.md lib LICENSE.txt]
  doc.rdoc_dir = "html"
end

task "gh-pages" => :rdoc do
  %x[git checkout gh-pages]
  require "fileutils"
  FileUtils.rm_rf "/tmp/html"
  FileUtils.mv "html", "/tmp"
  FileUtils.rm_rf "*"
  FileUtils.cp_r Dir.glob("/tmp/html/*"), "."
end

task :default => :test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logger-1.4.0 Rakefile