pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/ruby-regexp_parser
Module Name: pkgsrc
Committed By: taca
Date: Thu Apr 27 14:13:07 UTC 2023
Modified Files:
pkgsrc/devel/ruby-regexp_parser: Makefile PLIST distinfo
Log Message:
devel/ruby-regexp_parser: update to 2.8.0
2.8.0 (2023-04-17)
Added
o Regexp::Expression::Shared#ends_at
* e.g. parse(/a +/x)[0].ends_at # => 3
* e.g. parse(/a +/x)[0].ends_at(include_quantifier = false) # => 1
o Regexp::Expression::Shared#{capturing?,comment?}
* previously only available on capturing and comment groups
o Regexp::Expression::Shared#{decorative?}
* true for decorations: comment groups as well as comments and whitespace
in x-mode
o Regexp::Expression::Shared#parent
o new format argument :original for Regexp::Expression::Base#to_s
* includes decorative elements between node and its quantifier
* e.g. parse(/a (?#comment) +/x)[0].to_s(:original) # => "a (?#comment) +"
* using it is not needed when calling Root#to_s as Root can't be
quantified
o support calling Subexpression#{each_expression,flat_map} with a
one-argument block
* in this case, only the expressions are passed to the block, no indices
o support calling test methods at Expression class level
* capturing?, comment?, decorative?, referential?, terminal?
* e.g. Regexp::Expression::CharacterSet.terminal? # => false
Fixed
o Regexp::Expression::Shared#full_length with whitespace before quantifier
* e.g. parse(/a +/x)[0].full_length used to yield 2, now it yields 3
o Subexpression#to_s output with children with whitespace before their
quantifier
* e.g. parse(/a + /x).to_s used to yield "a+ ", now it yields "a + "
* calling #to_s on sub-nodes still omits such decorative interludes by
default
- use new #to_s format :original to include it
- e.g. parse(/a + /x)[0].to_s(:original) # => "a +"
o fixed Subexpression#te behaving differently from other expressions
* only Subexpression#te used to include the quantifier
* now #te is the end index without quantifier, as for other expressions
o fixed NoMethodError when calling #starts_at or #ts on empty sequences
* e.g. Regexp::Parser.parse(/|/)[0].starts_at
* e.g. Regexp::Parser.parse(/[&&]/)[0][0].starts_at
o fixed nested comment groups breaking local x-options
* e.g. in /(?x:(?#hello)) /, the x-option wrongly applied to the
whitespace
o fixed nested comment groups breaking conditionals
* e.g. in /(a)(?(1)b|c(?#hello)d)e/, the 2nd conditional branch included
"e"
o fixed quantifiers after comment groups being mis-assigned to that group
* e.g. in /a(?#foo){3}/ (matches 'aaa')
o fixed Scanner accepting two cases of invalid Regexp syntax
* unmatched closing parentheses ()) and k-backrefs with number 0 (\k<0>)
* these are a SyntaxError in Ruby, so could only be passed as a String
* they now raise a Regexp::Scanner::ScannerError
o fixed some scanner errors not inheriting from
Regexp::Scanner::ScannerError
o reduced verbosity of inspect / pretty print output
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/devel/ruby-regexp_parser/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/devel/ruby-regexp_parser/PLIST
cvs rdiff -u -r1.15 -r1.16 pkgsrc/devel/ruby-regexp_parser/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/ruby-regexp_parser/Makefile
diff -u pkgsrc/devel/ruby-regexp_parser/Makefile:1.13 pkgsrc/devel/ruby-regexp_parser/Makefile:1.14
--- pkgsrc/devel/ruby-regexp_parser/Makefile:1.13 Sat Feb 11 13:45:25 2023
+++ pkgsrc/devel/ruby-regexp_parser/Makefile Thu Apr 27 14:13:07 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.13 2023/02/11 13:45:25 taca Exp $
+# $NetBSD: Makefile,v 1.14 2023/04/27 14:13:07 taca Exp $
-DISTNAME= regexp_parser-2.7.0
+DISTNAME= regexp_parser-2.8.0
CATEGORIES= devel
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
Index: pkgsrc/devel/ruby-regexp_parser/PLIST
diff -u pkgsrc/devel/ruby-regexp_parser/PLIST:1.9 pkgsrc/devel/ruby-regexp_parser/PLIST:1.10
--- pkgsrc/devel/ruby-regexp_parser/PLIST:1.9 Sun Oct 9 07:29:16 2022
+++ pkgsrc/devel/ruby-regexp_parser/PLIST Thu Apr 27 14:13:07 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2022/10/09 07:29:16 taca Exp $
+@comment $NetBSD: PLIST,v 1.10 2023/04/27 14:13:07 taca Exp $
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/CHANGELOG.md
${GEM_LIBDIR}/Gemfile
@@ -30,6 +30,8 @@ ${GEM_LIBDIR}/lib/regexp_parser/expressi
${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
+${GEM_LIBDIR}/lib/regexp_parser/expression/methods/parts.rb
+${GEM_LIBDIR}/lib/regexp_parser/expression/methods/printing.rb
${GEM_LIBDIR}/lib/regexp_parser/expression/methods/strfregexp.rb
${GEM_LIBDIR}/lib/regexp_parser/expression/methods/tests.rb
${GEM_LIBDIR}/lib/regexp_parser/expression/methods/traverse.rb
@@ -42,6 +44,10 @@ ${GEM_LIBDIR}/lib/regexp_parser/lexer.rb
${GEM_LIBDIR}/lib/regexp_parser/parser.rb
${GEM_LIBDIR}/lib/regexp_parser/scanner.rb
${GEM_LIBDIR}/lib/regexp_parser/scanner/char_type.rl
+${GEM_LIBDIR}/lib/regexp_parser/scanner/errors/premature_end_error.rb
+${GEM_LIBDIR}/lib/regexp_parser/scanner/errors/scanner_error.rb
+${GEM_LIBDIR}/lib/regexp_parser/scanner/errors/validation_error.rb
+${GEM_LIBDIR}/lib/regexp_parser/scanner/mapping.rb
${GEM_LIBDIR}/lib/regexp_parser/scanner/properties/long.csv
${GEM_LIBDIR}/lib/regexp_parser/scanner/properties/short.csv
${GEM_LIBDIR}/lib/regexp_parser/scanner/property.rl
@@ -63,6 +69,7 @@ ${GEM_LIBDIR}/lib/regexp_parser/syntax/t
${GEM_LIBDIR}/lib/regexp_parser/syntax/token/posix_class.rb
${GEM_LIBDIR}/lib/regexp_parser/syntax/token/quantifier.rb
${GEM_LIBDIR}/lib/regexp_parser/syntax/token/unicode_property.rb
+${GEM_LIBDIR}/lib/regexp_parser/syntax/token/virtual.rb
${GEM_LIBDIR}/lib/regexp_parser/syntax/version_lookup.rb
${GEM_LIBDIR}/lib/regexp_parser/syntax/versions.rb
${GEM_LIBDIR}/lib/regexp_parser/syntax/versions/1.8.6.rb
Index: pkgsrc/devel/ruby-regexp_parser/distinfo
diff -u pkgsrc/devel/ruby-regexp_parser/distinfo:1.15 pkgsrc/devel/ruby-regexp_parser/distinfo:1.16
--- pkgsrc/devel/ruby-regexp_parser/distinfo:1.15 Sat Feb 11 13:45:25 2023
+++ pkgsrc/devel/ruby-regexp_parser/distinfo Thu Apr 27 14:13:07 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.15 2023/02/11 13:45:25 taca Exp $
+$NetBSD: distinfo,v 1.16 2023/04/27 14:13:07 taca Exp $
-BLAKE2s (regexp_parser-2.7.0.gem) = 9a4984f4f7d8f0f49b62fab79fc7c337799cd567bd942452503d67a17bae0d88
-SHA512 (regexp_parser-2.7.0.gem) = dfa45c3d0c1f9340961c78d118d9eefcdc77246b4b44ec9bd63dd19853409ea13e7fefb996093bec7d00eceb86a57da4a30a4a8ebe6ed3c6113bf7164833503f
-Size (regexp_parser-2.7.0.gem) = 73728 bytes
+BLAKE2s (regexp_parser-2.8.0.gem) = 394fc6db537440549a4f7cc946fd093c1b3b6b2cd50ac3c581201e57c8730c2a
+SHA512 (regexp_parser-2.8.0.gem) = 5f0dadeadb8db7985480735b7e6d11f9f5b3324ff6618f954ff4c094587d8b85466cdd734cc3b6b6e551613713e94ebf53f6f8ebb069fae26b77ca6cf9105212
+Size (regexp_parser-2.8.0.gem) = 74752 bytes
Home |
Main Index |
Thread Index |
Old Index