I've just pushed the first beta release of re2 2.0 which now comes bundled with the underlying Google re2 library (and its dependency, abseil): https://github.com/mudge/re2/releases/tag/v2.0.0.beta1
As compilation can take a while, there are precompiled native gems for Linux, Windows, and macOS. Please help me test it by installing 2.0.0.beta1 (or using `gem install re2 --pre`): once installed, try a simple match like `RE2('fo+') =~ 'fooo'` and let me know on GitHub if you run into any issues: https://github.com/mudge/re2/issues
And now a second beta release is available from RubyGems: re2 2.0.0.beta2 https://github.com/mudge/re2/releases/tag/v2.0.0.beta2
Featuring the latest version of RE2 (2023-09-01), a fix for anyone opting out of the native gems and compiling against a system RE2 in Ruby's `exec_prefix` directory and the restoration of Ruby 2.6 support (for any fellow Intel macOS Monterey users).
Again, please install with `gem install re2 --pre` and let me know if you have any issues at all: https://github.com/mudge/re2/issues
And finally, re2 2.0.0 is now available: https://github.com/mudge/re2/releases/tag/v2.0.0
(Recap: Ruby bindings to Google's RE2 "fast, safe, thread-friendly” regular expression library now bundled with the latest version of RE2 so you no longer need to install it separately. Native gems have been precompiled for Linux, Windows and macOS so installation should be much faster for most people. Thanks to @stanhu for being the driving force behind this.)