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.md file from README.template.md' task :readme do require_relative 'lib/markdown_helper' markdown_helper = MarkdownHelper.new markdown_helper.include('readme_files/highlight_ruby_template.md', 'readme_files/highlighted_ruby.md') markdown_helper.include('readme_files/README.template.md', 'README.md') markdown_helper.resolve_image_urls('README.md', 'README.md') end end task :default => :test