<commit_before>Dummier
=======

A smart gem with a dumb name; Dummier is a rails generator for automating the creation of rails testing applications. 

Dummier was inspired by [<NAME>](https://github.com/josevalim)'s [enginex](https://github.com/josevalim/enginex) which creates a standard gem structure for you. Enginex creates a `test/dummy` app for you, but what if we want to re-create it? Or leave it out of git?

The idea behind Dummier is that we don't check `test/dummy` into git, but rather generate it on the fly for the gems we're developing. It just seems [DRY](http://en.wikipedia.org/wiki/Don't_repeat_yourself)'er that way.

Dummier is simple; just run the binary from your gem's root directory and it will generate a stripped-down & gem-dev-ready rails app in `test/dummy`. While it's doing it's thing, Dummer triggers a few hooks along the way for easy customization.

To catch the hooks, just create appropriatly named files in `lib/dummy_hooks` inside your gem. See **Hooks** below for more info.


Installation
------------

To install from RubyGems:

    gem install dummier


To package for development in your gemspec:
    
    s.add_development_dependency('dummier', '>= 0.1.0')
    
    
Usage
-----

After you've installed Dummier, just cd into the gem your developing and run:

    bundle exec dummier
    

Hooks
-----
    
Dummier calls the follow hooks along the way:

    before_delete
    before_app_generator
    after_app_generator
    before_migrate
    after_migrate
    
    
Place appropriatly named files in `lib/dummy_hooks` and dummier will find and execute them automatically! 

You can use [Rails::Generators::Actions](http://api.rubyonrails.org/classes/Rails/Generators/Actions.html) as well as [Thor::Actions](http://textmate.rubyforge.org/thor/Thor/Actions.html) in your hooks. Also, since hooks are just `eval`'d into the Dummer::AppGenerator, you have access to all of [those methods](http://rubydoc.info/gems/dummier/0.1.0/Dummier/AppGenerator) as well. 
    
    
### Simple Example<commit_msg>updated the readme a bit<commit_after>Dummier
=======

A smart gem with a dumb name; Dummier is a rails generator for automating the creation of rails testing applications. 

Dummier was inspired by [<NAME>](https://github.com/josevalim)'s [enginex](https://github.com/josevalim/enginex) which creates a standard gem structure for you. Enginex creates a `test/dummy` app for you, but what if we want to re-create it? Or leave it out of git?

The idea behind Dummier is that we don't check `test/dummy` into git, but rather generate it on the fly for the gems we're developing. It just seems [DRY](http://en.wikipedia.org/wiki/Don't_repeat_yourself)'er that way.

Dummier is simple; just run the binary from your gem's root directory and it will generate a stripped-down & gem-dev-ready rails app in `test/dummy`. While it's doing it's thing, Dummer triggers a few hooks along the way for easy customization.

To catch the hooks, just create appropriatly named files in `lib/dummy_hooks` inside your gem. See **Hooks** below for more info.


Installation
------------

To install from RubyGems:

    gem install dummier

To install with bundler:

    gem 'dummier', '>= 0.1.0'

To package for development in your gemspec:
    
    s.add_development_dependency('dummier', '>= 0.1.0')
    
    
Usage
-----

After you've installed Dummier, just `cd` into the gem your developing and run the binary:

    dummier
    
If you're in a gem that uses bundler, you may have to run the binary with `bundle exec`: 

    bundle exec dummier
    

Hooks
-----
    
Dummier calls the following hooks along the way:

    before_delete
    before_app_generator
    after_app_generator
    before_migrate
    after_migrate
    
    
Place appropriatly named files in `lib/dummy_hooks` and dummier will find and execute them automatically! 

You can use [Rails::Generators::Actions](http://api.rubyonrails.org/classes/Rails/Generators/Actions.html) as well as [Thor::Actions](http://textmate.rubyforge.org/thor/Thor/Actions.html) in your hooks. Also, since hooks are just `eval`'d into the Dummer::AppGenerator, you have access to all of [those methods](http://rubydoc.info/gems/dummier/0.1.0/Dummier/AppGenerator) as well. 
    
    
### Simple Example
{'fraction_non_alphanumeric': 0.09324608553400328, 'fraction_numerical': 0.0035054919373685442, 'mean_word_length': 3.7240618101545255, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4451635', 'n_tokens_mistral': 1324, 'n_tokens_neox': 1260, 'n_words': 509}