Refactor find first to be Rails agnostic
Merge pull request #201 from bogdan-dumitru/hotfix/remove-deprecate-first-call

Refactor first with conditions to where + first
Move rails tests to subdirectories and split up rails framework test.
Ensure in tests that #setup calls #super.
Extract rails 2 into explicit gemfile.
Replace custom rake test task with template.

* This simplifies load path for gem/test_helper.
Remove unneeded assertions.
Add minitest/unit via shims for test/unit.

* Specify minitest ~>4.2.0 for rails < 4 to avoid breaking changes.
* Peg mocha/minitest to old versions for cross-compatibility with ActiveSupport.
* Conditionally require mocha integration for different versions of ruby: http://jamesmead.org/blog/2009-02-02-test-unit-and-minitest-with-different-ruby-versions
Replace bespoke spec framework with minitest/spec.
Remove GC fiddling from tests.
Merge pull request #208 from assaf/feature/minitest3

Use minitest consistently
Remove Rails 2 support.

* Updates README and docs
* Closes #132
Remove testing and support for Ruby 1.8.7

Closes #137.
Drop testing and official support for rails3 and rails 31.

Reduce maintenance overhead will allow faster development. As these are minor version of the previous major version, impact should be minor.
Fix deprecation warning

Including handler and format names in render paths (like
'_vanity.js.erb') is deprecated.
Detect protected_attributes in Rails 4
Merge pull request #212 from tmandry/fix-deprecation

Fix deprecation and support Rails 4 protected_attributes
Add latest rubies to travis.
Switch cli test to spec format.

Conflicts:
	test/cli_test.rb
Lazy-load Rails frameworks

* Avoid loading ActionController/ActionMailer::Base until they're needed
* Avoid loading ActiveRecord::Base until it's needed

A big part of the reason for the slowness is due to plugins referencing parts of Rails that don't necessarily need to be loaded, so, eg, ActiveRecord::Base gets pulled in even when just trying to run 'rake routes'. As of Rails 3.0, this can be avoided using on_load hooks.

Conflicts:
	lib/vanity/frameworks/rails.rb
	test/metric/active_record_test.rb