Skip to content

Commit

Permalink
Bump to version 2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mudge committed Nov 11, 2023
1 parent 677352d commit 967b568
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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.4.0] - 2023-11-11
### Added
- Improve garbage collection and support compaction in newer versions of Ruby.
Thanks to @byroot for contributing this by switching to Ruby's TypedData API.

### Changed
- No longer needlessly return copies of frozen strings passed to
`RE2::Regexp#match` and return the original instead.

## [2.3.0] - 2023-10-31
### Changed
- Upgrade the bundled version of RE2 to 2023-11-01.
Expand Down Expand Up @@ -180,6 +189,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.4.0]: https://github.com/mudge/re2/releases/tag/v2.4.0
[2.3.0]: https://github.com/mudge/re2/releases/tag/v2.3.0
[2.2.0]: https://github.com/mudge/re2/releases/tag/v2.2.0
[2.1.3]: https://github.com/mudge/re2/releases/tag/v2.1.3
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Ruby bindings to [RE2][], a "fast, safe, thread-friendly alternative to
backtracking regular expression engines like those used in PCRE, Perl, and
Python".

**Current version:** 2.3.0
**Current version:** 2.4.0
**Supported Ruby versions:** 2.6, 2.7, 3.0, 3.1, 3.2
**Bundled RE2 version:** libre2.11 (2023-11-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)
Expand Down Expand Up @@ -39,8 +39,9 @@ If you are using Debian, you can install the [libre2-dev][] package like so:

$ sudo apt-get install libre2-dev

Recent versions of RE2 require a compiler with C++14 support such as
[clang](http://clang.llvm.org/) 3.4 or [gcc](https://gcc.gnu.org/) 5.
Recent versions of RE2 require [CMake](https://cmake.org) and a compiler with
C++14 support such as [clang](http://clang.llvm.org/) 3.4 or
[gcc](https://gcc.gnu.org/) 5.

If you are using a packaged Ruby distribution, make sure you also have the
Ruby header files installed such as those provided by the [ruby-dev][] package
Expand Down Expand Up @@ -269,6 +270,9 @@ Contributions
* Thanks to [Peter Zhu](https://github.com/peterzhu2118) for
[ruby_memcheck](https://github.com/Shopify/ruby_memcheck) and helping find
the memory leaks fixed in 2.1.3.
* Thanks to [Jean Boussier](https://github.com/byroot) for contributing the
switch to Ruby's `TypedData` API and the resulting garbage collection
improvements in 2.4.0.

Contact
-------
Expand Down
2 changes: 1 addition & 1 deletion lib/re2/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module RE2
VERSION = "2.3.0"
VERSION = "2.4.0"
end

0 comments on commit 967b568

Please sign in to comment.