Skip to content

Commit

Permalink
Add ostruct to gemspec (#2107)
Browse files Browse the repository at this point in the history
* Add ostruct to gemspec

* Update docs/CHANGELOG.md

* load ostruct directly in Ruby >= 3.3

* bundle

---------

Co-authored-by: Joel Hawksley <joelhawksley@github.com>
Co-authored-by: Joel Hawksley <joel@hawksley.org>
  • Loading branch information
3 people authored Oct 1, 2024
1 parent a528f1c commit 553d63f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ GEM
nokogiri (1.16.7)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
ostruct (0.6.0)
parallel (1.26.3)
parser (3.3.5.0)
ast (~> 2.4.1)
Expand Down Expand Up @@ -347,6 +348,7 @@ DEPENDENCIES
net-imap
net-pop
net-smtp
ostruct
pry (~> 0.13)
puma (~> 6)
rails (~> 7.0.0)
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ nav_order: 5

## main

* Add `ostruct` to gemspec file to suppress stdlib removal warning.

*Jonathan Underwood*

## 3.15.1

* 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.
Expand Down
4 changes: 4 additions & 0 deletions view_component.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,8 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "net-pop"
spec.add_development_dependency "net-smtp"
end

if RUBY_VERSION >= "3.3"
spec.add_development_dependency "ostruct"
end
end

0 comments on commit 553d63f

Please sign in to comment.