Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop-ast for openSUSE:Factory checked in at 2021-05-16 23:40:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop-ast (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop-ast.new.2988 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rubocop-ast" Sun May 16 23:40:26 2021 rev:9 rq:891104 version:1.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-rubocop-ast/rubygem-rubocop-ast.changes 2021-04-08 21:32:46.707847491 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop-ast.new.2988/rubygem-rubocop-ast.changes 2021-05-16 23:40:59.937858348 +0200 @@ -1,0 +2,15 @@ +Thu May 6 16:19:34 UTC 2021 - Dan ??erm??k <dcer...@suse.com> + +## 1.5.0 (2021-05-02) + +### New features + +* [#182](https://github.com/rubocop-hq/rubocop-ast/pull/182): Support `Parser::Ruby31` for Ruby 3.1 parser (experimental). ([@koic][]) + +## 1.4.2 (2021-05-02) + +### Bug fixes + +* [#179](https://github.com/rubocop-hq/rubocop-ast/pull/179): Have `ast_with_comments` distinguish nodes with same content. ([@marcandre][]) + +------------------------------------------------------------------- Old: ---- rubocop-ast-1.4.1.gem New: ---- rubocop-ast-1.5.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-rubocop-ast.spec ++++++ --- /var/tmp/diff_new_pack.pRi5te/_old 2021-05-16 23:41:00.393856649 +0200 +++ /var/tmp/diff_new_pack.pRi5te/_new 2021-05-16 23:41:00.397856633 +0200 @@ -25,7 +25,7 @@ # of those fields # Name: rubygem-rubocop-ast -Version: 1.4.1 +Version: 1.5.0 Release: 0 Summary: RuboCop tools to deal with Ruby code AST License: MIT @@ -33,7 +33,7 @@ URL: https://github.com/rubocop-hq/rubocop-ast Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: gem2rpm.yml -BuildRequires: %{ruby >= 2.4.0} +BuildRequires: %{ruby >= 2.5.0} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 # MANUAL ++++++ rubocop-ast-1.4.1.gem -> rubocop-ast-1.5.0.gem ++++++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/ast/ext/set.rb new/lib/rubocop/ast/ext/set.rb --- old/lib/rubocop/ast/ext/set.rb 2021-01-23 23:46:01.000000000 +0100 +++ new/lib/rubocop/ast/ext/set.rb 1970-01-01 01:00:00.000000000 +0100 @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -test = :foo -case test -when Set[:foo] - # ok, RUBY_VERSION > 2.4 -else - # Harmonize `Set#===` - class Set - alias === include? - end -end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/ast/node/mixin/descendence.rb new/lib/rubocop/ast/node/mixin/descendence.rb --- old/lib/rubocop/ast/node/mixin/descendence.rb 2021-01-23 23:46:01.000000000 +0100 +++ new/lib/rubocop/ast/node/mixin/descendence.rb 2021-05-02 12:42:39.000000000 +0200 @@ -13,13 +13,9 @@ # # @overload each_child_node # Yield all nodes. - # @overload each_child_node(type) - # Yield only nodes matching the type. - # @param [Symbol] type a node type - # @overload each_child_node(type_a, type_b, ...) + # @overload each_child_node(type, ...) # Yield only nodes matching any of the types. - # @param [Symbol] type_a a node type - # @param [Symbol] type_b a node type + # @param [Symbol] type a node type # @yieldparam [Node] node each child node # @return [self] if a block is given # @return [Enumerator] if no block is given diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/ast/node/mixin/method_dispatch_node.rb new/lib/rubocop/ast/node/mixin/method_dispatch_node.rb --- old/lib/rubocop/ast/node/mixin/method_dispatch_node.rb 2021-01-23 23:46:01.000000000 +0100 +++ new/lib/rubocop/ast/node/mixin/method_dispatch_node.rb 2021-05-02 12:42:39.000000000 +0200 @@ -224,6 +224,7 @@ private + # @!method in_macro_scope?(node = self) def_node_matcher :in_macro_scope?, <<~PATTERN { root? # Either a root node, @@ -239,14 +240,17 @@ } PATTERN + # @!method adjacent_def_modifier?(node = self) def_node_matcher :adjacent_def_modifier?, <<~PATTERN (send nil? _ ({def defs} ...)) PATTERN + # @!method bare_access_modifier_declaration?(node = self) def_node_matcher :bare_access_modifier_declaration?, <<~PATTERN (send nil? {:public :protected :private :module_function}) PATTERN + # @!method non_bare_access_modifier_declaration?(node = self) def_node_matcher :non_bare_access_modifier_declaration?, <<~PATTERN (send nil? {:public :protected :private :module_function} _) PATTERN diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/ast/node/send_node.rb new/lib/rubocop/ast/node/send_node.rb --- old/lib/rubocop/ast/node/send_node.rb 2021-01-23 23:46:01.000000000 +0100 +++ new/lib/rubocop/ast/node/send_node.rb 2021-05-02 12:42:39.000000000 +0200 @@ -9,6 +9,7 @@ include ParameterizedNode::RestArguments include MethodDispatchNode + # @!method attribute_accessor?(node = self) def_node_matcher :attribute_accessor?, <<~PATTERN [(send nil? ${:attr_reader :attr_writer :attr_accessor :attr} $...) (_ _ _ _ ...)] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/ast/node.rb new/lib/rubocop/ast/node.rb --- old/lib/rubocop/ast/node.rb 2021-01-23 23:46:01.000000000 +0100 +++ new/lib/rubocop/ast/node.rb 2021-05-02 12:42:39.000000000 +0200 @@ -272,10 +272,12 @@ ## Destructuring + # @!method receiver(node = self) def_node_matcher :receiver, <<~PATTERN {(send $_ ...) ({block numblock} (send $_ ...) ...)} PATTERN + # @!method str_content(node = self) def_node_matcher :str_content, '(str $_)' def const_name @@ -289,6 +291,7 @@ end end + # @!method defined_module0(node = self) def_node_matcher :defined_module0, <<~PATTERN {(class (const $_ $_) ...) (module (const $_ $_) ...) @@ -334,6 +337,7 @@ end # Some cops treat the shovel operator as a kind of assignment. + # @!method assignment_or_similar?(node = self) def_node_matcher :assignment_or_similar?, <<~PATTERN {assignment? (send _recv :<< ...)} PATTERN @@ -469,37 +473,47 @@ node.match_guard_clause? end + # @!method match_guard_clause?(node = self) def_node_matcher :match_guard_clause?, <<~PATTERN [${(send nil? {:raise :fail} ...) return break next} single_line?] PATTERN + # @!method proc?(node = self) def_node_matcher :proc?, <<~PATTERN {(block (send nil? :proc) ...) (block (send #global_const?(:Proc) :new) ...) (send #global_const?(:Proc) :new)} PATTERN + # @!method lambda?(node = self) def_node_matcher :lambda?, '({block numblock} (send nil? :lambda) ...)' + + # @!method lambda_or_proc?(node = self) def_node_matcher :lambda_or_proc?, '{lambda? proc?}' + # @!method global_const?(node = self, name) def_node_matcher :global_const?, '(const {nil? cbase} %1)' + # @!method class_constructor?(node = self) def_node_matcher :class_constructor?, <<~PATTERN { (send #global_const?({:Class :Module :Struct}) :new ...) (block (send #global_const?({:Class :Module :Struct}) :new ...) ...)} PATTERN # @deprecated Use `:class_constructor?` + # @!method struct_constructor?(node = self) def_node_matcher :struct_constructor?, <<~PATTERN (block (send #global_const?(:Struct) :new ...) _ $_) PATTERN + # @!method class_definition?(node = self) def_node_matcher :class_definition?, <<~PATTERN {(class _ _ $_) (sclass _ $_) (block (send #global_const?({:Struct :Class}) :new ...) _ $_)} PATTERN + # @!method module_definition?(node = self) def_node_matcher :module_definition?, <<~PATTERN {(module _ $_) (block (send #global_const?(:Module) :new ...) _ $_)} @@ -633,6 +647,7 @@ end end + # @!method new_class_or_module_block?(node = self) def_node_matcher :new_class_or_module_block?, <<~PATTERN ^(casgn _ _ (block (send (const _ {:Class :Module}) :new) ...)) PATTERN diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/ast/node_pattern.rb new/lib/rubocop/ast/node_pattern.rb --- old/lib/rubocop/ast/node_pattern.rb 2021-01-23 23:46:01.000000000 +0100 +++ new/lib/rubocop/ast/node_pattern.rb 2021-05-02 12:42:39.000000000 +0200 @@ -28,7 +28,7 @@ module Macros # Define a method which applies a pattern to an AST node # - # The new method will return nil if the node does not match + # The new method will return nil if the node does not match. # If the node matches, and a block is provided, the new method will # yield to the block (passing any captures as block arguments). # If the node matches, and no block is provided, the new method will diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/ast/processed_source.rb new/lib/rubocop/ast/processed_source.rb --- old/lib/rubocop/ast/processed_source.rb 2021-01-23 23:46:01.000000000 +0100 +++ new/lib/rubocop/ast/processed_source.rb 2021-05-02 12:42:39.000000000 +0200 @@ -41,7 +41,7 @@ def ast_with_comments return if !ast || !comments - @ast_with_comments ||= Parser::Source::Comment.associate(ast, comments) + @ast_with_comments ||= Parser::Source::Comment.associate_by_identity(ast, comments) end # Returns the source lines, line break characters removed, excluding a @@ -236,6 +236,9 @@ when 2.8, 3.0 require 'parser/ruby30' Parser::Ruby30 + when 3.1 + require 'parser/ruby31' + Parser::Ruby31 else raise ArgumentError, "RuboCop found unknown Ruby version: #{ruby_version.inspect}" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/ast/version.rb new/lib/rubocop/ast/version.rb --- old/lib/rubocop/ast/version.rb 2021-01-23 23:46:01.000000000 +0100 +++ new/lib/rubocop/ast/version.rb 2021-05-02 12:42:39.000000000 +0200 @@ -3,7 +3,7 @@ module RuboCop module AST module Version - STRING = '1.4.1' + STRING = '1.5.0' end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/ast.rb new/lib/rubocop/ast.rb --- old/lib/rubocop/ast.rb 2021-01-23 23:46:01.000000000 +0100 +++ new/lib/rubocop/ast.rb 2021-05-02 12:42:39.000000000 +0200 @@ -6,7 +6,6 @@ require_relative 'ast/ext/range' require_relative 'ast/ext/range_min_max' -require_relative 'ast/ext/set' require_relative 'ast/node_pattern/method_definer' require_relative 'ast/node_pattern' require_relative 'ast/node/mixin/descendence' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2021-01-23 23:46:01.000000000 +0100 +++ new/metadata 2021-05-02 12:42:39.000000000 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: rubocop-ast version: !ruby/object:Gem::Version - version: 1.4.1 + version: 1.5.0 platform: ruby authors: - Bozhidar Batsov @@ -10,7 +10,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2021-01-23 00:00:00.000000000 Z +date: 2021-05-02 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: parser @@ -18,14 +18,14 @@ requirements: - - ">=" - !ruby/object:Gem::Version - version: 2.7.1.5 + version: 3.0.1.1 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version - version: 2.7.1.5 + version: 3.0.1.1 - !ruby/object:Gem::Dependency name: bundler requirement: !ruby/object:Gem::Requirement @@ -61,7 +61,6 @@ - lib/rubocop/ast/builder.rb - lib/rubocop/ast/ext/range.rb - lib/rubocop/ast/ext/range_min_max.rb -- lib/rubocop/ast/ext/set.rb - lib/rubocop/ast/node.rb - lib/rubocop/ast/node/alias_node.rb - lib/rubocop/ast/node/and_node.rb @@ -162,7 +161,7 @@ requirements: - - ">=" - !ruby/object:Gem::Version - version: 2.4.0 + version: 2.5.0 required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - ">="