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!
Edit
git clone git@github.com:sinatra/sinatra.git
cd sinatra
open rack-protection/lib/rack/protection/host_authorization.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Rack--Protection--HostAuthorization-host_permitted--for-pr
# Commit to gitgit add rack-protection/lib/rack/protection/host_authorization.rbgit commit -m "better docs for Rack::Protection::HostAuthorization#host_permitted?"
# Open pull requestgem 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!