<commit_before># VcrCable

[![Build Status](https://secure.travis-ci.org/spaghetticode/vcr_cable.png)](http://travis-ci.org/spaghetticode/vcr_cable)

This gem allows to use VCR in development. This is quite handy when your app
interacts frequently with external services and you're on a sloppy connection,
or when you want to save bandwidth, or when you happent to have no connection
at all.


## Usage

Add required gems to your Gemfile:

```ruby
gem 'vcr_cable'
gem 'webmock' # or fakeweb
```
Now all external requests will hit the remote servers only one time, and the
application will subsequently use the recorded data.


## Custom VCR Configuration

The default VCR configuration values are (extracted from ```lib/vcr_cable.rb```):

```ruby
  DEFAULT_CONFIG = {
    'development' => {
      'hook_into' => :fakeweb,
      'cassette_library_dir' => 'development_cassettes',
      'allow_http_connections_when_no_cassette' => true
    }
  }
```

If you want to override those values you can generate the vcr_cable.yml config
file and edit its params:

```bash
bundle exec rails generate vcr_cable
```

You will find the generated file in the ```config``` folder of your rails
application.

## Contributing<commit_msg>fakeweb as mocking lib first choice<commit_after># VcrCable

[![Build Status](https://secure.travis-ci.org/spaghetticode/vcr_cable.png)](http://travis-ci.org/spaghetticode/vcr_cable)

This gem allows to use VCR in development. This is quite handy when your app
interacts frequently with external services and you're on a sloppy connection,
or when you want to save bandwidth, or when you happent to have no connection
at all.


## Usage

Add required gems to your Gemfile:

```ruby
gem 'vcr_cable'
gem 'fakeweb' # or webmock
```
Now all external requests will hit the remote servers only one time, and the
application will subsequently use the recorded data.


## Custom VCR Configuration

The default VCR configuration values are (extracted from ```lib/vcr_cable.rb```):

```ruby
  DEFAULT_CONFIG = {
    'development' => {
      'hook_into' => :fakeweb,
      'cassette_library_dir' => 'development_cassettes',
      'allow_http_connections_when_no_cassette' => true
    }
  }
```

If you want to override those values you can generate the vcr_cable.yml config
file and edit its params:

```bash
bundle exec rails generate vcr_cable
```

You will find the generated file in the ```config``` folder of your rails
application.

## Contributing
{'fraction_non_alphanumeric': 0.09090909090909091, 'fraction_numerical': 0.0, 'mean_word_length': 4.477777777777778, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '2576285', 'n_tokens_mistral': 786, 'n_tokens_neox': 747, 'n_words': 288}