Random-Data-Despegar
Install
gem install random_data_despegar
O manualmente => http://gems.despegar.com/#random_data_despegar
Generadores de datos random
Generadores
ArrayRandomizer:
Random.rand
Random.roulette
Booleans:
Random.boolean
ContactInfo:
Random.phone
Random.international_phone
Random.email
Dates:
Random.date
Random.date_between
Random.departure_and_return_dates
Random.passenger_birthdate(passenger_type)
Grammar:
Random.grammatical_construct
Locations:
Random.address_line_1
Random.address_line_2
Random.zipcode
Random.cep
Random.cpnj
Random.uk_post_code
Random.state_code
Random.state_full
Random.country
Random.city
Names:
Random.firstname
Random.firstname_male
Random.firstname_female
Random.initial
Random.lastname
Numbers:
Random.number
Random.number_with_size(size)
Random.alphanumeric_with_size(size)
Random.bit
Random.bits
Random.random_card_number(card_regex)
InvoiceData:
Random.invoice_data_for "BR"
:cep=>"13301611"
:cpf=>"88227212710"}
IdGenerator:
Random.id_for "BR"
Text:
Random.alphanumeric
Random.paragraphs