Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/iguchi1124/rack-env_ribbon
- Owner: iguchi1124
- License: mit
- Created: 2016-10-01T20:08:13.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-13T09:19:23.000Z (over 5 years ago)
- Last Synced: 2024-04-24T13:27:48.209Z (7 months ago)
- Topics: rack
- Language: Ruby
- Homepage:
- Size: 656 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
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).