<commit_before>[![Build Status](https://travis-ci.org/the-refinery/sparkpost_rails.svg?branch=master)](https://travis-ci.org/the-refinery/sparkpost_rails)

# SparkPost Rails

In `Gemfile` add

```
gem 'sparkpost_rails', :github => 'the-refinery/sparkpost_rails'
```

By default, the gem will look for your SparkPost API key in your environment, with the key
'SPARKPOST_API_KEY'.  You can override this setting by identifying a different key in the initializer 
(`config/initializers/sparkpost_rails.rb`):

```
SparkPostRails.configure do |c|
  c.api_key = 'YOUR API KEY'
end
```

Additionally, the following configuration options are available to be set in your initializer 
( `config/initializers/sparkpost_rails.rb`):
<commit_msg>Update the Readme to not need the github reference in your gemfile now<commit_after>[![Gem Version](https://badge.fury.io/rb/sparkpost_rails.svg)](https://badge.fury.io/rb/sparkpost_rails)
[![Build Status](https://travis-ci.org/the-refinery/sparkpost_rails.svg?branch=master)](https://travis-ci.org/the-refinery/sparkpost_rails)

# SparkPost Rails

In `Gemfile` add

```
gem 'sparkpost_rails'
```

By default, the gem will look for your SparkPost API key in your environment, with the key
'SPARKPOST_API_KEY'.  You can override this setting by identifying a different key in the initializer 
(`config/initializers/sparkpost_rails.rb`):

```
SparkPostRails.configure do |c|
  c.api_key = 'YOUR API KEY'
end
```

Additionally, the following configuration options are available to be set in your initializer 
( `config/initializers/sparkpost_rails.rb`):

{'fraction_non_alphanumeric': 0.11749842072015161, 'fraction_numerical': 0.0, 'mean_word_length': 5.518518518518518, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 6, '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': '2157642', 'n_tokens_mistral': 552, 'n_tokens_neox': 505, 'n_words': 142}