Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-regexp_parser for openSUSE:Factory checked in at 2024-02-26 19:49:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-regexp_parser (Old) and /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.1770 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-regexp_parser" Mon Feb 26 19:49:06 2024 rev:14 rq:1151747 version:2.9.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-regexp_parser/rubygem-regexp_parser.changes 2023-11-15 21:09:25.866120258 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.1770/rubygem-regexp_parser.changes 2024-02-26 19:50:19.688618092 +0100 @@ -1,0 +2,5 @@ +Mon Jan 29 14:27:55 UTC 2024 - Dan Äermák <dan.cer...@posteo.net> + +- New upstream release 2.9.0, no changelog found + +------------------------------------------------------------------- Old: ---- regexp_parser-2.8.2.gem New: ---- regexp_parser-2.9.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-regexp_parser.spec ++++++ --- /var/tmp/diff_new_pack.03O9dw/_old 2024-02-26 19:50:20.436645134 +0100 +++ /var/tmp/diff_new_pack.03O9dw/_new 2024-02-26 19:50:20.436645134 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-regexp_parser # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-regexp_parser -Version: 2.8.2 +Version: 2.9.0 Release: 0 %define mod_name regexp_parser %define mod_full_name %{mod_name}-%{version} ++++++ regexp_parser-2.8.2.gem -> regexp_parser-2.9.0.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile --- old/Gemfile 2023-10-10 18:49:15.000000000 +0200 +++ new/Gemfile 2024-01-07 11:47:49.000000000 +0100 @@ -3,13 +3,13 @@ gemspec group :development, :test do - gem 'leto', '~> 2.0' - gem 'rake', '~> 13.0' - gem 'regexp_property_values', '~> 1.4' + gem 'leto', '~> 2.1' + gem 'rake', '~> 13.1' + gem 'regexp_property_values', '~> 1.5' gem 'rspec', '~> 3.10' if RUBY_VERSION.to_f >= 2.7 gem 'benchmark-ips', '~> 2.1' gem 'gouteur', '~> 1.1' - gem 'rubocop', '~> 1.7' + gem 'rubocop', '~> 1.59' end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/LICENSE new/LICENSE --- old/LICENSE 2023-10-10 18:49:15.000000000 +0200 +++ new/LICENSE 2024-01-07 11:47:49.000000000 +0100 @@ -1,4 +1,4 @@ -Copyright (c) 2010, 2012-2023, Ammar Ali +Copyright (c) 2010, 2012-2024, Ammar Ali Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/regexp_parser/expression/classes/character_set.rb new/lib/regexp_parser/expression/classes/character_set.rb --- old/lib/regexp_parser/expression/classes/character_set.rb 2023-10-10 18:49:15.000000000 +0200 +++ new/lib/regexp_parser/expression/classes/character_set.rb 2024-01-07 11:47:49.000000000 +0100 @@ -1,10 +1,7 @@ module Regexp::Expression class CharacterSet < Regexp::Expression::Subexpression attr_accessor :closed, :negative - - alias :negative? :negative - alias :negated? :negative - alias :closed? :closed + alias :closed? :closed def initialize(token, options = {}) self.negative = false diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/regexp_parser/expression/classes/posix_class.rb new/lib/regexp_parser/expression/classes/posix_class.rb --- old/lib/regexp_parser/expression/classes/posix_class.rb 2023-10-10 18:49:15.000000000 +0200 +++ new/lib/regexp_parser/expression/classes/posix_class.rb 2024-01-07 11:47:49.000000000 +0100 @@ -1,9 +1,5 @@ module Regexp::Expression class PosixClass < Regexp::Expression::Base - def negative? - type == :nonposixclass - end - def name text[/\w+/] end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/regexp_parser/expression/classes/unicode_property.rb new/lib/regexp_parser/expression/classes/unicode_property.rb --- old/lib/regexp_parser/expression/classes/unicode_property.rb 2023-10-10 18:49:15.000000000 +0200 +++ new/lib/regexp_parser/expression/classes/unicode_property.rb 2024-01-07 11:47:49.000000000 +0100 @@ -1,10 +1,6 @@ module Regexp::Expression module UnicodeProperty class Base < Regexp::Expression::Base - def negative? - type == :nonproperty - end - def name text[/\A\\[pP]\{([^}]+)\}\z/, 1] end @@ -109,11 +105,12 @@ class Unassigned < Codepoint::Base; end end - class Age < UnicodeProperty::Base; end - class Derived < UnicodeProperty::Base; end - class Emoji < UnicodeProperty::Base; end - class Script < UnicodeProperty::Base; end - class Block < UnicodeProperty::Base; end + class Age < UnicodeProperty::Base; end + class Block < UnicodeProperty::Base; end + class Derived < UnicodeProperty::Base; end + class Emoji < UnicodeProperty::Base; end + class Enumerated < UnicodeProperty::Base; end + class Script < UnicodeProperty::Base; end end # alias for symmetry between token symbol and Expression class name diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/regexp_parser/expression/methods/negative.rb new/lib/regexp_parser/expression/methods/negative.rb --- old/lib/regexp_parser/expression/methods/negative.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/lib/regexp_parser/expression/methods/negative.rb 2024-01-07 11:47:49.000000000 +0100 @@ -0,0 +1,20 @@ +module Regexp::Expression + module Shared + def negative? + false + end + + # not an alias so as to respect overrides of #negative? + def negated? + negative? + end + end + + Anchor::NonWordBoundary.class_eval { def negative?; true end } + Assertion::NegativeLookahead.class_eval { def negative?; true end } + Assertion::NegativeLookbehind.class_eval { def negative?; true end } + CharacterSet.class_eval { def negative?; negative end } + CharacterType::Base.class_eval { def negative?; token.to_s.start_with?('non') end } + PosixClass.class_eval { def negative?; type == :nonposixclass end } + UnicodeProperty::Base.class_eval { def negative?; type == :nonproperty end } +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/regexp_parser/expression.rb new/lib/regexp_parser/expression.rb --- old/lib/regexp_parser/expression.rb 2023-10-10 18:49:15.000000000 +0200 +++ new/lib/regexp_parser/expression.rb 2024-01-07 11:47:49.000000000 +0100 @@ -28,6 +28,7 @@ require 'regexp_parser/expression/methods/human_name' require 'regexp_parser/expression/methods/match' require 'regexp_parser/expression/methods/match_length' +require 'regexp_parser/expression/methods/negative' require 'regexp_parser/expression/methods/options' require 'regexp_parser/expression/methods/parts' require 'regexp_parser/expression/methods/printing' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/regexp_parser/parser.rb new/lib/regexp_parser/parser.rb --- old/lib/regexp_parser/parser.rb 2023-10-10 18:49:15.000000000 +0200 +++ new/lib/regexp_parser/parser.rb 2024-01-07 11:47:49.000000000 +0100 @@ -467,6 +467,7 @@ when *UPTokens::Age; node << UP::Age.new(token, active_opts) when *UPTokens::Derived; node << UP::Derived.new(token, active_opts) when *UPTokens::Emoji; node << UP::Emoji.new(token, active_opts) + when *UPTokens::Enumerated; node << UP::Enumerated.new(token, active_opts) when *UPTokens::Script; node << UP::Script.new(token, active_opts) when *UPTokens::UnicodeBlock; node << UP::Block.new(token, active_opts) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/regexp_parser/scanner/properties/long.csv new/lib/regexp_parser/scanner/properties/long.csv --- old/lib/regexp_parser/scanner/properties/long.csv 2023-10-10 18:49:15.000000000 +0200 +++ new/lib/regexp_parser/scanner/properties/long.csv 2024-01-07 11:47:49.000000000 +0100 @@ -8,6 +8,7 @@ age=13.0,age=13.0 age=14.0,age=14.0 age=15.0,age=15.0 +age=15.1,age=15.1 age=2.0,age=2.0 age=2.1,age=2.1 age=3.0,age=3.0 @@ -108,6 +109,19 @@ grantha,grantha graph,graph graphemebase,grapheme_base +graphemeclusterbreak=control,grapheme_cluster_break=control +graphemeclusterbreak=cr,grapheme_cluster_break=cr +graphemeclusterbreak=extend,grapheme_cluster_break=extend +graphemeclusterbreak=l,grapheme_cluster_break=l +graphemeclusterbreak=lf,grapheme_cluster_break=lf +graphemeclusterbreak=lv,grapheme_cluster_break=lv +graphemeclusterbreak=lvt,grapheme_cluster_break=lvt +graphemeclusterbreak=prepend,grapheme_cluster_break=prepend +graphemeclusterbreak=regionalindicator,grapheme_cluster_break=regional_indicator +graphemeclusterbreak=spacingmark,grapheme_cluster_break=spacingmark +graphemeclusterbreak=t,grapheme_cluster_break=t +graphemeclusterbreak=v,grapheme_cluster_break=v +graphemeclusterbreak=zwj,grapheme_cluster_break=zwj graphemeextend,grapheme_extend graphemelink,grapheme_link greek,greek @@ -123,11 +137,14 @@ hexdigit,hex_digit hiragana,hiragana hyphen,hyphen +idcompatmathcontinue,id_compat_math_continue +idcompatmathstart,id_compat_math_start idcontinue,id_continue ideographic,ideographic idsbinaryoperator,ids_binary_operator idstart,id_start idstrinaryoperator,ids_trinary_operator +idsunaryoperator,ids_unary_operator imperialaramaic,imperial_aramaic inadlam,in_adlam inaegeannumbers,in_aegean_numbers @@ -190,6 +207,7 @@ incjkunifiedideographsextensionf,in_cjk_unified_ideographs_extension_f incjkunifiedideographsextensiong,in_cjk_unified_ideographs_extension_g incjkunifiedideographsextensionh,in_cjk_unified_ideographs_extension_h +incjkunifiedideographsextensioni,in_cjk_unified_ideographs_extension_i incombiningdiacriticalmarks,in_combining_diacritical_marks incombiningdiacriticalmarksextended,in_combining_diacritical_marks_extended incombiningdiacriticalmarksforsymbols,in_combining_diacritical_marks_for_symbols diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/regexp_parser/scanner/properties/short.csv new/lib/regexp_parser/scanner/properties/short.csv --- old/lib/regexp_parser/scanner/properties/short.csv 2023-10-10 18:49:15.000000000 +0200 +++ new/lib/regexp_parser/scanner/properties/short.csv 2024-01-07 11:47:49.000000000 +0100 @@ -86,6 +86,7 @@ ids,id_start idsb,ids_binary_operator idst,ids_trinary_operator +idsu,ids_unary_operator ital,old_italic java,javanese joinc,join_control diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/regexp_parser/scanner/scanner.rl new/lib/regexp_parser/scanner/scanner.rl --- old/lib/regexp_parser/scanner/scanner.rl 2023-10-10 18:49:15.000000000 +0200 +++ new/lib/regexp_parser/scanner/scanner.rl 2024-01-07 11:47:49.000000000 +0100 @@ -364,6 +364,7 @@ conditional_expression := |* group_lookup . ')' { text = copy(data, ts, te-1) + text =~ /[^0]/ or raise ValidationError.for(:backref, 'condition', 'invalid ref ID') emit(:conditional, :condition, text) emit(:conditional, :condition_close, ')') }; @@ -541,13 +542,13 @@ case text = copy(data, ts, te) when /^\\k(.)[^0-9\-][^+\-]*['>]$/ emit(:backref, $1 == '<' ? :name_ref_ab : :name_ref_sq, text) - when /^\\k(.)[1-9]\d*['>]$/ + when /^\\k(.)0*[1-9]\d*['>]$/ emit(:backref, $1 == '<' ? :number_ref_ab : :number_ref_sq, text) - when /^\\k(.)-[1-9]\d*['>]$/ + when /^\\k(.)-0*[1-9]\d*['>]$/ emit(:backref, $1 == '<' ? :number_rel_ref_ab : :number_rel_ref_sq, text) when /^\\k(.)[^0-9\-].*[+\-]\d+['>]$/ emit(:backref, $1 == '<' ? :name_recursion_ref_ab : :name_recursion_ref_sq, text) - when /^\\k(.)-?[1-9]\d*[+\-]\d+['>]$/ + when /^\\k(.)-?0*[1-9]\d*[+\-]\d+['>]$/ emit(:backref, $1 == '<' ? :number_recursion_ref_ab : :number_recursion_ref_sq, text) else raise ValidationError.for(:backref, 'backreference', 'invalid ref ID') @@ -560,9 +561,9 @@ case text = copy(data, ts, te) when /^\\g(.)[^0-9+\-].*['>]$/ emit(:backref, $1 == '<' ? :name_call_ab : :name_call_sq, text) - when /^\\g(.)\d+['>]$/ + when /^\\g(.)(?:0|0*[1-9]\d*)['>]$/ emit(:backref, $1 == '<' ? :number_call_ab : :number_call_sq, text) - when /^\\g(.)[+-]\d+/ + when /^\\g(.)[+-]0*[1-9]\d*/ emit(:backref, $1 == '<' ? :number_rel_call_ab : :number_rel_call_sq, text) else raise ValidationError.for(:backref, 'subexpression call', 'invalid ref ID') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/regexp_parser/scanner.rb new/lib/regexp_parser/scanner.rb --- old/lib/regexp_parser/scanner.rb 2023-10-10 18:49:15.000000000 +0200 +++ new/lib/regexp_parser/scanner.rb 2024-01-07 11:47:49.000000000 +0100 @@ -1570,6 +1570,7 @@ te = p+1 begin text = copy(data, ts, te-1) + text =~ /[^0]/ or raise ValidationError.for(:backref, 'condition', 'invalid ref ID') emit(:conditional, :condition, text) emit(:conditional, :condition_close, ')') end @@ -1750,13 +1751,13 @@ case text = copy(data, ts, te) when /^\\k(.)[^0-9\-][^+\-]*['>]$/ emit(:backref, $1 == '<' ? :name_ref_ab : :name_ref_sq, text) - when /^\\k(.)[1-9]\d*['>]$/ + when /^\\k(.)0*[1-9]\d*['>]$/ emit(:backref, $1 == '<' ? :number_ref_ab : :number_ref_sq, text) - when /^\\k(.)-[1-9]\d*['>]$/ + when /^\\k(.)-0*[1-9]\d*['>]$/ emit(:backref, $1 == '<' ? :number_rel_ref_ab : :number_rel_ref_sq, text) when /^\\k(.)[^0-9\-].*[+\-]\d+['>]$/ emit(:backref, $1 == '<' ? :name_recursion_ref_ab : :name_recursion_ref_sq, text) - when /^\\k(.)-?[1-9]\d*[+\-]\d+['>]$/ + when /^\\k(.)-?0*[1-9]\d*[+\-]\d+['>]$/ emit(:backref, $1 == '<' ? :number_recursion_ref_ab : :number_recursion_ref_sq, text) else raise ValidationError.for(:backref, 'backreference', 'invalid ref ID') @@ -1770,9 +1771,9 @@ case text = copy(data, ts, te) when /^\\g(.)[^0-9+\-].*['>]$/ emit(:backref, $1 == '<' ? :name_call_ab : :name_call_sq, text) - when /^\\g(.)\d+['>]$/ + when /^\\g(.)(?:0|0*[1-9]\d*)['>]$/ emit(:backref, $1 == '<' ? :number_call_ab : :number_call_sq, text) - when /^\\g(.)[+-]\d+/ + when /^\\g(.)[+-]0*[1-9]\d*/ emit(:backref, $1 == '<' ? :number_rel_call_ab : :number_rel_call_sq, text) else raise ValidationError.for(:backref, 'subexpression call', 'invalid ref ID') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/regexp_parser/syntax/token/unicode_property.rb new/lib/regexp_parser/syntax/token/unicode_property.rb --- old/lib/regexp_parser/syntax/token/unicode_property.rb 2023-10-10 18:49:15.000000000 +0200 +++ new/lib/regexp_parser/syntax/token/unicode_property.rb 2024-01-07 11:47:49.000000000 +0100 @@ -703,6 +703,24 @@ extended_pictographic ] + Enumerated_V2_4_0 = %i[ + grapheme_cluster_break=control + grapheme_cluster_break=cr + grapheme_cluster_break=extend + grapheme_cluster_break=l + grapheme_cluster_break=lf + grapheme_cluster_break=lv + grapheme_cluster_break=lvt + grapheme_cluster_break=prepend + grapheme_cluster_break=regional_indicator + grapheme_cluster_break=spacingmark + grapheme_cluster_break=t + grapheme_cluster_break=v + grapheme_cluster_break=zwj + ] + + Enumerated = all[:Enumerated_V] + Emoji = all[:Emoji_V] V1_9_0 = Category::All + POSIX + all[:V1_9_0] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/regexp_parser/version.rb new/lib/regexp_parser/version.rb --- old/lib/regexp_parser/version.rb 2023-10-10 18:49:15.000000000 +0200 +++ new/lib/regexp_parser/version.rb 2024-01-07 11:47:49.000000000 +0100 @@ -1,5 +1,5 @@ class Regexp class Parser - VERSION = '2.8.2' + VERSION = '2.9.0' end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2023-10-10 18:49:15.000000000 +0200 +++ new/metadata 2024-01-07 11:47:49.000000000 +0100 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: regexp_parser version: !ruby/object:Gem::Version - version: 2.8.2 + version: 2.9.0 platform: ruby authors: - Ammar Ali @@ -9,7 +9,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2023-10-10 00:00:00.000000000 Z +date: 2024-01-07 00:00:00.000000000 Z dependencies: [] description: A library for tokenizing, lexing, and parsing Ruby regular expressions. email: @@ -46,6 +46,7 @@ - lib/regexp_parser/expression/methods/human_name.rb - lib/regexp_parser/expression/methods/match.rb - lib/regexp_parser/expression/methods/match_length.rb +- lib/regexp_parser/expression/methods/negative.rb - lib/regexp_parser/expression/methods/options.rb - lib/regexp_parser/expression/methods/parts.rb - lib/regexp_parser/expression/methods/printing.rb