Merge pull request #78 from rjc123/patch-4

Add rules to serve devolved businesslink content
Ruby 1.9.3-p484 -> 2.1.2
Merge pull request #80 from alphagov/ruby-version-bumpo

Ruby 1.9.3-p484 -> 2.1.2
Use an up-to-date structure.sql from Transition
Remove detailed spec output

It's really noisy and doesn't add anything. The default still prints out the
test failures.

This also makes it consistent with Transition.
Merge pull request #83 from alphagov/remove_detailed_spec_output

Remove detailed spec output
Remove some #try from attributes_for_render

* By the time we're here, we're at a recognised host, which necessarily
  implies an associated site and org
* Some things may still not be there, but those things are limited to:
  * A mapping (implies 404)
  * A TNA timestamp (implies nothing very much, as a default will be generated)
Merge pull request #82 from alphagov/update_structure_sql

Use an up-to-date structure.sql from Transition
Merge pull request #85 from alphagov/try-there-is-no-try

Remove some #try from attributes_for_render
Use site titles, homepages and FURLs on 410s

Sites can already have homepages which differ from their owning organisation's
homepage. Given that the furl attribute is simply a shorter form of the full
URL for a site, it follows that they have furls too.

We are currently inconsistent with how we apply the (new) homepage for a site.
  * If you look at the site in Transition, it says the new homepage is the one
    specified for that site in Redirector.
  * If you visit the old homepage, you get redirected to the site's new
    homepage, which is correct.
  * However, if you visit a page with an archive/unresolved mapping, it links
    to the organisation's new homepage, which is unhelpful or even
    inappropriate.

Therefore, we should change Bouncer's archive behaviour so that it links to the
site's new homepage. To make it consistent, we then need to make it use the
furl (if any) and a title which describes the site, rather than the
organisation. If the site has no title, use the organisation's title.
Merge pull request #84 from alphagov/use_site_titles_homepages_and_furls_on_410

Use site titles, homepages and FURLs on 410s
Link to the page not the homepage on TNA for a 404

We currently link to the TNA page for the domain, rather than the TNA page for
the page you requested. The assumption may have been that this page isn't in
the archive, so linking to the archive for the homepage was a better option.

If I am correct about the origins of this behaviour, then it may have been when
we thought our coverage would have been excellent. That is not generally the
case.
Merge pull request #86 from alphagov/link_to_page_not_homepage_on_tna_on_a_404

Link to the page not the homepage on TNA for a 404
Use the same version of ActiveRecord as transition

- This forces a `mysql2` gem upgrade too, as running the tests doesn't
  work with 0.3.11. The `mysql2` gem is also now the same as transition.
Merge pull request #88 from alphagov/use_same_activerecord_version_as_transition

Use the same version of ActiveRecord as transition
Use ' instead of " around the mr-sparkle gem for consistency
Merge pull request #89 from alphagov/single_quotes_in_gemfile

Use ' instead of " around the mr-sparkle gem for consistency
Add rules to support MCGA legacy domain