simeonwillbanks/mygists — pull request #17 by simeonwillbanks (2013-01-02 04:02:54+00:00)
Title: Refactoring

* Refactor MyGists::Fetch#gists and MyGists::Fetch specs to be more readable
* Add MyGists::Fetch spec for getting star status
* Add MyGists::Fetch::Options to encapsulate hash sent to MyGists::Fetch.for
* Move methods from ProfileDecorator and MyGists::Fetch into MyGists::Fetch::Options class
* Add scopes to Gist
* Add specs for Gist scopes
* Add GithubApiTestHelpers to make specs easier to read and cleaner
* Refactor MyGists::Refresh spec to clearly express its intent
* Move gist icon rendering logic from view into GistDecorator
* On tags view, tighten gist icons to gist description and add whitespace between gist descriptions
* SCSS cleanup by moving style declarations to correct asset files and use descriptive selectors
* Correctly spell paginate
* In Users::OmniauthCallbacksController, use ruby 1.9 syntax and make more readable by moving github hash into a local variable
* Remove unused views and updated views to ruby 1.9 syntax
* Refator Gist.public_null_for and Gist.last_touched_for to return an instance of a Gist instead of an Active::Record::Relation
* Change default tag ordering to use slug, so ordering is applied to strings of the same case