Philiprehberger's Gems

icon
See profile on Gravatar
#Total RankDaily RankNameSummary
12,73013,224philiprehberger-http_clientA zero-dependency HTTP client built on Ruby's net/http with automatic retries, request/...
23,23613,321philiprehberger-phoneParse phone numbers from various formats, validate against country rules, and format as...
33,25913,540philiprehberger-rate_limiterA zero-dependency Ruby gem for rate limiting with sliding window and token bucket algor...
43,56013,224philiprehberger-cron_kitA zero-dependency Ruby gem for parsing 5-field cron expressions and running an in-proce...
53,56413,428philiprehberger-task_queueA lightweight, zero-dependency, thread-safe in-process async job queue with configurabl...
63,56513,321philiprehberger-passwordValidate passwords against configurable policies (length, complexity, common password d...
73,56613,540philiprehberger-templateA lightweight Mustache-style template engine supporting variable interpolation, section...
84,50113,428philiprehberger-time_agoFormat timestamps as human-readable relative strings like "3 minutes ago" or "in 2 hour...
94,61813,654philiprehberger-email_validatorValidates email addresses with RFC 5322 syntax checking, MX record verification, dispos...
105,06849,764philiprehberger-retry_kitA lightweight retry library with exponential/linear/constant backoff, configurable jitt...
115,77258,623philiprehberger-structured_loggerA zero-dependency Ruby gem for structured JSON logging with context merging, child logg...
126,06894,041philiprehberger-cache_kitA lightweight, thread-safe in-memory LRU cache with TTL expiration and tag-based bulk i...
136,12194,041philiprehberger-config_kitA zero-dependency Ruby gem for layered configuration resolution. Define typed config ke...
146,13094,041philiprehberger-env_loaderLoad environment variables from multiple .env files with configurable precedence, type ...
156,15958,623philiprehberger-jwt_kitA complete JWT toolkit for Ruby. Encode and decode tokens with automatic claim manageme...
166,22894,041philiprehberger-sanitize_htmlHTML sanitizer with configurable allow lists for tags and attributes. Strip dangerous e...
176,230129,004philiprehberger-paginationPagination library supporting offset-based, cursor-based, and keyset strategies. Return...
186,23172,277philiprehberger-slugGenerate URL-safe slugs from any string with built-in Unicode transliteration, configur...
196,23794,041philiprehberger-corsRack-compatible CORS middleware supporting configurable allowed origins, methods, heade...
206,24172,277philiprehberger-json_schemaValidate Ruby data structures against JSON Schema definitions with support for type che...
216,243129,004philiprehberger-circuitCircuit breaker pattern with closed, open, and half-open states, configurable failure t...
226,24794,041philiprehberger-env_validatorDefine environment variable schemas with type casting, required/optional flags, and def...
236,24839,155philiprehberger-middlewareA composable middleware stack that supports lambda and class-based middleware, named en...
246,24972,277philiprehberger-resultA lightweight Result type for Ruby with Ok and Err variants, monadic map/flat_map opera...
256,25058,623philiprehberger-state_machineA minimal state machine for Ruby objects. Define states, events, transitions, guard con...
266,25339,155philiprehberger-memoMemoize methods with a simple decorator. Supports TTL expiration, LRU eviction, thread-...
276,26194,041philiprehberger-string_kitString case conversion, slug generation, transliteration, padding, HTML stripping, whit...
286,262172,075philiprehberger-inflectorProvides pluralize, singularize, camelize, underscore, tableize, classify, ordinalize, ...
296,26672,277philiprehberger-id_genGenerate unique identifiers in multiple formats: time-sortable ULIDs, compact nanoids, ...
306,26758,623philiprehberger-schedulerA lightweight in-process task scheduler for Ruby. Schedule recurring tasks using simple...
316,27058,623philiprehberger-cron_parserParse standard 5-field cron expressions and calculate next/previous occurrences, match ...
326,27172,277philiprehberger-poolA generic thread-safe object pool for Ruby with configurable size, checkout timeouts, i...
336,272129,004philiprehberger-parallel_eachParallel iteration methods (map, each, select, reject, find, flat_map, any?, all?, none...
346,28394,041philiprehberger-feature_flagA lightweight feature flag library supporting in-memory, ENV, and YAML backends with pe...
356,28758,623philiprehberger-webhook_signatureSign and verify webhook payloads using HMAC-SHA256 with timestamp-based replay preventi...
366,29094,041philiprehberger-webhook_builderA webhook delivery client that signs payloads with HMAC-SHA256, retries failed deliveri...
376,292129,004philiprehberger-date_kitDate utilities including business day counting and arithmetic, quarter boundaries, week...
386,29458,623philiprehberger-maybeA Maybe/Optional type for Ruby providing Some and None containers with safe chaining, p...
396,29594,041philiprehberger-tryA tiny utility for concise error handling. Wrap risky expressions with Try.call, chain ...
406,297129,004philiprehberger-csv_kitStreaming CSV processor with row-by-row transforms, validations, column plucking, strea...
416,299129,004philiprehberger-csv_builderBuild CSV files from record collections using a declarative DSL with column definitions...
426,302129,004philiprehberger-data_mapperA zero-dependency Ruby gem for transforming data between formats with a mapping DSL, fi...
436,30494,041philiprehberger-uri_kitParse, build, and manipulate URLs with query parameter management, normalization, domai...
446,305129,004philiprehberger-json_pathEvaluate JSONPath expressions against Ruby hashes and arrays. Supports dot notation, ar...
456,307129,004philiprehberger-json_mergeApply and generate JSON patches using RFC 7396 Merge Patch and RFC 6902 JSON Patch. Sup...
466,30994,041philiprehberger-test_factoryLightweight DSL for building test data objects without ActiveRecord. Define factories w...
476,313129,004philiprehberger-mime_typeDetect MIME types from file extensions, filenames, and binary content using magic byte ...
486,31594,041philiprehberger-http_mockStub HTTP requests in tests with a fluent API for matching methods, URLs, headers, and ...
496,318129,004philiprehberger-random_dataGenerate random test data including names, emails, phone numbers, UUIDs, sentences, par...
506,31958,623philiprehberger-cli_kitLightweight CLI toolkit combining argument parsing with flags and options, interactive ...
516,32149,764philiprehberger-colorA lightweight Ruby library for terminal ANSI color and styling with chainable API, RGB/...
526,322129,004philiprehberger-progressDisplay progress bars with percentage, ETA, and throughput, or spinners for indetermina...
536,32449,764philiprehberger-tableFormat data as terminal tables with Unicode, ASCII, Markdown, or compact styles. Build ...
546,325129,004philiprehberger-signed_payloadA zero-dependency Ruby gem for signing and verifying JSON payloads using HMAC-SHA256 wi...
556,32739,155philiprehberger-multipartBuild and parse multipart/form-data request bodies with a clean DSL for adding text fie...
566,33058,623philiprehberger-header_kitParse and build Accept, Accept-Language, Accept-Encoding, Authorization, Cache-Control,...
576,333129,004philiprehberger-checksumCompute MD5, SHA-1, SHA-256, SHA-512, and CRC32 checksums for strings and files. HMAC-S...
586,33472,277philiprehberger-lruThread-safe LRU cache backed by a hash and doubly-linked list for O(1) get/set, with co...
596,336129,004philiprehberger-cryptA high-level encryption toolkit providing AES-256-GCM encryption and decryption, key ro...
606,33972,277philiprehberger-schema_validatorA zero-dependency Ruby gem for validating hash data against schemas with type checking,...
616,344172,075philiprehberger-config_validatorDefine configuration schemas with required and optional keys, type constraints, default...
626,34658,623philiprehberger-safe_yamlSafe YAML loading with restricted types, schema validation, and size limits. Wraps YAML...
636,35194,041philiprehberger-toml_kitParse and generate TOML v1.0 documents with full type support including datetimes, inli...
646,35294,041philiprehberger-timeout_kitA cooperative timeout library providing deadline and timeout patterns that avoid Thread...
656,353129,004philiprehberger-semaphoreCounting semaphore built on Mutex and ConditionVariable for concurrent access control w...
666,35594,041philiprehberger-lock_kitFile locks using flock and PID file locks with stale detection for coordinating between...
676,35694,041philiprehberger-retry_queueProcesses collections of items with configurable per-item retry logic, exponential back...
686,36158,623philiprehberger-pluralizePluralize and singularize English words without ActiveSupport. Includes 200+ rules, irr...
696,36272,277philiprehberger-tarPure-Ruby implementation of tar archive creation and extraction using the standard 512-...
706,36558,623philiprehberger-html_builderBuild HTML programmatically using a clean tag DSL with nested blocks, automatic content...
716,36972,277philiprehberger-gzip_kitSimple API for gzip compression and decompression with support for strings, files, and ...
726,370129,004philiprehberger-xml_builderProgrammatic XML construction with a clean DSL, auto-escaping, CDATA, comments, process...
736,37294,041philiprehberger-moneyA lean money library that stores amounts as integer subunits (cents) to avoid floating-...
746,37649,764philiprehberger-durationParse human strings and ISO 8601 durations, perform arithmetic and comparison, and outp...
756,37839,155philiprehberger-semverA lightweight Ruby library for parsing, comparing, sorting, and matching semantic versi...
766,38094,041philiprehberger-human_sizeFormat byte counts as human-readable strings (1.5 MB) and parse them back. Supports SI ...
776,38172,277philiprehberger-version_compareParse semantic version strings into comparable objects with support for sorting, findin...
786,383129,004philiprehberger-metric_unitsUnit conversion library supporting length, weight, temperature, volume, speed, pressure...
796,38572,277philiprehberger-ip_addrParse and classify IPv4/IPv6 addresses with private, loopback, and multicast detection....
806,38772,277philiprehberger-geo_pointGeographic point calculations including Haversine/Vincenty distance, bearing, midpoint,...
816,38826,430philiprehberger-maskAutomatically detect and redact sensitive data like emails, credit cards, SSNs, and tok...
826,39194,041philiprehberger-image_sizeReads width, height, format, DPI, and color depth from image file headers (PNG, JPEG, G...
836,39272,277philiprehberger-task_runnerRun shell commands with captured stdout/stderr, exit code, duration measurement, config...
846,39694,041philiprehberger-file_watcherWatch files and directories for changes using polling. Detects created, modified, and d...
856,39872,277philiprehberger-log_filterPattern-based log filtering — drop or transform log lines matching rules. Includes pres...
866,40172,277philiprehberger-event_emitterA thread-safe event emitter for Ruby with sync and async listeners, wildcard event matc...
876,40558,623philiprehberger-etagGenerate strong and weak ETags, evaluate If-None-Match and If-Match headers, and serve ...
886,40772,277philiprehberger-token_bucketThread-safe token bucket rate limiter with configurable capacity and refill rate, suppo...
896,40894,041philiprehberger-metricA thread-safe in-process metrics library providing counters, gauges, histograms, and su...
906,412129,004philiprehberger-fuzzy_matchMatch strings approximately using multiple algorithms: Levenshtein edit distance, Damer...
916,41372,277philiprehberger-natural_sortNatural sort for strings containing numbers. Splits strings into text and numeric chunk...
926,41472,277philiprehberger-locale_kitParse BCP 47 language tags, negotiate content language from Accept-Language headers, an...
936,41672,277philiprehberger-regex_libA library of tested, documented regex patterns for common data formats. Includes named ...
946,418129,004philiprehberger-safe_execSafely evaluate arithmetic, comparison, and boolean expressions from untrusted input. U...
956,42358,623philiprehberger-truncateTruncate strings by word count, character count, or sentence count with word-boundary a...
966,426129,004philiprehberger-word_wrapWrap text to a specific width at word boundaries. Supports indentation, hanging indent,...
976,42894,041philiprehberger-job_meterThread-safe instrumentation for background jobs. Record execution duration and success/...
986,43172,277philiprehberger-rate_counterMeasure event rates (requests/sec, errors/min) using a sliding window counter. Thread-s...
996,43294,041philiprehberger-rate_windowThread-safe time-windowed rate tracker that records values into bucketed time slots. Su...
1006,43594,041philiprehberger-stopwatchHigh-resolution stopwatch using monotonic clock with start, stop, reset, lap timing, pa...
1016,43894,041philiprehberger-treeA generic tree data structure supporting depth-first and breadth-first traversal, node ...
1026,43972,277philiprehberger-graphGraph data structure supporting directed and undirected modes with adjacency list stora...
1036,44094,041philiprehberger-dependency_graphBuild and resolve dependency graphs using topological sort, detect cycles, generate par...
1046,44194,041philiprehberger-priority_queueA binary heap-based priority queue supporting min-heap, max-heap, and custom comparator...
1056,44272,277philiprehberger-queue_stackThread-safe queue and stack data structures with configurable capacity limits, blocking...
1066,44394,041philiprehberger-ring_bufferFixed-capacity ring buffer that overwrites oldest entries on overflow, with index acces...
1076,44494,041philiprehberger-bloom_filterBloom filter implementation using a bit array with double hashing. Supports configurabl...
1086,446129,004philiprehberger-intervalInterval data type supporting closed, open, and half-open boundaries with overlap detec...
1096,44772,277philiprehberger-hash_ringConsistent hash ring with virtual nodes, weighted members, and replication support. Min...
1106,450129,004philiprehberger-event_storeThread-safe in-memory event store for CQRS patterns. Supports named streams, event appe...
1116,45272,277philiprehberger-rule_engineA lightweight rule engine with a declarative DSL for defining conditions and actions. S...
1126,45394,041philiprehberger-pipeA Ruby library for functional pipeline composition with named steps, pipeline compositi...
1136,45458,623philiprehberger-struct_kitDefine data classes with typed fields, default values, validation rules, and pattern ma...
1146,458172,075philiprehberger-guard_clauseA chainable guard clause DSL for validating method preconditions with built-in checks f...
1156,46294,041philiprehberger-dot_accessAccess deeply nested hash values using dot notation (config.database.host) with nil-saf...
1166,46372,277philiprehberger-typed_hashDefine typed hash schemas with per-key type declarations, optional coercion functions, ...
1176,46494,041philiprehberger-batchProcesses collections in configurable chunks with progress tracking callbacks and per-i...
1186,46694,041philiprehberger-enumDefine type-safe enums in Ruby with automatic ordinals, custom values, lookup methods, ...
1196,46872,277philiprehberger-debounceDebounce delays execution until a quiet period elapses. Throttle limits execution frequ...
1206,47272,277philiprehberger-deep_freezeRecursively freeze entire object graphs (hashes, arrays, strings, structs, Data) to cre...
1216,47394,041philiprehberger-expiring_mapA thread-safe hash map where each key has its own TTL, with automatic expiration, max s...
1226,47494,041philiprehberger-differA Ruby library for deep structural diffing of hashes, arrays, and nested objects with a...
1236,47672,277philiprehberger-base_convertEncode and decode data in Base32 (Crockford), Base58 (Bitcoin), Base62, and Base85 (ASC...
1246,478129,004philiprehberger-counterCount element frequencies from any enumerable with most-common and least-common queries...
1256,48094,041philiprehberger-math_kitDescriptive statistics, linear interpolation, rounding modes, and moving averages. Ligh...
1266,48294,041philiprehberger-base64_urlURL-safe Base64 encoding and decoding using Base64.urlsafe_encode64/decode64 with no pa...
1276,48372,277philiprehberger-circuit_boardHealth check framework that aggregates dependency checks with configurable timeouts and...
1286,48572,277philiprehberger-hexEncode and decode hexadecimal strings with 0x prefix handling, produce xxd-style hex du...
1296,48994,041philiprehberger-compact_idConvert UUIDs to compact Base58 or Base62 representations (22 chars vs 36). Guaranteed ...
1306,49072,277philiprehberger-encoding_kitDetect encoding from BOM and heuristics with confidence scores, convert between encodin...
1316,49158,623philiprehberger-color_convertA color conversion library supporting hex, RGB, HSL, and HSV formats with parsing, mani...
1326,49272,277philiprehberger-ini_parserParse and generate INI configuration files with sections, inline comments, multiline va...
1336,49394,041philiprehberger-pathname_kitPathname utility library providing atomic writes, safe deletes, directory creation, glo...
1346,49635,774philiprehberger-approxCompare numeric values, arrays, and hashes for approximate equality using configurable ...
1356,49949,764philiprehberger-env_diffParse .env files or environment hashes, compare them, and get a clear report of added, ...
1366,50194,041philiprehberger-state_bagThread-local key-value state bag with scoped overrides via blocks, automatic restoratio...
1376,50272,277philiprehberger-bit_fieldNamed bit flags with a DSL for defining flags at bit positions, symbolic read/set/clear...
1386,50272,277philiprehberger-changelog_parserParse Keep a Changelog formatted markdown files with version querying, category managem...
1396,50494,041philiprehberger-audit_trailA lightweight audit trail library for tracking changes to hashes and objects with actor...
1406,50558,623philiprehberger-assertA lightweight runtime assertion library for Ruby with chainable matchers, soft assertio...