Option parsing: Remove tag1, tag2 cruft (#479)

This commit is contained in:
Olle Jonsson 2017-02-08 21:58:30 +01:00 committed by GitHub
parent 1e9e72f1a5
commit d334aa01f2
2 changed files with 2 additions and 13 deletions

View File

@ -52,11 +52,6 @@ module GitHubChangelogGenerator
:verbose
]
THESE_ARE_DIFFERENT = [
:tag1,
:tag2
]
def initialize(values)
super(values)
unsupported_options.any? && raise(UnsupportedOptionError, unsupported_options.inspect)
@ -78,15 +73,11 @@ module GitHubChangelogGenerator
end
def unsupported_options
values.keys - supported_options
values.keys - KNOWN_OPTIONS
end
def supported_option?(key)
supported_options.include?(key)
end
def supported_options
KNOWN_OPTIONS + THESE_ARE_DIFFERENT
KNOWN_OPTIONS.include?(key)
end
end
end

View File

@ -191,8 +191,6 @@ module GitHubChangelogGenerator
# @return [Hash] Default options
def self.default_options
Options.new(
tag1: nil,
tag2: nil,
date_format: "%Y-%m-%d",
output: "CHANGELOG.md",
base: "HISTORY.md",