From 610580109b44693f77bd005a0e0363685ccaae3e Mon Sep 17 00:00:00 2001 From: Hartley McGuire Date: Thu, 5 Sep 2024 14:35:14 -0400 Subject: [PATCH] Add ostruct dependency due to default gem removal ``` /home/hartley/.cache/asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/pry-0.14.2/lib/pry.rb:31: 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. ``` This fixing warnings when requiring ostruct (and fixes errors in future Ruby 3.5) --- recursive-open-struct.gemspec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recursive-open-struct.gemspec b/recursive-open-struct.gemspec index 06c99e9..f51603b 100644 --- a/recursive-open-struct.gemspec +++ b/recursive-open-struct.gemspec @@ -40,5 +40,7 @@ Gem::Specification.new do |s| s.add_development_dependency('rdoc', [">= 0"]) s.add_development_dependency('rspec', "~> 3.2") s.add_development_dependency('simplecov', [">= 0"]) + + s.add_dependency('ostruct') end