From 9593d695f24338388205c847b390ad94d0ccfde6 Mon Sep 17 00:00:00 2001 From: zvkemp Date: Tue, 12 Sep 2023 13:58:54 -0700 Subject: [PATCH] use `local:false` to avoid errors when I18n is unconfigured --- CHANGELOG.md | 3 +++ lib/skylight/railtie.rb | 2 +- lib/skylight/version.rb | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b3fa1ca..574bffc6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 6.0.1 (September 12, 2023) +- [BUGFIX] Fix a logger message that could raise an error when I18n is misconfigured or unconfigured. + ## 6.0.0 (September 11, 2023) - [BREAKING] End support for Ruby 2.6 - The following libraries are no longer tested and are not guaranteed to work with Skylight 6: diff --git a/lib/skylight/railtie.rb b/lib/skylight/railtie.rb index 4333b182..ec1223b0 100644 --- a/lib/skylight/railtie.rb +++ b/lib/skylight/railtie.rb @@ -45,7 +45,7 @@ def show_worker_activation_warning(sk_config) return if reasons.empty? - sk_config.logger.warn("Activating Skylight for Background Jobs because #{reasons.to_sentence}") + sk_config.logger.warn("Activating Skylight for Background Jobs because #{reasons.to_sentence(locale: false)}") end def log_prefix diff --git a/lib/skylight/version.rb b/lib/skylight/version.rb index 4dcd96af..e6bb3f22 100644 --- a/lib/skylight/version.rb +++ b/lib/skylight/version.rb @@ -3,5 +3,5 @@ module Skylight # for compatibility with semver when it is parsed by the rust agent. # This string will be transformed in the gemspec to "5.0.0.alpha" # to conform with rubygems. - VERSION = "6.0.0".freeze + VERSION = "6.0.1".freeze end