-
Notifications
You must be signed in to change notification settings - Fork 288
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
Ensure that docker-api works with frozen strings #590
Conversation
This looks great. One question, but otherwise I'd be happy to merge. |
Rakefile
Outdated
require 'bundler/setup' | ||
|
||
ENV['PATH'] = "/opt/docker/:#{ENV['PATH']}" if ENV['CI'] == 'true' | ||
|
||
require 'docker' | ||
require 'rspec/core/rake_task' | ||
require 'cane/rake_task' | ||
|
||
|
||
desc 'Run the full test suite from scratch' | ||
task :default => [:unpack, :rspec, :quality] |
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.
Ah, can we also remove the quality
from this array?
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.
Ah yes, of course. Sorry I missed that.
I also now noticed a mention of rake quality
in the Readme; that has been removed as well.
It doesn't work with Ruby 3.1+, and in 2018 its maintainer wrote that users should consider switching to RuboCop.
11947a5
to
f03cdb5
Compare
Seems like the |
I think after Ruby 3.4 is released[^1], more people will start expecting libraries to be functional with eg the `--enable-frozen-string-literal` option enabled. This commit adds the `frozen_string_literal` header to all files and fixes failing tests. [^1]:ruby/ruby@12be40a
f03cdb5
to
c416cfd
Compare
Fixed and pushed. |
Released as v2.4.0 |
I think after Ruby 3.4 is released1, more people will start expecting libraries to be functional with e.g. the
--enable-frozen-string-literal
option enabled.This PR adds the
frozen_string_literal
header to all files and fixes failing tests.This PR also configures CI to run tests with Ruby versions 3.0 up to 3.3. This in turn means that the
cane
gem had to be removed. It was last updated 6 years ago, and that last change was telling people to start using RuboCop instead (however, I feel such a change is out of scope for this PR).Footnotes
https://github.com/ruby/ruby/commit/12be40ae6be78ac41e8e3f3c313cc6f63e7fa6c4 ↩