Skip to content

Commit 553d63f

Browse files
Add ostruct to gemspec (#2107)
* Add ostruct to gemspec * Update docs/CHANGELOG.md * load ostruct directly in Ruby >= 3.3 * bundle --------- Co-authored-by: Joel Hawksley <[email protected]> Co-authored-by: Joel Hawksley <[email protected]>
1 parent a528f1c commit 553d63f

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ GEM
174174
nokogiri (1.16.7)
175175
mini_portile2 (~> 2.8.2)
176176
racc (~> 1.4)
177+
ostruct (0.6.0)
177178
parallel (1.26.3)
178179
parser (3.3.5.0)
179180
ast (~> 2.4.1)
@@ -347,6 +348,7 @@ DEPENDENCIES
347348
net-imap
348349
net-pop
349350
net-smtp
351+
ostruct
350352
pry (~> 0.13)
351353
puma (~> 6)
352354
rails (~> 7.0.0)

docs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ nav_order: 5
1010

1111
## main
1212

13+
* Add `ostruct` to gemspec file to suppress stdlib removal warning.
14+
15+
*Jonathan Underwood*
16+
1317
## 3.15.1
1418

1519
* Re-add `@private`, undocumented `.identifier` method that was only meant for internal framework use but was used by some downstream consumers. This method will be removed in a coming minor release.

view_component.gemspec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,8 @@ Gem::Specification.new do |spec|
6666
spec.add_development_dependency "net-pop"
6767
spec.add_development_dependency "net-smtp"
6868
end
69+
70+
if RUBY_VERSION >= "3.3"
71+
spec.add_development_dependency "ostruct"
72+
end
6973
end

0 commit comments

Comments
 (0)