Hello community,
here is the log from the commit of package rubygem-rubocop-ast for
openSUSE:Factory checked in at 2020-11-21 12:43:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop-ast (Old)
and /work/SRC/openSUSE:Factory/.rubygem-rubocop-ast.new.5913 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rubocop-ast"
Sat Nov 21 12:43:31 2020 rev:6 rq:849713 version:1.1.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rubocop-ast/rubygem-rubocop-ast.changes
2020-11-03 15:16:45.232050909 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-rubocop-ast.new.5913/rubygem-rubocop-ast.changes
2020-11-23 10:48:56.394509221 +0100
@@ -1,0 +2,11 @@
+Fri Nov 20 16:46:17 UTC 2020 - Dan Čermák <[email protected]>
+
+- New upstream release 1.1.1
+
+## 1.1.1 (2020-11-04)
+
+### Bug fixes
+
+* [#146](https://github.com/rubocop-hq/rubocop-ast/pull/146): Fix
`IfNode#branches` to return both branches when called on ternary conditional.
([@fatkodima][])
+
+-------------------------------------------------------------------
Old:
----
rubocop-ast-1.1.0.gem
New:
----
rubocop-ast-1.1.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-rubocop-ast.spec ++++++
--- /var/tmp/diff_new_pack.c68ZZ7/_old 2020-11-23 10:48:56.882509710 +0100
+++ /var/tmp/diff_new_pack.c68ZZ7/_new 2020-11-23 10:48:56.886509714 +0100
@@ -25,7 +25,7 @@
# of those fields
#
Name: rubygem-rubocop-ast
-Version: 1.1.0
+Version: 1.1.1
Release: 0
Summary: RuboCop tools to deal with Ruby code AST
License: MIT
@@ -53,7 +53,7 @@
-f
# MANUAL
for dir in %{buildroot}%{_libdir}/ruby/gems/* ; do
-%fdupes $dir
+ %fdupes $dir
done
# /MANUAL
++++++ rubocop-ast-1.1.0.gem -> rubocop-ast-1.1.1.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/if_node.rb
new/lib/rubocop/ast/node/if_node.rb
--- old/lib/rubocop/ast/node/if_node.rb 2020-10-27 03:00:50.000000000 +0100
+++ new/lib/rubocop/ast/node/if_node.rb 2020-11-05 00:01:35.000000000 +0100
@@ -145,16 +145,19 @@
#
# @return [Array<Node>] an array of branch nodes
def branches
- branches = [if_branch]
-
- return branches unless else?
-
- other_branches = if elsif_conditional?
- else_branch.branches
- else
- [else_branch]
- end
- branches.concat(other_branches)
+ if ternary?
+ [if_branch, else_branch]
+ elsif !else?
+ [if_branch]
+ else
+ branches = [if_branch]
+ other_branches = if elsif_conditional?
+ else_branch.branches
+ else
+ [else_branch]
+ end
+ branches.concat(other_branches)
+ end
end
# @deprecated Use `branches.each`
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 2020-10-27 03:00:50.000000000 +0100
+++ new/lib/rubocop/ast/traversal.rb 2020-11-05 00:01:35.000000000 +0100
@@ -39,10 +39,10 @@
type, *aliases = type
lineno = caller_locations(1, 1).first.lineno
module_eval(<<~RUBY, __FILE__, lineno) # rubocop:disable
Style/EvalWithLocation
- def on_#{type}(node)
- #{body}
- nil
- end
+ def on_#{type}(node) # def on_send(node)
+ #{body} # # body ...
+ nil # nil
+ end # end
RUBY
aliases.each do |m|
alias_method "on_#{m}", "on_#{type}"
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 2020-10-27 03:00:50.000000000 +0100
+++ new/lib/rubocop/ast/version.rb 2020-11-05 00:01:35.000000000 +0100
@@ -3,7 +3,7 @@
module RuboCop
module AST
module Version
- STRING = '1.1.0'
+ STRING = '1.1.1'
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2020-10-27 03:00:50.000000000 +0100
+++ new/metadata 2020-11-05 00:01:35.000000000 +0100
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: rubocop-ast
version: !ruby/object:Gem::Version
- version: 1.1.0
+ version: 1.1.1
platform: ruby
authors:
- Bozhidar Batsov
@@ -10,7 +10,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2020-10-27 00:00:00.000000000 Z
+date: 2020-11-04 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: parser
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives:
https://lists.opensuse.org/archives/list/[email protected]