Apply defaults to objects as they pass through your streams
minimal implementation of a PassThrough stream
fs read and write streams based on minipass
fs read and write streams based on minipass
file streams that roll over when size limits, or dates are reached
Automated stream rotation useful for log files
Get stdout window width, with two fallbacks, tty and then a default.
Split email messages into an object stream
split a Text Stream into a Line Stream, using Stream 3
Encode and decode base64 encoded strings
Implementation of the HTML encoding sniffer algo, with stream support
A simple common HTTP client specifically for Google APIs and services.
Node.js Streams, a user-land copy of the stream library from Node.js
Turn a readable stream into multiple readable streamx streams
Check if something is a Node.js stream
Get a stream as a string, Buffer, ArrayBuffer or array
Toggle the CLI cursor
tar-stream is a streaming tar parser and generator and nothing else. It operates purely using streams which means you can easily extract/parse tarballs without ever hitting the file system.
destroy a stream if possible
Call a callback when a readable/writable/duplex stream has completed or failed.
Encode and decode quoted-printable strings according to rfc2045
A streaming way to send data to a Node.js Worker Thread
Put a little spinner on process.stderr, as unobtrusively as possible.
Get and validate the raw body of a readable stream.
This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program
This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program
Extensions and enhancements to Ruby's built in Logger class. Extensions include: multiple output streams, JSON formatting for easy aggregation, and a Railtie to set some sane(ish) defaults for production Rails environments.
sequel_pg overwrites the inner loop of the Sequel postgres adapter row fetching code with a C version. The C version is significantly faster than the pure ruby version that Sequel uses by default. sequel_pg also offers optimized versions of some dataset methods, as well as adds support for using PostgreSQL streaming.
SmarterCSV is a high-performance CSV reader and writer for Ruby focused on fastest end-to-end ingestion — not just parsing. It returns ready-to-use hashes with configurable header and value transformations, intelligent defaults, and automatic delimiter discovery. Built for real-world data pipelines, SmarterCSV supports chunked processing for large files, streaming via Enumerable APIs, and C acceleration to optimize the full ingestion path (parsing + hash construction + conversions). Designed to handle messy user-uploaded CSV while remaining easy to integrate with Rails, ActiveRecord imports, Sidekiq jobs, parallel processing, and S3-based workflows.
OpenRouter Ruby client: chat (streaming SSE), configurable retries for non-streaming completions, optional DB-backed API call logging, Responses API defaults, models listing with filters and free-tier hints, embeddings, rerank, audio, video, OAuth, API keys, guardrails, workspaces, and related REST endpoints.
AdvancedSelect provides helper-rendered Rails partials, Stimulus dropdown behavior, Turbo Stream-compatible option updates, plain CSS, and i18n defaults while leaving data loading, authorization, and endpoints to the host app.
Scaffolds a new boilerplate twitter bot project from the command line. By default will create a bot that tweets a "hello world" type greeting once every 3-4.5 hours Can also pass a --streaming flag to create a bot that listens to the "gardenhose" Or a --userstream flag for a bot that listens for tweets @ it. To use: $ gem install twitter_bot_generator $ twitter_bot_generator --help $ twitter_bot_generator my_new_bot $ cd my_new_bot $ bundle install $ ruby test.rb $ ruby spec.rb etc.
A gem to pretty print anything. Currently supports input formats: - ruby (.inspect formatted) - yaml - json And will auto-detect input type, though you can force detection. Outputs yaml by default, but can output ruby, yaml, or json. Input streams or files may be compressed with zlib/deflate, however, gzip is not currently supported.
sequel_pg overwrites the inner loop of the Sequel postgres adapter row fetching code with a C version. The C version is significantly faster than the pure ruby version that Sequel uses by default. sequel_pg also offers optimized versions of some dataset methods, as well as adds support for using PostgreSQL streaming.
:: wmainfo-rb :: Author: Darren Kirby mailto:bulliver@badcomputer.org License: Ruby = Quick API docs = == Initializing == require 'wmainfo' foo = WmaInfo.new("someSong.wma") ... or ... foo = WmaInfo.new("someVideo.wmv", :encoding=>"UTF-16LE") (default encoding is ASCII) ... or ... foo = WmaInfo.new("someVideo.wmv", :debug=>1) == Public attributes == @drm :: 'true' if DRM present else 'false' @tags :: dict of strings (id3 like data) @info :: dict of variable types (non-id3 like data) @ext_info :: dict of variable types (non-id3 like data) from ASF_Extended_Content_Description_Object @headerObject :: dict of arrays (name, GUID, size and offset of ASF objects) @stream :: dict of variable types (stream properties data) == Public methods == print_objects :: pretty-print header objects hasdrm? :: returns True if file has DRM hastag?('str') :: returns True if @tags['str'] exists print_tags :: pretty-print @tags dict hasinfo?('str') :: returns True if @info['str'] exists print_info :: pretty-print @info dict print_stream :: pretty-print @stream dict For more/different documentation see http://badcomputer.org/unix/code/wmainfo/ == Thanks/Contributors == Ilmari Heikkinen sent in a fix for uninitialized '@ext_info'. Guillaume Pierronnet sent in a patch which improves character encoding handling.
local_llm is a lightweight Ruby gem that lets you interact with locally installed Ollama LLMs such as LLaMA, Mistral, CodeLLaMA, Qwen, and more. It supports configurable default models, configurable Ollama API endpoints, real-time streaming or non-streaming responses, and both one-shot and multi-turn chat—while keeping all inference fully local, private, and offline.
No description provided.
No description provided.