这是indexloc提供的服务,不要输入任何密码
Skip to content

Chore: Warnings triggered by benchmark/ostruct, they are being removed from the default gems in Ruby 3.5.0 #5071

@Eduardo06sp

Description

@Eduardo06sp

Checks

  • I have thoroughly read and understand The Odin Project Contributing Guide
  • The title of this issue follows the Bug: brief description of bug format, e.g. Bug: Lesson complete button does not update on click
  • Would you like to work on this issue?

Bug description

When running bin/dev, you get the following warnings:

16:19:05 worker.1 | /home/eduardo06sp/.rbenv/versions/3.4.5/lib/ruby/gems/3.4.0/gems/activesupport-7.1.3.4/lib/active_support/core_ext/benchmark.rb:3: warning: benchmark was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.

16:19:06 web.1 | /home/eduardo06sp/.rbenv/versions/3.4.5/lib/ruby/gems/3.4.0/gems/view_component-3.16.0/lib/view_component/template.rb:1: warning: /home/eduardo06sp/.rbenv/versions/3.4.5/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.

I believe that if we add the benchmark gem to the test and/or development part of the Gemfile, then one of the warnings will go away.

I believe that if we upgrade view_componentto version 3.20 or later, then the other warning will go away. That is the first version in which OpenStruct was completely removed from their codebase.

How to reproduce

  1. Run The Odin Project website locally.
  2. Run bin/dev.
  3. You will see the warnings in your terminal.

Expected behavior

  1. Run The Odin Project locally.
  2. Run bin/dev.
  3. Do not see warnings in my terminal.

What browsers are you seeing the problem on?

No response

What OS are you using?

Ubuntu

Discord Name

eduardo06sp

Additional Comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: ChoreInvolves changes with no user-facing value, to the build process/internal tooling, refactors, etc.

    Type

    No type

    Projects

    Status

    📋 Backlog / Ideas

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions