Sha256: 9811b8e05b2c89f3ea6ba7d8ad3800f6c563d03680544b075be4d3c4d3e0b682
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 Bytes
Contents
require 'changelog/parsers/base' require 'changelog/parsers/intridea_format' require 'changelog/parsers/keep_a_changelog' module Danger module Changelog module Parsers FORMATS = { intridea: IntrideaFormat, keep_a_changelog: KeepAChangelog }.freeze class << self def default_format :intridea end def valid?(format) FORMATS.keys.map(&:to_s).include?(format.to_s) end def lookup(format) FORMATS .fetch(format, IntrideaFormat) .new end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
danger-changelog-0.6.0 | lib/changelog/parsers.rb |