No commit activity in last 3 years
No release in over 3 years
Ruby gem for defining which environment variables must be set in order for your Rails application to function properly.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.10
~> 10.0
 Project Readme

env-dependencies Gem version

Ruby gem for defining which environment variables must be set in order for your Rails application to function properly.

Installation

Add this line to your application's Gemfile:

gem 'env-dependencies'

And then execute:

$ bundle install

Usage

Define an env_dependencies array in config/application.rb like so:

class Application < Rails::Application
  config.env_dependencies = [
    "CDN_URL",
    "JAVA_HOME",
    "ROLLBAR_ACCESS_TOKEN",
    "UI_DIR"
  ]
end

When your Rails application starts, an error will be raised immediately if any environment variables are not set. A nice precautionary measure!

Related

If you find this gem useful, you may also like path-dependencies.