Sha256: 6e15f7e60451a410c9c623ec78a5473268c15263dd8c5ceb3f6d2381973de37a
Contents?: true
Size: 971 Bytes
Versions: 35
Compression:
Stored size: 971 Bytes
Contents
def stub_get(path, endpoint = GitReflow.git_server.class.api_endpoint) stub_request(:get, endpoint + path) end def stub_post(path, endpoint = GitReflow.git_server.class.api_endpoint) stub_request(:post, endpoint + path) end def stub_patch(path, endpoint = Github.endpoint.to_s) stub_request(:patch, endpoint + path) end def stub_put(path, endpoint = Github.endpoint.to_s) stub_request(:put, endpoint + path) end def stub_delete(path, endpoint = Github.endpoint.to_s) stub_request(:delete, endpoint + path) end def a_get(path, endpoint = Github.endpoint.to_s) a_request(:get, endpoint + path) end def a_post(path, endpoint = Github.endpoint.to_s) a_request(:post, endpoint + path) end def a_patch(path, endpoint = Github.endpoint.to_s) a_request(:patch, endpoint + path) end def a_put(path, endpoint = Github.endpoint) a_request(:put, endpoint + path) end def a_delete(path, endpoint = Github.endpoint) a_request(:delete, endpoint + path) end
Version data entries
35 entries across 35 versions & 1 rubygems