dotenv-rails 3.0.3 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. metadata +8 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13d0bf7c4ab29a1335e5c6c98dd62b98622783ffe204249aec02d55bb6c1fbbf
4
- data.tar.gz: dfae84449867ce9a8eb74ce376ff1d0256ea66b4b4a444db27aebf8ad448108a
3
+ metadata.gz: 21f844a7e1c04d3db2f6a125dea1521e847ccec5867acbd72311dc23c057f8b5
4
+ data.tar.gz: 89cff120fded9f968ae816c5d83709e04bda55f4de325ac9778eb6bf62afa81d
5
5
  SHA512:
6
- metadata.gz: bf943cf41fc1a5a4daa8c1e659b219b9b1f5f2eaa9ee4a8e2f3da6b72f5901371f6936fb428eb07b5aa0d1cd897e2abe1351f6887a21d07c27b2bcabf23259c6
7
- data.tar.gz: e01c7f7a529bfd1e9b57c5dd80c7627a765d86f3677259d45f9fffd5cac04dc48d6a65cf48928d36f80ecb4f843f90363d778eba30a716e6adeb77425b65a109
6
+ metadata.gz: 6ba2d6eeaa281fba23f8b5d3db82e9caa20170914b744aa3c4fcef68947b322f997ec8df29014442fb7bb7540c85213420ff2e80b9c7f0b9db7c2991dfc3518c
7
+ data.tar.gz: b791eb046a8f4b137b42e56ca58176c42f2805461c64199a4e8ec779c7c70da09cb796718f6e5ebfadc2a71c6af7335fbf9781fd1f59c1d494e6bf94e68d84fd
data/README.md CHANGED
@@ -54,7 +54,7 @@ require 'dotenv'
54
54
  Dotenv.load('file1.env', 'file2.env')
55
55
  ```
56
56
 
57
- ## Autorestore in tests
57
+ ### Autorestore in tests
58
58
 
59
59
  Since 3.0, dotenv in a Rails app will automatically restore `ENV` after each test. This means you can modify `ENV` in your tests without fear of leaking state to other tests. It works with both `ActiveSupport::TestCase` and `Rspec`.
60
60
 
@@ -181,6 +181,8 @@ Available options:
181
181
 
182
182
  * `Dotenv::Rails.files` - list of files to be loaded, in order of precedence.
183
183
  * `Dotenv::Rails.overwrite` - Overwrite exiting `ENV` variables with contents of `.env*` files
184
+ * `Dotenv::Rails.logger` - The logger to use for dotenv's logging. Defaults to `Rails.logger`
185
+ * `Dotenv::Rails.autorestore` - Enable or disable [autorestore](#autorestore-in-tests)
184
186
 
185
187
  ### Multi-line values
186
188
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotenv-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Keepers
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.3
19
+ version: 3.1.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.0.3
26
+ version: 3.1.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: railties
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,7 +66,7 @@ homepage: https://github.com/bkeepers/dotenv
66
66
  licenses:
67
67
  - MIT
68
68
  metadata: {}
69
- post_install_message:
69
+ post_install_message:
70
70
  rdoc_options: []
71
71
  require_paths:
72
72
  - lib
@@ -81,8 +81,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
- rubygems_version: 3.4.10
85
- signing_key:
84
+ rubygems_version: 3.5.9
85
+ signing_key:
86
86
  specification_version: 4
87
87
  summary: Autoload dotenv in Rails.
88
88
  test_files: []