Skip to content

Commit 360697f

Browse files
authored
chore: set ostruct as a gem dependency (#657)
In Ruby 3.4, requiring ostruct without pulling it in as a gem brings up a deprecation warning. Ostruct is used in the cli and sidekiq load check. ``` $ bin/bundle exec honeybadger deploy --environment=production --revision=... [email protected]:.../....git' /home/user/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/honeybadger-5.26.1/lib/honeybadger/cli/exec.rb:8: 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. ``` Added ostruct as a runtime dependency of the gem which should appease the warning.
1 parent 1abcc99 commit 360697f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

honeybadger.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ Gem::Specification.new do |s|
3636
s.executables << 'honeybadger'
3737

3838
s.add_dependency 'logger'
39+
s.add_dependency 'ostruct'
3940
end

0 commit comments

Comments
 (0)