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:           Sun Feb 28 15:14:18 UTC 2021

Modified Files:
        pkgsrc/devel/ruby-regexp_parser: Makefile PLIST distinfo

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/ruby-regexp_parser/Makefile \
    pkgsrc/devel/ruby-regexp_parser/distinfo
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/ruby-regexp_parser/PLIST

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.5 pkgsrc/devel/ruby-regexp_parser/Makefile:1.6
--- pkgsrc/devel/ruby-regexp_parser/Makefile:1.5        Tue Jan 26 15:10:45 2021
+++ pkgsrc/devel/ruby-regexp_parser/Makefile    Sun Feb 28 15:14:18 2021
@@ -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
Index: pkgsrc/devel/ruby-regexp_parser/distinfo
diff -u pkgsrc/devel/ruby-regexp_parser/distinfo:1.5 pkgsrc/devel/ruby-regexp_parser/distinfo:1.6
--- pkgsrc/devel/ruby-regexp_parser/distinfo:1.5        Tue Jan 26 15:10:45 2021
+++ pkgsrc/devel/ruby-regexp_parser/distinfo    Sun Feb 28 15:14:18 2021
@@ -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

Index: pkgsrc/devel/ruby-regexp_parser/PLIST
diff -u pkgsrc/devel/ruby-regexp_parser/PLIST:1.4 pkgsrc/devel/ruby-regexp_parser/PLIST:1.5
--- pkgsrc/devel/ruby-regexp_parser/PLIST:1.4   Tue Jan 26 15:10:45 2021
+++ pkgsrc/devel/ruby-regexp_parser/PLIST       Sun Feb 28 15:14:18 2021
@@ -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}/LICENSE
 ${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



Home | Main Index | Thread Index | Old Index