require_relative 'include/include_use_case' namespace :build do def camelize(snake_case_string) snake_case_string.split('_').collect(&:capitalize).join end desc 'Build use case markdown' task :use_cases do # Page that links to use cases. File.open('use_cases.md', 'w') do |use_case_file| use_case_file.puts(< %w/ reuse_text include_with_added_comments nest_inclusions include_markdown include_code_block include_highlighted_code include_generated_text diagnose_missing_includee diagnose_circular_includes /, # :resolve => %w/ # resize_images # resolve_with_added_comments # gemify_images # / } use_case_dirs.each_pair do |section, dir_names| # Header for section, if any dirs therein. use_case_file.puts(<