devel/ruby-regexp_parser: update to 2.6.0

2.6.0 (2022-09-26)

Fixed

* fixed #referenced_expression for \g<0> (was nil, is now the Root exp)

* fixed #reference, #referenced_expression for recursion level backrefs

	- e.g. (a)(b)\k<-1+1>
	- #referenced_expression was nil, now it is the correct Group exp

* detect and raise for two more syntax errors when parsing String input

	- quantification of option switches (e.g. (?i)+)
	- invalid references (e.g. /\k<1>/)
	- these are a SyntaxError in Ruby, so could only be passed as a
          String

Added

* Regexp::Expression::Base#human_name

	- returns a nice, human-readable description of the expression

* Regexp::Expression::Base#optional?

	- returns true if the expression is quantified accordingly
          (e.g. with *, {,n})

* added a deprecation warning when calling #to_re on set members
This commit is contained in:
taca 2022-10-09 07:29:16 +00:00
parent ac3878f153
commit 3cf3129b24
3 changed files with 8 additions and 7 deletions

View file

@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.9 2022/08/24 16:31:03 taca Exp $
# $NetBSD: Makefile,v 1.10 2022/10/09 07:29:16 taca Exp $
DISTNAME= regexp_parser-2.5.0
DISTNAME= regexp_parser-2.6.0
CATEGORIES= devel
MAINTAINER= pkgsrc-users@NetBSD.org

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.8 2022/08/24 16:31:03 taca Exp $
@comment $NetBSD: PLIST,v 1.9 2022/10/09 07:29:16 taca Exp $
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/CHANGELOG.md
${GEM_LIBDIR}/Gemfile
@ -26,6 +26,7 @@ ${GEM_LIBDIR}/lib/regexp_parser/expression/classes/posix_class.rb
${GEM_LIBDIR}/lib/regexp_parser/expression/classes/root.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/human_name.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

View file

@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.11 2022/08/24 16:31:03 taca Exp $
$NetBSD: distinfo,v 1.12 2022/10/09 07:29:16 taca Exp $
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
BLAKE2s (regexp_parser-2.6.0.gem) = 56fe54e4b46ab2804cfe4f8a86abe1a8e5bc63c9ae35f6151dc96358f7b1f16e
SHA512 (regexp_parser-2.6.0.gem) = 48f76e19cf8fe9d263eaf5441e3a15465ba137821204e876f05be8c1e9c1db1f6ef201107c1767ffcb5f77dfdc5d10886377f87bb2ea2438adf37109a633b48a
Size (regexp_parser-2.6.0.gem) = 72192 bytes