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 2022-05-16 18:08:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop-ast (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop-ast.new.1538 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rubocop-ast" Mon May 16 18:08:36 2022 rev:19 rq:977462 version:1.18.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-rubocop-ast/rubygem-rubocop-ast.changes 2022-04-30 22:53:01.748264134 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop-ast.new.1538/rubygem-rubocop-ast.changes 2022-05-16 18:11:04.061399856 +0200 @@ -1,0 +2,9 @@ +Mon May 16 07:56:26 UTC 2022 - Manuel Schnitzer <mschnit...@suse.com> + +- updated to version 1.18.0 + + ### New features + + * [#233](https://github.com/rubocop-hq/rubocop-ast/pull/233): Make parse from Ruby 1.9 to 2.3 available. ([@koic][]) + +------------------------------------------------------------------- Old: ---- rubocop-ast-1.17.0.gem New: ---- rubocop-ast-1.18.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-rubocop-ast.spec ++++++ --- /var/tmp/diff_new_pack.qvtlJA/_old 2022-05-16 18:11:04.525400225 +0200 +++ /var/tmp/diff_new_pack.qvtlJA/_new 2022-05-16 18:11:04.533400232 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-rubocop-ast -Version: 1.17.0 +Version: 1.18.0 Release: 0 %define mod_name rubocop-ast %define mod_full_name %{mod_name}-%{version} @@ -32,7 +32,7 @@ BuildRequires: fdupes # /MANUAL BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{ruby >= 2.5.0} +BuildRequires: %{ruby >= 2.6.0} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 URL: https://github.com/rubocop/rubocop-ast ++++++ rubocop-ast-1.17.0.gem -> rubocop-ast-1.18.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/node/mixin/parameterized_node.rb new/lib/rubocop/ast/node/mixin/parameterized_node.rb --- old/lib/rubocop/ast/node/mixin/parameterized_node.rb 2022-04-09 11:20:37.000000000 +0200 +++ new/lib/rubocop/ast/node/mixin/parameterized_node.rb 2022-05-13 19:13:22.000000000 +0200 @@ -84,7 +84,7 @@ include ParameterizedNode # @return [Array<Node>] arguments, if any def arguments - children[first_argument_index..-1].freeze + children[first_argument_index..].freeze end # A shorthand for getting the first argument of the node. 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 2022-04-09 11:20:37.000000000 +0200 +++ new/lib/rubocop/ast/node.rb 2022-05-13 19:13:22.000000000 +0200 @@ -194,7 +194,7 @@ def right_siblings return [].freeze unless parent - parent.children[sibling_index + 1..-1].freeze + parent.children[sibling_index + 1..].freeze end # Common destructuring method. This can be used to normalize diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb new/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb --- old/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb 2022-04-09 11:20:37.000000000 +0200 +++ new/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb 2022-05-13 19:13:22.000000000 +0200 @@ -371,13 +371,13 @@ # @return [Hash] of {subcompiler => code} def compile_union_forks - compiler.each_union(node.children).map do |child| + compiler.each_union(node.children).to_h do |child| subsequence_terms = child.is_a?(Node::Subsequence) ? child.children : [child] fork = dup code = fork.compile_terms(subsequence_terms, @remaining_arity) @in_sync = false if @cur_index != :variadic_mode [fork, code] - end.to_h # we could avoid map if RUBY_VERSION >= 2.6... + end end # Modifies in place `forks` to insure that `cur_{child|index}_var` are ok diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/ast/node_pattern/node.rb new/lib/rubocop/ast/node_pattern/node.rb --- old/lib/rubocop/ast/node_pattern/node.rb 2022-04-09 11:20:37.000000000 +0200 +++ new/lib/rubocop/ast/node_pattern/node.rb 2022-05-13 19:13:22.000000000 +0200 @@ -116,7 +116,7 @@ def initialize(type, children = [], properties = {}) if (replace = children.first.in_sequence_head) - children = [*replace, *children[1..-1]] + children = [*replace, *children[1..]] end super @@ -130,7 +130,7 @@ end def arg_list - children[1..-1] + children[1..] end end FunctionCall = Predicate @@ -212,7 +212,7 @@ return unless (replace = children.first.in_sequence_head) - [with(children: [*replace, *children[1..-1]])] + [with(children: [*replace, *children[1..]])] end end 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 2022-04-09 11:20:37.000000000 +0200 +++ new/lib/rubocop/ast/processed_source.rb 2022-05-13 19:13:22.000000000 +0200 @@ -226,9 +226,24 @@ [ast, comments, tokens] end - # rubocop:disable Metrics/CyclomaticComplexity, Metrics/MethodLength + # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/MethodLength def parser_class(ruby_version) case ruby_version + when 1.9 + require 'parser/ruby19' + Parser::Ruby19 + when 2.0 + require 'parser/ruby20' + Parser::Ruby20 + when 2.1 + require 'parser/ruby21' + Parser::Ruby21 + when 2.2 + require 'parser/ruby22' + Parser::Ruby22 + when 2.3 + require 'parser/ruby23' + Parser::Ruby23 when 2.4 require 'parser/ruby24' Parser::Ruby24 @@ -255,7 +270,7 @@ "RuboCop found unknown Ruby version: #{ruby_version.inspect}" end end - # rubocop:enable Metrics/CyclomaticComplexity, Metrics/MethodLength + # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/MethodLength def create_parser(ruby_version) builder = RuboCop::AST::Builder.new diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/ast/traversal.rb new/lib/rubocop/ast/traversal.rb --- old/lib/rubocop/ast/traversal.rb 2022-04-09 11:20:37.000000000 +0200 +++ new/lib/rubocop/ast/traversal.rb 2022-05-13 19:13:22.000000000 +0200 @@ -34,7 +34,7 @@ def def_callback(type, *signature, arity: signature.size..signature.size, - arity_check: ENV['RUBOCOP_DEBUG'] && self.arity_check(arity), + arity_check: ENV.fetch('RUBOCOP_DEBUG', nil) && self.arity_check(arity), body: self.body(signature, arity_check)) type, *aliases = type lineno = caller_locations(1, 1).first.lineno @@ -162,7 +162,7 @@ ### generic processing of any other node (forward compatibility) defined = instance_methods(false) .grep(/^on_/) - .map { |s| s.to_s[3..-1].to_sym } # :on_foo => :foo + .map { |s| s.to_s[3..].to_sym } # :on_foo => :foo to_define = ::Parser::Meta::NODE_TYPES.to_a to_define -= defined 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 2022-04-09 11:20:37.000000000 +0200 +++ new/lib/rubocop/ast/version.rb 2022-05-13 19:13:22.000000000 +0200 @@ -3,7 +3,7 @@ module RuboCop module AST module Version - STRING = '1.17.0' + STRING = '1.18.0' end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2022-04-09 11:20:37.000000000 +0200 +++ new/metadata 2022-05-13 19:13:22.000000000 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: rubocop-ast version: !ruby/object:Gem::Version - version: 1.17.0 + version: 1.18.0 platform: ruby authors: - Bozhidar Batsov @@ -10,7 +10,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2022-04-09 00:00:00.000000000 Z +date: 2022-05-13 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: parser @@ -168,7 +168,7 @@ requirements: - - ">=" - !ruby/object:Gem::Version - version: 2.5.0 + version: 2.6.0 required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - ">="