dotenv 3.1.2 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/dotenv/rails.rb +3 -6
- data/lib/dotenv/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f16b8b4a904cc3ab097d3c4fcc7a86a548b95c99a40323133f775ce635acc7a
|
4
|
+
data.tar.gz: 8f1eac3e583001bd9e2455112f75145a45770a9d1d5e1b4ae58cd16d09160009
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e15bdb2e4d3327c75ffd141d7f1bcea8f2d8ce29b450d1aaa8ac90b83e08b65c70a9752fbc76d1a0bc874889b7d26d85e736391f7d1c4a588deda04fb191d39f
|
7
|
+
data.tar.gz: 28d43ce2765fd432d50e85f389eabc00618b807cfc1a6034c5974641534f4455a7324340ebc559598391eadad2e469bc8a5ca9aa4e4486594519d4493db4a718
|
data/README.md
CHANGED
@@ -180,7 +180,7 @@ end
|
|
180
180
|
Available options:
|
181
181
|
|
182
182
|
* `Dotenv::Rails.files` - list of files to be loaded, in order of precedence.
|
183
|
-
* `Dotenv::Rails.overwrite` - Overwrite
|
183
|
+
* `Dotenv::Rails.overwrite` - Overwrite existing `ENV` variables with contents of `.env*` files
|
184
184
|
* `Dotenv::Rails.logger` - The logger to use for dotenv's logging. Defaults to `Rails.logger`
|
185
185
|
* `Dotenv::Rails.autorestore` - Enable or disable [autorestore](#autorestore-in-tests)
|
186
186
|
|
@@ -276,7 +276,7 @@ You can use the `-t` or `--template` flag on the dotenv cli to create a template
|
|
276
276
|
```console
|
277
277
|
$ dotenv -t .env
|
278
278
|
```
|
279
|
-
A template will be created in your working directory named `{
|
279
|
+
A template will be created in your working directory named `{FILENAME}.template`. So in the above example, it would create a `.env.template` file.
|
280
280
|
|
281
281
|
The template will contain all the environment variables in your `.env` file but with their values set to the variable names.
|
282
282
|
|
data/lib/dotenv/rails.rb
CHANGED
@@ -10,14 +10,11 @@ require "dotenv/log_subscriber"
|
|
10
10
|
Dotenv.instrumenter = ActiveSupport::Notifications
|
11
11
|
|
12
12
|
# Watch all loaded env files with Spring
|
13
|
-
|
14
|
-
|
15
|
-
ActiveSupport::Notifications.subscribe("load.dotenv") do |*args|
|
13
|
+
ActiveSupport::Notifications.subscribe("load.dotenv") do |*args|
|
14
|
+
if defined?(Spring)
|
16
15
|
event = ActiveSupport::Notifications::Event.new(*args)
|
17
16
|
Spring.watch event.payload[:env].filename if Rails.application
|
18
17
|
end
|
19
|
-
rescue LoadError, ArgumentError
|
20
|
-
# Spring is not available
|
21
18
|
end
|
22
19
|
|
23
20
|
module Dotenv
|
@@ -26,7 +23,7 @@ module Dotenv
|
|
26
23
|
delegate :files, :files=, :overwrite, :overwrite=, :autorestore, :autorestore=, :logger, to: "config.dotenv"
|
27
24
|
|
28
25
|
def initialize
|
29
|
-
super
|
26
|
+
super
|
30
27
|
config.dotenv = ActiveSupport::OrderedOptions.new.update(
|
31
28
|
# Rails.logger is not available yet, so we'll save log messages and replay them when it is
|
32
29
|
logger: Dotenv::ReplayLogger.new,
|
data/lib/dotenv/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dotenv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.3
|
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-
|
11
|
+
date: 2024-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -83,8 +83,9 @@ files:
|
|
83
83
|
homepage: https://github.com/bkeepers/dotenv
|
84
84
|
licenses:
|
85
85
|
- MIT
|
86
|
-
metadata:
|
87
|
-
|
86
|
+
metadata:
|
87
|
+
changelog_uri: https://github.com/bkeepers/dotenv/releases
|
88
|
+
post_install_message:
|
88
89
|
rdoc_options: []
|
89
90
|
require_paths:
|
90
91
|
- lib
|
@@ -100,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
101
|
version: '0'
|
101
102
|
requirements: []
|
102
103
|
rubygems_version: 3.5.9
|
103
|
-
signing_key:
|
104
|
+
signing_key:
|
104
105
|
specification_version: 4
|
105
106
|
summary: Loads environment variables from `.env`.
|
106
107
|
test_files: []
|