0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
rack middleware for exposing Heroku environment variables
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 0.7.0
~> 10.3
~> 3.0.0
~> 0.8.2

Runtime

~> 1.1
 Project Readme

rack-heroku_env

Build Status

A gem that provides exposing Heroku environment variables as HTTP response headers as rack middleware.

Screenshot

Rack::HerokuEnv exposes any HTTP_X_HEROKU* as X-Heroku-*.

For example:

  • HTTP_X_HEROKU_DYNOS_IN_USE as X-Heroku-Dynos-In-Use
  • HTTP_X_HEROKU_QUEUE_DEPTH as X-Heroku-Queue-Depth
  • HTTP_X_HEROKU_QUEUE_WAIT_TIME as X-Heroku-Queue-Wait-Time

Usage

Rails 3

# Gemfile
gem 'rack-heroku_env', :require => 'rack/heroku_env'

# config/application.rb
config.middleware.use Rack::HerokuEnv

Sinatra

require 'rack/heroku_env'
use Rack::HerokuEnv

Installation

$ gem install rack-heroku_env

Testing

$ gem install bundler
$ bundle install
$ bundle exec rake