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:           Tue Jan 26 15:10:45 UTC 2021

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

Log Message:
devel/ruby-regexp_parser: update to 2.0.3

[2.0.3] - 2020-12-28 - Janosch Müller

Fixed
* fixed error when scanning some unlikely and redundant but valid charset
  patterns
        - e.g. /[[.a-b.]]/, /[[=e=]]/,
* fixed ancestry of some error classes related to syntax version lookup
        - NotImplementedError, InvalidVersionNameError,
          UnknownSyntaxNameError
        - they now correctly inherit from Regexp::Syntax::SyntaxError
          instead of Rubys ::SyntaxError

[2.0.2] - 2020-12-25 - Janosch Müller

Fixed
* fixed FrozenError when calling #to_s on a frozen Group::Passive
        - thanks to Daniel Gollahon

[2.0.1] - 2020-12-20 - Janosch Müller

Fixed
* fixed error when scanning some group names
        - this affected names containing hyphens, digits or multibyte
          chars, e.g. /(?<a1>a)/
        - thanks to Daniel Gollahon for the report
* fixed error when scanning hex escapes with just one hex digit
        - e.g. /\x0A/ was scanned correctly, but the equivalent /\xA/ was
          not
        - thanks to Daniel Gollahon for the report

[2.0.0] - 2020-11-25 - Janosch Müller

Changed

* some methods that used to return byte-based indices now return
  char-based indices
        - the returned values have only changed for Regexps that contain
          multibyte chars
        - this is only a breaking change if you used such methods directly
          AND relied on them pointing to bytes
        - affected methods:
                Regexp::Token #length, #offset, #te, #ts
                Regexp::Expression::Base #full_length, #offset,
                #starts_at, #te, #ts
        - thanks to Akinori MUSHA for the report
* removed some deprecated methods/signatures
        - these are rarely used and have been showing deprecation warnings
          for a long time
        - Regexp::Expression::Subexpression.new with 3 arguments
        - Regexp::Expression::Root.new without a token argument
        - Regexp::Expression.parsed

Added
* Regexp::Expression::Base#base_length
        - returns the character count of an expression body, ignoring any
          quantifier
* pragmatic, experimental support for chained quantifiers
        - e.g.: /^a{10}{4,6}$/ matches exactly 40, 50 or 60 as
        - successive quantifiers used to be silently dropped by the parser
        - they are now wrapped with passive groups as if they were written
          (?:a{10}){4,6}
        - thanks to calfeld for reporting this a while back

Fixed
* incorrect encoding output for non-ascii comments
        - this led to a crash when calling #to_s on parse results
          containing such comments
        - thanks to Michael Glass for the report

* some crashes when scanning contrived patterns such as '\😋'

[1.8.2] - 2020-10-11 - Janosch Müller

Fixed
* fix FrozenError in Expression::Base#repetitions on Ruby 3.0
        - thanks to Thomas Walpole
* removed "unknown future version" warning on Ruby 3.0

[1.8.1] - 2020-09-28 - Janosch Müller

Fixed
* fixed scanning of comment-like text in normal mode
        - this was an old bug, but had become more prevalent in v1.8.0
        - thanks to Tietew for the report
* specified correct minimum Ruby version in gemspec
        - it said 1.9 but really required 2.0 as of v1.8.0


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/ruby-regexp_parser/Makefile \
    pkgsrc/devel/ruby-regexp_parser/distinfo
cvs rdiff -u -r1.3 -r1.4 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.4 pkgsrc/devel/ruby-regexp_parser/Makefile:1.5
--- pkgsrc/devel/ruby-regexp_parser/Makefile:1.4        Sun Sep 20 15:42:11 2020
+++ pkgsrc/devel/ruby-regexp_parser/Makefile    Tue Jan 26 15:10:45 2021
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2020/09/20 15:42:11 taca Exp $
+# $NetBSD: Makefile,v 1.5 2021/01/26 15:10:45 taca Exp $
 
-DISTNAME=      regexp_parser-1.8.0
+DISTNAME=      regexp_parser-2.0.3
 CATEGORIES=    devel
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
Index: pkgsrc/devel/ruby-regexp_parser/distinfo
diff -u pkgsrc/devel/ruby-regexp_parser/distinfo:1.4 pkgsrc/devel/ruby-regexp_parser/distinfo:1.5
--- pkgsrc/devel/ruby-regexp_parser/distinfo:1.4        Sun Sep 20 15:42:11 2020
+++ pkgsrc/devel/ruby-regexp_parser/distinfo    Tue Jan 26 15:10:45 2021
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2020/09/20 15:42:11 taca Exp $
+$NetBSD: distinfo,v 1.5 2021/01/26 15:10:45 taca Exp $
 
-SHA1 (regexp_parser-1.8.0.gem) = f83ad7b952672fe7bfd7a3a61caa3e6acd99fcd8
-RMD160 (regexp_parser-1.8.0.gem) = b92f3e49bb8448adf3b10b6cce7a95e3b28f5e5d
-SHA512 (regexp_parser-1.8.0.gem) = 2317384583440fd1af4b294247e3695283065281df58d92740245e072751a3e5ce2cffa013c0d52330b951e9732c89c92afd4637d458a65a48fdc39d69b3da2b
-Size (regexp_parser-1.8.0.gem) = 97792 bytes
+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

Index: pkgsrc/devel/ruby-regexp_parser/PLIST
diff -u pkgsrc/devel/ruby-regexp_parser/PLIST:1.3 pkgsrc/devel/ruby-regexp_parser/PLIST:1.4
--- pkgsrc/devel/ruby-regexp_parser/PLIST:1.3   Sun Sep 20 15:42:11 2020
+++ pkgsrc/devel/ruby-regexp_parser/PLIST       Tue Jan 26 15:10:45 2021
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2020/09/20 15:42:11 taca Exp $
+@comment $NetBSD: PLIST,v 1.4 2021/01/26 15:10:45 taca Exp $
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_LIBDIR}/CHANGELOG.md
 ${GEM_LIBDIR}/Gemfile
@@ -85,8 +85,6 @@ ${GEM_LIBDIR}/spec/expression/methods/st
 ${GEM_LIBDIR}/spec/expression/methods/tests_spec.rb
 ${GEM_LIBDIR}/spec/expression/methods/traverse_spec.rb
 ${GEM_LIBDIR}/spec/expression/options_spec.rb
-${GEM_LIBDIR}/spec/expression/root_spec.rb
-${GEM_LIBDIR}/spec/expression/sequence_spec.rb
 ${GEM_LIBDIR}/spec/expression/subexpression_spec.rb
 ${GEM_LIBDIR}/spec/expression/to_h_spec.rb
 ${GEM_LIBDIR}/spec/expression/to_s_spec.rb



Home | Main Index | Thread Index | Old Index