Skip to content

Configuration API and thread safety

Compare
Choose a tag to compare
@tom-lord tom-lord released this 15 Oct 20:58
· 67 commits to master since this release

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.