Skip to content

Commit

Permalink
Workaround for YARD's warning
Browse files Browse the repository at this point in the history
This is a workaround to prevent the following warning in YARD:

```console
$ ruby -v
ruby 3.4.0dev (2024-04-19T07:33:16Z master 7951b349ab) [x86_64-darwin23]
$ cd path/to/rubocop
$ bundle exec rake
/Users/koic/.rbenv/versions/3.4-dev/lib/ruby/gems/3.4.0+0/gems/yard-0.9.36/lib/yard/templates/template_options.rb:2:
warning: ostruct was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.5.0.
Add ostruct to your Gemfile or gemspec.
```

The fundamental resolution will likely be addressed in lsegal/yard#1545.
  • Loading branch information
koic committed May 7, 2024
1 parent 9845aff commit 17eb245
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ gem 'asciidoctor'
gem 'bump', require: false
gem 'bundler', '>= 1.15.0', '< 3.0'
gem 'memory_profiler', platform: :mri
# FIXME: This is a workaround to prevent the following warning in YARD:
# https://github.com/lsegal/yard/pull/1545
# Please remove this dependency when the issue is resolved.
gem 'ostruct'
# FIXME: This is a workaround for incompatibilities between Prism 0.25.0 and 0.26.0.
# To upgrade to Prism 0.26+, it is necessary to investigate the following build error
# and provide feedback to Prism:
Expand Down

0 comments on commit 17eb245

Please sign in to comment.