Skip to content

Commit

Permalink
Bump to version 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mudge committed Sep 16, 2023
1 parent dbf90f6 commit d5b0e05
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.1.0] - 2023-09-16
### Fixed
- As RE2 only supports UTF-8 and ISO-8859-1 encodings, fix an inconsistency
when using string patterns with `RE2.Replace` and `RE2.GlobalReplace` where
the result would match the encoding of the pattern rather than UTF-8 which is
what RE2 will use. This behaviour and limitation is now documented on all
APIs that produce string results.

### Added
- The `RE2::Set` API now accepts anything that can be coerced to a string where
previously only strings were permitted, e.g. `RE2::Set#add`,
`RE2::Set#match`.
- Added the licences of all vendored dependencies: RE2 and Abseil.
- Document the behaviour of `RE2::Regexp#match` when given a pattern with no
capturing groups: it will return true or false whether there was a match or
not rather than a `RE2::MatchData` instance.

## [2.0.0] - 2023-09-13
### Added
- The gem now comes bundled with the underlying RE2 library and its dependency,
Expand Down Expand Up @@ -130,6 +147,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.0]: https://github.com/mudge/re2/releases/tag/v2.1.0
[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
Expand Down
2 changes: 1 addition & 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.0.0
**Current version:** 2.1.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)
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.0.0"
VERSION = "2.1.0"
end

0 comments on commit d5b0e05

Please sign in to comment.