Sha256: 711abeaf3ebe3843b142ec1d578204fac264fb950bf0571f3c264c3ffbec83bc
Contents?: true
Size: 630 Bytes
Versions: 3
Compression:
Stored size: 630 Bytes
Contents
require 'changelog/parsers/base' require 'changelog/parsers/validation_result' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
danger-changelog-0.7.1 | lib/changelog/parsers.rb |
danger-changelog-0.7.0 | lib/changelog/parsers.rb |
danger-changelog-0.6.1 | lib/changelog/parsers.rb |