dotenvx-rails 5.1.9 → 5.1.10

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +17 -3
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8f17be326647090dbb16df20e14fd504aa581bae63208d2994e72ba56451b0d
4
- data.tar.gz: 4fe90872d2311658ad5f6371b60615dbb43ff1d4c543660c5c1dc12e58d4a3f2
3
+ metadata.gz: 8edc44f4a22ffddfb08b8283b487ac9dac33691d30a647059cfac0c96bd374de
4
+ data.tar.gz: e709c32db11beeeee0cf75e30b1e6be0d253d3fa0b37225a7cf1f4559535de50
5
5
  SHA512:
6
- metadata.gz: a1902af11c49084b1ab3b0fb6bdbd8bed1aea5b4bbcfa61461188721af972f01744e15ce2a6948522e93a1f2f5d58ddcc156f602502d2d68ae6f7b33fb90140d
7
- data.tar.gz: 4030f4243f8ea530647340bfeb5e0d9ee18b5a51e7d47dc82ed9f267eb3efa56225e85478f61b6e5518d0d0e46c4d7a432a5b4cc1c5b187ee96b7134e56d126a
6
+ metadata.gz: 45288074710f78a8fc048e0b149498333e52d63984e896ececa7dbde5efea2c937567f6d10f23e06c47381d323d89c81658028791ca339cfa4722d76b86f6fda
7
+ data.tar.gz: 83be5000ece06bffd94505551f1f9ae270fdacee40f5e7a2197afdc7d8bfdf83275775ca9eac9c5fd9104eb78078ea61eea89f1f733c4c8f6cf0b8381be9854a
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. See [standa
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ ## 5.1.10 (2026-11-30)
8
+
9
+ - Add the example `.env` file and run command to the Ruby quickstart, and show how to supply its private key in production.
10
+
7
11
  ## 5.1.9 (2026-11-30)
8
12
 
9
13
  - **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.
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  * Commit
7
7
  * Ship
8
8
 
9
- [Install](https://dotenvx.com/docs/install) · [Quickstart](https://dotenvx.com/docs/quickstart)
9
+ [Install](https://dotenvx.com/docs/install) · [Quickstart](#quickstart) · [Changelog](CHANGELOG.md)
10
10
 
11
11
  ## Quickstart
12
12
 
@@ -14,6 +14,13 @@
14
14
  gem install dotenvx
15
15
  ```
16
16
 
17
+ Create a `.env` file next to your Ruby script.
18
+
19
+ ```dotenv
20
+ # .env
21
+ HELLO=World
22
+ ```
23
+
17
24
  ```ruby
18
25
  # index.rb
19
26
  require "dotenvx"
@@ -23,6 +30,13 @@ Dotenvx.load
23
30
  puts "Hello #{ENV["HELLO"]}"
24
31
  ```
25
32
 
33
+ Run the script from that directory.
34
+
35
+ ```sh
36
+ ruby index.rb
37
+ # Hello World
38
+ ```
39
+
26
40
   
27
41
 
28
42
  ## Rails Quickstart
@@ -68,14 +82,14 @@ $ dotenvx encrypt
68
82
  ◈ encrypted .env (039 BCA) via .env.keys ⛉
69
83
  ```
70
84
 
71
- *Commit* your encrypted `.env` files with your code. It's safe. Now you can securely share secrets through git.
85
+ *Commit* the encrypted `.env` with your code. Keep the generated `.env.keys` file out of version control.
72
86
 
73
87
  ```sh
74
88
  $ git add .env
75
89
  $ git commit -m "encrypt .env"
76
90
  ```
77
91
 
78
- *Ship* your code and secrets together. Dotenvx uses your private key to decrypt and inject your secrets just-in-time to your code.
92
+ *Ship* your code and secrets together. For this `.env` file, set `DOTENV_PRIVATE_KEY` in your deployment environment to the matching key from `.env.keys`. Dotenvx uses it when your app starts.
79
93
 
80
94
  ```sh
81
95
  $ ruby index.rb
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.1.9
4
+ version: 5.1.10
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.1.9
18
+ version: 5.1.10
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.1.9
25
+ version: 5.1.10
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: railties
28
28
  requirement: !ruby/object:Gem::Requirement