dotenvx 5.1.8-aarch64-linux → 5.1.9-aarch64-linux
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/CHANGELOG.md +5 -0
- data/README.md +9 -1
- data/lib/dotenvx/dotenvx_native.so +0 -0
- data/lib/dotenvx/rails.rb +1 -1
- data/lib/dotenvx/version.rb +1 -1
- data/lib/dotenvx.rb +8 -6
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff82eaaf0a75a8c789e667c227561877bdab479e9a12bb0dca5b0e858537acf7
|
|
4
|
+
data.tar.gz: 165b26f986f67ec6eafbe065415055c346354b87870fdd99c8798618302a1684
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 67fa0771a5b56608456346c33f10708e14942850a96b013d52f68af3e68c0c306f6f38480227310c3b3c46fee0b004f796b5b8f357e7776f0a7815a398522953
|
|
7
|
+
data.tar.gz: fd4f2f3be06791df5a22c3dee93acf8ade16feba9ab5df1402c7731c57f3f5177da9ff50f3183ba6f98dc7bdce7ed5a211d15cd8c3c9fe3f982e5b9440d39f16
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
## 5.1.9 (2026-11-30)
|
|
8
|
+
|
|
9
|
+
- **Behavior change:** Remove automatic Rails env-file layering. Rails now uses the shared SDK defaults: `DOTENV_FILE` / `DOTENV_PATH`, exported private-key file inference, then `.env`. Set `DOTENV_CONVENTION=rails` to opt back into Rails layering.
|
|
10
|
+
- Honor file-selection environment variables relative to the Rails app root, without changing the process working directory.
|
|
11
|
+
|
|
7
12
|
## 5.1.8 (2026-11-30)
|
|
8
13
|
|
|
9
14
|
- Point the `dotenvx` and `dotenvx-rails` gem homepages to the GitHub README.
|
data/README.md
CHANGED
|
@@ -39,9 +39,17 @@ Then install it:
|
|
|
39
39
|
bundle install
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
Dotenvx automatically loads your
|
|
42
|
+
Dotenvx automatically loads your environment when your Rails app boots, before
|
|
43
43
|
application configuration. You do not need to call `Dotenvx.load` yourself.
|
|
44
44
|
|
|
45
|
+
Rails uses the same file selection as the other SDKs, with no automatic layering:
|
|
46
|
+
`DOTENV_FILE` (or `DOTENV_PATH`) selects the files to load. Otherwise, exported
|
|
47
|
+
private-key names select their matching files (for example,
|
|
48
|
+
`DOTENV_PRIVATE_KEY_PRODUCTION` selects `.env.production`); without either,
|
|
49
|
+
Dotenvx loads `.env`. `RAILS_ENV=production` alone does not select `.env.production`.
|
|
50
|
+
Paths are resolved from your Rails app root. Layering is opt-in through
|
|
51
|
+
`DOTENV_CONVENTION`.
|
|
52
|
+
|
|
45
53
|
|
|
46
54
|
|
|
47
55
|
## Usage
|
|
Binary file
|
data/lib/dotenvx/rails.rb
CHANGED
data/lib/dotenvx/version.rb
CHANGED
data/lib/dotenvx.rb
CHANGED
|
@@ -16,7 +16,7 @@ module Dotenvx
|
|
|
16
16
|
class << self
|
|
17
17
|
attr_accessor :instrumenter
|
|
18
18
|
|
|
19
|
-
def load(*filenames, overwrite: false, ignore: [], strict: false, convention: nil, environment: nil, key_files: nil, resolve_references: false)
|
|
19
|
+
def load(*filenames, overwrite: false, ignore: [], strict: false, convention: nil, environment: nil, key_files: nil, resolve_references: false, cwd: Dir.pwd)
|
|
20
20
|
env, summary, secrets = parse_files(
|
|
21
21
|
*filenames,
|
|
22
22
|
overwrite: overwrite,
|
|
@@ -25,7 +25,8 @@ module Dotenvx
|
|
|
25
25
|
convention: convention,
|
|
26
26
|
environment: environment,
|
|
27
27
|
key_files: key_files,
|
|
28
|
-
resolve_references: resolve_references
|
|
28
|
+
resolve_references: resolve_references,
|
|
29
|
+
cwd: cwd
|
|
29
30
|
)
|
|
30
31
|
changed = update(env, overwrite: overwrite)
|
|
31
32
|
Output.install(secrets)
|
|
@@ -47,7 +48,7 @@ module Dotenvx
|
|
|
47
48
|
end
|
|
48
49
|
alias overload! overwrite!
|
|
49
50
|
|
|
50
|
-
def parse(*filenames, overwrite: false, ignore: [], strict: false, convention: nil, environment: nil, key_files: nil, resolve_references: false)
|
|
51
|
+
def parse(*filenames, overwrite: false, ignore: [], strict: false, convention: nil, environment: nil, key_files: nil, resolve_references: false, cwd: Dir.pwd)
|
|
51
52
|
parse_files(
|
|
52
53
|
*filenames,
|
|
53
54
|
overwrite: overwrite,
|
|
@@ -56,7 +57,8 @@ module Dotenvx
|
|
|
56
57
|
convention: convention,
|
|
57
58
|
environment: environment,
|
|
58
59
|
key_files: key_files,
|
|
59
|
-
resolve_references: resolve_references
|
|
60
|
+
resolve_references: resolve_references,
|
|
61
|
+
cwd: cwd
|
|
60
62
|
).first
|
|
61
63
|
end
|
|
62
64
|
|
|
@@ -82,13 +84,13 @@ module Dotenvx
|
|
|
82
84
|
|
|
83
85
|
private
|
|
84
86
|
|
|
85
|
-
def parse_files(*filenames, overwrite: false, ignore: [], strict: false, convention: nil, environment: nil, key_files: nil, resolve_references: false)
|
|
87
|
+
def parse_files(*filenames, overwrite: false, ignore: [], strict: false, convention: nil, environment: nil, key_files: nil, resolve_references: false, cwd: Dir.pwd)
|
|
86
88
|
filenames = filenames.flatten
|
|
87
89
|
ignored_codes = Array(ignore).grep(String)
|
|
88
90
|
ignored_codes << "MISSING_ENV_FILE" if ignore == true
|
|
89
91
|
result = JSON.parse(Native.load_env(JSON.generate(
|
|
90
92
|
sources: filenames.map { |filename| { type: "file", value: filename.to_s } },
|
|
91
|
-
cwd:
|
|
93
|
+
cwd: cwd,
|
|
92
94
|
convention: convention,
|
|
93
95
|
environment_name: environment,
|
|
94
96
|
key_files: key_files.nil? ? nil : Array(key_files).map(&:to_s),
|