libgit2/rugged — pull request #149 by tnm (2012-12-29 22:25:47+00:00)
Title: Wrap capabilities

I continue my completist campaign, wrapping `git_libgit2_capabilities` to give us 100 percent coverage of things under the `libgit2`/common.h realm. The most friendly Ruby-like thing to do here seemed to be to offer the end-user an string array of each capability available (threads, https), since libgit2 itself just returns an integer mapping. For unit-testing, there doesn't seem to be an especially straight-forward and portable way to test (given variability of compile-test options), but here we are testing that an array gets returned. I'll think more on it, but I'm relatively content with the current setup for now.

cc @vmg