From 2fa5b916ccfcc31c47563775ad43ef506f25f07b Mon Sep 17 00:00:00 2001 From: taca Date: Wed, 24 Aug 2022 16:31:03 +0000 Subject: devel/ruby-regexp_parser: update to 2.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [2.5.0] - 2022-05-27 - Janosch Müller Added * Regexp::Expression::Base.construct and .token_class methods o see the wiki for details [2.4.0] - 2022-05-09 - Janosch Müller Fixed * fixed interpretation of + and ? after interval quantifiers ({n,n}) - they used to be treated as reluctant or possessive mode indicators - however, Ruby does not support these modes for interval quantifiers - they are now treated as chained quantifiers instead, as Ruby does it - c.f. #3 * fixed Expression::Base#nesting_level for some tree rewrite cases - e.g. the alternatives in /a|[b]/ had an inconsistent nesting_level * fixed Scanner accepting invalid posix classes, e.g. [[:foo:]] - they raise a SyntaxError when used in a Regexp, so could only be passed as String - they now raise a Regexp::Scanner::ValidationError in the Scanner Added * added Expression::Base#== for (deep) comparison of expressions * added Expression::Base#parts - returns the text elements and subexpressions of an expression - e.g. parse(/(a)/)[0].parts # => ["(", #, ")"] * added Expression::Base#te (a.k.a. token end index) - Expression::Subexpression always had #te, only terminal nodes lacked it so far * made some Expression::Base methods available on Quantifier instances, too - #type, #type?, #is?, #one_of?, #options, #terminal? - #base_length, #full_length, #starts_at, #te, #ts, #offset - #conditional_level, #level, #nesting_level , #set_level - this allows a more unified handling with Expression::Base instances * allowed Quantifier#initialize to take a token and options Hash like other nodes * added a deprecation warning for initializing Quantifiers with 4+ arguments: Calling Expression::Base#quantify or Quantifier.new with 4+ arguments is deprecated. It will no longer be supported in regexp_parser v3.0.0. Please pass a Regexp::Token instead, e.g. replace token, text, min, max, mode with ::Regexp::Token.new(:quantifier, token, text). min, max, and mode will be derived automatically. Or do exp.quantifier = Quantifier.construct(token: token, text: str). This is consistent with how Expression::Base instances are created. [2.3.1] - 2022-04-24 - Janosch Müller Fixed * removed five inexistent unicode properties from Syntax#features - these were never supported by Ruby or the Regexp::Scanner - thanks to Markus Schirp for the report [2.3.0] - 2022-04-08 - Janosch Müller Added * improved parsing performance through Syntax refactoring - instead of fresh Syntax instances, pre-loaded constants are now re-used - this approximately doubles the parsing speed for simple regexps * added methods to Syntax classes to show relative feature sets - e.g. Regexp::Syntax::V3_2_0.added_features * support for new unicode properties of Ruby 3.2 / Unicode 14.0 --- devel/ruby-regexp_parser/Makefile | 4 ++-- devel/ruby-regexp_parser/PLIST | 9 ++++++--- devel/ruby-regexp_parser/distinfo | 8 ++++---- 3 files changed, 12 insertions(+), 9 deletions(-) (limited to 'devel') diff --git a/devel/ruby-regexp_parser/Makefile b/devel/ruby-regexp_parser/Makefile index fabab57dfaa..ed62af3a7c6 100644 --- a/devel/ruby-regexp_parser/Makefile +++ b/devel/ruby-regexp_parser/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.8 2022/02/13 07:16:46 taca Exp $ +# $NetBSD: Makefile,v 1.9 2022/08/24 16:31:03 taca Exp $ -DISTNAME= regexp_parser-2.2.1 +DISTNAME= regexp_parser-2.5.0 CATEGORIES= devel MAINTAINER= pkgsrc-users@NetBSD.org diff --git a/devel/ruby-regexp_parser/PLIST b/devel/ruby-regexp_parser/PLIST index c9128263ff0..17cf8000481 100644 --- a/devel/ruby-regexp_parser/PLIST +++ b/devel/ruby-regexp_parser/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.7 2022/02/13 07:16:46 taca Exp $ +@comment $NetBSD: PLIST,v 1.8 2022/08/24 16:31:03 taca Exp $ ${GEM_HOME}/cache/${GEM_NAME}.gem ${GEM_LIBDIR}/CHANGELOG.md ${GEM_LIBDIR}/Gemfile @@ -15,6 +15,7 @@ ${GEM_LIBDIR}/lib/regexp_parser/expression/classes/backreference.rb ${GEM_LIBDIR}/lib/regexp_parser/expression/classes/character_set.rb ${GEM_LIBDIR}/lib/regexp_parser/expression/classes/character_set/intersection.rb ${GEM_LIBDIR}/lib/regexp_parser/expression/classes/character_set/range.rb +${GEM_LIBDIR}/lib/regexp_parser/expression/classes/character_type.rb ${GEM_LIBDIR}/lib/regexp_parser/expression/classes/conditional.rb ${GEM_LIBDIR}/lib/regexp_parser/expression/classes/escape_sequence.rb ${GEM_LIBDIR}/lib/regexp_parser/expression/classes/free_space.rb @@ -22,9 +23,9 @@ ${GEM_LIBDIR}/lib/regexp_parser/expression/classes/group.rb ${GEM_LIBDIR}/lib/regexp_parser/expression/classes/keep.rb ${GEM_LIBDIR}/lib/regexp_parser/expression/classes/literal.rb ${GEM_LIBDIR}/lib/regexp_parser/expression/classes/posix_class.rb -${GEM_LIBDIR}/lib/regexp_parser/expression/classes/property.rb ${GEM_LIBDIR}/lib/regexp_parser/expression/classes/root.rb -${GEM_LIBDIR}/lib/regexp_parser/expression/classes/type.rb +${GEM_LIBDIR}/lib/regexp_parser/expression/classes/unicode_property.rb +${GEM_LIBDIR}/lib/regexp_parser/expression/methods/construct.rb ${GEM_LIBDIR}/lib/regexp_parser/expression/methods/match.rb ${GEM_LIBDIR}/lib/regexp_parser/expression/methods/match_length.rb ${GEM_LIBDIR}/lib/regexp_parser/expression/methods/options.rb @@ -34,6 +35,7 @@ ${GEM_LIBDIR}/lib/regexp_parser/expression/methods/traverse.rb ${GEM_LIBDIR}/lib/regexp_parser/expression/quantifier.rb ${GEM_LIBDIR}/lib/regexp_parser/expression/sequence.rb ${GEM_LIBDIR}/lib/regexp_parser/expression/sequence_operation.rb +${GEM_LIBDIR}/lib/regexp_parser/expression/shared.rb ${GEM_LIBDIR}/lib/regexp_parser/expression/subexpression.rb ${GEM_LIBDIR}/lib/regexp_parser/lexer.rb ${GEM_LIBDIR}/lib/regexp_parser/parser.rb @@ -75,6 +77,7 @@ ${GEM_LIBDIR}/lib/regexp_parser/syntax/versions/2.6.0.rb ${GEM_LIBDIR}/lib/regexp_parser/syntax/versions/2.6.2.rb ${GEM_LIBDIR}/lib/regexp_parser/syntax/versions/2.6.3.rb ${GEM_LIBDIR}/lib/regexp_parser/syntax/versions/3.1.0.rb +${GEM_LIBDIR}/lib/regexp_parser/syntax/versions/3.2.0.rb ${GEM_LIBDIR}/lib/regexp_parser/token.rb ${GEM_LIBDIR}/lib/regexp_parser/version.rb ${GEM_LIBDIR}/regexp_parser.gemspec diff --git a/devel/ruby-regexp_parser/distinfo b/devel/ruby-regexp_parser/distinfo index 3184dd663dc..aaeb3f7d363 100644 --- a/devel/ruby-regexp_parser/distinfo +++ b/devel/ruby-regexp_parser/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.10 2022/02/13 07:16:46 taca Exp $ +$NetBSD: distinfo,v 1.11 2022/08/24 16:31:03 taca Exp $ -BLAKE2s (regexp_parser-2.2.1.gem) = ee89a03f7c10c2cd97e5e039e553d8f82a05254ddf30e933da6f3d2ab4172c23 -SHA512 (regexp_parser-2.2.1.gem) = bb757d197aec8a1c3740ceaf54d44308639af5161564e6f5937fdae16ef358fef6d26fd65b2c549b7b3e5d1c5309b869940aae67379301c9044013e6469b6545 -Size (regexp_parser-2.2.1.gem) = 69632 bytes +BLAKE2s (regexp_parser-2.5.0.gem) = 0cd732e590a5e0a24cab40200ccbeae18d85ac74a6d4066024a575abd46bc200 +SHA512 (regexp_parser-2.5.0.gem) = 850e0a7a6f64cd95f844fb80bf60bd0876364ee994a60d5dbd3b0fee9273c3d0995d421fe970685a11a6408e95372a17a8778c17f2cfe741cc86e3a9dc6d085a +Size (regexp_parser-2.5.0.gem) = 71168 bytes -- cgit v1.2.3