dotenv-rails 3.1.0 → 3.1.8

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -4
  3. metadata +8 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9bd07b59cb6784e40004515930198cd245eef51961817b42e85536dbc0ecbb9c
4
- data.tar.gz: e626c7c46b97d40188145705dac4dec25d968ee70af0010db6fcc3125a74fe66
3
+ metadata.gz: c0e302fb028f65e97a5a1c22d97534a0fbc42fc6e84b6ba11fde5d5406dd2334
4
+ data.tar.gz: cc3d75dc764b994ce40ac42dabbcb89f88a611236f0122f1ae91517a752f71d9
5
5
  SHA512:
6
- metadata.gz: bd525c23f57a04807b75b384483a6d9ddd9ea7706d11d2b398e265633a2917417e9deb4726baeb100ded9bff9a854b5d9e28b1fdb2df40d434434c1388f9bc55
7
- data.tar.gz: 5d3c70c8f52a4d1f22c302e98294736d6a27b894e777e9751ff4ae32360918893b8a2c4a3e3ab24dd0d91de1e2798cc118097489757fb66c5b73122078a4b1a3
6
+ metadata.gz: dd0c122d22515d49b9c245c9ba2f4f62ebe21d60fec5e599ea521c6ddb536b3d222e09d1dd356144252c96e4d4ffd9b9a526a7d0f828807d7f588f4cb62b33d8
7
+ data.tar.gz: c5979568723021877ab6706d2a16a6c3ab5f274d307a25de670f5a34a486a60483a13d14ad851fa94dbce6a9505ebb36d934cb93f55e734318da08cad09a7fa8
data/README.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Shim to load environment variables from `.env` into `ENV` in *development*.
4
4
 
5
+ <img align="left" src="https://github.com/user-attachments/assets/0052ed0b-00d2-416a-bdaa-0466c0226933" width="80" />
6
+ <div><sup>Dotenv is proud to be <a href="https://github.com/sponsors/bkeepers">sponsored by</a>:</sup></div>
7
+ <strong><a href="https://bit.ly/dotenv-stoked-seagull">Stoked Seagull Software</a></strong>
8
+ <div>Need help with a software project but don't know where to begin? <a href="https://bit.ly/dotenv-stoked-seagull">Stoked Seagull can help.</a></div><br><br>
9
+
5
10
  Storing [configuration in the environment](http://12factor.net/config) is one of the tenets of a [twelve-factor app](http://12factor.net). Anything that is likely to change between deployment environments–such as resource handles for databases or credentials for external services–should be extracted from the code into environment variables.
6
11
 
7
12
  But it is not always practical to set environment variables on development machines or continuous integration servers where multiple projects are run. dotenv loads variables from a `.env` file into `ENV` when the environment is bootstrapped.
@@ -84,7 +89,7 @@ You can use the `dotenv` executable load `.env` before launching your applicatio
84
89
  $ dotenv ./script.rb
85
90
  ```
86
91
 
87
- The `dotenv` executable also accepts the flag `-f`. Its value should be a comma-separated list of configuration files, in the order of most important to least. All of the files must exist. There _must_ be a space between the flag and its value.
92
+ The `dotenv` executable also accepts the flag `-f`. Its value should be a comma-separated list of configuration files, in the order of the most important to the least important. All of the files must exist. There _must_ be a space between the flag and its value.
88
93
 
89
94
  ```console
90
95
  $ dotenv -f ".env.local,.env" ./script.rb
@@ -180,7 +185,7 @@ end
180
185
  Available options:
181
186
 
182
187
  * `Dotenv::Rails.files` - list of files to be loaded, in order of precedence.
183
- * `Dotenv::Rails.overwrite` - Overwrite exiting `ENV` variables with contents of `.env*` files
188
+ * `Dotenv::Rails.overwrite` - Overwrite existing `ENV` variables with contents of `.env*` files
184
189
  * `Dotenv::Rails.logger` - The logger to use for dotenv's logging. Defaults to `Rails.logger`
185
190
  * `Dotenv::Rails.autorestore` - Enable or disable [autorestore](#autorestore-in-tests)
186
191
 
@@ -213,7 +218,7 @@ DATABASE_URL="postgres://$(whoami)@localhost/my_database"
213
218
 
214
219
  ### Variable Substitution
215
220
 
216
- You need to add the value of another variable in one of your variables? You can reference the variable with `${VAR}` or often just `$VAR` in unqoted or double-quoted values.
221
+ You need to add the value of another variable in one of your variables? You can reference the variable with `${VAR}` or often just `$VAR` in unquoted or double-quoted values.
217
222
 
218
223
  ```shell
219
224
  DATABASE_URL="postgres://${USER}@localhost/my_database"
@@ -276,7 +281,7 @@ You can use the `-t` or `--template` flag on the dotenv cli to create a template
276
281
  ```console
277
282
  $ dotenv -t .env
278
283
  ```
279
- A template will be created in your working directory named `{FINAME}.template`. So in the above example, it would create a `.env.template` file.
284
+ 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
285
 
281
286
  The template will contain all the environment variables in your `.env` file but with their values set to the variable names.
282
287
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotenv-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Keepers
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-02-27 00:00:00.000000000 Z
10
+ date: 2025-04-10 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: dotenv
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - '='
18
17
  - !ruby/object:Gem::Version
19
- version: 3.1.0
18
+ version: 3.1.8
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - '='
25
24
  - !ruby/object:Gem::Version
26
- version: 3.1.0
25
+ version: 3.1.8
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: railties
29
28
  requirement: !ruby/object:Gem::Requirement
@@ -65,8 +64,9 @@ files:
65
64
  homepage: https://github.com/bkeepers/dotenv
66
65
  licenses:
67
66
  - MIT
68
- metadata: {}
69
- post_install_message:
67
+ metadata:
68
+ changelog_uri: https://github.com/bkeepers/dotenv/releases
69
+ funding_uri: https://github.com/sponsors/bkeepers
70
70
  rdoc_options: []
71
71
  require_paths:
72
72
  - lib
@@ -81,8 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
- rubygems_version: 3.5.3
85
- signing_key:
84
+ rubygems_version: 3.6.2
86
85
  specification_version: 4
87
86
  summary: Autoload dotenv in Rails.
88
87
  test_files: []