Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@superacidjax
Copy link

When running the specs using ruby 3.3.5, there is a test failure due to the lack of the fiddle gem. This PR resolves this. This PR also resolves a depreciation warning for ruby 3.5:

/home/runner/work/***/***/vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/command_state.rb:3: warning: /opt/hostedtoolcache/Ruby/3.3.5/x64/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.

gem 'rspec'

gem "psych", '<= 5.2.0'
gem 'fiddle'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add to the PR which error was related to Fiddle?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the 'fiddle' warnings are coming from Reline, I don't think we should fix by adding this dependency here

https://github.com/ruby/reline/blob/5353924f323d4afa8c285997c5d950c62c4e2c1d/lib/reline/terminfo.rb#L1-L15

And it will also work in the future when Fiddle is not around..

The most recent version of reline fixed this, so I made another PR to ensure the CI runs with an recent release of Reline.

gem "psych", '<= 5.2.0'
gem 'fiddle'
gem 'psych', '<= 5.2.0'
gem 'ostruct', '0.6.0'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ostruct usage was removed on #2307 (still unreleased)

@AlexWayfer
Copy link

I support this PR, but agree with comments to it.

@andrehjr
Copy link
Member

andrehjr commented Sep 26, 2024

Thanks for the PR 🙌 and bringing my attention to that warning.

Closing this as I merged #2320. Running the CI with an updated reline, takes care of 'fiddle' warnings.

and ostruct was already removed in master.

Need to prepare a new release for those fixes.

@andrehjr andrehjr closed this Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants