re2 2.1.1-aarch64-linux → 2.1.2-aarch64-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/ext/re2/re2.cc +6 -3
- data/lib/2.6/re2.so +0 -0
- data/lib/2.7/re2.so +0 -0
- data/lib/3.0/re2.so +0 -0
- data/lib/3.1/re2.so +0 -0
- data/lib/3.2/re2.so +0 -0
- data/lib/re2/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0324794408321d7856291402e15ef78db4fe3515f564d1c2ec4ef57d0a7ece3
|
4
|
+
data.tar.gz: 75ab8f6508b73d0767342cbadfc2f640084b41cbb98f80c9a6d015641cab29f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b89a48034c3009d10a6136922d4a61ee8a770582f49e8c2dab27754b46a50042256ff544ff8ce18d639471d131ec4f4b82289c36629ebd6e95583ec9d2816df7
|
7
|
+
data.tar.gz: 85a1b91602dfb211c1ef03a6b8128a03185e1de70ab91cbda6963349002442bc1822bec8b05913e526f96dab674528d72cc99b81058fcbbd31cbac6a01d1c6ae
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@ Ruby bindings to [RE2][], a "fast, safe, thread-friendly alternative to
|
|
5
5
|
backtracking regular expression engines like those used in PCRE, Perl, and
|
6
6
|
Python".
|
7
7
|
|
8
|
-
**Current version:** 2.1.
|
8
|
+
**Current version:** 2.1.2
|
9
9
|
**Supported Ruby versions:** 2.6, 2.7, 3.0, 3.1, 3.2
|
10
10
|
**Bundled RE2 version:** libre2.11 (2023-09-01)
|
11
11
|
**Supported RE2 versions:** libre2.0 (< 2020-03-02), libre2.1 (2020-03-02), libre2.6 (2020-03-03), libre2.7 (2020-05-01), libre2.8 (2020-07-06), libre2.9 (2020-11-01), libre2.10 (2022-12-01), libre2.11 (2023-07-01)
|
@@ -262,7 +262,7 @@ Contributions
|
|
262
262
|
the deprecation and removal of the `utf8` encoding option in RE2;
|
263
263
|
* Thanks to [Sergio Medina](https://github.com/serch) for reporting a bug when
|
264
264
|
using `RE2::Scanner#scan` with an invalid regular expression;
|
265
|
-
* Thanks to [Pritam Baral](https://github.com/pritambaral) for
|
265
|
+
* Thanks to [Pritam Baral](https://github.com/pritambaral) for contributing the
|
266
266
|
initial support for `RE2::Set`.
|
267
267
|
|
268
268
|
Contact
|
data/ext/re2/re2.cc
CHANGED
@@ -318,8 +318,9 @@ static re2::StringPiece *re2_matchdata_find_match(VALUE idx, const VALUE self) {
|
|
318
318
|
} else {
|
319
319
|
const char *name = SYMBOL_P(idx) ? rb_id2name(SYM2ID(idx)) : StringValuePtr(idx);
|
320
320
|
const std::map<std::string, int>& groups = p->pattern->NamedCapturingGroups();
|
321
|
+
std::map<std::string, int>::const_iterator search = groups.find(name);
|
321
322
|
|
322
|
-
if (
|
323
|
+
if (search != groups.end()) {
|
323
324
|
id = search->second;
|
324
325
|
} else {
|
325
326
|
return NULL;
|
@@ -502,8 +503,9 @@ static VALUE re2_matchdata_named_match(const char* name, const VALUE self) {
|
|
502
503
|
Data_Get_Struct(m->regexp, re2_pattern, p);
|
503
504
|
|
504
505
|
const std::map<std::string, int>& groups = p->pattern->NamedCapturingGroups();
|
506
|
+
std::map<std::string, int>::const_iterator search = groups.find(name);
|
505
507
|
|
506
|
-
if (
|
508
|
+
if (search != groups.end()) {
|
507
509
|
return re2_matchdata_nth_match(search->second, self);
|
508
510
|
} else {
|
509
511
|
return Qnil;
|
@@ -719,8 +721,9 @@ static VALUE re2_matchdata_deconstruct_keys(const VALUE self, const VALUE keys)
|
|
719
721
|
VALUE key = rb_ary_entry(keys, i);
|
720
722
|
Check_Type(key, T_SYMBOL);
|
721
723
|
const char *name = rb_id2name(SYM2ID(key));
|
724
|
+
std::map<std::string, int>::const_iterator search = groups.find(name);
|
722
725
|
|
723
|
-
if (
|
726
|
+
if (search != groups.end()) {
|
724
727
|
rb_hash_aset(capturing_groups, key, re2_matchdata_nth_match(search->second, self));
|
725
728
|
} else {
|
726
729
|
break;
|
data/lib/2.6/re2.so
CHANGED
Binary file
|
data/lib/2.7/re2.so
CHANGED
Binary file
|
data/lib/3.0/re2.so
CHANGED
Binary file
|
data/lib/3.1/re2.so
CHANGED
Binary file
|
data/lib/3.2/re2.so
CHANGED
Binary file
|
data/lib/re2/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: re2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: aarch64-linux
|
6
6
|
authors:
|
7
7
|
- Paul Mucur
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-09-
|
12
|
+
date: 2023-09-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|