net/rubygem-x-core 1.0.0 FreeBSD
HTTP layer of the X gem: authentication, requests, and errors
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Port added
- Last update
- Commit
08d9489bec- License
- MIT
- Categories
- net, rubygems
Description
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.
Version history 1
Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.
Install
Binary package:
pkg install rubygem-x-core
From the ports tree:
cd /usr/ports/net/rubygem-x-core/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= rubygem-x-core>0:net/rubygem-x-core
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | - | - | - | - | - |
| FreeBSD:14:quarterly | - | - | n/a | - | - |
| FreeBSD:15:latest | - | - | n/a | - | - |
| FreeBSD:15:quarterly | - | - | n/a | n/a | n/a |
| FreeBSD:16:latest | - | - | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
As this port's Makefile names them.
Runtime 2
rubygem-net-http>=0.9.1<1: www/rubygem-net-httprubygem-simple_oauth>=1.0<2: net/rubygem-simple_oauth
The full lists below include those, and their dependencies in turn.
Build dependencies 6
Run dependencies 11
Configuration
No options to configure.
- USES
- gem
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| rubygem/x-core-1.0.0.gem | 126976 | 00f696a091246371c6f1963502688dbe839e823af7cb284517b52d2f961ed60c |
Master sites 1
- RG