Skip to content

Commit

Permalink
Set ostruct as a gem dependency
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
t27duck committed Jan 4, 2025
1 parent 1abcc99 commit b07dcc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions honeybadger.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ Gem::Specification.new do |s|
s.executables << 'honeybadger'

s.add_dependency 'logger'
s.add_dependency 'ostruct'
end

0 comments on commit b07dcc2

Please sign in to comment.