rubygem-x-coreHTTP layer of the X gem: authentication, requests, and errors
1.0.0netΣ=0 Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one.
The HTTP layer of the x gem: a small, dependency-light client for the X API that
returns parsed JSON.
It handles OAuth 1.0a, OAuth 2.0 with PKCE authorization and token refresh, and
bearer tokens. It also handles redirects, proxies, timeouts, HTTP errors, and
rate limits, and opens a GET whose body is read as it arrives, as a stream is.
Its only dependency that is not a default gem is simple_oauth, which has no
dependencies of its own; it also asks for net-http 0.9.1 or a later 0.x release,
the default gem it sends its requests with, since the 0.6 that Ruby 3.4 ships
cannot request a host named by an IPv6 literal, and on Ruby 4.0 an earlier
net-http does not retry a connection that times out opening. Media uploads live
in x-uploads, and the streams of the API, read a post at a time and reconnected
as X recommends, in x-streams.
Most applications should install x, which adds resource objects from
x-resources. Install x-core alone when you only want raw JSON.
Change 15 to the FreeBSD major version you want; the rest keeps your current architecture. The files are saved under ./All/. Copy them to the other machine and install them there with pkg add. Ignore any warning that suggests pkg bootstrap -f. The quarterly or latest branch comes from your own repository configuration, not from this page.
net/rubygem-x-core: Add rubygem-x-core 1.0.0
The HTTP layer of the x gem: a small, dependency-light client for the X API that
returns parsed JSON.
It handles OAuth 1.0a, OAuth 2.0 with PKCE authorization and token refresh, and
bearer tokens. It also handles redirects, proxies, timeouts, HTTP errors, and
rate limits, and opens a GET whose body is read as it arrives, as a stream is.
Its only dependency that is not a default gem is simple_oauth, which has no
dependencies of its own; it also asks for net-http 0.9.1 or a later 0.x release,
the default gem it sends its requests with, since the 0.6 that Ruby 3.4 ships
cannot request a host named by an IPv6 literal, and on Ruby 4.0 an earlier
net-http does not retry a connection that times out opening. Media uploads live
in x-uploads, and the streams of the API, read a post at a time and reconnected
as X recommends, in x-streams.
Most applications should install x, which adds resource objects from
x-resources. Install x-core alone when you only want raw JSON.