Skip to content

Remove runtime dependency on base64#2378

Merged
tannalynn merged 1 commit intonewrelic:devfrom
Earlopain:base64-dep
Dec 22, 2023
Merged

Remove runtime dependency on base64#2378
tannalynn merged 1 commit intonewrelic:devfrom
Earlopain:base64-dep

Conversation

@Earlopain
Copy link
Copy Markdown
Contributor

The used portions of the base64 gem are just wrappers around unpack/pack, dependency added in #2238 for ruby 3.3 compat.
RuboCop as an example has taken a similar approach by simply inlining this on their one callsite.

Overview

Describe the changes present in the pull request

Submitter Checklist:

  • Include a link to the related GitHub issue, if applicable
  • Include a security review link, if applicable

Testing

The agent includes a suite of unit and functional tests which should be used to
verify your changes don't break existing functionality. These tests will run with
GitHub Actions when a pull request is made. More details on running the tests locally can be found
here for our unit tests,
and here for our functional tests.
For most contributions it is strongly recommended to add additional tests which
exercise your changes.

Reviewer Checklist

  • Perform code review
  • Add performance label
  • Perform appropriate level of performance testing
  • Confirm all checks passed
  • Add version label prior to acceptance

@github-actions github-actions bot added the community To tag external issues and PRs submitted by the community label Dec 22, 2023
The used portions of the base64 gem are just wrappers around unpack/pack
@kaylareopelle
Copy link
Copy Markdown
Contributor

kaylareopelle commented Dec 22, 2023

Hi @Earlopain! Thanks for this PR!

For anyone else who comes across this, here are some PRs from other gems using a similar approach:

Copy link
Copy Markdown
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

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

Thank you for this PR. I like this approach to handle base64 being removed from the default gems in Ruby 3.4. It's great to once again be free of dependencies! 😄

@tannalynn tannalynn merged commit 319a517 into newrelic:dev Dec 22, 2023
@Earlopain
Copy link
Copy Markdown
Contributor Author

Wow, that was quick! Happy to help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community To tag external issues and PRs submitted by the community

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants