Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/springmt/rack-favicon_all
https://github.com/springmt/rack-favicon_all
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/springmt/rack-favicon_all
- Owner: SpringMT
- License: mit
- Created: 2015-01-10T10:44:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-30T10:33:42.000Z (over 8 years ago)
- Last Synced: 2024-04-25T00:55:30.267Z (9 months ago)
- Language: Ruby
- Size: 18.6 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Rack::FaviconAll
This is a Ruby version of [bayashi/Plack-Middleware-Favicon](https://github.com/bayashi/Plack-Middleware-Favicon)Generate favicons for IE, FF, Chrome, Safari!
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'rack-favicon_all'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install rack-favicon_all
## Usage
In Gemfile
```
gem 'rack-favicon_all'
```And write in config.ru below
```
require 'rack/favicon_all'
use Rack::FaviconAll, favicon_path: "path/to/favicon.png"
```## Contributing
1. Fork it ( https://github.com/[my-github-username]/rack-favicon_all/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