No commit activity in last 3 years
No release in over 3 years
Generates data from a simple-config format.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.6.1, ~> 0.6
 Project Readme

Introducing the quickdata_generator gem

require 'quickdata_generator'

config = "
age: 14..65
height: 1.4..2.2
gender: m, f
"

a = QuickDataGenerator.new(config, rows: 10).to_a

Output

=> [
{:age=>36, :height=>2.0, :gender=>"f"}, {:age=>25, :height=>1.7, :gender=>"m"},
{:age=>18, :height=>1.5, :gender=>"m"}, {:age=>52, :height=>1.9, :gender=>"f"},
{:age=>32, :height=>1.8, :gender=>"m"}, {:age=>56, :height=>1.5, :gender=>"m"},
{:age=>18, :height=>1.6, :gender=>"f"}, {:age=>37, :height=>1.5, :gender=>"m"},
{:age=>54, :height=>1.7, :gender=>"f"}, {:age=>17, :height=>1.9, :gender=>"m"}
]

Resources

quickdata_generator data generator testdata random