Runfile
require 'debug'
require 'redirectly/version'
require 'pretty_trace/enable-trim'
title 'Redirectly Developer Toolbelt'
import_gem 'runfile-tasks/gem'
import_gem 'runfile-tasks/docker', image: 'dannyben/redirectly', version: Redirectly::VERSION
import 'debug'
help 'Generate changelog and append some manual entries'
action :changelog do
# https://github.com/dannyben/git-changelog
log = `git changelog --reverse --color off`
log.gsub! "- Allow using named splat", "- BREAKING: Remove URI encoding of arguments in target URL\n\\0"
File.write 'CHANGELOG.md', log
say 'Saved g`CHANGELOG.md`'
end