dotenvx 5.1.7-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 235833dc04883928f90755d3b4fcf015164e37ca021241c627dc8e897ccda5e6
4
- data.tar.gz: 857de195f08e1eb44d874428bfe64f373c495f848442c317454b96a3f163b1f2
3
+ metadata.gz: ff82eaaf0a75a8c789e667c227561877bdab479e9a12bb0dca5b0e858537acf7
4
+ data.tar.gz: 165b26f986f67ec6eafbe065415055c346354b87870fdd99c8798618302a1684
5
5
  SHA512:
6
- metadata.gz: 30b41a0a7cc89173e696f1c3c69221d04c61be96fbad993f1593d926c55b50437e190e18b9abaee2ee7ba32a362a605709725d9abd349775a1a1066e4dff71f8
7
- data.tar.gz: 55430113eb882d45e9fcd78c5a653f233af5fc5e151f2b68cebb1f04654bfcbd08180d30646dd6acf169c70cdfe6c85ac698fb64b203a1683bc3f54bcf1d21b8
6
+ metadata.gz: 67fa0771a5b56608456346c33f10708e14942850a96b013d52f68af3e68c0c306f6f38480227310c3b3c46fee0b004f796b5b8f357e7776f0a7815a398522953
7
+ data.tar.gz: fd4f2f3be06791df5a22c3dee93acf8ade16feba9ab5df1402c7731c57f3f5177da9ff50f3183ba6f98dc7bdce7ed5a211d15cd8c3c9fe3f982e5b9440d39f16
data/CHANGELOG.md CHANGED
@@ -4,6 +4,106 @@ 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
+
12
+ ## 5.1.8 (2026-11-30)
13
+
14
+ - Point the `dotenvx` and `dotenvx-rails` gem homepages to the GitHub README.
15
+ - Add a Rails Quickstart with Gemfile setup and automatic env loading.
16
+ - Document the 5.x release history.
17
+
18
+ ## 5.1.7 (2026-11-24)
19
+
20
+ - Accept Classic private keys with v3 public keys and ciphertext, and v3 private keys with Classic ciphertext.
21
+ - Publish the tested native and Rails gems through the generated public distribution, with artifact identity and checksum verification.
22
+
23
+ ## 5.1.6 (2026-11-23)
24
+
25
+ - **Breaking:** Discover configuration only as `Dotenv.toml` or `dotenv.toml`; remove the older `Dotenvx.toml` and `dotenvx.toml` fallbacks.
26
+ - Update the shared primitives to 5.0.4.
27
+
28
+ ## 5.1.5 (2026-11-22)
29
+
30
+ - Prefer `Dotenv.toml` and `dotenv.toml` for configuration, while retaining the previous filenames as fallbacks in this release.
31
+ - Update the shared primitives to 5.0.3.
32
+
33
+ ## 5.1.4 (2026-11-22)
34
+
35
+ - Look up private keys in both adjacent key files and the project's `.env.keys` file.
36
+ - Update the shared primitives to 5.0.2.
37
+
38
+ ## 5.1.3 (2026-11-21)
39
+
40
+ - Support the v3 public-key, private-key, and ciphertext formats.
41
+ - Improve custody handling and matching of locally available private keys.
42
+ - Update the shared primitives to 5.0.1.
43
+
44
+ ## 5.1.2 (2026-11-15)
45
+
46
+ - Fix native output-redaction array handling across Ruby versions.
47
+
48
+ ## 5.1.1 (2026-11-15)
49
+
50
+ - Redact configured secret values in Ruby output using the shared policy engine.
51
+
52
+ ## 5.1.0 (2026-11-14)
53
+
54
+ - Add TOML configuration for validation, storage policy, and redaction through the shared loader. This release used `Dotenvx.toml` and `dotenvx.toml`.
55
+ - Update the shared primitives to 5.0.0.
56
+
57
+ ## 5.0.10 (2026-11-14)
58
+
59
+ - Update the shared primitives to 4.4.4.
60
+
61
+ ## 5.0.9 (2026-11-14)
62
+
63
+ - Update the shared primitives to 4.4.3.
64
+
65
+ ## 5.0.8 (2026-11-14)
66
+
67
+ - Support Armor server-side decryption through the CLI-delegated custody path.
68
+ - Update the shared primitives to 4.4.2.
69
+
70
+ ## 5.0.7 (2026-11-13)
71
+
72
+ - Improve injected-variable summaries.
73
+ - Update the shared primitives to 4.4.1.
74
+
75
+ ## 5.0.6 (2026-11-13)
76
+
77
+ - Improve absolute-path handling in file selection.
78
+ - Refresh the Ruby Quickstart and usage documentation.
79
+
80
+ ## 5.0.5 (2026-11-13)
81
+
82
+ - Refresh the gem description.
83
+
84
+ ## 5.0.4 (2026-11-13)
85
+
86
+ - Rebuild the gems under a new release version; no additional Ruby source changes.
87
+
88
+ ## 5.0.3 (2026-11-13)
89
+
90
+ - Add opt-in `op://` and `bw://` secret-reference resolution through the shared SDK.
91
+ - Build against the primitives maintained inside Forge.
92
+
93
+ ## 5.0.2 (2026-11-12)
94
+
95
+ - Honor `DOTENV_QUIET` when reporting injected variables.
96
+
97
+ ## 5.0.1 (2026-11-12)
98
+
99
+ - Correct the RubyGems homepage and source repository metadata.
100
+
101
+ ## 5.0.0 (2026-11-12)
102
+
103
+ - Move Ruby loading onto the shared `dotenvx-sdk` Rust engine, including common file selection, decryption, conventions, key files, and diagnostics.
104
+ - Preserve the Ruby `Dotenvx.load`, `parse`, overwrite, and strict-loading APIs and the `dotenvx-rails` integration.
105
+ - Version the native gem and Rails integration together from Forge.
106
+
7
107
  ## 4.0.5
8
108
 
9
109
  - Continue after parse and decryption errors by default, with strict and
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
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
+ *The secure dotenv*–from the creator of [`dotenv`](https://github.com/motdotla/dotenv).
4
4
 
5
5
  * Encrypt
6
6
  * Commit
@@ -14,9 +14,8 @@
14
14
  gem install dotenvx
15
15
  ```
16
16
 
17
- `index.rb`
18
-
19
17
  ```ruby
18
+ # index.rb
20
19
  require "dotenvx"
21
20
 
22
21
  Dotenvx.load
@@ -26,6 +25,33 @@ puts "Hello #{ENV["HELLO"]}"
26
25
 
27
26
   
28
27
 
28
+ ## Rails Quickstart
29
+
30
+ Add `dotenvx-rails` to your `Gemfile`:
31
+
32
+ ```ruby
33
+ gem "dotenvx-rails"
34
+ ```
35
+
36
+ Then install it:
37
+
38
+ ```sh
39
+ bundle install
40
+ ```
41
+
42
+ Dotenvx automatically loads your environment when your Rails app boots, before
43
+ application configuration. You do not need to call `Dotenvx.load` yourself.
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
+
53
+  
54
+
29
55
  ## Usage
30
56
 
31
57
  *Install* dotenvx.
Binary file
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
 
@@ -1,3 +1,3 @@
1
1
  module Dotenvx
2
- VERSION = "5.1.7"
2
+ VERSION = "5.1.9"
3
3
  end
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: Dir.pwd,
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),
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotenvx
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.7
4
+ version: 5.1.9
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - motdotla
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-11-24 00:00:00.000000000 Z
11
+ date: 2026-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description: a secure dotenv—from the creator of `dotenv`
69
+ description: the secure dotenv—from the creator of `dotenv`
70
70
  email:
71
71
  - mot@mot.la
72
72
  executables: []
@@ -82,11 +82,11 @@ files:
82
82
  - lib/dotenvx/output.rb
83
83
  - lib/dotenvx/rails.rb
84
84
  - lib/dotenvx/version.rb
85
- homepage: https://dotenvx.com
85
+ homepage: https://github.com/dotenvx/dotenvx-ruby#readme
86
86
  licenses:
87
87
  - BSD-3-Clause
88
88
  metadata:
89
- homepage_uri: https://dotenvx.com
89
+ homepage_uri: https://github.com/dotenvx/dotenvx-ruby#readme
90
90
  source_code_uri: https://github.com/dotenvx/dotenvx-ruby
91
91
  changelog_uri: https://github.com/dotenvx/dotenvx-ruby/blob/main/CHANGELOG.md
92
92
  post_install_message:
@@ -107,5 +107,5 @@ requirements: []
107
107
  rubygems_version: 3.3.27
108
108
  signing_key:
109
109
  specification_version: 4
110
- summary: a secure dotenv—from the creator of `dotenv`
110
+ summary: the secure dotenv—from the creator of `dotenv`
111
111
  test_files: []