GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dotenvx/dotenvx-ruby: a secure dotenv–from the creator of `dotenv`

BranchesTags
Open more actions menu

Latest commit

 

History

27 Commits
27 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
ext/dotenvx
ext/dotenvx
 
 
lib
lib
 
 
spec
spec
 
 
.gitignore
.gitignore
 
 
.rspec
.rspec
 
 
CHANGELOG.md
CHANGELOG.md
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
DEVELOPMENT.md
DEVELOPMENT.md
 
 
Gemfile
Gemfile
 
 
Gemfile.lock
Gemfile.lock
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
Rakefile
Rakefile
 
 
dotenvx-rails.gemspec
dotenvx-rails.gemspec
 
 
dotenvx.gemspec
dotenvx.gemspec
 
 

Repository files navigation

dotenvx

a secure dotenv–from the creator of dotenv.

dotenvx loads plaintext and encrypted dotenv files through the shared dotenvx-primitives Rust implementation. The native extension is bundled in the gem; users do not need Node.js, a dotenvx CLI, or a Rust toolchain.

Install

gem install dotenvx

Or add it to a Gemfile:

gem "dotenvx"

Use

Load .env from the current directory:

require "dotenvx/load"

Or load explicitly:

require "dotenvx"

Dotenvx.load
Dotenvx.load(".env.local", ".env")

Existing environment variables win by default:

Dotenvx.load(".env")

To replace existing values:

Dotenvx.load(".env", overwrite: true)
Dotenvx.overwrite(".env")

Parse without changing ENV:

values = Dotenvx.parse(".env")

Raise when a file is missing:

Dotenvx.load!(".env")

Require configuration keys:

Dotenvx.require_keys("DATABASE_URL", "SECRET_KEY")

Encrypted values are decrypted automatically when the matching private key is available through the process environment, <filename>.keys, or .env.keys.

Native platforms

Tagged releases publish variants of the same dotenvx gem for:

  • Linux x86-64
  • Linux ARM64
  • macOS Intel
  • macOS Apple Silicon
  • Windows x64

RubyGems selects the correct variant during gem install dotenvx.

About

a secure dotenv–from the creator of `dotenv`

dotenvx.com/docs/sdk/ruby/

Topics

dotenvdotenvxruby

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.