Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress warning(Ruby 3.4) requiring fiddle from terminfo.rb #721

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

tompng
Copy link
Member

@tompng tompng commented Jun 10, 2024

Make CI green

Reline (ansi, terminfo) tries to load fiddle and terminfo. Reline behaves better with fiddle but does not necessarily requires fiddle.
Fiddle is planned to be a bundled gem in Ruby 3.5. In Ruby 3.4, require 'fiddle' through bundle exec will warn

terminfo.rb:2: warning: fiddle was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.5.0. Add fiddle to your Gemfile or gemspec.

This pull request suppress that warning causing test failure.

lib/reline/io/windows.rb fully depends on fiddle, and we may need to think addding fiddle to gemspec dependency before 3.5, but it is out of scope of this pull request.

@ima1zumi ima1zumi merged commit 9da2cbc into ruby:master Jun 10, 2024
40 checks passed
@tompng tompng deleted the terminfo_suppress_warn branch June 10, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants