dotenv-rails 3.1.7 → 3.2.0

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 +8 -2
  3. metadata +8 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7079b8dd84f6228311273bfd2c2c887c30b39ef8e806612b14cecc07bb192f97
4
- data.tar.gz: b088a607e37a0686341278215c1f903a08853a48e77a272aeb4b113a8ba694aa
3
+ metadata.gz: 04d36b9b6116f28f935965844d3fd5916ad780fda54f3cc652ed9f32ab229e4b
4
+ data.tar.gz: 56189def0feb6f6199cf633b4098f13fe71f7704b9d70fcfcacce32980d7a24b
5
5
  SHA512:
6
- metadata.gz: edd0277ab84287a2a8c240b04d5a8647d76e34fc0b8d9c422ff0119f3692b6697daf97a942831d4d82070bdd48cb9da11c514ae9f01cbd50ba1bb131c9dbfe90
7
- data.tar.gz: 83f2f46d509991751d1fa79c39a00019669180114816715da51fa8af984cde71ec3a02b586ae431a7846dcc9768290e7f648f9dd950b625d612b9da25a35ae5a
6
+ metadata.gz: fde31902ef88b2cccfb6e20f6c68ae5f0331d2b0c5222c58b3b2a6b28a82f325686c55cdf1dc6b90fc44669af687f090349b7a710c2c53bd2fbcef420acf65d9
7
+ data.tar.gz: cab09cf88978eddf7e1f0f0477a68e87cd48e036f0e1ba354884cee7a190f45ff775df66c1839ad2f23e5c7359615acda78c6314bf890f82de3d355765c96344
data/README.md CHANGED
@@ -47,7 +47,10 @@ require 'dotenv'
47
47
  Dotenv.load
48
48
  ```
49
49
 
50
- By default, `load` will look for a file called `.env` in the current working directory. Pass in multiple files and they will be loaded in order. The first value set for a variable will win.
50
+ By default, `load` will look for a file called `.env` in the current working directory.
51
+ Pass in multiple files and they will be loaded in order.
52
+ The first value set for a variable will win.
53
+ Existing environment variables will not be overwritten unless you set `overwrite: true`.
51
54
 
52
55
  ```ruby
53
56
  require 'dotenv'
@@ -84,7 +87,7 @@ You can use the `dotenv` executable load `.env` before launching your applicatio
84
87
  $ dotenv ./script.rb
85
88
  ```
86
89
 
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.
90
+ 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
91
 
89
92
  ```console
90
93
  $ dotenv -f ".env.local,.env" ./script.rb
@@ -314,6 +317,9 @@ Personally, I prefer to commit the `.env` file with development-only settings. T
314
317
 
315
318
  By default, it **won't** overwrite existing environment variables as dotenv assumes the deployment environment has more knowledge about configuration than the application does. To overwrite existing environment variables you can use `Dotenv.load files, overwrite: true`.
316
319
 
320
+ To warn when a value was not overwritten (e.g. to make users aware of this gotcha),
321
+ use `Dotenv.load files, overwrite: :warn`.
322
+
317
323
  You can also use the `-o` or `--overwrite` flag on the dotenv cli to overwrite existing `ENV` variables.
318
324
 
319
325
  ```console
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.7
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Keepers
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-18 00:00:00.000000000 Z
10
+ date: 1980-01-02 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.7
18
+ version: 3.2.0
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.7
25
+ version: 3.2.0
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.22
85
- signing_key:
84
+ rubygems_version: 3.6.9
86
85
  specification_version: 4
87
86
  summary: Autoload dotenv in Rails.
88
87
  test_files: []