dotenvx 5.0.2-aarch64-linux → 5.0.4-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/README.md +9 -85
- data/lib/dotenvx/dotenvx_native.so +0 -0
- data/lib/dotenvx/version.rb +1 -1
- data/lib/dotenvx.rb +8 -5
- 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: 5cf2a913c5fb4f9143102b437aaf893ba4c67a7c11b7e11cda6d96873dff89a6
|
|
4
|
+
data.tar.gz: c61567b3567617c3c5a5fc74ed7ea9d1d6ba7a17282c74fcadec1397d0b8463c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 55d53716bce2daae335b5f3481f736870e9a5228c66057f69748afb95ad399c315d2820bfeb6d7f8f63b5ee7f851f1446dcf4ffeefbc05242a5111fe2e78a234
|
|
7
|
+
data.tar.gz: 10cb5c1af56a7b47a3d355cb183ee54fb8cffee1aa994bb9f88e031d20ce74c3c1f29ff4e028927b57ad88bbac8915d5582342555feb14f6ffbea49a2886fe25
|
data/README.md
CHANGED
|
@@ -1,99 +1,23 @@
|
|
|
1
|
-
[](https://dotenvx.com)
|
|
2
2
|
|
|
3
|
-
*
|
|
3
|
+
*A secure dotenv*–from the creator of [`dotenv`](https://github.com/motdotla/dotenv).
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
* Encrypt
|
|
6
|
+
* Commit
|
|
7
|
+
* Ship
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
[Install](https://dotenvx.com/docs/install) · [Quickstart](https://dotenvx.com/docs/quickstart)
|
|
10
|
+
|
|
11
|
+
## Quickstart
|
|
10
12
|
|
|
11
13
|
```sh
|
|
12
14
|
gem install dotenvx
|
|
13
15
|
```
|
|
14
16
|
|
|
15
|
-
Or add it to a Gemfile:
|
|
16
|
-
|
|
17
|
-
```ruby
|
|
18
|
-
gem "dotenvx"
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Use
|
|
22
|
-
|
|
23
|
-
Load `.env` from the current directory:
|
|
24
|
-
|
|
25
|
-
```ruby
|
|
26
|
-
require "dotenvx/load"
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Or load explicitly:
|
|
30
|
-
|
|
31
17
|
```ruby
|
|
32
18
|
require "dotenvx"
|
|
33
19
|
|
|
34
20
|
Dotenvx.load
|
|
35
|
-
Dotenvx.load(".env.local", ".env")
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
Existing environment variables win by default:
|
|
39
|
-
|
|
40
|
-
```ruby
|
|
41
|
-
Dotenvx.load(".env")
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
To replace existing values:
|
|
45
|
-
|
|
46
|
-
```ruby
|
|
47
|
-
Dotenvx.load(".env", overwrite: true)
|
|
48
|
-
Dotenvx.overwrite(".env")
|
|
49
|
-
```
|
|
50
21
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
```ruby
|
|
54
|
-
values = Dotenvx.parse(".env")
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Raise when a file is missing:
|
|
58
|
-
|
|
59
|
-
```ruby
|
|
60
|
-
Dotenvx.load!(".env")
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
Encrypted values are decrypted automatically with keys from the process
|
|
64
|
-
environment, `<filename>.keys`, or `.env.keys`. For keys in Armor, 1Password,
|
|
65
|
-
or another custody provider, install a dotenvx CLI with `command-sdk` and the
|
|
66
|
-
matching feature.
|
|
67
|
-
|
|
68
|
-
## Native platforms
|
|
69
|
-
|
|
70
|
-
Tagged releases publish variants of the same `dotenvx` gem for:
|
|
71
|
-
|
|
72
|
-
- Linux x86-64
|
|
73
|
-
- Linux ARM64
|
|
74
|
-
- macOS Intel
|
|
75
|
-
- macOS Apple Silicon
|
|
76
|
-
- Windows x64
|
|
77
|
-
|
|
78
|
-
RubyGems selects the correct variant during `gem install dotenvx`.
|
|
79
|
-
|
|
80
|
-
## Loading errors and policy
|
|
81
|
-
|
|
82
|
-
Loading errors are reported and loading continues by default. `strict: true`,
|
|
83
|
-
`load!` stops loading and raises before updating `ENV`. Selected error codes
|
|
84
|
-
can be ignored with `ignore: ["CODE"]`.
|
|
85
|
-
|
|
86
|
-
The shared loader returns redaction metadata without changing real application
|
|
87
|
-
values. Application-output redaction hooks are not installed by this adapter.
|
|
88
|
-
|
|
89
|
-
## Shared file selection
|
|
90
|
-
|
|
91
|
-
File discovery, directory expansion, conventions, and key-based filename
|
|
92
|
-
inference are resolved by `dotenvx-sdk`. The CLI's file-selection and error-ignore
|
|
93
|
-
environment variables apply here too. Rails supplies its root and environment;
|
|
94
|
-
the shared loader chooses the Rails files and their order.
|
|
95
|
-
|
|
96
|
-
```ruby
|
|
97
|
-
Dotenvx.load(convention: "nextjs")
|
|
98
|
-
Dotenvx.load("app", key_files: "shared/.env.keys")
|
|
22
|
+
puts "Hello #{ENV["HELLO"]}"
|
|
99
23
|
```
|
|
Binary file
|
data/lib/dotenvx/version.rb
CHANGED
data/lib/dotenvx.rb
CHANGED
|
@@ -15,7 +15,7 @@ module Dotenvx
|
|
|
15
15
|
class << self
|
|
16
16
|
attr_accessor :instrumenter
|
|
17
17
|
|
|
18
|
-
def load(*filenames, overwrite: false, ignore: [], strict: false, convention: nil, environment: nil, key_files: nil)
|
|
18
|
+
def load(*filenames, overwrite: false, ignore: [], strict: false, convention: nil, environment: nil, key_files: nil, resolve_references: false)
|
|
19
19
|
env, summary = parse_files(
|
|
20
20
|
*filenames,
|
|
21
21
|
overwrite: overwrite,
|
|
@@ -23,7 +23,8 @@ module Dotenvx
|
|
|
23
23
|
strict: strict,
|
|
24
24
|
convention: convention,
|
|
25
25
|
environment: environment,
|
|
26
|
-
key_files: key_files
|
|
26
|
+
key_files: key_files,
|
|
27
|
+
resolve_references: resolve_references
|
|
27
28
|
)
|
|
28
29
|
changed = update(env, overwrite: overwrite)
|
|
29
30
|
warn summary if summary
|
|
@@ -44,7 +45,7 @@ module Dotenvx
|
|
|
44
45
|
end
|
|
45
46
|
alias overload! overwrite!
|
|
46
47
|
|
|
47
|
-
def parse(*filenames, overwrite: false, ignore: [], strict: false, convention: nil, environment: nil, key_files: nil)
|
|
48
|
+
def parse(*filenames, overwrite: false, ignore: [], strict: false, convention: nil, environment: nil, key_files: nil, resolve_references: false)
|
|
48
49
|
parse_files(
|
|
49
50
|
*filenames,
|
|
50
51
|
overwrite: overwrite,
|
|
@@ -52,7 +53,8 @@ module Dotenvx
|
|
|
52
53
|
strict: strict,
|
|
53
54
|
convention: convention,
|
|
54
55
|
environment: environment,
|
|
55
|
-
key_files: key_files
|
|
56
|
+
key_files: key_files,
|
|
57
|
+
resolve_references: resolve_references
|
|
56
58
|
).first
|
|
57
59
|
end
|
|
58
60
|
|
|
@@ -78,7 +80,7 @@ module Dotenvx
|
|
|
78
80
|
|
|
79
81
|
private
|
|
80
82
|
|
|
81
|
-
def parse_files(*filenames, overwrite: false, ignore: [], strict: false, convention: nil, environment: nil, key_files: nil)
|
|
83
|
+
def parse_files(*filenames, overwrite: false, ignore: [], strict: false, convention: nil, environment: nil, key_files: nil, resolve_references: false)
|
|
82
84
|
filenames = filenames.flatten
|
|
83
85
|
ignored_codes = Array(ignore).grep(String)
|
|
84
86
|
ignored_codes << "MISSING_ENV_FILE" if ignore == true
|
|
@@ -92,6 +94,7 @@ module Dotenvx
|
|
|
92
94
|
overload: overwrite == true,
|
|
93
95
|
strict: strict,
|
|
94
96
|
ignore: ignored_codes,
|
|
97
|
+
resolve_references: resolve_references,
|
|
95
98
|
adjacent_keys: true
|
|
96
99
|
)))
|
|
97
100
|
result.fetch("diagnostics").each do |error|
|