Skip to content

Latest commit

 

History

History
90 lines (73 loc) · 3.16 KB

CHANGELOG.md

File metadata and controls

90 lines (73 loc) · 3.16 KB

Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

Older versions are detailed as GitHub releases for this project.

1.6.0 - 2022-10-22

Added

  • Added RE2::MatchData#deconstruct and RE2::MatchData#deconstruct_keys so they can be used with Ruby pattern matching

1.5.0 - 2022-10-16

Added

  • Added RE2::Set for simultaneously searching a collection of patterns

1.4.0 - 2021-03-29

Fixed

  • Fixed a crash when using RE2::Scanner#scan with an invalid regular expression (thanks to Sergio Medina for reporting this)
  • Fixed RE2::Regexp#match raising a NoMemoryError instead of an ArgumentError when given a negative number of matches

1.3.0 - 2021-03-12

Added

  • Add Homebrew's prefix on Apple Silicon and /usr as fallback locations searched when looking for the underlying re2 library if not found in /usr/local

1.2.0 - 2020-04-18

Changed

  • Stop using the now-deprecated utf8 API and re-implement it in terms of the encoding API in order to support both existing and upcoming releases of re2

1.1.1 - 2017-07-24

Fixed

  • Ensure that any compilers passed via the CC and CXX environment variables are used throughout the compilation process including both the final Makefile and any preceding checks

1.1.0 - 2017-07-23

Fixed

  • Fixed RE2::Scanner not advancing when calling scan with an empty pattern or pattern with empty capturing groups (thanks to Stan Hu for reporting this)

Added

  • Added eof? to RE2::Scanner to detect when the input has been fully consumed by matches (used internally by the fixed scan)
  • Added support for specifying the C and C++ compiler using the standard CC and CXX environment variables when installing the gem

1.0.0 - 2016-11-14

Added

  • Added support for versions of the underlying re2 library that require C++11 compiler support

0.7.0 - 2015-01-25

Added

  • Added RE2::MatchData#begin and RE2::MatchData#end for finding the offset of matches in your searches

[0.6.1] - 2014-10-25

Fixed

  • Fix crash when non-strings are passed to match

0.6.0 - 2014-02-01

Added

  • Added RE2::Regexp#scan which returns a new RE2::Scanner instance for incrementally scanning a string for matches

Removed

  • Methods that altered strings in place are gone: re2_sub! and re2_gsub!

Changed

  • RE2.Replace and RE2.GlobalReplace now return new strings rather than modifying their input

Fixed

  • In Ruby 1.9.2 and later, re2 will now set the correct encoding for strings