LocalOrbit / localorbit

Local Orbit is an open source web application and service that empowers food hubs to efficiently sell and distribute local food.
https://localorbit.com
MIT License
16 stars 11 forks source link

[Security] Bump rubocop from 0.26.0 to 0.49.0 #3531

Closed dependabot-preview[bot] closed 4 years ago

dependabot-preview[bot] commented 4 years ago

Bumps rubocop from 0.26.0 to 0.49.0. This update includes a security fix.

Vulnerabilities fixed

Sourced from The Ruby Advisory Database.

RuboCop: insecure use of /tmp RuboCop 0.48.1 and earlier does not use /tmp in safe way, allowing local users to exploit this to tamper with cache files belonging to other users.

Patched versions: >= 0.49.0 Unaffected versions: none

Release notes

Sourced from rubocop's releases.

RuboCop 0.49

New features

  • #117: Add --parallel option for running RuboCop in multiple processes or threads. ([@jonas054][])
  • Add auto-correct support to Style/MixinGrouping. ([@rrosenblum][])
  • #4236: Add new Rails/ApplicationJob and Rails/ApplicationRecord cops. ([@tjwp][])
  • #4078: Add new Performance/Caller cop. ([@alpaca-tc][])
  • #4314: Check slow hash accessing in Array#sort by Performance/CompareWithBlock. ([@pocke][])
  • #3438: Add new Style/FormatStringToken cop. ([@backus][])
  • #4342: Add new Lint/ScriptPermission cop. ([@yhirano55][])
  • #4145: Add new Style/YodaCondition cop. ([@smakagon][])
  • #4403: Add public API Cop.autocorrect_incompatible_with for specifying other cops that should not autocorrect together. ([@backus][])
  • #4354: Add autocorrect to Style/FormatString. ([@hoshinotsuyoshi][])
  • #4021: Add new Style/MultipleComparison cop. ([@dabroz][])
  • New Lint/RescueType cop. ([@rrosenblum][])

Changes

  • #4262: Add new MinSize configuration to Style/SymbolArray, consistent with the same configuration in Style/WordArray. ([@scottmatthewman][])
  • #3400: Remove auto-correct support from Lint/Debugger. ([@ilansh][])
  • #4278: Move all cops dealing with whitespace into a new department called Layout. ([@jonas054][])
  • #4320: Update Rails/OutputSafety to disallow wrapping raw or html_safe with safe_join. ([@klesse413][])
  • #4336: Store rubocop_cache in safer directories. ([@jonas054][])
  • #4361: Use relative path for offense message in Lint/DuplicateMethods. ([@pocke][])
  • #4385: Include .jb file by default. ([@pocke][])

Bug fixes

  • #4265: Require a space before first argument of a method call in Style/SpaceBeforeFirstArg cop. ([@cjlarose][])
  • #4237: Fix false positive in Lint/AmbiguousBlockAssociation cop for lambdas. ([@smakagon][])
  • #4242: Add Capfile to the list of known Ruby filenames. ([@bbatsov][])
  • #4240: Handle ||= in Rails/RelativeDateConstant. ([@bbatsov][])
  • #4241: Prevent Rails/Blank and Rails/Present from breaking when there is no explicit receiver. ([@rrosenblum][])
  • #4249: Handle multiple assignment in Rails/RelativeDateConstant. ([@bbatsov][])
  • #4250: Improve a bit the Ruby code detection config. ([@bbatsov][])
  • #4283: Fix Style/EmptyCaseCondition autocorrect bug - when first when branch includes comma-delimited alternatives. ([@ilansh][])
  • #4268: Handle end-of-line comments when autocorrecting Style/EmptyLinesAroundAccessModifier. ([@vergenzt][])
  • #4275: Prevent Style/MethodCallWithArgsParentheses from blowing up on yield. ([@drenmi][])
  • #3969: Handle multiline method call alignment for arguments to methods. ([@jonas054][])
  • #4304: Allow enabling whole departments when DisabledByDefault is true. ([@jonas054][])
  • #4264: Prevent Rails/SaveBang from blowing up when using the assigned variable in a hash. ([@drenmi][])
  • #4310: Treat paths containing invalid byte sequences as non-matches. ([@mclark][])
  • #4063: Fix Rails/ReversibleMigration misdetection. ([@gprado][])
  • #4339: Fix false positive in Security/Eval cop for multiline string lietral. ([@pocke][])
  • #4339: Fix false negative in Security/Eval cop for Binding#eval. ([@pocke][])
  • #4327: Prevent Layout/SpaceInsidePercentLiteralDelimiters from registering offenses on execute-strings. ([@drenmi][])
  • #4371: Prevent Style/MethodName from complaining about unary operator definitions. ([@drenmi][])
  • #4366: Prevent Performance/RedundantMerge from blowing up on double splat arguments. ([@drenmi][])
  • #4352: Fix the auto-correct of Style/AndOr when Enumerable accessors ([]) are used. ([@rrosenblum][])
  • #4393: Prevent Style/InverseMethods from registering an offense for methods that are double negated. ([@rrosenblum][])
... (truncated)
Changelog

Sourced from rubocop's changelog.

0.49.0 (2017-05-24)

New features

  • #117: Add --parallel option for running RuboCop in multiple processes or threads. ([@jonas054][])
  • Add auto-correct support to Style/MixinGrouping. ([@rrosenblum][])
  • #4236: Add new Rails/ApplicationJob and Rails/ApplicationRecord cops. ([@tjwp][])
  • #4078: Add new Performance/Caller cop. ([@alpaca-tc][])
  • #4314: Check slow hash accessing in Array#sort by Performance/CompareWithBlock. ([@pocke][])
  • #3438: Add new Style/FormatStringToken cop. ([@backus][])
  • #4342: Add new Lint/ScriptPermission cop. ([@yhirano55][])
  • #4145: Add new Style/YodaCondition cop. ([@smakagon][])
  • #4403: Add public API Cop.autocorrect_incompatible_with for specifying other cops that should not autocorrect together. ([@backus][])
  • #4354: Add autocorrect to Style/FormatString. ([@hoshinotsuyoshi][])
  • #4021: Add new Style/MultipleComparison cop. ([@dabroz][])
  • New Lint/RescueType cop. ([@rrosenblum][])
  • #4328: Add --ignore-parent-exclusion flag to ignore AllCops/Exclude inheritance. ([@nelsonjr][])

Changes

  • #4262: Add new MinSize configuration to Style/SymbolArray, consistent with the same configuration in Style/WordArray. ([@scottmatthewman][])
  • #3400: Remove auto-correct support from Lint/Debugger. ([@ilansh][])
  • #4278: Move all cops dealing with whitespace into a new department called Layout. ([@jonas054][])
  • #4320: Update Rails/OutputSafety to disallow wrapping raw or html_safe with safe_join. ([@klesse413][])
  • #4336: Store rubocop_cache in safer directories. ([@jonas054][])
  • #4361: Use relative path for offense message in Lint/DuplicateMethods. ([@pocke][])
  • #4385: Include .jb file by default. ([@pocke][])

Bug fixes

  • #4265: Require a space before first argument of a method call in Style/SpaceBeforeFirstArg cop. ([@cjlarose][])
  • #4237: Fix false positive in Lint/AmbiguousBlockAssociation cop for lambdas. ([@smakagon][])
  • #4242: Add Capfile to the list of known Ruby filenames. ([@bbatsov][])
  • #4240: Handle ||= in Rails/RelativeDateConstant. ([@bbatsov][])
  • #4241: Prevent Rails/Blank and Rails/Present from breaking when there is no explicit receiver. ([@rrosenblum][])
  • #4249: Handle multiple assignment in Rails/RelativeDateConstant. ([@bbatsov][])
  • #4250: Improve a bit the Ruby code detection config. ([@bbatsov][])
  • #4283: Fix Style/EmptyCaseCondition autocorrect bug - when first when branch includes comma-delimited alternatives. ([@ilansh][])
  • #4268: Handle end-of-line comments when autocorrecting Style/EmptyLinesAroundAccessModifier. ([@vergenzt][])
  • #4275: Prevent Style/MethodCallWithArgsParentheses from blowing up on yield. ([@drenmi][])
  • #3969: Handle multiline method call alignment for arguments to methods. ([@jonas054][])
  • #4304: Allow enabling whole departments when DisabledByDefault is true. ([@jonas054][])
  • #4264: Prevent Rails/SaveBang from blowing up when using the assigned variable in a hash. ([@drenmi][])
  • #4310: Treat paths containing invalid byte sequences as non-matches. ([@mclark][])
  • #4063: Fix Rails/ReversibleMigration misdetection. ([@gprado][])
  • #4339: Fix false positive in Security/Eval cop for multiline string lietral. ([@pocke][])
  • #4339: Fix false negative in Security/Eval cop for Binding#eval. ([@pocke][])
  • #4327: Prevent Layout/SpaceInsidePercentLiteralDelimiters from registering offenses on execute-strings. ([@drenmi][])
  • #4371: Prevent Style/MethodName from complaining about unary operator definitions. ([@drenmi][])
  • #4366: Prevent Performance/RedundantMerge from blowing up on double splat arguments. ([@drenmi][])
... (truncated)
Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)