old_style for Rails

I’m not the most organized person. It would be a big help to me if there was a helper to keep my stylesheets clean. old_style.gem helps you do that! old_style compares all of your styles with the differen nodes in your views. If old_style doesn’t find a corresponding id or class or parent node in the html file it registers the style as Bad.

Setup is simple

    gem install 'old_style'

Commands

*In the root of your project
    old_style 'some controller name that has views and stylesheets'

If I had a project with a posts controller. That posts controller had a set of views and one stylesheet. I would type:

    old_style posts

If my project had a users controller with views and stylesheets and I wanted to include those in the comparison I would type:

    old_style posts users

If all went well an old_style/index.html file has been generated in the root of your project.

    open old_style/index.html

Updates

I keep a work blog But be gental this is just a place for me to write quickly as I code. I’m a horrible speller.

Version 1.3.1
Version 1.2.1
Version 1.2.0
Version 1.1.0

Future Features

Contributing to old_style

Copyright © 2014 hayduke19us. See LICENSE.txt for further details.