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-07-29 21:31:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop-ast (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-rubocop-ast.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-rubocop-ast"

Thu Jul 29 21:31:58 2021 rev:11 rq:909131 version:1.8.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rubocop-ast/rubygem-rubocop-ast.changes  
2021-06-01 10:41:35.649235177 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-rubocop-ast.new.1899/rubygem-rubocop-ast.changes
        2021-07-29 21:33:05.392687879 +0200
@@ -1,0 +2,13 @@
+Thu Jul 29 09:44:17 UTC 2021 - Manuel Schnitzer <mschnit...@suse.com>
+
+- updated to version 1.8.0
+
+  ### New features
+
+  * [#192](https://github.com/rubocop/rubocop-ast/pull/192): Add `branches` 
method for `AST::CaseMatchNode`. ([@koic][])
+
+  ### Changes
+
+  * Escape References in Documentation, partially addressing 
https://github.com/rubocop/rubocop/issues/9150. ([@wcmonty][])
+
+-------------------------------------------------------------------

Old:
----
  rubocop-ast-1.7.0.gem

New:
----
  rubocop-ast-1.8.0.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-rubocop-ast.spec ++++++
--- /var/tmp/diff_new_pack.YaMmfM/_old  2021-07-29 21:33:05.764687421 +0200
+++ /var/tmp/diff_new_pack.YaMmfM/_new  2021-07-29 21:33:05.764687421 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-rubocop-ast
-Version:        1.7.0
+Version:        1.8.0
 Release:        0
 %define mod_name rubocop-ast
 %define mod_full_name %{mod_name}-%{version}

++++++ rubocop-ast-1.7.0.gem -> rubocop-ast-1.8.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/case_match_node.rb 
new/lib/rubocop/ast/node/case_match_node.rb
--- old/lib/rubocop/ast/node/case_match_node.rb 2021-05-28 18:57:48.000000000 
+0200
+++ new/lib/rubocop/ast/node/case_match_node.rb 2021-07-14 15:40:58.000000000 
+0200
@@ -31,6 +31,19 @@
         node_parts[1...-1]
       end
 
+      # Returns an array of all the when branches in the `case` statement.
+      #
+      # @return [Array<Node, nil>] an array of the bodies of the `in` branches
+      # and the `else` (if any). Note that these bodies could be nil.
+      def branches
+        bodies = in_pattern_branches.map(&:body)
+        if else?
+          # `empty-else` node sets nil because it has no body.
+          else_branch.empty_else_type? ? bodies.push(nil) : 
bodies.push(else_branch)
+        end
+        bodies
+      end
+
       # Returns the else branch of the `case` statement, if any.
       #
       # @return [Node] the else branch node of the `case` statement
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   
2021-05-28 18:57:48.000000000 +0200
+++ new/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb   
2021-07-14 15:40:58.000000000 +0200
@@ -347,7 +347,7 @@
           def compile_loop_advance(to = '+=1')
             # The `#{@cur_child_var} ||` is just to avoid unused variable 
warning
             "(#{@cur_child_var} = #{@seq_var}.children[#{@cur_index_var} 
#{to}]; " \
-            "#{@cur_child_var} || true)"
+              "#{@cur_child_var} || true)"
           end
 
           def compile_loop(term)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rubocop/ast/node_pattern/parser.rb 
new/lib/rubocop/ast/node_pattern/parser.rb
--- old/lib/rubocop/ast/node_pattern/parser.rb  2021-05-28 18:57:48.000000000 
+0200
+++ new/lib/rubocop/ast/node_pattern/parser.rb  2021-07-14 15:40:58.000000000 
+0200
@@ -52,7 +52,7 @@
 
           detail = node.loc&.expression&.source || node.to_s
           raise NodePattern::Invalid, 'parse error, expected unary node 
pattern ' \
-            "but got expression matching multiple elements: #{detail}"
+                                      "but got expression matching multiple 
elements: #{detail}"
         end
 
         # Overrides Racc::Parser's method:
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-05-28 18:57:48.000000000 +0200
+++ new/lib/rubocop/ast/version.rb      2021-07-14 15:40:58.000000000 +0200
@@ -3,7 +3,7 @@
 module RuboCop
   module AST
     module Version
-      STRING = '1.7.0'
+      STRING = '1.8.0'
     end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2021-05-28 18:57:48.000000000 +0200
+++ new/metadata        2021-07-14 15:40:58.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: rubocop-ast
 version: !ruby/object:Gem::Version
-  version: 1.7.0
+  version: 1.8.0
 platform: ruby
 authors:
 - Bozhidar Batsov
@@ -10,7 +10,7 @@
 autorequire:
 bindir: bin
 cert_chain: []
-date: 2021-05-28 00:00:00.000000000 Z
+date: 2021-07-14 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: parser

Reply via email to