Skip to content

Commit

Permalink
Add ostruct as dependency for Ruby 3.5.0
Browse files Browse the repository at this point in the history
Starting from Ruby 3.5.0, `ostruct` will no longer be included as a default gem. This means that it must be added to the gemspec.

Here is the deprecation message:
```
/Users/garyhtou/.rbenv/versions/3.3.5/lib/ruby/3.3.0/bundled_gems.rb:75: warning: /Users/garyhtou/.rbenv/versions/3.3.5/lib/ruby/3.3.0/ostruct.rb 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.
Also please contact the author of wicked_pdf-2.8.1 to request adding ostruct into its gemspec.
```
  • Loading branch information
garyhtou committed Oct 24, 2024
1 parent ae3776f commit 36cf39c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wicked_pdf.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ DESC
spec.requirements << 'wkhtmltopdf'

spec.add_dependency 'activesupport'
spec.add_dependency 'ostruct'

spec.add_development_dependency 'bundler'
spec.add_development_dependency 'mocha', '= 1.3'
Expand Down

0 comments on commit 36cf39c

Please sign in to comment.