pengwynn/octokit — pull request #122 by gvaughn (2012-08-07 01:12:07+00:00)
Title: remove leading slashes in paths for enterprise use

Main fix is in Request#request -- just strips the leading slash.
I also removed the leading slashes in existing calls.
I had considered doing this in spec/helper.rb, but couldn't get a
good error message.
module Octokit::Request
alias :request_without_assert :request
def request(method, path, options, version, authenticate, raw, force_urlencoded)
path.start_with?('/').should == false #will fail in github:enterprise
request_without_assert(method, path, options, version, authenticate, raw, force_urlencoded)
end
end