lib/changelog/config.rb in danger-changelog-0.6.0 vs lib/changelog/config.rb in danger-changelog-0.6.1
- old
+ new
@@ -1,9 +1,9 @@
module Danger
module Changelog
module Config
- extend self
+ module_function
ATTRIBUTES = %i[
placeholder_line
filename
format
@@ -12,10 +12,12 @@
ACCESSORS = ATTRIBUTES.map { |name| "#{name}=".to_sym }
DELEGATORS = ATTRIBUTES + ACCESSORS
- attr_accessor(*Config::ATTRIBUTES)
+ class << self
+ attr_accessor(*Config::ATTRIBUTES)
+ end
def placeholder_line=(value)
if value
new_value = value
new_value = "* #{new_value}" unless new_value.start_with?('* ')