From 7e499c2d79ede0311e3edc3ad3d87b8f8cb77e5e Mon Sep 17 00:00:00 2001 From: Paul Mucur Date: Wed, 13 Sep 2023 13:08:35 +0100 Subject: [PATCH] Prepare for 2.0.0 release --- CHANGELOG.md | 24 +++++++++++++++++++++--- README.md | 4 +++- lib/re2/version.rb | 2 +- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99c6b24..47adc3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,23 @@ project adheres to [Semantic Versioning](http://semver.org/). Older versions are detailed as [GitHub releases](https://github.com/mudge/re2/releases) for this project. +## [2.0.0] - 2023-09-13 +### Added +- The gem now comes bundled with the underlying RE2 library and its dependency, + Abseil. Installing the gem will compile those dependencies automatically. As + this can take a while, precompiled native gems are available for Linux, + Windows and macOS. (Thanks to Stan Hu for contributing this.) + +### Changed +- By default, the gem will use its own bundled version of RE2 rather than + looking for the library on the system. To opt back into that behaviour, pass + `--enable-system-libraries` when installing. (Thanks to Stan Hu for + contributing this.) + +### Removed +- Due to the new dependency on MiniPortile2, the gem no longer supports Ruby + versions older than 2.6. + ## [2.0.0.beta2] - 2023-09-10 ### Added - Restored support for Ruby 2.6. @@ -21,13 +38,13 @@ releases](https://github.com/mudge/re2/releases) for this project. ## [2.0.0.beta1] - 2023-09-08 ### Added -- The gem now comes bundled with the underlying re2 library and its dependency, - abseil. Installing the gem will compile those dependencies automatically. As +- The gem now comes bundled with the underlying RE2 library and its dependency, + Abseil. Installing the gem will compile those dependencies automatically. As this can take a while, precompiled native gems are available for Linux, Windows and macOS. (Thanks to Stan Hu for contributing this.) ### Changed -- By default, the gem will use its own bundled version of re2 rather than +- By default, the gem will use its own bundled version of RE2 rather than looking for the library on the system. To opt back into that behaviour, pass `--enable-system-libraries` when installing. (Thanks to Stan Hu for contributing this.) @@ -113,6 +130,7 @@ releases](https://github.com/mudge/re2/releases) for this project. ### Fixed - In Ruby 1.9.2 and later, re2 will now set the correct encoding for strings +[2.0.0]: https://github.com/mudge/re2/releases/tag/v2.0.0 [2.0.0.beta2]: https://github.com/mudge/re2/releases/tag/v2.0.0.beta2 [2.0.0.beta1]: https://github.com/mudge/re2/releases/tag/v2.0.0.beta1 [1.7.0]: https://github.com/mudge/re2/releases/tag/v1.7.0 diff --git a/README.md b/README.md index 0b11229..8d77350 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ re2 [![Build Status](https://github.com/mudge/re2/actions/workflows/tests.yml/ba A Ruby binding to [re2][], an "efficient, principled regular expression library". -**Current version:** 2.0.0.beta1 +**Current version:** 2.0.0 **Supported Ruby versions:** 2.6, 2.7, 3.0, 3.1, 3.2 **Bundled re2 version:** libre2.11 (2023-09-01) **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) @@ -54,6 +54,8 @@ following default locations: * `/opt/homebrew` * `/usr` +Alternatively, you can set the `RE2_USE_SYSTEM_LIBRARIES` environment variable instead of passing `--enable-system-libraries` to the `gem` command. + If you're using Bundler, you can use the [`force_ruby_platform`](https://bundler.io/v2.3/man/gemfile.5.html#FORCE_RUBY_PLATFORM) option in your Gemfile. diff --git a/lib/re2/version.rb b/lib/re2/version.rb index 71c91d0..cf2c08e 100644 --- a/lib/re2/version.rb +++ b/lib/re2/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module RE2 - VERSION = "2.0.0.beta2" + VERSION = "2.0.0" end