Sha256: d5b9cb9e9870010109f17affec77a2ee67df9c1bdc33e1b2b8deaa37579c50c0

Contents?: true

Size: 951 Bytes

Versions: 1

Compression:

Stored size: 951 Bytes

Contents

rack-heroku_env
====

[![Build Status](http://travis-ci.org/juno/rack-heroku_env.png)](http://travis-ci.org/juno/rack-heroku_env)

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

![Screenshot](http://farm7.static.flickr.com/6072/6034883614_f94d8d6d61_b.jpg)

`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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-heroku_env-0.1.1 README.md