andrew/24pullrequests — pull request #50 by tubbo (2012-12-01 00:08:19+00:00)
Title: Project GitHub URLs must be fully qualified.

We should make sure each Project's github_url is fully qualified. Otherwise, you get cases such as this link to Coffee-Toaster.. `github.com/serpentem/coffee-toaster`. So here ya go! All you have to do is run the Rake task on production to convert any projects that don't begin with "http://", and each Project submission from here on out validates that the github_url begins with "http://".

- Add validator to Project that tests whether GitHub URLs begin with "http://"
- Test validation in specs
- Add Rake task for cleaning up old Projects without fully-qualified
URLs. It should be run on the production server once after deploying
the code in this Pull Request.
- Add test data to db/seeds.rb for testing the Rake task. Verify that
the task works in dev by typing `rake db:seed cleanup:projects`. All
projects should be prefixed with one "http://", no matter how many
times you run the task.