Skip to content

Commit

Permalink
Version bump (v1.1.0)
Browse files Browse the repository at this point in the history
Implemented Regexp#random_example !!!

This is effectively just a (MUCH) more efficient way of doing:
/complicated .{20} regex/.examples(max_group_results: 9999999999).sample(1)

Instead, you can use much more optimised code for this method via:
/complicated .{20} regex/.random_example

The key differrence being that Regexp#random_example does not store any
more than 1 result in memory, at any time, making its performance scale
linearly rather than exponentially.
  • Loading branch information
Tom Lord committed Mar 8, 2015
1 parent fe506bd commit d58aa7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/regexp-examples/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RegexpExamples
VERSION = '1.0.2'
VERSION = '1.1.0'
end

0 comments on commit d58aa7b

Please sign in to comment.