No commit activity in last 3 years
No release in over 3 years
Includes the X-Clacks-Overhead header inside your rack application. http://redd.it/2yt9j6
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.8
~> 1.6
~> 10.0
~> 3.3
~> 1.2
 Project Readme

Rack::HonouredDeceased

A simple gem to include X-Clacks-Overhead headers for those lost but not forgotten into any rack (rails, sinatra, etc) application.

Inspired by this thread on reddit.

Installation

Add this line to your application's Gemfile:

gem 'rack-honoured_deceased'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rack-honoured_deceased

Usage

Stand Alone Rack App

# config.ru
require 'rack'
require 'rack/honoured_deceased'

use Rack::HonouredDeceased, ["Terry Pratchett"]
app = proc do |env|
  [ 200, {'Content-Type' => 'text/plain'}, ["Your webapp"] ]
end

Then run rackup

Sinatra

require 'sinatra'
require 'rack/honoured_deceased'

use Rack::HonouredDeceased, ["Terry Pratchett"]

get '/' do
  'Your webapp'
end

Rails

# Add it to your Gemfile
gem 'rack-honoured_deceased'
# In config/application.rb
config.middleware.use Rack::HonouredDeceased, ["Terry Pratchett"]

or

# In config.ru
use Rack::HonouredDeceased, ["Terry Pratchett"]

Testing

rspec

Contributing

  1. Fork it ( https://github.com/jphastings/rack-honoured_deceased/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

GNU Terry Pratchett