# File lib/gemnasium/connection.rb, line 10 def post(path, body, headers = {}) request = Net::HTTP::Post.new(path, headers.merge('Accept' => 'application/json', 'Content-Type' => 'application/json')) request.basic_auth('X', Gemnasium.config.api_key) request.body = body @connection.request(request) end