Skip to content

Commit 8316ad5

Browse files
authored
Declare dependency on ostruct in gemspec (#735)
The absence of this declaration in `stimulus_reflex.gemspec` was emitting this warning in projects using this library: > warning: .rubies/ruby-3.4.2/lib/ruby/3.4.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 stimulus_reflex-3.5.3 to request adding ostruct into its gemspec. Related to #695, #698 ## Why should this be added I know that the long-term goal is to move away from using ostruct entirely, but since it's still used in the meantime, this feels like a reasonable thing to do.
1 parent 64a702b commit 8316ad5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Gemfile.lock

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ PATH
99
cable_ready (~> 5.0)
1010
nokogiri (~> 1.0)
1111
nokogiri-html5-inference (~> 0.3)
12+
ostruct (~> 0.6)
1213
rack (>= 2, < 4)
1314
railties (>= 5.2)
1415
redis (>= 4.0, < 6.0)
@@ -146,13 +147,16 @@ GEM
146147
net-smtp (0.5.0)
147148
net-protocol
148149
nio4r (2.7.3)
150+
nokogiri (1.17.2-arm64-darwin)
151+
racc (~> 1.4)
149152
nokogiri (1.17.2-x86_64-darwin)
150153
racc (~> 1.4)
151154
nokogiri (1.17.2-x86_64-linux)
152155
racc (~> 1.4)
153156
nokogiri-html5-inference (0.3.0)
154157
nokogiri (~> 1.14)
155158
observer (0.1.2)
159+
ostruct (0.6.1)
156160
parallel (1.22.1)
157161
parser (3.2.1.0)
158162
ast (~> 2.4.1)
@@ -243,6 +247,7 @@ GEM
243247
zeitwerk (2.6.18)
244248

245249
PLATFORMS
250+
arm64-darwin-24
246251
x86_64-darwin-19
247252
x86_64-darwin-22
248253
x86_64-darwin-23

stimulus_reflex.gemspec

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Gem::Specification.new do |gem|
5151
gem.add_dependency "rack", ">= 2", "< 4"
5252
gem.add_dependency "redis", ">= 4.0", "< 6.0"
5353
gem.add_dependency "nokogiri-html5-inference", "~> 0.3"
54+
gem.add_dependency "ostruct", "~> 0.6"
5455

5556
gem.add_development_dependency "bundler", "~> 2.0"
5657
gem.add_development_dependency "magic_frozen_string_literal", "~> 1.2"

0 commit comments

Comments
 (0)