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/3784862fc3f4
branches:  trunk
changeset: 383960:3784862fc3f4
user:      taca <taca%pkgsrc.org@localhost>
date:      Wed Aug 24 16:31:03 2022 +0000

description:
devel/ruby-regexp_parser: update to 2.5.0

[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 # => ["(", #<Literal @text="a"...>, ")"]
* 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

diffstat:

 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(-)

diffs (70 lines):

diff -r dbbbd46fc786 -r 3784862fc3f4 devel/ruby-regexp_parser/Makefile
--- a/devel/ruby-regexp_parser/Makefile Wed Aug 24 16:24:05 2022 +0000
+++ b/devel/ruby-regexp_parser/Makefile Wed Aug 24 16:31:03 2022 +0000
@@ -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@localhost
diff -r dbbbd46fc786 -r 3784862fc3f4 devel/ruby-regexp_parser/PLIST
--- a/devel/ruby-regexp_parser/PLIST    Wed Aug 24 16:24:05 2022 +0000
+++ b/devel/ruby-regexp_parser/PLIST    Wed Aug 24 16:31:03 2022 +0000
@@ -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/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/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/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.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 -r dbbbd46fc786 -r 3784862fc3f4 devel/ruby-regexp_parser/distinfo
--- a/devel/ruby-regexp_parser/distinfo Wed Aug 24 16:24:05 2022 +0000
+++ b/devel/ruby-regexp_parser/distinfo Wed Aug 24 16:31:03 2022 +0000
@@ -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



Home | Main Index | Thread Index | Old Index