Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Gem::GemcutterUtilities#rubygems_api_request

rubygems_api_request(method, path, host = nil, allowed_push_host = nil, scope: nil, &block)

Creates an RubyGems API to host and path with the given HTTP method.

If allowed_push_host metadata is present, then it will only allow that host.