<commit_before># SupportingCast

Opinionated generators for common Rails supporting cast services, e.g. Redis, nginx, sidekiq, nginx

## Installation

Add this line to your application's Gemfile:

    gem 'supporting_cast', :group => :development

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install supporting_cast

## Usage

    $ rails g supporting_cast:config          # Bootstrap the whole supporting cast

    $ rails g supporting_cast:<name>_config   # Generate config for given cast member

## Configurations

SupportingCast is intended to make it easier to get backing services up and running for your Rails app for your development and test environments. A guiding principle, largely inspired by the [12 Factor App](http://www.12factor.net/), is to minimize divergence between development and production environments.

### Redis

As <NAME> said in his post, [Testing Rails Against a Running Redis Instance](http://fhwang.net/2010/09/23/Testing-Rails-against-a-running-Redis-instance-and-doing-it-with-Hydra-to-boot):

> If your Rails app uses Redis, there are basically three approaches you can take for when the code under test hits Redis.
>
> 1. Mock Redis
> 2. Stub Redis
> 3. Stop messing around and just use Redis

SupportingCast will generate configurations for running separate Redis instances for development and test. Paired with the foreman configuration, it's dead simple to  You could [use Redis namespaces to separate environments}(http://dev.af83.com/2012/07/31/should-we-namespace-redis.html), but why mess around?

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
<commit_msg>type in README<commit_after># SupportingCast

Opinionated generators for common Rails supporting cast services, e.g. Redis, nginx, sidekiq, nginx

## Installation

Add this line to your application's Gemfile:

    gem 'supporting_cast', :group => :development

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install supporting_cast

## Usage

    $ rails g supporting_cast:config          # Bootstrap the whole supporting cast

    $ rails g supporting_cast:<name>_config   # Generate config for given cast member

## Configurations

SupportingCast is intended to make it easier to get backing services up and running for your Rails app for your development and test environments. A guiding principle, largely inspired by the [12 Factor App](http://www.12factor.net/), is to minimize divergence between development and production environments.

### Redis

As <NAME> said in his post, [Testing Rails Against a Running Redis Instance](http://fhwang.net/2010/09/23/Testing-Rails-against-a-running-Redis-instance-and-doing-it-with-Hydra-to-boot):

> If your Rails app uses Redis, there are basically three approaches you can take for when the code under test hits Redis.
>
> 1. Mock Redis
> 2. Stub Redis
> 3. Stop messing around and just use Redis

SupportingCast will generate configurations for running separate Redis instances for development and test. Paired with the foreman configuration, it's dead simple to  You could [use Redis namespaces to separate environments](http://dev.af83.com/2012/07/31/should-we-namespace-redis.html), but why mess around?

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

{'fraction_non_alphanumeric': 0.07808633489139401, 'fraction_numerical': 0.016497113005224086, 'mean_word_length': 4.219512195121951, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1284601', 'n_tokens_mistral': 1070, 'n_tokens_neox': 975, 'n_words': 446}