/rack-showme

Rack middleware that injects a message in html responses

Primary LanguageRubyMIT LicenseMIT

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.