re2 2.22.0 → 2.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/Rakefile +1 -2
- data/dependencies.yml +2 -2
- data/ext/re2/extconf.rb +1 -1
- data/ext/re2/re2.cc +188 -124
- data/lib/re2/version.rb +1 -1
- data/ports/archives/20260107.1.tar.gz +0 -0
- data/re2.gemspec +2 -2
- data/spec/re2/match_data_spec.rb +97 -0
- data/spec/re2/regexp_spec.rb +175 -0
- data/spec/re2/scanner_spec.rb +66 -0
- data/spec/re2/set_spec.rb +36 -0
- metadata +7 -7
- data/ports/archives/20250814.1.tar.gz +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 211cf68953d93e36bb496577c4ff74a106ec9684364ce7f05f63e5f41b5e88fc
|
|
4
|
+
data.tar.gz: 88c3e4dc0502f6645c0b7483569fc65af267fc542b6ef5cc56c2672bde2484cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c1bb2f40c481eb0073b31e1c7c944153bbb01cc09ce8fa3eb9c7055e227fc77eab36680010d8874cfbc789581ae87e07499e9ceecc63f2b2389fa34fa7a3f65
|
|
7
|
+
data.tar.gz: 43c37e0f2664ef412e5a05260346c5fdc157397721920d5c2686addd97b17d9a33e44ae9861dfd5f9233e38c221ea8baeaf087a91548a539d1a91ed56a989ff4
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Python".
|
|
|
6
6
|
|
|
7
7
|
[](https://github.com/mudge/re2/actions)
|
|
8
8
|
|
|
9
|
-
**Current version:** 2.
|
|
9
|
+
**Current version:** 2.24.0
|
|
10
10
|
**Bundled RE2 version:** libre2.11 (2025-11-05)
|
|
11
11
|
|
|
12
12
|
```ruby
|
|
@@ -260,7 +260,7 @@ RE2(non_latin1_pattern.encode("ISO-8859-1"), utf8: false).match(non_latin1_text.
|
|
|
260
260
|
|
|
261
261
|
This gem requires the following to run:
|
|
262
262
|
|
|
263
|
-
* [Ruby](https://www.ruby-lang.org/en/) 3.1 to
|
|
263
|
+
* [Ruby](https://www.ruby-lang.org/en/) 3.1 to 4.0
|
|
264
264
|
|
|
265
265
|
It supports the following RE2 ABI versions:
|
|
266
266
|
|
data/Rakefile
CHANGED
|
@@ -33,7 +33,7 @@ cross_platforms = %w[
|
|
|
33
33
|
x86_64-linux-musl
|
|
34
34
|
].freeze
|
|
35
35
|
|
|
36
|
-
RakeCompilerDock.set_ruby_cc_version("~> 3.1")
|
|
36
|
+
RakeCompilerDock.set_ruby_cc_version("~> 3.1", "~> 4.0")
|
|
37
37
|
|
|
38
38
|
Gem::PackageTask.new(re2_gemspec).define
|
|
39
39
|
|
|
@@ -74,7 +74,6 @@ namespace :gem do
|
|
|
74
74
|
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null &&
|
|
75
75
|
sudo apt-get update &&
|
|
76
76
|
sudo apt-get install -y cmake=3.22.2-0kitware1ubuntu20.04.1 cmake-data=3.22.2-0kitware1ubuntu20.04.1 &&
|
|
77
|
-
rbenv shell 3.1.6 &&
|
|
78
77
|
gem install bundler --no-document &&
|
|
79
78
|
bundle install &&
|
|
80
79
|
bundle exec rake native:#{platform} pkg/#{re2_gemspec.full_name}-#{Gem::Platform.new(platform)}.gem PATH="/usr/local/bin:$PATH"
|
data/dependencies.yml
CHANGED
|
@@ -3,5 +3,5 @@ libre2:
|
|
|
3
3
|
version: '2025-11-05'
|
|
4
4
|
sha256: 87f6029d2f6de8aa023654240a03ada90e876ce9a4676e258dd01ea4c26ffd67
|
|
5
5
|
abseil:
|
|
6
|
-
version: '
|
|
7
|
-
sha256:
|
|
6
|
+
version: '20260107.1'
|
|
7
|
+
sha256: 4314e2a7cbac89cac25a2f2322870f343d81579756ceff7f431803c2c9090195
|
data/ext/re2/extconf.rb
CHANGED
|
@@ -110,7 +110,7 @@ module RE2
|
|
|
110
110
|
process_recipe(abseil_recipe) do |recipe|
|
|
111
111
|
recipe.configure_options << '-DABSL_PROPAGATE_CXX_STD=ON'
|
|
112
112
|
# Workaround for https://github.com/abseil/abseil-cpp/issues/1510
|
|
113
|
-
recipe.configure_options << '-DCMAKE_CXX_FLAGS=-DABSL_FORCE_WAITER_MODE=4' if MiniPortile.windows?
|
|
113
|
+
recipe.configure_options << '-DCMAKE_CXX_FLAGS=-DABSL_FORCE_WAITER_MODE=4 -D_WIN32_WINNT=0x0601' if MiniPortile.windows?
|
|
114
114
|
end
|
|
115
115
|
|
|
116
116
|
process_recipe(re2_recipe) do |recipe|
|