No commit activity in last 3 years
No release in over 3 years
Similar to Rails encrypted secrets but with multiple environments.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

Encrypted Settings

A gem like Rails 5 settings but with multiple environments.

Usage

Implemented a library similar to rails 5 encrypted settings.

To read the settings and print out to STDOUT:

rake settings:read

To edit settings:

rake settings:edit

You might need to pass some environment variables:

RACK_ENV=development SETTINGS_ENCRYPTOION_KEY=DevelopmentSecretIsHardToBreak!! rake settings:edit

The key can also be put in a .settings_encryption_key file. In that case just:

RACK_ENV=production rake settings:edit

By default, it would use sublime (sub --wait) to edit the settings. If you prefer another editor you can pass the command in EDITOR env variable, eg.

EDITOR=vim rake settings:edit

The environment will be determined like this:

environment = ENV["RACK_ENV"] || ENV["RAILS_ENV"] || ENV["ENV"] || ENV["ENVIRONMENT"] || "development"