Options: a class to wrap Hash-accessing options choices

- protects against bad names
This commit is contained in:
Olle Jonsson
2016-10-05 19:35:55 +00:00
parent d41a818676
commit 43a6e49055
5 changed files with 97 additions and 6 deletions
+2 -2
View File
@@ -187,7 +187,7 @@ module GitHubChangelogGenerator
# @return [Hash] Default options
def self.default_options
{
Options.new(
tag1: nil,
tag2: nil,
date_format: "%Y-%m-%d",
@@ -217,7 +217,7 @@ module GitHubChangelogGenerator
http_cache: true,
cache_file: "/tmp/github-changelog-http-cache",
cache_log: "/tmp/github-changelog-logger.log"
}
)
end
# If `:user` or `:project` not set in options, try setting them