emphatic solutions : ephemeral musings in the ether...
Brian Doll, Software/Systems Architect, San Francisco Bay Area, California

New gem - rails_framework_diff

August 2008

It started on twitter:


It’s amazing how hard it is to find problems when caused by developers incorrectly modifying framework-generated files. – Chad Fowler


i’ve always wanted to write a rake task to diff framework-generated files against their generated default for that very reason. – Brian Doll


I would install that gem/plugin if you released it. – Chad Fowler


I had been looking forward to writing another gem ever since reading the Building a gem with BDD article in the initial issue of The Rubyist. In that article, Jamie van Dyke mentioned a gem called Mr. Bones for creating gem skeletons. It differs from other similar solutions in that it’s just a generator and does not insert itself as a dependency on your gems.

The problem is simple enough. The rails command builds a project skeleton which includes many key files. If those files are modified incorrectly, lots of badness can happen. Since they are automatically included in all rails projects though, they can look innocuous when auditing or reviewing a rails project. When they are the culprit, you’ve likely spent hours and hours reviewing everything else first.

Now, with rails_framework_diff you can quickly see a diff against the rails framework-generated defaults and those corresponding files in your project. Nice and easy, nice and quick.

I should also note that without github, not only would the process of releasing a new gem into the world take a whole lot longer, it certainly wouldn’t be as fun. This gem was conceived, developed and released on a major gem server in under two hours. Awesome.


Thoughts from Twitter


About the author:

Brian Doll is a business-focused technologist who has been building things on the web for over 13 years. He has extensive experience in retail, media and financial service industries in both start-up and large enterprise environments.

He enjoys speaking on lean engineering, web application performance and systems architecture. Having been inspired by Ruby and reinvigorated by Rails, Brian has been an avid contributor in the Ruby/Rails community since early 2007.

Additionally, he is a husband, father, thought worker, tree-hugging, music-loving, punk, atheist, non-conformist, optimist, Quality seeker. Phew! Here you'll find a mix of thoughts on fitness (Crossfit, Paleo foods), philosophy and programming (Ruby, Rails and other goodies).



Generated by Jekyll
Copyright © 2007-2010 Brian Doll