Rubocop recommends to write development dependencies in Gemfile.
But this gem has multiple Gemfiles and it might be redundant. So I disable it to pass Rubocop.
Third, support edge Rails. Since, https://github.com/rails/rails/pull/45796,
ActiveSupport::Notifications.notifier.listeners_for doesn't return all listeners.
Need to use all_listeners_for to get all listeners.
Sorry after the approval, but I added commits that support edge Rails. I think those allow to all test passed. I confirmed that with my fork https://github.com/y-yagi/lograge/pull/2
This PR tries to fix the broken CI.
First, disable
Gemspec/DependencyVersion
copCurrently, CI is broken because of
Gemspec/DevelopmentDependencies
cop. https://github.com/roidrage/lograge/actions/runs/5100966316/jobs/9169550600#step:4:36Rubocop recommends to write development dependencies in Gemfile. But this gem has multiple Gemfiles and it might be redundant. So I disable it to pass Rubocop.
Second, bump
truffleruby
to the latest. Because truffleruby-21.3 for Ubuntu 22.04 doesn't exist. https://github.com/ruby/ruby-builder/releases/tag/toolcacheThird, support edge Rails. Since, https://github.com/rails/rails/pull/45796,
ActiveSupport::Notifications.notifier.listeners_for
doesn't return alllisteners
. Need to useall_listeners_for
to get alllisteners
.