Skip to content

Commit

Permalink
Add ostruct as an explicit dependency
Browse files Browse the repository at this point in the history
Ruby is dropping ostruct from standard library and will require it to be
installed as a gem. When using an app with Ruby 3.3.5 there is a
warning:

```
/root/.rbenv/versions/3.3.5/lib/ruby/3.3.0/bundled_gems.rb:75: warning: /root/.rbenv/versions/3.3.5/lib/ruby/3.3.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 govuk_publishing_components-43.3.0 to request adding ostruct into its gemspec.
```
  • Loading branch information
kevindew committed Sep 20, 2024
1 parent 5a80322 commit bf9ebbd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
useful summary for people upgrading their application, not a replication
of the commit log.

## Unreleased

* Add `ostruct` as an explicit dependency ([PR #4251](https://github.com/alphagov/govuk_publishing_components/pull/4251))

## 43.4.1

* Add accessible-autocomplete node_modules to gemspec ([PR #4246](https://github.com/alphagov/govuk_publishing_components/pull/4246))
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ PATH
govuk_app_config
govuk_personalisation (>= 0.7.0)
kramdown
ostruct
plek
rails (>= 6)
rouge
Expand Down Expand Up @@ -423,6 +424,7 @@ GEM
opentelemetry-semantic_conventions
opentelemetry-semantic_conventions (1.10.1)
opentelemetry-api (~> 1.0)
ostruct (0.6.0)
parallel (1.25.1)
parser (3.3.3.0)
ast (~> 2.4.1)
Expand Down
1 change: 1 addition & 0 deletions govuk_publishing_components.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Gem::Specification.new do |s|
s.add_dependency "govuk_app_config"
s.add_dependency "govuk_personalisation", ">= 0.7.0"
s.add_dependency "kramdown"
s.add_dependency "ostruct"
s.add_dependency "plek"
s.add_dependency "rails", ">= 6"
s.add_dependency "rouge"
Expand Down

0 comments on commit bf9ebbd

Please sign in to comment.