* Upgrade Ruby patch level to 247. * Wrap documentation lines at 80 characters. * End sentences with periods. * Replace Bourne with RSpec Mocks >= 2.14, which now has stubbing and spying. * Upgrade Rake. * Use RSpec `expect` syntax. * Configure RSpec to fail fast, saving time during TDD loops and CI runs. * Configure RSpec to run tests in random order, potentially exposing inter-dependent tests.
* Don't rescue all errors when checking HEAD requests * Rescue from Errno::ECONNREFUSED
* Add classes to validate JSON * Add Gemfile for supporting libraries * Add script to contribution guidelines * Split out classes into separate files * Require gems in main TrailRunner class * Expand error message to recommend jsonlint.com * Write specs Other changes: * Move script into `lib/tasks/` and make directory-agnostic * Sort gems alphabetically * Don't require mocha * Add awesome_print to Gemfile for debugging * Clean up Gemfile * Specify ruby version in Gemfile * Sort gems * Remove awesome_print (used only for diagnostics) * Change mocha require to remove deprecation message