dotenvx-rails 5.1.12 → 5.1.14

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 +8 -0
  3. data/README.md +17 -0
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71f439b7bd1bd6215f0b978e2703b2038ef7444994fc5575d5a8c5eb9713c20b
4
- data.tar.gz: c7a19becc54a17c0f46bd76631f100b2d0876041e919955094f219980f035899
3
+ metadata.gz: 3d98b4141716cf15071f8101c44de4fc769906614a3cb21aa5b05da033c28eb9
4
+ data.tar.gz: c3232c760f04bd34a7fab5670ba59d59bb2ff21069921e2e0efce84f9eba01c5
5
5
  SHA512:
6
- metadata.gz: 93c61e781a0eb158f22bfab2a8e6da5564672a6a23d792d4c345fa61674994a842a89c8dd5e4431b89e247f660ec8295be3cd2dfe41b29600d97dbe9d07948a8
7
- data.tar.gz: ac5ba3ed2aa38dfb54c777390097aa3176fdae8ec806b4898c6188d8ec481dafc9adf0c17b6f192853e437e83472aa9636290f48f70d3eb9dd34f2bcda93ea0f
6
+ metadata.gz: 2545883b45a0f9add4bc15fd70e33a8c995ffb17f97502659a77a2fd2796ab1983e8ca12d2407011f9e03b4e3479fea6021678cb759ea9dfd1ad4448feec209a
7
+ data.tar.gz: 40f5b069ee187fe45a1a6654fa1b8542a8f8713138e7ab9f7d2fefc48c339e4134a49d07b90340bb161c91894b7046f0ab6a7148f6963e8b8de7791ce6600fcf
data/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. See [standa
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ ## 5.1.14 (2026-12-03)
8
+
9
+ - Expose `Dotenvx::Primitives` for key generation, derivation, encryption, decryption, and algorithm detection using the shared Rust implementation.
10
+
11
+ ## 5.1.13 (2026-12-03)
12
+
13
+ - Add built-in ML-KEM-768/AES-256-GCM envelope support through the shared primitives and SDK, including Base64 public keys and private seeds.
14
+
7
15
  ## 5.1.12 (2026-12-02)
8
16
 
9
17
  - Set a valid Mach-O install name in the macOS native gem so it loads on macOS versions that reject an empty name.
data/README.md CHANGED
@@ -115,3 +115,20 @@ The result is a system built entirely from primitives, developers already unders
115
115
  [Read the whitepaper →](https://dotenvx.com/dotenvx.pdf?v=README)
116
116
 
117
117
   
118
+
119
+ ## Primitives
120
+
121
+ Use the same key operations as the CLI without loading files or environment variables:
122
+
123
+ ```ruby
124
+ require "dotenvx/primitives"
125
+
126
+ pair = Dotenvx::Primitives.keypair(algorithm: "mlkem768")
127
+ public_key = Dotenvx::Primitives.derive(pair.fetch("private_key"))
128
+ ciphertext = Dotenvx::Primitives.encrypt(public_key, "hello")
129
+ plaintext = Dotenvx::Primitives.decrypt(pair.fetch("private_key"), ciphertext)
130
+ Dotenvx::Primitives.public_key_algorithm(public_key) # => "mlkem768"
131
+ ```
132
+
133
+ `secp256k1` is the default algorithm. Invalid keys, ciphertext, and unsupported
134
+ algorithms raise `ArgumentError`. Algorithm detection returns `nil` for invalid keys.
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.12
4
+ version: 5.1.14
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.12
18
+ version: 5.1.14
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.12
25
+ version: 5.1.14
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: railties
28
28
  requirement: !ruby/object:Gem::Requirement