Sha256: a9975c355feb99c48f8077654a7d0943e12e3f36a6bb64468c6343c7f971c690

Contents?: true

Size: 906 Bytes

Versions: 2

Compression:

Stored size: 906 Bytes

Contents

require 'bundler/gem_tasks'
require 'rake/testtask'

Rake::TestTask.new(:test) do |t|
  t.libs << 'test'
  t.libs << 'lib'
  t.test_files = FileList['test/**/*_test.rb']
end

namespace :build do

  desc 'Build README pages'
  task :readme do
    project_dir_path = File.dirname(__FILE__ )
    readme_dir_path = File.join(
        project_dir_path,
        'markdown',
        'readme',
        )
    Dir.chdir(readme_dir_path) do
      ruby_file_paths = Dir.glob('./**/*.rb')
      ruby_file_paths.each do |ruby_file_path|
        Dir.chdir(File.dirname(ruby_file_path)) do
          ruby_file_name = File.basename(ruby_file_path)
          command = "ruby #{ruby_file_name}"
          system(command)
        end
      end
      command = "markdown_helper include --pristine template.md ../../README.md"
      system(command)
    end

  end
end

task :default => :test

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
minitest_lucid-1.0.0 Rakefile
minitest_lucid-0.1.0 Rakefile