From 2085bfd74717de87b3ce31b1c5040362d0f54ac9 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Thu, 9 May 2024 12:02:28 -0400 Subject: [PATCH] Add support for Ruby 3.3 Calling super() in subclasses of Logger is necessary to initialize all superclass ivars --- .ruby-version | 2 +- Gemfile.lock | 2 +- lib/rails-footnotes/notes/log_note/note_logger.rb | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.ruby-version b/.ruby-version index be94e6f..bea438e 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.2.2 +3.3.1 diff --git a/Gemfile.lock b/Gemfile.lock index 0272d45..c52ba44 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -248,7 +248,7 @@ DEPENDENCIES sqlite3 (~> 1.7) RUBY VERSION - ruby 3.2.2p53 + ruby 3.2.3p157 BUNDLED WITH 2.4.22 diff --git a/lib/rails-footnotes/notes/log_note/note_logger.rb b/lib/rails-footnotes/notes/log_note/note_logger.rb index 62e9d23..77a89a5 100644 --- a/lib/rails-footnotes/notes/log_note/note_logger.rb +++ b/lib/rails-footnotes/notes/log_note/note_logger.rb @@ -5,6 +5,7 @@ class NoteLogger < Logger def initialize(logs) @logs = logs + super(nil) end def add(severity, message = nil, progname = nil, &block)