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

Skip to content

Conversation

@ekohl
Copy link
Member

@ekohl ekohl commented Feb 10, 2025

This is a warning raised on Ruby 3.3:

lib/hammer_cli/output/adapter.rb:5: warning: csv was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0.

It also raises one about syslog:

lib/hammer_cli/settings.rb:2: warning: syslog was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0.

However, this one is pulled in via logging and we don't care about syslog. TwP/logging#247 says this is a Ruby bug so we may need to accept it.

@ekohl
Copy link
Member Author

ekohl commented Feb 10, 2025

Looks like it fails because oauth doesn't properly depend on base64. @ofedoren what do you think we should do? Try to get oauth fixed or depend on it here with a comment why?

@ofedoren
Copy link
Member

@ekohl, for simplicity I'd go with explicit dependencies with a comment to check if it gets fixed once we're dropping older Ruby's.

The base64 dependency really should be in oauth, but this is a
workaround until it is.
@ekohl
Copy link
Member Author

ekohl commented Feb 11, 2025

Looks like there's a difference in the Hash#inspect output that makes this test fail:

_(@log_output.readline.strip).must_equal "INFO HammerCLI::AbstractCommand : Called with options: {\"option_password\"=>\"***\"}"

The line in question is here:

logger.info "Called with options: %s" % options.inspect

I'll leave this until after Foreman 3.14 branching but feel free to pick it up if you want.

@ekohl ekohl changed the title Add csv dependency for Ruby 3.4 compatibility Ruby 3.4 compatibility Feb 18, 2025
Copy link
Member

@ofedoren ofedoren left a comment

Choose a reason for hiding this comment

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

Thanks, @ekohl, let's get this in :)

@ofedoren ofedoren merged commit 3599ff2 into theforeman:master Mar 13, 2025
8 checks passed
@ekohl ekohl deleted the ruby-3.4 branch March 13, 2025 18:19
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.

2 participants