layervault/divergence — pull request #16 by paulie4 (2013-06-25 14:37:27+00:00)
Title: Remove hard-coded base host_parts.length of 2 and add support for site subdomains

I removed the hard-coded value of host_parts.length > 2 for has_subdomain?(), and I added support for git repos whose code is used for additional subdomains, e.g. example.com and api.example.com. I was also having problems getting Divergence to work behind a proxy (which is handling SSL), so now Rack::Proxy support a backend_uri option (https://github.com/ncr/rack-proxy/pull/15), which I added to Divergence in fix_environment!().