Add option --require to load custom Ruby code (#574)
This commit is contained in:
@@ -43,6 +43,7 @@ module GitHubChangelogGenerator
|
||||
pulls
|
||||
release_branch
|
||||
release_url
|
||||
require
|
||||
simple_list
|
||||
since_tag
|
||||
ssl_ca_file
|
||||
@@ -69,6 +70,13 @@ module GitHubChangelogGenerator
|
||||
values
|
||||
end
|
||||
|
||||
# Loads the configured Ruby files from the --require option.
|
||||
#
|
||||
# @return [void]
|
||||
def load_custom_ruby_files
|
||||
self[:require].each { |f| require f }
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def values
|
||||
|
||||
Reference in New Issue
Block a user