dotenvx-rails 5.1.8 → 5.1.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0583d12afddc90398346539c33388e64240ab1dd935fee570119d7cc88bd540c'
4
- data.tar.gz: 492b7289d126bdd883341d6b2438f0ce9a2dad19a1dff2ece095a6b5d6a9f94d
3
+ metadata.gz: c8f17be326647090dbb16df20e14fd504aa581bae63208d2994e72ba56451b0d
4
+ data.tar.gz: 4fe90872d2311658ad5f6371b60615dbb43ff1d4c543660c5c1dc12e58d4a3f2
5
5
  SHA512:
6
- metadata.gz: ec8dc1d76ccece2fc3a6794110111b95357e0c93a3784ce285d0a8b11988575fee075fcfa76b4345baa83dbf47386b3f433a4ecefc567307a07d75bdb60535af
7
- data.tar.gz: 9aca780e93bd1c23d67fb4e1ef4710524554bc605363351864080b0280860261fa2f4f7e99fb72eedbe88afb4055a83387a1771a03f55035cfae4ee523536f26
6
+ metadata.gz: a1902af11c49084b1ab3b0fb6bdbd8bed1aea5b4bbcfa61461188721af972f01744e15ce2a6948522e93a1f2f5d58ddcc156f602502d2d68ae6f7b33fb90140d
7
+ data.tar.gz: 4030f4243f8ea530647340bfeb5e0d9ee18b5a51e7d47dc82ed9f267eb3efa56225e85478f61b6e5518d0d0e46c4d7a432a5b4cc1c5b187ee96b7134e56d126a
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 `.env` files when your Rails app boots, before
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
data/lib/dotenvx/rails.rb CHANGED
@@ -39,7 +39,7 @@ module Dotenvx
39
39
  def load
40
40
  return if @loaded
41
41
 
42
- Dotenvx.load(root.to_s, convention: "rails", environment: Rails.env.to_s)
42
+ Dotenvx.load(cwd: root.to_s, environment: Rails.env.to_s)
43
43
  @loaded = true
44
44
  end
45
45
 
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.8
4
+ version: 5.1.9
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.8
18
+ version: 5.1.9
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.8
25
+ version: 5.1.9
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: railties
28
28
  requirement: !ruby/object:Gem::Requirement