From 9fc95df75d457d823325c2218d235952f0a56686 Mon Sep 17 00:00:00 2001 From: cmcinnes-mdsol Date: Fri, 13 Oct 2023 02:30:58 -0400 Subject: [PATCH] Fix respond_to? method signature for optional second positional arg (#39) --- CHANGELOG.md | 3 +++ lib/lorekeeper/multi_logger.rb | 4 ++-- lib/lorekeeper/version.rb | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba59c9b..561c060 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 2.6.2 +* Fix respond_to? method signature + # 2.6.1 * Fix Lorekeeper::BacktraceCleaner#clean to not raise when a non-array value is passed diff --git a/lib/lorekeeper/multi_logger.rb b/lib/lorekeeper/multi_logger.rb index 17d0324..3153847 100644 --- a/lib/lorekeeper/multi_logger.rb +++ b/lib/lorekeeper/multi_logger.rb @@ -29,8 +29,8 @@ def fatal(*args, &block); call_loggers(:fatal, *args, &block); end def write(*args); call_loggers(:write, *args); end - def respond_to?(method, all_included: false) - @loggers.all? { |logger| logger.respond_to?(method, all_included) } + def respond_to?(method, include_all=false) + @loggers.all? { |logger| logger.respond_to?(method, include_all) } end def call_loggers(method, *args, &block) diff --git a/lib/lorekeeper/version.rb b/lib/lorekeeper/version.rb index 338243f..033f04a 100644 --- a/lib/lorekeeper/version.rb +++ b/lib/lorekeeper/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Lorekeeper - VERSION = '2.6.1' + VERSION = '2.6.2' end