Patched for Ruby 2.0.0 support.
Modified RE in test to accept OSX version of git. For example, "git version 1.7.9.6 (Apple Git-31.1)".
require 'mocha' is deprecated in favor of require 'mocha/setup'.
Tests now work with Ruby 2.0.0. Since strings are defaulted to UTF-8, things were breaking since a UTF-8 constant was being compared to an ASCII file read. Forcing the constant to be ASCII fixes this.
Use magic comment to set encoding for entire file instead of .force_encoding.
Better way to check ruby version.
Zlib and read return ASCII. Use force_encoding to make them work in a UTF8 world.
Modified grit to use utf-8 as it's default encoding.
- Magic encoding comment was added to the top of loose.rb and pack.rb
- Encoding is forced on anything that is read for comparison against a string.
Remove an erroneous comment.