x 1.0.0: one letter, one major version.
A Ruby interface to the X API with objects, streaming, media uploads, and types.
gem install x
github.com/sferik/x-ruby/rel…
Be sure to update to the latest gem version (0.15.2) to ensure media upload will work after April 30.
In Jan 2025, we launched new X API v2 media upload endpoints.
Based on feedback from the developer community, we're working on additional improvements, and will be extending the migration timeline to Apr 30, 2025.
Check out the post below for details 👇
devcommunity.x.com/t/extende…
Version 0.13.0 has been released with a new X::RateLimit object that is returned when an X::TooManyRequests error occurs. Many thanks to @GuirecCorbel for the patch! github.com/sferik/x-ruby/pul…
Thanks to @IFTTT for sponsoring the X Ruby gem! sferik.github.io/x-ruby/#spo…
Version 0.12.0 released! Now all API errors (e.g. X::NotFound) subclass X::HTTPError and have a #code attribute that returns the HTTP status code (e.g. "404").
github.com/sferik/x-ruby/blo…
Version 0.11.0 released! This is the best version of the X gem yet. Full changelog here: github.com/sferik/x-ruby/blo…
The X Ruby Gem retweeted
Programming naming poll: Say you have a ResponseHandler class that has one main method that takes an HTTP response object and parses the body into an object. Don’t get hung up on details of this example—I’m asking about your general approach. What would you name that method?
30%handle_response(response)
52%handle(response)
12%process/run/execute/main
6%Other (please reply)
33 votes • Final resultsReplying to @uagtw
Try adding:
require "x/media_upload"
to the top of the file where you’re attempting to use it. Also, make sure you’re using version 0.10.0. Please let me know if that doesn’t fix it.
As of today, the Twitter gem is no longer maintained. Please use the X gem instead. sferik.github.io/x-ruby/
Would it also be possible to add a Crystal section for this library I just published? github.com/sferik/x-crystal



