sinatra

https://github.com/sinatra/sinatra

Ruby

Classy web-development dressed in a DSL (official / canonical repo)

Rack::Protection::HostAuthorization#host_permitted?

No Docs, write some!

Source | Google | Stack overflow

Edit

git clone git@github.com:sinatra/sinatra.git

cd sinatra

open rack-protection/lib/rack/protection/host_authorization.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rack--Protection--HostAuthorization-host_permitted--for-pr


# Commit to git

git add rack-protection/lib/rack/protection/host_authorization.rbgit commit -m "better docs for Rack::Protection::HostAuthorization#host_permitted?"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Rack--Protection--HostAuthorization-host_permitted--for-pr

hub pull-request


# Celebrate!