Upgrading rubocop 0.65 to 0.66
Review needed0.65.0 → 0.66.0Deprecated2New8Changed3Fixed17Other3
Review neededUpgrade verdict
2 deprecations.
In plain terms
- Add iterator? to deprecated methods and prefer block_given? instead.
- Avoid printing deprecation warnings about constants.
Must act 2 items need code or config changes
Nothing in this upgrade needs a code or configuration change.
Deprecations to plan for
Deprecated2
Add iterator? to deprecated methods and prefer block_given? instead.
iterator?block_given?Avoid printing deprecation warnings about constants.
API changes
Generated by DepDelta from published Ruby source. Not mixed with prose notes.
- added:
class String - added:
method String.blank?() - added:
method String.strip_indent()
- removed:
method Runner.trap_interrupt() - added:
method NodePattern.==(_) - added:
method NodePattern.marshal_dump() - added:
method NodePattern.marshal_load(_) - added:
method NodePattern.match(*) - added:
method NodePattern.to_s() - added:
property NodePattern.pattern: reader
- added:
static method Util.trim_string_interporation_escape_character(_)
- added:
class SafeNavigationWithEmpty < Cop - added:
class ToJSON < Cop - added:
const SafeNavigationWithEmpty.MSG - added:
const ToJSON.MSG - added:
method SafeNavigationWithEmpty.on_if(_) - added:
method ToJSON.autocorrect(_) - added:
method ToJSON.on_def(_)
- changed:
constructor DeprecatedClassMethod(_, _, _) → constructor DeprecatedClassMethod(deprecated:, replacement:, class_constant: …)
- removed:
module AbcSizeCalculator - added:
class AbcSizeCalculator - added:
constructor AbcSizeCalculator(_) - added:
method AbcSizeCalculator.calculate() - added:
method AbcSizeCalculator.evaluate_branch_nodes(_) - added:
method AbcSizeCalculator.node_has_else_branch?(_)
- added:
method TimeZone.autocorrect(_)
- added:
class ConstantVisibility < Cop - added:
const ConstantVisibility.MSG - added:
const NumericLiterals.DELIMITER_REGEXP - added:
const RedundantSelf.KERNEL_METHODS - added:
method ConstantVisibility.on_casgn(_)