Skip to content

Commit

Permalink
Fix respond_to? method signature for optional second positional arg (#39
Browse files Browse the repository at this point in the history
)
  • Loading branch information
cmcinnes-mdsol authored Oct 13, 2023
1 parent 4702c93 commit 9fc95df
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions lib/lorekeeper/multi_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/lorekeeper/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Lorekeeper
VERSION = '2.6.1'
VERSION = '2.6.2'
end

0 comments on commit 9fc95df

Please sign in to comment.