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

Remove dependency on base64 gem #3559

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Conversation

Earlopain
Copy link
Contributor

@Earlopain Earlopain commented Mar 27, 2024

2.0 Upgrade Guide notes

What does this PR do?

Remove the runtime dependency on the base64 gem.

Motivation:
#3364 added a dependency on the base64 gem to silence warnings on Ruby >= 3.4

The used portions of the base64 gem are just wrappers around the pack/unpack methods (see here). These can be added to a module to keep their descriptive names and allow the gem to drop a dependency.

I've done something quite similar for the newrelic agent here, and other gems did something like that as well:

Additional Notes:

I think I'm not supposed to touch the gemfiles/lockfiles? I believe I github action will take care of that.

How to test the change?

Current tests are fine.

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.

Unsure? Have a question? Request a review!

Added in DataDog#3364. It's just a simple wrapper, so it's trivial to inline.

Add a new module to keep keep descriptive method names
@Earlopain Earlopain requested review from a team as code owners March 27, 2024 17:16
@github-actions github-actions bot added appsec Application Security monitoring product core Involves Datadog core libraries labels Mar 27, 2024
Copy link
Member

@marcotc marcotc 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 so much, @Earlopain!

@marcotc marcotc merged commit f41b5ea into DataDog:2.0 Mar 28, 2024
31 checks passed
@marcotc marcotc added this to the 2.0.0 milestone Mar 28, 2024
@Earlopain Earlopain deleted the remove-base64-dep branch March 28, 2024 18:47
@ivoanjo ivoanjo added the 2.0 label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0 appsec Application Security monitoring product core Involves Datadog core libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants