Changelog History
Page 1
-
v1.5.1 Changes
January 09, 2020๐ Resolve deprecation warnings when using this gem with ruby 2.7 - See #37
Thanks @taichi-ishitani
-
v1.5.0 Changes
July 13, 2019- ๐ Full ruby
v2.6.3
support. (There were a few minor bugs introduced by the unicode version bump from12.0.0
to12.1.0
. - โฌ๏ธ Dropped support for ruby
v2.0.0
-v2.3.x
. - Fixed ability to generate examples for patterns like:
/ __xxx__ /
. - โ Added support for unicode range generation, e.g.
/[\u4e00-\u9fa5]{2,4}/.random_example
(@xiejiangzhi)
- ๐ Full ruby
-
v1.4.4 Changes
December 27, 2018๐ Generated unicode 11.0 ranges, as required for ruby
v2.6.x
compatibility. -
v1.4.3 Changes
July 29, 2018๐ This release contains a significant fix to
Regexp#random_example
, as reported here: #21๐ There are also some minor additions/bug fixes
- โ Added (limited) support for the absence operator.
- ๐ Fixed back-reference group counter when using non-capture groups or comment groups. (This impacts regex example generation when the back-reference number is after one of the aforementioned group types.)
-
v1.4.2 Changes
December 25, 2017๐ Generated unicode 10.0 ranges, as required for ruby
v2.5.x
compatibility.This ensures code such as:
/\p{Alpha}/.random_example
๐ will generate a matching example under the new ruby version.
-
v1.4.1 Changes
November 09, 2017//.examples # => [''] //.random_example # => ''
In previous versions of the gem, running the above commands failed.
-
v1.4.0 Changes
October 15, 2017๐ง Configuration options can now be made globally, e.g.
RegexpExamples::Config.max_repeater_variance = 5 RegexpExamples::Config.max_group_results = 10 RegexpExamples::Config.max_results_limit = 20000
Or within a block, e.g.
RegexpExamples::Config.with_configuration(max_repeater_variance: 5) do # ... end
All forms of configuration are now thread safe.
-
v1.3.2 Changes
November 09, 2017๐ This release comes with two significant fixes:
๐ 1.
/[[:punct:]]/.examples
can now return all possible characters for ruby 2.4.0+. (The definition of this character set has changed in the latest minor ruby version.)/foo\Z/.examples
will now return "foo" and "foo\n". This fixes a long-standing bug in the library.
-
v1.3.1 Changes
December 30, 2016๐ Updated the character set definitions, in light of the new
v2.4.0
ruby release. -
v1.3.0 Changes
December 30, 2016Following a raised issue, the gem no longer uses symbolic links to simplify cross-version unicode mappings.
There should be no functional change resulting from this release.