commit rubygem-regexp_parser for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-regexp_parser for openSUSE:Factory checked in at 2024-02-26 19:49:06 Comparing /work/SRC/openSUSE:Factory/rubygem-regexp_parser (Old) and /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.1770 (New) Package is "rubygem-regexp_parser" Mon Feb 26 19:49:06 2024 rev:14 rq:1151747 version:2.9.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-regexp_parser/rubygem-regexp_parser.changes 2023-11-15 21:09:25.866120258 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.1770/rubygem-regexp_parser.changes 2024-02-26 19:50:19.688618092 +0100 @@ -1,0 +2,5 @@ +Mon Jan 29 14:27:55 UTC 2024 - Dan Äermák + +- New upstream release 2.9.0, no changelog found + +--- Old: regexp_parser-2.8.2.gem New: regexp_parser-2.9.0.gem Other differences: -- ++ rubygem-regexp_parser.spec ++ --- /var/tmp/diff_new_pack.03O9dw/_old 2024-02-26 19:50:20.436645134 +0100 +++ /var/tmp/diff_new_pack.03O9dw/_new 2024-02-26 19:50:20.436645134 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-regexp_parser # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-regexp_parser -Version:2.8.2 +Version:2.9.0 Release:0 %define mod_name regexp_parser %define mod_full_name %{mod_name}-%{version} ++ regexp_parser-2.8.2.gem -> regexp_parser-2.9.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile --- old/Gemfile 2023-10-10 18:49:15.0 +0200 +++ new/Gemfile 2024-01-07 11:47:49.0 +0100 @@ -3,13 +3,13 @@ gemspec group :development, :test do - gem 'leto', '~> 2.0' - gem 'rake', '~> 13.0' - gem 'regexp_property_values', '~> 1.4' + gem 'leto', '~> 2.1' + gem 'rake', '~> 13.1' + gem 'regexp_property_values', '~> 1.5' gem 'rspec', '~> 3.10' if RUBY_VERSION.to_f >= 2.7 gem 'benchmark-ips', '~> 2.1' gem 'gouteur', '~> 1.1' -gem 'rubocop', '~> 1.7' +gem 'rubocop', '~> 1.59' end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/LICENSE new/LICENSE --- old/LICENSE 2023-10-10 18:49:15.0 +0200 +++ new/LICENSE 2024-01-07 11:47:49.0 +0100 @@ -1,4 +1,4 @@ -Copyright (c) 2010, 2012-2023, Ammar Ali +Copyright (c) 2010, 2012-2024, Ammar Ali Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/regexp_parser/expression/classes/character_set.rb new/lib/regexp_parser/expression/classes/character_set.rb --- old/lib/regexp_parser/expression/classes/character_set.rb 2023-10-10 18:49:15.0 +0200 +++ new/lib/regexp_parser/expression/classes/character_set.rb 2024-01-07 11:47:49.0 +0100 @@ -1,10 +1,7 @@ module Regexp::Expression class CharacterSet < Regexp::Expression::Subexpression attr_accessor :closed, :negative - -alias :negative? :negative -alias :negated? :negative -alias :closed? :closed +alias :closed? :closed def initialize(token, options = {}) self.negative = false diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/regexp_parser/expression/classes/posix_class.rb new/lib/regexp_parser/expression/classes/posix_class.rb --- old/lib/regexp_parser/expression/classes/posix_class.rb 2023-10-10 18:49:15.0 +0200 +++ new/lib/regexp_parser/expression/classes/posix_class.rb 2024-01-07 11:47:49.0 +0100 @@ -1,9 +1,5 @@ module Regexp::Expression class PosixClass < Regexp::Expression::Base -def negative? - type == :nonposixclass -end - def name text[/\w+/] end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/regexp_parser/expression/classes/unicode_property.rb new/lib/regexp_parser/expression/classes/unicode_property.rb --- old/lib/regexp_parser/expression/classes/unicode_property.rb 2023-10-10 18:49:15.0 +0200 +++ new/lib/regexp_parser/expression/classes/unicode_property.rb 2024-01-07 11:47:49.0 +0100 @@ -1,10 +1,6 @@ module Regexp::Expression module UnicodeProperty class Base < Regexp::Expres
commit rubygem-regexp_parser for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-regexp_parser for openSUSE:Factory checked in at 2022-12-13 18:56:56 Comparing /work/SRC/openSUSE:Factory/rubygem-regexp_parser (Old) and /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.1835 (New) Package is "rubygem-regexp_parser" Tue Dec 13 18:56:56 2022 rev:12 rq:1042657 version:2.6.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-regexp_parser/rubygem-regexp_parser.changes 2022-10-12 18:27:10.186017187 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.1835/rubygem-regexp_parser.changes 2022-12-13 18:57:23.383818848 +0100 @@ -1,0 +2,16 @@ +Wed Dec 7 11:32:31 UTC 2022 - Stephan Kulow + +updated to version 2.6.1 + see installed CHANGELOG.md + + ## [2.6.1] - 2022-11-16 - [Janosch Müller](mailto:janosc...@gmail.com) + + ### Fixed + + - fixed scanning of two negative lookbehind edge cases +* `(?` used to raise a ScannerError +* `(?)y` used to be misinterpreted as a named group +* thanks to [Sergio Medina](https://github.com/serch) for the report + + +--- Old: regexp_parser-2.6.0.gem New: regexp_parser-2.6.1.gem Other differences: -- ++ rubygem-regexp_parser.spec ++ --- /var/tmp/diff_new_pack.pfUTKM/_old 2022-12-13 18:57:23.975822008 +0100 +++ /var/tmp/diff_new_pack.pfUTKM/_new 2022-12-13 18:57:23.979822028 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-regexp_parser -Version:2.6.0 +Version:2.6.1 Release:0 %define mod_name regexp_parser %define mod_full_name %{mod_name}-%{version} ++ regexp_parser-2.6.0.gem -> regexp_parser-2.6.1.gem ++ 1765 lines of diff (skipped)
commit rubygem-regexp_parser for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-regexp_parser for openSUSE:Factory checked in at 2022-10-12 18:25:21 Comparing /work/SRC/openSUSE:Factory/rubygem-regexp_parser (Old) and /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.2275 (New) Package is "rubygem-regexp_parser" Wed Oct 12 18:25:21 2022 rev:11 rq:1010081 version:2.6.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-regexp_parser/rubygem-regexp_parser.changes 2022-06-15 00:32:53.202578269 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.2275/rubygem-regexp_parser.changes 2022-10-12 18:27:10.186017187 +0200 @@ -1,0 +2,14 @@ +Mon Oct 10 13:18:09 UTC 2022 - Stephan Kulow + +updated to version 2.6.0 + see installed CHANGELOG.md + + # Changelog + + All notable changes to this project will be documented in this file. + + The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), + and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + + +--- Old: regexp_parser-2.5.0.gem New: regexp_parser-2.6.0.gem Other differences: -- ++ rubygem-regexp_parser.spec ++ --- /var/tmp/diff_new_pack.mW4YYe/_old 2022-10-12 18:27:10.634018173 +0200 +++ /var/tmp/diff_new_pack.mW4YYe/_new 2022-10-12 18:27:10.642018191 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-regexp_parser -Version:2.5.0 +Version:2.6.0 Release:0 %define mod_name regexp_parser %define mod_full_name %{mod_name}-%{version} ++ regexp_parser-2.5.0.gem -> regexp_parser-2.6.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2022-05-27 23:32:50.0 +0200 +++ new/CHANGELOG.md2022-09-26 22:15:50.0 +0200 @@ -1,37 +1,68 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + ## [Unreleased] +## [2.6.0] - 2022-09-26 - [Janosch M??ller](mailto:janosc...@gmail.com) + +### Fixed + +- fixed `#referenced_expression` for `\g<0>` (was `nil`, is now the `Root` exp) +- fixed `#reference`, `#referenced_expression` for recursion level backrefs + * e.g. `(a)(b)\k<-1+1>` + * `#referenced_expression` was `nil`, now it is the correct `Group` exp +- detect and raise for two more syntax errors when parsing String input + * quantification of option switches (e.g. `(?i)+`) + * invalid references (e.g. `/\k<1>/`) + * these are a `SyntaxError` in Ruby, so could only be passed as a String + +### Added + +- `Regexp::Expression::Base#human_name` + * returns a nice, human-readable description of the expression +- `Regexp::Expression::Base#optional?` + * returns `true` if the expression is quantified accordingly (e.g. with `*`, `{,n}`) +- added a deprecation warning when calling `#to_re` on set members + +## [2.5.0] - 2022-05-27 - [Janosch M??ller](mailto:janosc...@gmail.com) + ### Added - `Regexp::Expression::Base.construct` and `.token_class` methods + * see the [wiki](https://github.com/ammar/regexp_parser/wiki) for details ## [2.4.0] - 2022-05-09 - [Janosch M??ller](mailto:janosc...@gmail.com) ### 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](https://github.com/ammar/regexp_parser/issues/3) + * 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](https://github.com/ammar/regexp_parser/issues/3) - fixed `Expression::Base#nesting_level` for some tree rewrite cases - - e.g. the alternatives in `/a|[b]/` had an inconsistent nesting_level + * 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` + * 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` ###
commit rubygem-regexp_parser for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-regexp_parser for openSUSE:Factory checked in at 2022-06-15 00:32:37 Comparing /work/SRC/openSUSE:Factory/rubygem-regexp_parser (Old) and /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.1548 (New) Package is "rubygem-regexp_parser" Wed Jun 15 00:32:37 2022 rev:10 rq:982535 version:2.5.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-regexp_parser/rubygem-regexp_parser.changes 2022-05-16 18:11:01.585397888 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.1548/rubygem-regexp_parser.changes 2022-06-15 00:32:53.202578269 +0200 @@ -1,0 +2,10 @@ +Mon Jun 13 17:10:18 UTC 2022 - Manuel Schnitzer + +- updated to version 2.5.0 + + ### Added + + - `Regexp::Expression::Base.construct` and `.token_class` methods +* see the [wiki](https://github.com/ammar/regexp_parser/wiki) for details + +--- Old: regexp_parser-2.4.0.gem New: regexp_parser-2.5.0.gem Other differences: -- ++ rubygem-regexp_parser.spec ++ --- /var/tmp/diff_new_pack.NQ7GCP/_old 2022-06-15 00:32:54.426580069 +0200 +++ /var/tmp/diff_new_pack.NQ7GCP/_new 2022-06-15 00:32:54.430580074 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-regexp_parser -Version:2.4.0 +Version:2.5.0 Release:0 %define mod_name regexp_parser %define mod_full_name %{mod_name}-%{version} ++ regexp_parser-2.4.0.gem -> regexp_parser-2.5.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2022-05-09 21:26:43.0 +0200 +++ new/CHANGELOG.md2022-05-27 23:32:50.0 +0200 @@ -1,5 +1,9 @@ ## [Unreleased] +### Added + +- `Regexp::Expression::Base.construct` and `.token_class` methods + ## [2.4.0] - 2022-05-09 - [Janosch M??ller](mailto:janosc...@gmail.com) ### Fixed @@ -36,10 +40,12 @@ It will no longer be supported in regexp_parser v3.0.0. -Please pass a Regexp::Token instead, e.g. replace `type, text, min, max, mode` -with `::Regexp::Token.new(:quantifier, type, text)`. min, max, and mode +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. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2022-05-09 21:26:43.0 +0200 +++ new/README.md 2022-05-27 23:32:50.0 +0200 @@ -447,12 +447,14 @@ - [capybara](https://github.com/teamcapybara/capybara) is an integration testing tool that uses regexp_parser to convert Regexps to css/xpath selectors. -- [js_regex](https://github.com/janosch-x/js_regex) converts Ruby regular expressions to JavaScript-compatible regular expressions. +- [js_regex](https://github.com/jaynetics/js_regex) converts Ruby regular expressions to JavaScript-compatible regular expressions. - [meta_re](https://github.com/ammar/meta_re) is a regular expression preprocessor with alias support. - [mutant](https://github.com/mbj/mutant) manipulates your regular expressions (amongst others) to see if your tests cover their behavior. +- [repper](https://github.com/jaynetics/repper) is a regular expression pretty-printer for Ruby. + - [rubocop](https://github.com/rubocop-hq/rubocop) is a linter for Ruby that uses regexp_parser to lint Regexps. - [twitter-cldr-rb](https://github.com/twitter/twitter-cldr-rb) is a localization helper that uses regexp_parser to generate examples of postal codes. Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/regexp_parser/expression/classes/backreference.rb new/lib/regexp_parser/expression/classes/backreference.rb --- old/lib/regexp_parser/expression/classes/backreference.rb 2022-05-09 21:26:43.0 +0200 +++ new/lib/regexp_parser/expression/classes/backreference.rb 2022-05-27 23:32:50.0 +0200 @@ -1,4 +1,5 @@ module Regexp::Expression + # TODO: unify name with token :backref, one way or the other, in v3.0.0 module Backreference class Base < Regexp::Expression::Base attr_accessor :referenced_expression diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/regexp_pars
commit rubygem-regexp_parser for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-regexp_parser for openSUSE:Factory checked in at 2022-05-16 18:08:34 Comparing /work/SRC/openSUSE:Factory/rubygem-regexp_parser (Old) and /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.1538 (New) Package is "rubygem-regexp_parser" Mon May 16 18:08:34 2022 rev:9 rq:977458 version:2.4.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-regexp_parser/rubygem-regexp_parser.changes 2022-04-30 22:52:57.820258820 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.1538/rubygem-regexp_parser.changes 2022-05-16 18:11:01.585397888 +0200 @@ -1,0 +2,45 @@ +Mon May 16 07:51:38 UTC 2022 - Manuel Schnitzer + +- updated to version 2.4.0 + + ### 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](https://github.com/ammar/regexp_parser/issues/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 # => ["(", #, ")"]` + - 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 `type, text, min, max, mode` + with `::Regexp::Token.new(:quantifier, type, text)`. min, max, and mode + will be derived automatically. + + This is consistent with how Expression::Base instances are created. + +--- Old: regexp_parser-2.3.1.gem New: regexp_parser-2.4.0.gem Other differences: -- ++ rubygem-regexp_parser.spec ++ --- /var/tmp/diff_new_pack.szk9tS/_old 2022-05-16 18:11:02.065398269 +0200 +++ /var/tmp/diff_new_pack.szk9tS/_new 2022-05-16 18:11:02.069398272 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-regexp_parser -Version:2.3.1 +Version:2.4.0 Release:0 %define mod_name regexp_parser %define mod_full_name %{mod_name}-%{version} ++ regexp_parser-2.3.1.gem -> regexp_parser-2.4.0.gem ++ 3593 lines of diff (skipped)
commit rubygem-regexp_parser for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-regexp_parser for openSUSE:Factory checked in at 2022-04-30 22:52:44 Comparing /work/SRC/openSUSE:Factory/rubygem-regexp_parser (Old) and /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.1538 (New) Package is "rubygem-regexp_parser" Sat Apr 30 22:52:44 2022 rev:8 rq:974070 version:2.3.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-regexp_parser/rubygem-regexp_parser.changes 2022-02-24 18:23:37.198655872 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.1538/rubygem-regexp_parser.changes 2022-04-30 22:52:57.820258820 +0200 @@ -1,0 +2,28 @@ +Thu Apr 28 05:45:28 UTC 2022 - Stephan Kulow + +updated to version 2.3.1 + see installed CHANGELOG.md + + ## [Unreleased] + + ## [2.3.1] - 2022-04-24 - [Janosch M??ller](mailto:janosc...@gmail.com) + + ### Fixed + + - removed five inexistent unicode properties from `Syntax#features` +- these were never supported by Ruby but incorrectly accepted by the parser +- thanks to [Markus Schirp](https://github.com/mbj) for the report + + ## [2.3.0] - 2022-04-08 - [Janosch M??ller](mailto:janosc...@gmail.com) + + ### 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 + + +--- Old: regexp_parser-2.2.1.gem New: regexp_parser-2.3.1.gem Other differences: -- ++ rubygem-regexp_parser.spec ++ --- /var/tmp/diff_new_pack.Zr82sg/_old 2022-04-30 22:52:58.280259443 +0200 +++ /var/tmp/diff_new_pack.Zr82sg/_new 2022-04-30 22:52:58.284259448 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-regexp_parser -Version:2.2.1 +Version:2.3.1 Release:0 %define mod_name regexp_parser %define mod_full_name %{mod_name}-%{version} ++ regexp_parser-2.2.1.gem -> regexp_parser-2.3.1.gem ++ 2064 lines of diff (skipped)
commit rubygem-regexp_parser for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-regexp_parser for openSUSE:Factory checked in at 2022-02-24 18:20:21 Comparing /work/SRC/openSUSE:Factory/rubygem-regexp_parser (Old) and /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.1958 (New) Package is "rubygem-regexp_parser" Thu Feb 24 18:20:21 2022 rev:7 rq:956124 version:2.2.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-regexp_parser/rubygem-regexp_parser.changes 2021-12-26 00:10:14.709833322 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.1958/rubygem-regexp_parser.changes 2022-02-24 18:23:37.198655872 +0100 @@ -1,0 +2,7 @@ +Tue Feb 15 07:39:10 UTC 2022 - Stephan Kulow + +updated to version 2.2.1 + see installed CHANGELOG.md + + +--- Old: regexp_parser-2.2.0.gem New: regexp_parser-2.2.1.gem Other differences: -- ++ rubygem-regexp_parser.spec ++ --- /var/tmp/diff_new_pack.hoVoX8/_old 2022-02-24 18:23:37.606655765 +0100 +++ /var/tmp/diff_new_pack.hoVoX8/_new 2022-02-24 18:23:37.610655764 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-regexp_parser # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-regexp_parser -Version:2.2.0 +Version:2.2.1 Release:0 %define mod_name regexp_parser %define mod_full_name %{mod_name}-%{version} ++ regexp_parser-2.2.0.gem -> regexp_parser-2.2.1.gem ++ 8135 lines of diff (skipped)
commit rubygem-regexp_parser for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-regexp_parser for openSUSE:Factory checked in at 2021-12-26 00:10:13 Comparing /work/SRC/openSUSE:Factory/rubygem-regexp_parser (Old) and /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.2520 (New) Package is "rubygem-regexp_parser" Sun Dec 26 00:10:13 2021 rev:6 rq:942475 version:2.2.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-regexp_parser/rubygem-regexp_parser.changes 2021-03-16 15:46:53.393273929 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.2520/rubygem-regexp_parser.changes 2021-12-26 00:10:14.709833322 +0100 @@ -1,0 +2,9 @@ +Sat Dec 25 21:37:11 UTC 2021 - Manuel Schnitzer + +- updated to version 2.2.0 + + ### Added + + - Added support for 13 new unicode properties introduced in Ruby 3.1.0-dev + +--- Old: regexp_parser-2.1.1.gem New: regexp_parser-2.2.0.gem Other differences: -- ++ rubygem-regexp_parser.spec ++ --- /var/tmp/diff_new_pack.IjSHrv/_old 2021-12-26 00:10:15.301833687 +0100 +++ /var/tmp/diff_new_pack.IjSHrv/_new 2021-12-26 00:10:15.309833692 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-regexp_parser -Version:2.1.1 +Version:2.2.0 Release:0 %define mod_name regexp_parser %define mod_full_name %{mod_name}-%{version} ++ regexp_parser-2.1.1.gem -> regexp_parser-2.2.0.gem ++ 4075 lines of diff (skipped)
commit rubygem-regexp_parser for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-regexp_parser for openSUSE:Factory checked in at 2021-03-16 15:45:57 Comparing /work/SRC/openSUSE:Factory/rubygem-regexp_parser (Old) and /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.2401 (New) Package is "rubygem-regexp_parser" Tue Mar 16 15:45:57 2021 rev:5 rq:879330 version:2.1.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-regexp_parser/rubygem-regexp_parser.changes 2021-01-21 21:56:30.657839536 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.2401/rubygem-regexp_parser.changes 2021-03-16 15:46:53.393273929 +0100 @@ -1,0 +2,43 @@ +Tue Mar 16 04:04:24 UTC 2021 - Manuel Schnitzer + +- updated to version 2.1.1 + + ## [2.1.1] - 2021-02-23 - [Janosch M??ller](mailto:janosc...@gmail.com) + + ### Fixed + + - fixed `NameError` when requiring only `'regexp_parser/scanner'` in v2.1.0 +* thanks to [Jared White and Sam Ruby](https://github.com/ruby2js/ruby2js) for the report + + ## [2.1.0] - 2021-02-22 - [Janosch M??ller](mailto:janosc...@gmail.com) + + ### Added + + - common ancestor for all scanning/parsing/lexing errors +* `Regexp::Parser::Error` can now be rescued as a catch-all +* 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` +* it replaces `ArgumentError` in some rare cases (`Regexp::Parser.parse('?')`) +* thanks to [sandstrom](https://github.com/sandstrom) for the cue + + ### Fixed + + - fixed scanning of whole-pattern recursion calls `\g<0>` and `\g'0'` +* a regression in v2.0.1 had caused them to be scanned as literals + - fixed scanning of some backreference and subexpression call edge cases +* e.g. `\k<+1>`, `\g` + - fixed tokenization of some escapes in character sets +* `.`, `|`, `{`, `}`, `(`, `)`, `^`, `$`, `?`, `+`, `*` +* all of these correctly emitted `#type` `:literal` and `#token` `:literal` if *not* escaped +* if escaped, they emitted e.g. `#type` `:escape` and `#token` `:group_open` for `[\(]` +* the escaped versions now correctly emit `#type` `:escape` and `#token` `:literal` + - fixed handling of control/metacontrol escapes in character sets +* e.g. `[\cX]`, `[\M-\C-X]` +* they were misread as bunch of individual literals, escapes, and ranges + - fixed some cases where calling `#dup`/`#clone` on expressions led to shared state + +--- Old: regexp_parser-2.0.3.gem New: regexp_parser-2.1.1.gem Other differences: -- ++ rubygem-regexp_parser.spec ++ --- /var/tmp/diff_new_pack.ti1uml/_old 2021-03-16 15:46:53.949274792 +0100 +++ /var/tmp/diff_new_pack.ti1uml/_new 2021-03-16 15:46:53.953274798 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-regexp_parser -Version:2.0.3 +Version:2.1.1 Release:0 %define mod_name regexp_parser %define mod_full_name %{mod_name}-%{version} ++ regexp_parser-2.0.3.gem -> regexp_parser-2.1.1.gem ++ 4681 lines of diff (skipped)
commit rubygem-regexp_parser for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-regexp_parser for openSUSE:Factory checked in at 2021-01-21 21:56:27 Comparing /work/SRC/openSUSE:Factory/rubygem-regexp_parser (Old) and /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.28504 (New) Package is "rubygem-regexp_parser" Thu Jan 21 21:56:27 2021 rev:4 rq:865235 version:2.0.3 Changes: --- /work/SRC/openSUSE:Factory/rubygem-regexp_parser/rubygem-regexp_parser.changes 2020-11-11 20:47:17.283697474 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.28504/rubygem-regexp_parser.changes 2021-01-21 21:56:30.657839536 +0100 @@ -1,0 +2,69 @@ +Wed Jan 20 13:12:49 UTC 2021 - Stephan Kulow + +updated to version 2.0.3 + see installed CHANGELOG.md + + ## [2.0.3] - 2020-12-28 - [Janosch M??ller](mailto:janosc...@gmail.com) + + ### 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](mailto:janosc...@gmail.com) + + ### Fixed + + - fixed `FrozenError` when calling `#to_s` on a frozen `Group::Passive` +* thanks to [Daniel Gollahon](https://github.com/dgollahon) + + ## [2.0.1] - 2020-12-20 - [Janosch M??ller](mailto:janosc...@gmail.com) + + ### Fixed + + - fixed error when scanning some group names +* this affected names containing hyphens, digits or multibyte chars, e.g. `/(?a)/` +* thanks to [Daniel Gollahon](https://github.com/dgollahon) 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](https://github.com/dgollahon) for the report + + ## [2.0.0] - 2020-11-25 - [Janosch M??ller](mailto:janosc...@gmail.com) + + ### 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](https://github.com/knu) 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 `a`s +* 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](https://github.com/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](https://github.com/michaelglass) for the report + - some crashes when scanning contrived patterns such as `'\'` + + +--- Old: regexp_parser-1.8.2.gem New: regexp_parser-2.0.3.gem Other differences: -- ++ rubygem-regexp_parser.spec ++ --- /var/tmp/diff_new_pack.uaW1RY/_old 2021-01-21 21:56:31.265839744 +0100 +++ /var/tmp/diff_new_pack.uaW1RY/_new 2021-01-21 21:56:31.269839745 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-regexp_parser # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-regexp_parser -Version:1.8.2 +Version:2.0.3 Release:0 %define mod_name regexp_parser %define mod_full_name %{mod_name}-%{version} ++ regexp_parser-1.8.2.gem -> regexp_parser-2.0.3.gem ++
[opensuse-commit] commit rubygem-regexp_parser for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-regexp_parser for openSUSE:Factory checked in at 2020-11-11 20:47:11 Comparing /work/SRC/openSUSE:Factory/rubygem-regexp_parser (Old) and /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.26437 (New) Package is "rubygem-regexp_parser" Wed Nov 11 20:47:11 2020 rev:3 rq:847723 version:1.8.2 Changes: --- /work/SRC/openSUSE:Factory/rubygem-regexp_parser/rubygem-regexp_parser.changes 2020-10-05 19:33:21.133213501 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-regexp_parser.new.26437/rubygem-regexp_parser.changes 2020-11-11 20:47:17.283697474 +0100 @@ -1,0 +2,11 @@ +Tue Nov 10 21:43:06 UTC 2020 - Manuel Schnitzer + +- updated to version 1.8.2 + + ### Fixed + + - fix `FrozenError` in `Expression::Base#repetitions` on Ruby 3.0 +* thanks to [Thomas Walpole](https://github.com/twalpole) + - removed "unknown future version" warning on Ruby 3.0 + +--- Old: regexp_parser-1.8.0.gem New: regexp_parser-1.8.2.gem Other differences: -- ++ rubygem-regexp_parser.spec ++ --- /var/tmp/diff_new_pack.twhMTo/_old 2020-11-11 20:47:17.963698113 +0100 +++ /var/tmp/diff_new_pack.twhMTo/_new 2020-11-11 20:47:17.967698117 +0100 @@ -24,12 +24,12 @@ # Name: rubygem-regexp_parser -Version:1.8.0 +Version:1.8.2 Release:0 %define mod_name regexp_parser %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{ruby >= 1.9.1} +BuildRequires: %{ruby >= 2.0.0} BuildRequires: %{rubygem gem2rpm} BuildRequires: %{rubygem rdoc > 3.10} BuildRequires: ruby-macros >= 5 ++ regexp_parser-1.8.0.gem -> regexp_parser-1.8.2.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2020-09-20 12:20:52.0 +0200 +++ new/CHANGELOG.md2020-10-11 23:38:14.0 +0200 @@ -1,5 +1,23 @@ ## [Unreleased] +### [1.8.2] - 2020-10-11 - [Janosch Müller](mailto:janosc...@gmail.com) + +### Fixed + +- fix `FrozenError` in `Expression::Base#repetitions` on Ruby 3.0 + * thanks to [Thomas Walpole](https://github.com/twalpole) +- removed "unknown future version" warning on Ruby 3.0 + +### [1.8.1] - 2020-09-28 - [Janosch Müller](mailto:janosc...@gmail.com) + +### 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](https://github.com/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 + ### [1.8.0] - 2020-09-20 - [Janosch Müller](mailto:janosc...@gmail.com) ### Changed diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2020-09-20 12:20:52.0 +0200 +++ new/README.md 2020-10-11 23:38:14.0 +0200 @@ -8,8 +8,8 @@ * A scanner/tokenizer based on [Ragel](http://www.colm.net/open-source/ragel/) * A lexer that produces a "stream" of token objects. * A parser that produces a "tree" of Expression objects (OO API) -* Runs on Ruby 2.x and JRuby runtimes -* Recognizes Ruby 1.8, 1.9, and 2.x regular expressions [See Supported Syntax](#supported-syntax) +* Runs on Ruby 2.x, 3.x and JRuby runtimes +* Recognizes Ruby 1.8, 1.9, 2.x and 3.x regular expressions [See Supported Syntax](#supported-syntax) _For examples of regexp_parser in use, see [Example Projects](#example-projects)._ @@ -18,7 +18,7 @@ --- ## Requirements -* Ruby >= 1.9 +* Ruby >= 2.0 * Ragel >= 6.0, but only if you want to build the gem or work on the scanner. @@ -317,7 +317,7 @@ ## Supported Syntax The three modules support all the regular expression syntax features of Ruby 1.8, -1.9, and 2.x: +1.9, 2.x and 3.x: _Note that not all of these are available in all versions of Ruby_ @@ -440,13 +440,17 @@ ## Example Projects Projects using regexp_parser. +- [capybara](https://github.com/teamcapybara/capybara) is an integration testing tool that uses regexp_parser to convert Regexps to css/xpath selectors. + +- [js_regex](https://github.com/janosch-x/js_regex) converts Ruby regular expressions to JavaScript-compatible regular expressions. + - [meta_re](https://github.com/ammar/meta_re) is a regular expression preprocessor with alias support. - [mutant](https://github.com/mbj/mutant) (before v0.9.0) manipulates your regular expressions (amongst others) to see if your tests cover their behavior. -- [twitter-cldr-rb](https://github.com/twitter/twitter-c