You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning occurs when loading Rollbar Gem in Ruby v3.3.5
root@6533553801ce:/# cat Gemfile
source "https://rubygems.org"
gem "rollbar"
root@6533553801ce:/# cat main.rb
require "rollbar"
p "RUBY_VERSION #{RUBY_VERSION}"
p "Rollbar::VERSION #{Rollbar::VERSION}"
root@6533553801ce:/# bundle exec ruby main.rb
/usr/local/bundle/gems/rollbar-3.6.0/lib/rollbar.rb:16: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add logger to your Gemfile or gemspec to silence this warning.
/usr/local/lib/ruby/3.3.0/json/common.rb:3: warning: ostruct was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add ostruct to your Gemfile or gemspec to silence this warning.
"RUBY_VERSION 3.3.5"
"Rollbar::VERSION 3.6.0"
Ruby v3.3.5 was recently released.
https://www.ruby-lang.org/en/news/2024/09/03/3-3-5-released/
Warning occurs when loading Rollbar Gem in Ruby v3.3.5
This warning appears to be in preparation for Ruby v3.5
ruby/ruby#10428
ruby/ruby@d7e558e
You need to add the gem (logger, ostruct) to the rollbar gem's dependencies or stop using the gem in question.
Workaround
Just add them to the Gemfile of each application, as indicated by the warning message
The text was updated successfully, but these errors were encountered: