ThrowTheSwitch/Unity — pull request #57 by mvandervoord (2014-02-28 15:44:50+00:00)
Title: Support different encoding styles and force to something we can work wit...

This change was suggested over a year ago and we slacked off on it because we wanted a universal solution, I guess... but most people are using 1.9 or greater these days... so I've adding this feature for anyone who is and it's just disabled for older systems.

The main changes below are the addition of the QUICK_RUBY_VERSION near the top, giving us a fast way to make version comparisons (I'm making the same addition to CMock) and the updated encoding line after the file read. In the process I also refactored us into a single file read where we pass around the string read instead of reading multiple times (what were we thinking?).

Finally, my editor cleaned up a lot of white space for us. I apologize for the ugly diff that it makes, but I'm still happy it happened.

@barneywilliams, @JSchaenzle, @sw17ch, @jvranish : would one of you be willing to double check this before we commit?