<commit_before># envconfig

Connect your Rails app to backing services via ENV vars such as those
provided by [Broadstack][broadstack] or [Heroku Addons][heroku_addons].

envconfig gathers ENV configuration from known add-on providers, exposes them
as a consistent configuration interface, and configures your Rails application
via initializers.

For example if your ENV contains the follow:

```
POSTMARK_SMTP_SERVER="smtp.example.org"
POSTMARK_API_KEY="<KEY>"
```

Then envconfig's SMTP configuration will look like this:

```ruby
{
  "address" => "smtp.example.org",
  "port" => 25,
  "username" => "bcc<PASSWORD>",
  "password" => "<KEY>",
}
```

And `ActionMailer` will be auto-configured accordingly.


## Installation

Add `gem "envconfig"` to your Gemfile and run `bundle`,<commit_msg>Glimmer of actual usage in README.md<commit_after># envconfig

Connect your Rails app to backing services via ENV vars such as those
provided by [Broadstack][broadstack] or [Heroku Addons][heroku_addons].

envconfig gathers ENV configuration from known add-on providers, exposes them
as a consistent configuration interface, and configures your Rails application
via initializers.

For example if your ENV contains the follow:

```
POSTMARK_SMTP_SERVER="smtp.example.org"
POSTMARK_API_KEY="<KEY>"
```

Then envconfig's SMTP configuration will look like this:

```ruby
Envconfig.for(ENV).smtp.to_h # =>
{
  "address" => "smtp.example.org",
  "port" => 25,
  "username" => "bcc<PASSWORD>",
  "password" => "<KEY>",
}
```

And `ActionMailer` will be auto-configured accordingly.


## Installation

Add `gem "envconfig"` to your Gemfile and run `bundle`,
{'fraction_non_alphanumeric': 0.11381618989653074, 'fraction_numerical': 0.002434570906877663, 'mean_word_length': 5.396887159533074, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 18, 'https://': 0, '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': '2903404', 'n_tokens_mistral': 532, 'n_tokens_neox': 500, 'n_words': 177}