dotenvx-rails 5.0.2 → 5.0.5

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 -85
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 001cda4b6697f24fb7956bf6bd042a565080fef997e980d5657683293c32ee0c
4
- data.tar.gz: 8985b91ec428d43b9f1f8305ff9815bb4b5ba2af5a72fa4b0448f9f8eb85ae66
3
+ metadata.gz: 70b60aca35e80c4c2876f366db27b347159f701ef235f997734af11505129800
4
+ data.tar.gz: ccf09194293a14c8ed8ce57b8b945484308ae1123571de3831fd2beb26efa89a
5
5
  SHA512:
6
- metadata.gz: 3c86c4eb1904da9b63efa2d3ddd890018ed7d3982446ec59d3ceb56fdd271678378a5cff40024b76434d15af5bd22946e10a31cca831e99b06c8e074d613232d
7
- data.tar.gz: 17f3a8458a4371ab329019ed2dcb11e9c54583dedd15abd7ce28715e64242a1497ff41faa4b6e404e52dee11721219277ba53b2a204e9b469bb1e8c1f7b72d69
6
+ metadata.gz: 9c9f701937961e9adbbb9b0f101d35d6a21a6173b7cc83d7379a4a2756ff8d1d8f113bc944d1ee07fa292f0408bcaab126ee097646fe561d72c094027275aedf
7
+ data.tar.gz: ef7bc483029abf699438669fd8bd9ebf7b41e7e850809b8c81c0de38b6f8bd3737c269ee12622a77cb8e3cbca28ba34de1f27b12e50567d47f53f729e096f8bb
data/README.md CHANGED
@@ -1,99 +1,23 @@
1
- [![dotenvx](https://dotenvx.com/better-banner.png)](https://dotenvx.com)
1
+ [![dotenvx](https://dotenvx.com/banner.png?v2)](https://dotenvx.com)
2
2
 
3
- *a secure dotenv–from the creator of [`dotenv`](https://github.com/motdotla/dotenv).*
3
+ *A secure dotenv*–from the creator of [`dotenv`](https://github.com/motdotla/dotenv).
4
4
 
5
- `dotenvx` loads plaintext and encrypted dotenv files through the shared `dotenvx-sdk` Rust loader, backed by published
6
- [`dotenvx-primitives`](https://crates.io/crates/dotenvx-primitives). The native extension is bundled in the gem; users do not need
7
- Node.js or a Rust toolchain.
5
+ * Encrypt
6
+ * Commit
7
+ * Ship
8
8
 
9
- ## Install
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
- Parse without changing `ENV`:
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
  ```
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotenvx-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2
4
+ version: 5.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - motdotla
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 5.0.2
18
+ version: 5.0.5
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 5.0.2
25
+ version: 5.0.5
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: railties
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -65,7 +65,7 @@ dependencies:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
- description: "[dotenvx.com] a better dotenv–from the creator of `dotenv`"
68
+ description: a secure dotenv—from the creator of `dotenv`
69
69
  email:
70
70
  - mot@mot.la
71
71
  executables: []
@@ -100,5 +100,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  requirements: []
101
101
  rubygems_version: 3.6.9
102
102
  specification_version: 4
103
- summary: "[dotenvx.com] a better dotenv–from the creator of `dotenv`"
103
+ summary: a secure dotenv—from the creator of `dotenv`
104
104
  test_files: []