Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iguchi1124/rack-env_ribbon

Add env ribbon on your rack application views.
https://github.com/iguchi1124/rack-env_ribbon

rack

Last synced: 17 days ago
JSON representation

Add env ribbon on your rack application views.

Awesome Lists containing this project

README

        

# Rack::EnvRibbon

[![Build Status](https://travis-ci.org/iguchi1124/rack-env_ribbon.svg?branch=master)](https://travis-ci.org/iguchi1124/rack-env_ribbon)

Add env ribbon on your rack application views.

![](screen_shot.png)

## Installation

```sh
$ gem install rack-env_ribbon
```

### Rack application

Add `use Rack::EnvRibbon` on your `config.ru` file.

```rb
require 'rack/env_ribbon'

app # => your rack application object

use Rack::EnvRibbon
run app
```

### Sinatra

Add `use Rack::EnvRibbon` in the same way as rack application

```rb
require 'sinatra'

require 'rack/env_ribbon'

use Rack::EnvRibbon

get '/' do
<<~HTML




sinatra app


app body




HTML
end
```

### Rails

Add this line to your application's Gemfile

```ruby
gem 'rack-env_ribbon'
```

And then execute

```bash
$ bundle
```

## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).