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

Add base64 to runtime dependency #1041

Closed
wants to merge 1 commit into from

Conversation

koic
Copy link
Contributor

@koic koic commented Oct 26, 2023

This PR adds base64 to runtime dependency to suppress the following Ruby 3.3's warning:

$ ruby -v
ruby 3.3.0dev (2023-10-23T08:04:27Z master e6fcf07a6f) [x86_64-darwin22]

$ path/to/rubocop
$ bundle exec rspec
/Users/koic/.rbenv/versions/3.3.0-dev/lib/ruby/gems/3.3.0+0/gems/webmock-3.19.1/lib/webmock/util/headers.rb:3:
warning: base64 which will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec.

I found this warning in the RuboCop repository:
https://app.circleci.com/pipelines/github/rubocop/rubocop/10108/workflows/20097132-bbe3-4fa4-ad7e-de7c30c86e69/jobs/291956?invite=true#step-104-0_163

cf: rails/rails#48907

This PR adds `base64` to runtime dependency to suppress the following Ruby 3.3's warning:

```console
$ ruby -v
ruby 3.3.0dev (2023-10-23T08:04:27Z master e6fcf07a6f) [x86_64-darwin22]

$ path/to/rubocop
$ bundle exec rspec
/Users/koic/.rbenv/versions/3.3.0-dev/lib/ruby/gems/3.3.0+0/gems/webmock-3.19.1/lib/webmock/util/headers.rb:3:
warning: base64 which will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec.
```

I found this warning in the RuboCop repository:
https://app.circleci.com/pipelines/github/rubocop/rubocop/10108/workflows/20097132-bbe3-4fa4-ad7e-de7c30c86e69/jobs/291956?invite=true#step-104-0_163

cf: rails/rails#48907
koic added a commit to koic/rubocop that referenced this pull request Oct 26, 2023
Follow up rubocop#12313.

`base64` is not needed at runtime, but it was required as a test dependency.
So, this PR suppresses the following warning when using Ruby 3.3.0dev:

```consle
$ ruby -v
ruby 3.3.0dev (2023-10-23T08:04:27Z master e6fcf07a6f) [x86_64-darwin22]

$ cd path/to/rubocop
$ bundle exec rspec
/Users/koic/.rbenv/versions/3.3.0-dev/lib/ruby/gems/3.3.0+0/gems/webmock-3.19.1/lib/webmock/util/headers.rb:3:
warning: base64 which will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec.
```

https://app.circleci.com/pipelines/github/rubocop/rubocop/10108/workflows/20097132-bbe3-4fa4-ad7e-de7c30c86e69/jobs/291956?invite=true#step-104-0_163

The `base64` dependency can be removed from Gemfile when bblimke/webmock#1041 is merged and released.
It's a workaround until then.
bbatsov pushed a commit to rubocop/rubocop that referenced this pull request Oct 26, 2023
Follow up #12313.

`base64` is not needed at runtime, but it was required as a test dependency.
So, this PR suppresses the following warning when using Ruby 3.3.0dev:

```consle
$ ruby -v
ruby 3.3.0dev (2023-10-23T08:04:27Z master e6fcf07a6f) [x86_64-darwin22]

$ cd path/to/rubocop
$ bundle exec rspec
/Users/koic/.rbenv/versions/3.3.0-dev/lib/ruby/gems/3.3.0+0/gems/webmock-3.19.1/lib/webmock/util/headers.rb:3:
warning: base64 which will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec.
```

https://app.circleci.com/pipelines/github/rubocop/rubocop/10108/workflows/20097132-bbe3-4fa4-ad7e-de7c30c86e69/jobs/291956?invite=true#step-104-0_163

The `base64` dependency can be removed from Gemfile when bblimke/webmock#1041 is merged and released.
It's a workaround until then.
kiskoza added a commit to kiskoza/rubocop that referenced this pull request Jan 29, 2024
This is a follow up on bblimke/webmock#1041 .
The mentioned PR was merged in to `crack` and released as v0.4.6
@bblimke
Copy link
Owner

bblimke commented Feb 4, 2024

@koic thank you for providing this solution. I have decided to merge #1046 instead, since it doesn't require adding a dependency to the gemspec, but I very appreciate you effort. 🙏

@bblimke bblimke closed this Feb 4, 2024
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.

None yet

2 participants