Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby wrapper for the gpg binary.
Ruby Cucumber
branch: master
Failed to load latest commit information.
features
lib
spec
test_keys Use a clean tmpdir
.autotest Add RubyGpg.encrypt method plus clean/fix some things.
.gitignore We don't want Gemfile.lock in rubygem repos
.travis.yml Do not test on 1.8.7
CHANGELOG.markdown
Gemfile Add Gemfile
LICENSE Initial commit to ruby_gpg.
README.markdown Prepare 0.3.1 release
Rakefile Remove jeweler
VERSION
cucumber.yml
ruby_gpg.gemspec

README.markdown

Ruby GPG

Ruby wrapper for the gpg binary. You probably want to be using the ruby-gpgme gem instead, but if you can't install the gpgme libraries for some reason, I guess you have to settle for this.

Installation

gem install ruby_gpg

Configuration

# Defaults to "gpg"
RubyGpg.config.executable = "/custom/path/to/gpg"

# Defaults to "~/.gnupg"
RubyGpg.config.homedir = "/custom/path/to/home"

Usage

# creates /path/to/file.gpg:
RubyGpg.encrypt("/path/to/file", "Mr. Recipient")

# creates /path/to/file:
RubyGpg.decrypt("/path/to/file.gpg", "passphrase")

For more details, see the RDocs.

Credits

  • Raphaël Pinson modernized things and added some features. Thanks.
  • Scott and Divya of gitcaps added some sorely missing features. Thanks, guys.

Copyright

Copyright (c) 2010 Justin Blake. See LICENSE for details.

Something went wrong with that request. Please try again.