-
Notifications
You must be signed in to change notification settings - Fork 30
Add base64 dependency #129
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
base: main
Are you sure you want to change the base?
Conversation
On modern ruby, base64 moved from MRI Ruby core to a standalone gem. Without this change, we get this error: ``` lib/puppet_forge/v3/release.rb:5: warning: base64 was loaded from the standard library, but is not part of the default gems starting from Ruby 3.4.0. You can add base64 to your Gemfile or gemspec to silence this warning. ```
@@ -20,16 +20,17 @@ Gem::Specification.new do |spec| | |||
|
|||
spec.required_ruby_version = '>= 3.1.0' | |||
|
|||
spec.add_runtime_dependency "base64", '~> 0.2.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no difference between add_runtime_dependency
and add_dependency
: https://guides.rubygems.org/specification-reference/#add_dependency. I don't like things having aliases, but that's Ruby for you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added rubocop in #130 , to enforce a consistent style.
base64 is a dependency for puppet on ruby 3.4. That's pulled in by puppet_forge. Upstream doesn't respond in puppetlabs/forge-ruby#129, so we add it here as a workaround.
On modern ruby, base64 moved from MRI Ruby core to a standalone gem.
Without this change, we get this error: