-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix docker setup #298
base: master
Are you sure you want to change the base?
Fix docker setup #298
Conversation
bin/bundle-binstub
Outdated
@@ -27,7 +27,7 @@ m = Module.new do | |||
bundler_version = nil | |||
update_index = nil | |||
ARGV.each_with_index do |a, i| | |||
if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN | |||
if update_index && update_index.succ == i && a.match?(Gem::Version::ANCHORED_VERSION_PATTERN) |
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.
[Rubocop] reported by reviewdog 🐶
[Correctable] Style/IfUnlessModifier: Favor modifier if usage when having a single-line body. Another good alternative is the usage of control flow &&/||.
bin/bundle-binstub
Outdated
@@ -47,7 +47,7 @@ | |||
def lockfile | |||
lockfile = | |||
case File.basename(gemfile) | |||
when "gems.rb" then gemfile.sub(/\.rb$/, gemfile) | |||
when "gems.rb" then gemfile.sub(/\.rb$/, ".locked") |
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.
[Rubocop] reported by reviewdog 🐶
[Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
bin/bundle-binstub
Outdated
@@ -47,7 +47,7 @@ | |||
def lockfile | |||
lockfile = | |||
case File.basename(gemfile) | |||
when "gems.rb" then gemfile.sub(/\.rb$/, gemfile) | |||
when "gems.rb" then gemfile.sub(/\.rb$/, ".locked") |
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.
[Rubocop] reported by reviewdog 🐶
[Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
e5fc28e
to
1b9cacd
Compare
No description provided.