Rakefile in markdown_helper-1.5.1 vs Rakefile in markdown_helper-1.6.0
- old
+ new
@@ -12,18 +12,18 @@
desc 'Build README.md file from README.template.md'
task :readme do
Rake::Task['build:usages'].invoke
require_relative 'lib/markdown_helper'
markdown_helper = MarkdownHelper.new
- template_file_path = 'readme_files/highlight_ruby_template.md'
- markdown_file_path = 'readme_files/highlighted_ruby.md'
+ template_file_path = 'markdown/highlight_ruby_template.md'
+ markdown_file_path = 'markdown/highlighted_ruby.md'
markdown_helper.include(template_file_path, markdown_file_path)
# Do the resolve before the include, so that the included text is not also resolved.
# This protects example code from being also resolved, thus damaging the example code.
# Temp file must be in the same directory as its source (it becomes the source).
- temp_file_path = 'readme_files/temp_resolved.md'
- markdown_helper.resolve('readme_files/README.template.md', temp_file_path)
+ temp_file_path = 'markdown/temp_resolved.md'
+ markdown_helper.resolve('markdown/README.template.md', temp_file_path)
readme_file_path = 'README.md'
markdown_helper.include(temp_file_path, readme_file_path)
File.delete(temp_file_path)
end
@@ -31,10 +31,10 @@
task :usages do
%w/
include
resolve
/.each do |executable_name|
- usage_text = `ruby bin/#{executable_name} --help`
+ usage_text = `ruby bin/_#{executable_name} --help`
usage_file_path = "bin/usage/#{executable_name}.txt"
File.open(usage_file_path, 'w') do |file|
file.puts(usage_text)
end
end