0.01
No commit activity in last 3 years
No release in over 3 years
Rack middleware that injects a message into HTML responses.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Rack::Showme

Build Status

Rack middleware that injects a message into HTML responses.

By message I mean a div element

This give us the ability to, for example, add a message indicating that the server is staging or any other QA environment without have to modify our code base

Using with Rails

Add the following line to your Gemfile

	gem "rack-showme"

And run bundle install

Then add the following lines to an enviroment file e.g. config/environments/development.rb

  require "rack/showme

  config.middleware.use "Rack::Showme"
  Rack::Showme::Options.message = "Development"

Options

You can select between three colorschemes yellow, green and red

  Rack::Showme::Options.colorscheme= "yellow"
  Rack::Showme::Options.colorscheme= "green"
  Rack::Showme::Options.colorscheme= "red"

This is useful to easily distinguish between diferent enviroments e.g. development and staging

Information

Bugs repors

If you discover a problem with Rack::Showme, please, open a Issue and include the more info you can.

Contributing

Do you have an idea about how do Rack::Showme better, don't hesitate in fork the project and send a pull request

ScreenShots

Simple rails app without Rack::Showme

Screenshot

Default colorscheme (yellow)

Screenshot

Green colorscheme

Screenshot

Red colorscheme

Screenshot

LICENSE

MIT License Copyright 2013 Nearsoft

About the Author

Nearsoft is a software product development service, with operations in Mexico. We work with ISVs, SaaS companies and consumer-facing sites. Thanks to our software engineering approach and experience, we help our clients get their products (and their companies) out to market faster.