Sha256: 3f0a09eae0a340458739a2053b41a403c978c3bfcb06670db5276d412facecbf

Contents?: true

Size: 555 Bytes

Versions: 7

Compression:

Stored size: 555 Bytes

Contents

require "bundler/gem_tasks"
task default: :spec

desc "Regenerate the example HTML in example/example.html"
task :generate_example do
  require_relative "lib/govuk_markdown"

  markdown = File.read("example/example.md")
  html = GovukMarkdown.render(markdown)

  File.write("example/example.html", ERB.new(File.read("example/example_layout.html.erb")).result(binding))
  sh "open example/example.html"
end

desc "Print the current version of the gem"
task :gem_version do
  require_relative "lib/govuk_markdown/version"

  puts GovukMarkdown::VERSION
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
govuk_markdown-2.0.1 Rakefile
govuk_markdown-2.0.0 Rakefile
govuk_markdown-2.0.0b1 Rakefile
govuk_markdown-1.0.0 Rakefile
govuk_markdown-0.4.0 Rakefile
govuk_markdown-0.3.0 Rakefile
govuk_markdown-0.2.0 Rakefile