Skip to content
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

Update rubocop-rspec 2.5.0 → 2.23.0 (minor) #186

Closed
wants to merge 1 commit into from

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented Jul 31, 2023

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ rubocop-rspec (2.5.0 → 2.23.0) · Repo · Changelog

Release Notes

Too many releases to show here. View the full release notes.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

✳️ rubocop (1.22.0 → 1.55.1) · Repo · Changelog

Release Notes

Too many releases to show here. View the full release notes.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ parallel (indirect, 1.21.0 → 1.23.0) · Repo

Commits

See the full diff on Github. The new version differs by 28 commits:

↗️ parser (indirect, 3.0.2.0 → 3.2.2.3) · Repo · Changelog

Release Notes

Too many releases to show here. View the full release notes.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ rainbow (indirect, 3.0.0 → 3.1.1) · Repo · Changelog

Release Notes

3.1.1 (from changelog)

  • fix: Ensure files directive in gemspec adds all files

3.1.0 (from changelog)

  • Bad release: superseded by 3.1.1.
  • added cross_out aka strike
  • hexadecimal color names supported better, see #83
  • gemspec: list files using a Ruby expression, avoiding git

(2020-08-26 was the planned release date, but the real release date is reflected in the heading.)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 29 commits:

↗️ regexp_parser (indirect, 2.1.1 → 2.8.1) · Repo · Changelog

Release Notes

2.8.1 (from changelog)

Fixed

  • support for extpict unicode property, added in Ruby 2.6
  • support for 10 unicode script/block properties added in Ruby 3.2

2.8.0 (from changelog)

Added

  • Regexp::Expression::Shared#ends_at
    • e.g. parse(/a +/x)[0].ends_at # => 3
    • e.g. parse(/a +/x)[0].ends_at(include_quantifier = false) # => 1
  • Regexp::Expression::Shared#{capturing?,comment?}
    • previously only available on capturing and comment groups
  • Regexp::Expression::Shared#{decorative?}
    • true for decorations: comment groups as well as comments and whitespace in x-mode
  • Regexp::Expression::Shared#parent
  • new format argument :original for Regexp::Expression::Base#to_s
    • includes decorative elements between node and its quantifier
    • e.g. parse(/a (?#comment) +/x)[0].to_s(:original) # => "a (?#comment) +"
    • using it is not needed when calling Root#to_s as Root can't be quantified
  • support calling Subexpression#{each_expression,flat_map} with a one-argument block
    • in this case, only the expressions are passed to the block, no indices
  • support calling test methods at Expression class level
    • capturing?, comment?, decorative?, referential?, terminal?
    • e.g. Regexp::Expression::CharacterSet.terminal? # => false

Fixed

  • Regexp::Expression::Shared#full_length with whitespace before quantifier
    • e.g. parse(/a +/x)[0].full_length used to yield 2, now it yields 3
  • Subexpression#to_s output with children with whitespace before their quantifier
    • e.g. parse(/a + /x).to_s used to yield "a+ ", now it yields "a + "
    • calling #to_s on sub-nodes still omits such decorative interludes by default
      • use new #to_s format :original to include it
      • e.g. parse(/a + /x)[0].to_s(:original) # => "a +"
  • fixed Subexpression#te behaving differently from other expressions
    • only Subexpression#te used to include the quantifier
    • now #te is the end index without quantifier, as for other expressions
  • fixed NoMethodError when calling #starts_at or #ts on empty sequences
    • e.g. Regexp::Parser.parse(/|/)[0].starts_at
    • e.g. Regexp::Parser.parse(/[&&]/)[0][0].starts_at
  • fixed nested comment groups breaking local x-options
    • e.g. in /(?x:(?#hello)) /, the x-option wrongly applied to the whitespace
  • fixed nested comment groups breaking conditionals
    • e.g. in /(a)(?(1)b|c(?#hello)d)e/, the 2nd conditional branch included "e"
  • fixed quantifiers after comment groups being mis-assigned to that group
    • e.g. in /a(?#foo){3}/ (matches 'aaa')
  • fixed Scanner accepting two cases of invalid Regexp syntax
    • unmatched closing parentheses ()) and k-backrefs with number 0 (\k<0>)
    • these are a SyntaxError in Ruby, so could only be passed as a String
    • they now raise a Regexp::Scanner::ScannerError
  • fixed some scanner errors not inheriting from Regexp::Scanner::ScannerError
  • reduced verbosity of inspect / pretty print output

2.7.0 (from changelog)

Added

  • Regexp::Lexer.lex now streams tokens when called with a block
    • it can now take arbitrarily large input, just like Regexp::Scanner
    • this also slightly improves Regexp::Parser.parse performance
    • note: Regexp::Parser.parse still does not and will not support streaming
  • improved performance of Subexpression#each_expression
  • minor improvements to Regexp::Scanner performance
  • overall improvement of parse performance: about 10% for large Regexps

Fixed

  • parsing of octal escape sequences in sets, e.g. [\141]

2.6.2 (from changelog)

Fixed

  • fixed SystemStackError when cloning recursive subexpression calls
    • e.g. Regexp::Parser.parse(/a|b\g<0>/).dup

2.6.1 (from changelog)

Fixed

  • fixed scanning of two negative lookbehind edge cases
    • (?<!x)y> used to raise a ScannerError
    • (?<!x>)y used to be misinterpreted as a named group
    • thanks to Sergio Medina for the report

2.6.0 (from changelog)

Fixed

  • fixed #referenced_expression for \g<0> (was nil, is now the Root exp)
  • fixed #reference, #referenced_expression for recursion level backrefs
    • e.g. (a)(b)\k<-1+1>
    • #referenced_expression was nil, now it is the correct Group exp
  • detect and raise for two more syntax errors when parsing String input
    • quantification of option switches (e.g. (?i)+)
    • invalid references (e.g. /\k<1>/)
    • these are a SyntaxError in Ruby, so could only be passed as a String

Added

  • Regexp::Expression::Base#human_name
    • returns a nice, human-readable description of the expression
  • Regexp::Expression::Base#optional?
    • returns true if the expression is quantified accordingly (e.g. with *, {,n})
  • added a deprecation warning when calling #to_re on set members

2.5.0 (from changelog)

Added

  • Regexp::Expression::Base.construct and .token_class methods
    • see the wiki for details

2.4.0 (from changelog)

Fixed

  • fixed interpretation of + and ? after interval quantifiers ({n,n})
    • they used to be treated as reluctant or possessive mode indicators
    • however, Ruby does not support these modes for interval quantifiers
    • they are now treated as chained quantifiers instead, as Ruby does it
    • c.f. #3
  • fixed Expression::Base#nesting_level for some tree rewrite cases
    • e.g. the alternatives in /a|[b]/ had an inconsistent nesting_level
  • fixed Scanner accepting invalid posix classes, e.g. [[:foo:]]
    • they raise a SyntaxError when used in a Regexp, so could only be passed as String
    • they now raise a Regexp::Scanner::ValidationError in the Scanner

Added

  • added Expression::Base#== for (deep) comparison of expressions

  • added Expression::Base#parts

    • returns the text elements and subexpressions of an expression
    • e.g. parse(/(a)/)[0].parts # => ["(", #<Literal @text="a"...>, ")"]
  • added Expression::Base#te (a.k.a. token end index)

    • Expression::Subexpression always had #te, only terminal nodes lacked it so far
  • made some Expression::Base methods available on Quantifier instances, too

    • #type, #type?, #is?, #one_of?, #options, #terminal?
    • #base_length, #full_length, #starts_at, #te, #ts, #offset
    • #conditional_level, #level, #nesting_level , #set_level
    • this allows a more unified handling with Expression::Base instances
  • allowed Quantifier#initialize to take a token and options Hash like other nodes

  • added a deprecation warning for initializing Quantifiers with 4+ arguments:

    Calling Expression::Base#quantify or Quantifier.new with 4+ arguments is deprecated.

    It will no longer be supported in regexp_parser v3.0.0.

    Please pass a Regexp::Token instead, e.g. replace type, text, min, max, mode with ::Regexp::Token.new(:quantifier, type, text). min, max, and mode will be derived automatically.

    This is consistent with how Expression::Base instances are created.

2.3.1 (from changelog)

Fixed

  • removed five inexistent unicode properties from Syntax#features
    • these were never supported by Ruby or the Regexp::Scanner
    • thanks to Markus Schirp for the report

2.3.0 (from changelog)

Added

  • improved parsing performance through Syntax refactoring
    • instead of fresh Syntax instances, pre-loaded constants are now re-used
    • this approximately doubles the parsing speed for simple regexps
  • added methods to Syntax classes to show relative feature sets
    • e.g. Regexp::Syntax::V3_2_0.added_features
  • support for new unicode properties of Ruby 3.2 / Unicode 14.0

2.2.1 (from changelog)

Fixed

  • fixed Syntax version of absence groups ((?~...))
    • the lexer accepted them for any Ruby version
    • now they are only recognized for Ruby >= 2.4.1 in which they were introduced
  • reduced gem size by excluding specs from package
  • removed deprecated test_files gemspec setting
  • no longer depend on yaml/psych (except for Ruby <= 2.4)
  • no longer depend on set
    • set was removed from the stdlib and made a standalone gem as of Ruby 3
    • this made it a hidden/undeclared dependency of regexp_parser

2.2.0 (from changelog)

Added

  • Added support for 13 new unicode properties introduced in Ruby 3.1.0-dev

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ rexml (indirect, 3.2.5 → 3.2.6) · Repo · Changelog

Release Notes

3.2.6

Improvements

  • Required Ruby 2.5 or later explicitly.
    GH-69
    [Patch by Ivo Anjo]

  • Added documentation for maintenance cycle.
    GH-71
    [Patch by Ivo Anjo]

  • Added tutorial.
    GH-77
    GH-78
    [Patch by Burdette Lamar]

  • Improved performance and memory usage.
    GH-94
    [Patch by fatkodima]

  • REXML::Parsers::XPathParser#abbreviate: Added support for
    function arguments.
    GH-95
    [Reported by pulver]

  • REXML::Parsers::XPathParser#abbreviate: Added support for string
    literal that contains double-quote.
    GH-96
    [Patch by pulver]

  • REXML::Parsers::XPathParser#abbreviate: Added missing / to
    :descendant_or_self/:self/:parent.
    GH-97
    [Reported by pulver]

  • REXML::Parsers::XPathParser#abbreviate: Added support for more patterns.
    GH-97
    [Reported by pulver]

Fixes

  • Fixed a typo in NEWS.
    GH-72
    [Patch by Spencer Goodman]

  • Fixed a typo in NEWS.
    GH-75
    [Patch by Andrew Bromwich]

  • Fixed documents.
    GH-87
    [Patch by Alexander Ilyin]

  • Fixed a bug that Attriute convert ' and &apos; even when
    attribute_quote: :quote is used.
    GH-92
    [Reported by Edouard Brière]

  • Fixed links in tutorial.
    GH-99
    [Patch by gemmaro]

Thanks

  • Ivo Anjo

  • Spencer Goodman

  • Andrew Bromwich

  • Burdette Lamar

  • Alexander Ilyin

  • Edouard Brière

  • fatkodima

  • pulver

  • gemmaro

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 25 commits:

↗️ rubocop-ast (indirect, 1.12.0 → 1.29.0) · Repo · Changelog

Release Notes

Too many releases to show here. View the full release notes.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ ruby-progressbar (indirect, 1.11.0 → 1.13.0) · Repo · Changelog

Release Notes

1.13.0 (from changelog)

Add

  • Ability To Allow Different Projectors To Be Used For Time Estimates
  • Concept Of A Projector
  • Ability To Access Progress Bar Instance Using Enumerator Refinement

Remove

  • smoothing Option

Change

  • Issue Caused By Ruby Bug

1.12.0 (from changelog)

Add

  • Ability To Swap Out Running Average Calculators
  • running_average_rate As Configuration Option
  • Wall Clock Time To Completion To The Format Elements

Change

  • Rename Running Average Calculator To Smoothed Average Calculator
  • Rename smoothing To running_average_rate
  • Rename smoothing_factor To rate
  • Allow Timer's Elapsed Seconds To Calculate Even If Not Started

Does any of this look wrong? Please let us know.

↗️ unicode-display_width (indirect, 2.1.0 → 2.4.2) · Repo · Changelog

Release Notes

2.4.2 (from changelog)

More performance improvements:

  • Optimize lookup of first 4096 codepoints
  • Avoid overwrite lookup if no overwrites are set

2.4.1 (from changelog)

  • Improve general performance!
  • Further improve performance for ASCII strings

You should really upgrade - it's much faster now!

2.4.0 (from changelog)

  • Improve performance for ASCII-only strings, by @fatkodima
  • Require Ruby 2.4

2.3.0 (from changelog)

  • Unicode 15.0

2.2.0 (from changelog)

  • Add Hangul Jamo Extended-B block to zero-width chars, thanks @ninjalj #22

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 33 commits:

🆕 json (added, 2.6.3)

🆕 language_server-protocol (added, 3.17.0.3)

🆕 racc (added, 1.7.1)

🆕 rubocop-capybara (added, 2.18.0)

🆕 rubocop-factory_bot (added, 2.23.1)


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu
Copy link
Contributor Author

depfu bot commented Aug 8, 2023

Closed in favor of #188.

@depfu depfu bot closed this Aug 8, 2023
@depfu depfu bot deleted the depfu/update/rubocop-rspec-2.23.0 branch August 8, 2023 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants