Document installing sinatra-contrib from github [ci skip]

This commit is contained in:
Zachary Scott 2016-07-23 13:41:57 +09:00
parent 0388a8167d
commit 751f2a7a8f
1 changed files with 11 additions and 0 deletions

View File

@ -75,6 +75,17 @@ Add `gem 'sinatra-contrib'` to *Gemfile*, then execute `bundle install`.
If you don't use Bundler, install the gem manually by executing `gem install sinatra-contrib` in your command line.
### Git
If you want to use the gem from git, for whatever reason, you can do the following:
```ruby
github 'sinatra/sinatra' do
gem 'sinatra-contrib'
end
```
Within this block you can also specify other gems from this git repository.
## Usage