typed-config 1.3.9 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81307fb907c13839b1b56b1f24659ef9a7fd13c0301c598de3ed665278704df1
4
- data.tar.gz: a3dff7bdc054ec65f5ea9951e59cc5f9e0e4b2620bd7dc4e3ab9bc11e02d89d3
3
+ metadata.gz: eac1881c711eb421fad9ed158cc67ae9c3392563d896201afc4931ab0ac7166a
4
+ data.tar.gz: 00d2d40433f157cbac642ce520a386c8ee9657657997d6062dac81ed07f7224e
5
5
  SHA512:
6
- metadata.gz: af973c9be0376d845dd31552181cf47c6a49deebbe444616fc7b2d66219ed8283dbcc1c6a6d660d76bab474f8b87954618cff994ea47c8dcb2c7d15a2c7fc780
7
- data.tar.gz: dd5e6af344c1fc76b13f9a6aff9675f25daecdda948c1386368460c24618044d4ff2939382b8cb0a38ab05546576ec3bda7c60347ce672ba7a25a3a37dbcd819
6
+ metadata.gz: 504e6e233fe73e2d1b45220ec397151d4bf4727420050850c4dbb72497855b479dcdc8d05148dd44ecde36c6ee2449026572f8c09553c59118582593ee7ed77f
7
+ data.tar.gz: 18f8d1223bb52ce4791e1ac0d614267825e9488723f2dfa30a62aa3844bca9833d5a90b761e3caf1e4b694f190dd8a29f2d9bd655f7b90782aa6eebe72b54e54
data/README.md CHANGED
@@ -12,7 +12,7 @@ settings.
12
12
  This project has been inspired by [Config](https://github.com/rubyconfig/config) and
13
13
  it's meant to be an easy drop-in replacement with type-safety.
14
14
 
15
- ## Installing
15
+ ## Installing
16
16
 
17
17
  Add the gem to your `Gemfile`:
18
18
  ```ruby
@@ -57,7 +57,7 @@ available across the application in a `Settings` object:
57
57
  Settings.env
58
58
  Settting.support.email
59
59
 
60
- # Example:
60
+ # Example:
61
61
  config.action_mailer.asset_host = "https://#{Settings.app.domain}"
62
62
  ```
63
63
 
@@ -13,6 +13,7 @@ module TypedConfig
13
13
  end
14
14
 
15
15
  def preload
16
+ Dotenv::Railtie.load if defined?(Dotenv)
16
17
  Setup.new.call(
17
18
  config_path: ::Rails.root.join('config'),
18
19
  env: ::Rails.env,
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module TypedConfig
5
- VERSION = '1.3.9'
5
+ VERSION = '1.4.0'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typed-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.9
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Santos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-04 00:00:00.000000000 Z
11
+ date: 2020-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deep_merge