pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/ruby-regexp_parser devel/ruby-regexp_parser: upd...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7d2d6cedd1a0
branches:  trunk
changeset: 447882:7d2d6cedd1a0
user:      taca <taca%pkgsrc.org@localhost>
date:      Sun Feb 28 15:14:18 2021 +0000

description:
devel/ruby-regexp_parser: update to 2.1.1

2.1.1 (2021-02-23)

Fixed

* fixed NameError when requiring only 'regexp_parser/scanner' in v2.1.0
  o thanks to Jared White and Sam Ruby for the report

2.1.0 (2021-02-22)

Added

* common ancestor for all scanning/parsing/lexing errors
  o Regexp::Parser::Error can now be rescued as a catch-all
  o the following errors (and their many descendants) now inherit from it:
        - Regexp::Expression::Conditional::TooManyBranches
        - Regexp::Parser::ParserError
        - Regexp::Scanner::ScannerError
        - Regexp::Scanner::ValidationError
        - Regexp::Syntax::SyntaxError
  o it replaces ArgumentError in some rare cases
    (Regexp::Parser.parse('?'))
  o thanks to sandstrom for the cue

Fixed

* fixed scanning of whole-pattern recursion calls \g<0> and \g'0'
  o a regression in v2.0.1 had caused them to be scanned as literals
* fixed scanning of some backreference and subexpression call edge cases
  o e.g. \k<+1>, \g<x-1>
* fixed tokenization of some escapes in character sets
  o ., |, {, }, (, ), ^, $, ?, +, *
  o all of these correctly emitted #type :literal and #token :literal if
    not escaped
  o if escaped, they emitted e.g. #type :escape and #token :group_open for
    [\(]
  o the escaped versions now correctly emit #type :escape and #token
    :literal
* fixed handling of control/metacontrol escapes in character sets
  o e.g. [\cX], [\M-\C-X]
  o they were misread as bunch of individual literals, escapes, and ranges
* fixed some cases where calling #dup/#clone on expressions led to shared
  state

diffstat:

 devel/ruby-regexp_parser/Makefile |   4 ++--
 devel/ruby-regexp_parser/PLIST    |   3 ++-
 devel/ruby-regexp_parser/distinfo |  10 +++++-----
 3 files changed, 9 insertions(+), 8 deletions(-)

diffs (44 lines):

diff -r 1f928b0d84c5 -r 7d2d6cedd1a0 devel/ruby-regexp_parser/Makefile
--- a/devel/ruby-regexp_parser/Makefile Sun Feb 28 15:08:28 2021 +0000
+++ b/devel/ruby-regexp_parser/Makefile Sun Feb 28 15:14:18 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2021/01/26 15:10:45 taca Exp $
+# $NetBSD: Makefile,v 1.6 2021/02/28 15:14:18 taca Exp $
 
-DISTNAME=      regexp_parser-2.0.3
+DISTNAME=      regexp_parser-2.1.1
 CATEGORIES=    devel
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
diff -r 1f928b0d84c5 -r 7d2d6cedd1a0 devel/ruby-regexp_parser/PLIST
--- a/devel/ruby-regexp_parser/PLIST    Sun Feb 28 15:08:28 2021 +0000
+++ b/devel/ruby-regexp_parser/PLIST    Sun Feb 28 15:14:18 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2021/01/26 15:10:45 taca Exp $
+@comment $NetBSD: PLIST,v 1.5 2021/02/28 15:14:18 taca Exp $
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_LIBDIR}/CHANGELOG.md
 ${GEM_LIBDIR}/Gemfile
@@ -6,6 +6,7 @@
 ${GEM_LIBDIR}/README.md
 ${GEM_LIBDIR}/Rakefile
 ${GEM_LIBDIR}/lib/regexp_parser.rb
+${GEM_LIBDIR}/lib/regexp_parser/error.rb
 ${GEM_LIBDIR}/lib/regexp_parser/expression.rb
 ${GEM_LIBDIR}/lib/regexp_parser/expression/classes/alternation.rb
 ${GEM_LIBDIR}/lib/regexp_parser/expression/classes/anchor.rb
diff -r 1f928b0d84c5 -r 7d2d6cedd1a0 devel/ruby-regexp_parser/distinfo
--- a/devel/ruby-regexp_parser/distinfo Sun Feb 28 15:08:28 2021 +0000
+++ b/devel/ruby-regexp_parser/distinfo Sun Feb 28 15:14:18 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.5 2021/01/26 15:10:45 taca Exp $
+$NetBSD: distinfo,v 1.6 2021/02/28 15:14:18 taca Exp $
 
-SHA1 (regexp_parser-2.0.3.gem) = 7b6b8f50c2e71631e1e26ada674a8c921550a38a
-RMD160 (regexp_parser-2.0.3.gem) = 52e1a3c6a412321d999b5fd904a903cbb8c56993
-SHA512 (regexp_parser-2.0.3.gem) = c622b58ed65713d94ff69ec4721a5b0a895885e45621625a2c90a35c25e3a011bff635f88685104548324eca42fc2f3811d0ef0da15c54dd6c35fc90bbfb9d09
-Size (regexp_parser-2.0.3.gem) = 99328 bytes
+SHA1 (regexp_parser-2.1.1.gem) = 8d4bc9c7bce8639a78319b0a37d27b9d083bf8f8
+RMD160 (regexp_parser-2.1.1.gem) = 0ad4bafd7f0ba87ddd897493492d2e164c49ec27
+SHA512 (regexp_parser-2.1.1.gem) = 052bb466f54923c8ccdbe98ba52629b2991a14faf273206dfce3cc0ee76132d7eaacc0ab66749392b3850b17b3573e13e0810958ff79af6a7d1bad0689d3d8eb
+Size (regexp_parser-2.1.1.gem) = 101376 bytes



Home | Main Index | Thread Index | Old Index