Sha256: 7b472d9f7c3d5ff1bba259794adf7b2303a32a8037a82eaafb98e8a5661c4fd1

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

module Danger
  module Changelog
    # A CHANGELOG.md line represents the "Your contribution here".
    class ChangelogPlaceholderLine < ChangelogLine
      def valid?
        ChangelogPlaceholderLine.validates_as_changelog_line?(line)
      end

      def self.validates_as_changelog_line?(line)
        return true if line == "* Your contribution here.\n"
        false
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
danger-changelog-0.2.1 lib/changelog/changelog_line/changelog_placeholder_line.rb