Socket
Book a DemoInstallSign in
Socket

rack-heroku_env

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rack-heroku_env

0.1.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 02 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.