Skip to content

Commit

Permalink
Bump to version 2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mudge committed Sep 23, 2023
1 parent 33e1255 commit 09b9b90
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 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.1.3] - 2023-09-23
### Fixed
- Fixed memory leaks reported by
[ruby_memcheck](https://github.com/Shopify/ruby_memcheck) when rewinding an
`RE2::Scanner` and when passing invalid input to `RE2::Regexp#scan`,
`RE2::Regexp#initialize`, `RE2.Replace`, `RE2.GlobalReplace` and
`RE2::Set#add`. Thanks to @peterzhu2118 for maintaining ruby_memcheck and
their assistance in finding the source of these leaks.

## [2.1.2] - 2023-09-20
### Fixed
- Removed use of a C++17 extension from the gem to restore support for users
Expand Down Expand Up @@ -161,6 +170,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.1.3]: https://github.com/mudge/re2/releases/tag/v2.1.3
[2.1.2]: https://github.com/mudge/re2/releases/tag/v2.1.2
[2.1.1]: https://github.com/mudge/re2/releases/tag/v2.1.1
[2.1.0]: https://github.com/mudge/re2/releases/tag/v2.1.0
Expand Down
7 changes: 6 additions & 1 deletion 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.1.2
**Current version:** 2.1.3
**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)
Expand Down Expand Up @@ -264,6 +264,11 @@ Contributions
using `RE2::Scanner#scan` with an invalid regular expression;
* Thanks to [Pritam Baral](https://github.com/pritambaral) for contributing the
initial support for `RE2::Set`.
* Thanks to [Mike Dalessio](https://github.com/flavorjones) for reviewing the
precompilation of native gems in 2.0.
* 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.

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.1.2"
VERSION = "2.1.3"
end

0 comments on commit 09b9b90

Please sign in to comment.