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

Avoid warning by explicit new dependencies #1766

Merged
merged 3 commits into from
Nov 12, 2024
Merged

Avoid warning by explicit new dependencies #1766

merged 3 commits into from
Nov 12, 2024

Conversation

jeromeag
Copy link
Contributor

@jeromeag jeromeag commented Nov 11, 2024

  • base64 will no longer be part of the default gems starting from Ruby 3.4.0
  • logger will no longer be part of the default gems starting from Ruby 3.5.0

Description

New explicit dependencies to avoid warnings:

  • lib/cucumber.rb:7: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.

  • lib/cucumber/formatter/message.rb:4: warning: base64 was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0.

Type of change

Please delete options that are not relevant.

  • Refactoring (improvements to code design or tooling that don't change behaviour)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new behaviour)
  • Breaking change (will cause existing functionality to not
    work as expected)
  • This change requires an update of cucumber.io/docs
  • If your change may impact future contributors, explain it here, and remember to update README.md and CONTRIBUTING.md accordingly.

Please add an entry to the relevant section of CHANGELOG.md as part of this pull request.

Checklist:

  • - Not applicable - Tests have been added for any changes to behaviour of the code
  • New and existing tests are passing locally and on CI
  • bundle exec rubocop reports no new offenses
  • - Not applicable - RDoc comments have been updated
  • CHANGELOG.md has been updated

- base64 will no longer be part of the default gems starting from Ruby 3.4.0
- loggre will no longer be part of the default gems starting from Ruby 3.5.0
Copy link
Contributor

@luke-hill luke-hill left a comment

Choose a reason for hiding this comment

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

Thanks for this. Couple of minor tweaks.

Note this won't hit until v10 (Next version to be released).

cucumber.gemspec Outdated
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
s.required_ruby_version = '>= 3.0'
s.required_rubygems_version = '>= 3.2.8'

s.add_dependency 'base64', '~> 0'
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not a fan of single number relations, because they don't work as advertised. Can we use an x.y reference for these

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

CHANGELOG.md Outdated Show resolved Hide resolved
@luke-hill
Copy link
Contributor

Thankyou for the contribution

@luke-hill luke-hill merged commit 824dee4 into cucumber:main Nov 12, 2024
0 of 15 checks passed
@jeromeag
Copy link
Contributor Author

Thankyou for the contribution

Thank you for your supports and all your contributions

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