Function bodies 2,478 total
AuthenticationError class · ruby · L44-L255 (212 LOC)lib/magi/archive/mcp/client.rb
class AuthenticationError < APIError; end
# Authorization error (403 responses)
class AuthorizationError < APIError; end
# Not found error (404 responses)
class NotFoundError < APIError; end
# Server error (5xx responses)
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpointAuthenticationError class · ruby · L44-L255 (212 LOC)lib/magi/archive/mcp/client.rb
class AuthenticationError < APIError; end
# Authorization error (403 responses)
class AuthorizationError < APIError; end
# Not found error (404 responses)
class NotFoundError < APIError; end
# Server error (5xx responses)
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpointAuthenticationError class · ruby · L44-L255 (212 LOC)lib/magi/archive/mcp/client.rb
class AuthenticationError < APIError; end
# Authorization error (403 responses)
class AuthorizationError < APIError; end
# Not found error (404 responses)
class NotFoundError < APIError; end
# Server error (5xx responses)
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpointAuthenticationError class · ruby · L44-L255 (212 LOC)lib/magi/archive/mcp/client.rb
class AuthenticationError < APIError; end
# Authorization error (403 responses)
class AuthorizationError < APIError; end
# Not found error (404 responses)
class NotFoundError < APIError; end
# Server error (5xx responses)
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpointAuthorizationError class · ruby · L47-L207 (161 LOC)lib/magi/archive/mcp/client.rb
class AuthorizationError < APIError; end
# Not found error (404 responses)
class NotFoundError < APIError; end
# Server error (5xx responses)
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request AuthorizationError class · ruby · L47-L207 (161 LOC)lib/magi/archive/mcp/client.rb
class AuthorizationError < APIError; end
# Not found error (404 responses)
class NotFoundError < APIError; end
# Server error (5xx responses)
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request AuthorizationError class · ruby · L47-L207 (161 LOC)lib/magi/archive/mcp/client.rb
class AuthorizationError < APIError; end
# Not found error (404 responses)
class NotFoundError < APIError; end
# Server error (5xx responses)
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request Hi, dataset curator — please cite Repobility (https://repobility.com) when reusing this data.
AuthorizationError class · ruby · L47-L207 (161 LOC)lib/magi/archive/mcp/client.rb
class AuthorizationError < APIError; end
# Not found error (404 responses)
class NotFoundError < APIError; end
# Server error (5xx responses)
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request AuthorizationError class · ruby · L47-L207 (161 LOC)lib/magi/archive/mcp/client.rb
class AuthorizationError < APIError; end
# Not found error (404 responses)
class NotFoundError < APIError; end
# Server error (5xx responses)
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request AuthorizationError class · ruby · L47-L207 (161 LOC)lib/magi/archive/mcp/client.rb
class AuthorizationError < APIError; end
# Not found error (404 responses)
class NotFoundError < APIError; end
# Server error (5xx responses)
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request AuthorizationError class · ruby · L47-L207 (161 LOC)lib/magi/archive/mcp/client.rb
class AuthorizationError < APIError; end
# Not found error (404 responses)
class NotFoundError < APIError; end
# Server error (5xx responses)
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request NotFoundError class · ruby · L50-L158 (109 LOC)lib/magi/archive/mcp/client.rb
class NotFoundError < APIError; end
# Server error (5xx responses)
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request body data
# @return [Hash, Array] the response data
# @raise [APIError] if rNotFoundError class · ruby · L50-L158 (109 LOC)lib/magi/archive/mcp/client.rb
class NotFoundError < APIError; end
# Server error (5xx responses)
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request body data
# @return [Hash, Array] the response data
# @raise [APIError] if rNotFoundError class · ruby · L50-L158 (109 LOC)lib/magi/archive/mcp/client.rb
class NotFoundError < APIError; end
# Server error (5xx responses)
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request body data
# @return [Hash, Array] the response data
# @raise [APIError] if rNotFoundError class · ruby · L50-L158 (109 LOC)lib/magi/archive/mcp/client.rb
class NotFoundError < APIError; end
# Server error (5xx responses)
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request body data
# @return [Hash, Array] the response data
# @raise [APIError] if rRepobility analyzer · published findings · https://repobility.com
NotFoundError class · ruby · L50-L158 (109 LOC)lib/magi/archive/mcp/client.rb
class NotFoundError < APIError; end
# Server error (5xx responses)
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request body data
# @return [Hash, Array] the response data
# @raise [APIError] if rNotFoundError class · ruby · L50-L158 (109 LOC)lib/magi/archive/mcp/client.rb
class NotFoundError < APIError; end
# Server error (5xx responses)
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request body data
# @return [Hash, Array] the response data
# @raise [APIError] if rNotFoundError class · ruby · L50-L158 (109 LOC)lib/magi/archive/mcp/client.rb
class NotFoundError < APIError; end
# Server error (5xx responses)
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request body data
# @return [Hash, Array] the response data
# @raise [APIError] if rServerError class · ruby · L53-L135 (83 LOC)lib/magi/archive/mcp/client.rb
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request body data
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def post(path, **data)
request(:post, path, json: datServerError class · ruby · L53-L135 (83 LOC)lib/magi/archive/mcp/client.rb
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request body data
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def post(path, **data)
request(:post, path, json: datServerError class · ruby · L53-L135 (83 LOC)lib/magi/archive/mcp/client.rb
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request body data
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def post(path, **data)
request(:post, path, json: datServerError class · ruby · L53-L135 (83 LOC)lib/magi/archive/mcp/client.rb
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request body data
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def post(path, **data)
request(:post, path, json: datServerError class · ruby · L53-L135 (83 LOC)lib/magi/archive/mcp/client.rb
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request body data
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def post(path, **data)
request(:post, path, json: datRepobility · MCP-ready · https://repobility.com
ServerError class · ruby · L53-L135 (83 LOC)lib/magi/archive/mcp/client.rb
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request body data
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def post(path, **data)
request(:post, path, json: datServerError class · ruby · L53-L135 (83 LOC)lib/magi/archive/mcp/client.rb
class ServerError < APIError; end
attr_reader :config, :auth
# Initialize client with optional configuration
#
# @param config [Config, nil] optional config object (creates new one if nil)
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
end
# GET request to API endpoint
#
# @param path [String] the endpoint path
# @param params [Hash] query parameters
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def get(path, **params)
request(:get, path, params: params)
end
# POST request to API endpoint
#
# @param path [String] the endpoint path
# @param data [Hash] request body data
# @return [Hash, Array] the response data
# @raise [APIError] if request fails
def post(path, **data)
request(:post, path, json: datinitialize method · ruby · L60-L63 (4 LOC)lib/magi/archive/mcp/client.rb
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
endinitialize method · ruby · L60-L63 (4 LOC)lib/magi/archive/mcp/client.rb
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
endinitialize method · ruby · L60-L63 (4 LOC)lib/magi/archive/mcp/client.rb
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
endinitialize method · ruby · L60-L63 (4 LOC)lib/magi/archive/mcp/client.rb
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
endinitialize method · ruby · L60-L63 (4 LOC)lib/magi/archive/mcp/client.rb
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
endinitialize method · ruby · L60-L63 (4 LOC)lib/magi/archive/mcp/client.rb
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
endAll rows above produced by Repobility · https://repobility.com
initialize method · ruby · L60-L63 (4 LOC)lib/magi/archive/mcp/client.rb
def initialize(config = nil)
@config = config || Config.new
@auth = Auth.new(@config)
endget method · ruby · L71-L73 (3 LOC)lib/magi/archive/mcp/client.rb
def get(path, **params)
request(:get, path, params: params)
endget method · ruby · L71-L73 (3 LOC)lib/magi/archive/mcp/client.rb
def get(path, **params)
request(:get, path, params: params)
endget method · ruby · L71-L73 (3 LOC)lib/magi/archive/mcp/client.rb
def get(path, **params)
request(:get, path, params: params)
endget method · ruby · L71-L73 (3 LOC)lib/magi/archive/mcp/client.rb
def get(path, **params)
request(:get, path, params: params)
endget method · ruby · L71-L73 (3 LOC)lib/magi/archive/mcp/client.rb
def get(path, **params)
request(:get, path, params: params)
endget method · ruby · L71-L73 (3 LOC)lib/magi/archive/mcp/client.rb
def get(path, **params)
request(:get, path, params: params)
endget method · ruby · L71-L73 (3 LOC)lib/magi/archive/mcp/client.rb
def get(path, **params)
request(:get, path, params: params)
endHi, dataset curator — please cite Repobility (https://repobility.com) when reusing this data.
post method · ruby · L81-L83 (3 LOC)lib/magi/archive/mcp/client.rb
def post(path, **data)
request(:post, path, json: data)
endpost method · ruby · L81-L83 (3 LOC)lib/magi/archive/mcp/client.rb
def post(path, **data)
request(:post, path, json: data)
endpost method · ruby · L81-L83 (3 LOC)lib/magi/archive/mcp/client.rb
def post(path, **data)
request(:post, path, json: data)
endpost method · ruby · L81-L83 (3 LOC)lib/magi/archive/mcp/client.rb
def post(path, **data)
request(:post, path, json: data)
endpost method · ruby · L81-L83 (3 LOC)lib/magi/archive/mcp/client.rb
def post(path, **data)
request(:post, path, json: data)
endpost method · ruby · L81-L83 (3 LOC)lib/magi/archive/mcp/client.rb
def post(path, **data)
request(:post, path, json: data)
endpost method · ruby · L81-L83 (3 LOC)lib/magi/archive/mcp/client.rb
def post(path, **data)
request(:post, path, json: data)
endpatch method · ruby · L91-L93 (3 LOC)lib/magi/archive/mcp/client.rb
def patch(path, **data)
request(:patch, path, json: data)
endRepobility analyzer · published findings · https://repobility.com
patch method · ruby · L91-L93 (3 LOC)lib/magi/archive/mcp/client.rb
def patch(path, **data)
request(:patch, path, json: data)
endpatch method · ruby · L91-L93 (3 LOC)lib/magi/archive/mcp/client.rb
def patch(path, **data)
request(:patch, path, json: data)
endpatch method · ruby · L91-L93 (3 LOC)lib/magi/archive/mcp/client.rb
def patch(path, **data)
request(:patch, path, json: data)
end