Skip to content

Commit

Permalink
Explicitly require ostructn.gemspec
Browse files Browse the repository at this point in the history
ref..rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/gon-6.4.0/lib/gon/base.rb:1: 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.

closes gazay#270
  • Loading branch information
Faq authored and Faq committed Jan 26, 2025
1 parent ab7e611 commit f56d5b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gon.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ Gem::Specification.new do |s|
s.add_dependency 'i18n', '>= 0.7'
s.add_dependency 'request_store', '>= 1.0'
s.add_dependency 'multi_json'
if RUBY_VERSION >= '3.5.0'
s.add_dependency 'ostruct'
end
s.add_development_dependency 'rabl', '0.11.3'
s.add_development_dependency 'rabl-rails'
s.add_development_dependency 'rspec', '>= 3.0'
Expand Down

0 comments on commit f56d5b8

Please sign in to comment.