includes associated unit tests
gc was wiping out unit tests b/c an old version of mini spec was being used. reference test contexted was added. reference api changed to return string from type getter.
Defines with blocks returning a value are not pretty, and I'm not sure if MSVC can handle them. They are now inline functions, so we get some pretty type checking. Also, they have been renamed from LG2_STR_NEW() to lower case names. All the cases that used #ifdefs to handle returning raw, unencoded ASCII strings have been factorized into a 'rugged_str_ascii()' method. Signed-off-by: Vicent Marti <firstname.lastname@example.org>
Technically, a few memory leaks have been fixed. In practice, Rugged wasn't freeing a single byte of memory from libgit2: now it is fully GC-aware. Signed-off-by: Vicent Marti <email@example.com>