lib/pheme/configuration.rb in pheme-1.2.2 vs lib/pheme/configuration.rb in pheme-3.0.0
- old
+ new
@@ -15,13 +15,13 @@
@configuration = Configuration.new
end
class Configuration
ATTRIBUTES = %i[sns_client sqs_client logger rollbar].freeze
- attr_accessor *ATTRIBUTES
+ attr_accessor(*ATTRIBUTES)
def initialize
- @logger ||= Logger.new(STDOUT)
+ @logger ||= Logger.new(STDOUT) # rubocop:disable Lint/DisjunctiveAssignmentInConstructor
@logger = ActiveSupport::TaggedLogging.new(@logger) unless @logger.respond_to?(:tagged)
end
def validate!
ATTRIBUTES.each do |attribute|