Skip to content

A gem for shoveling fake data into things like search engines or key-value stores

License

Notifications You must be signed in to change notification settings

omnifroodle/theShoveler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A gem to shovel data into a datastore (like Apache Solr!)

I constantly need loads of fakey data that loosely resembles real life. This is a gem to help with that!

Installation

Add this line to your application's Gemfile:

gem 'theShoveler'

And then execute:

$ bundle

Or install it yourself as:

$ gem install theShoveler

Usage

The Shoveler comes complete with it's own command line tool.

shovel load solr --fields=title:Faker::Lorem.sentence --documents=20

Will load 20 fake data using the "solr" server module with a field called title whose values are a single "Lorem Ipsum" sentance.

Take a look at the docs for Faker to see what other options exist: http://rubydoc.info/github/stympy/faker/master/frames

Features on our to-do list:

  • More generators
  • Clean DSL for creating smarter generators (ala Factory girl)
  • Distrubuted data generation
  • More server backends
  • Specify a range or distribution of random values, so a field has more similar values across all docs

About

A gem for shoveling fake data into things like search engines or key-value stores

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages