RubyGems::CredentialStore::Backends::PasswordStore

This is a password-store (pass) backend for RubyGems' credential store.

Installation

Install the gem and add to the application's Gemfile by executing:

bundle add rubygems-credential_store-backends-password_store

If bundler is not being used to manage dependencies, install the gem by executing:

gem install rubygems-credential_store-backends-password_store

Usage

Set :credential_store: password_store in ~/.gemrc or export RUBYGEMS_CREDENTIAL_STORE=password_store. For Bundler it is the credential_store setting (BUNDLE_CREDENTIAL_STORE).

You can also change folder path in password-store repository with RUBYGEMS_CREDENTIAL_STORE_BACKENDS_PASSWORD_STORE_FOLDER (default: RubyGems). The pass command can be changed with RUBYGEMS_CREDENTIAL_STORE_BACKENDS_PASSWORD_STORE_COMMAND.

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

Dummy password store directory is used for testing just in case. Please see .envrc, which is a Direnv config.

Contributing

Bug reports and pull requests are welcome.

License

Copyright (C) 2026 gemmaro

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.