Philiprehberger's Gems

icon
See profile on Gravatar
#Total RankDaily RankNameSummary
12,5779,784philiprehberger-http_clientA zero-dependency HTTP client built on Ruby's net/http with automatic retries, request/...
23,0139,329philiprehberger-phoneParse phone numbers from various formats, validate against country rules, and format as...
33,0449,394philiprehberger-rate_limiterA zero-dependency Ruby gem for rate limiting with sliding window and token bucket algor...
43,2539,529philiprehberger-cron_kitA zero-dependency Ruby gem for parsing 5-field cron expressions and running an in-proce...
53,2559,190philiprehberger-task_queueA lightweight, zero-dependency, thread-safe in-process async job queue with configurabl...
63,2569,784philiprehberger-passwordValidate passwords against configurable policies (length, complexity, common password d...
73,2579,394philiprehberger-templateA lightweight Mustache-style template engine supporting variable interpolation, section...
84,4199,784philiprehberger-time_agoFormat timestamps as human-readable relative strings like "3 minutes ago" or "in 2 hour...
94,5229,784philiprehberger-email_validatorValidates email addresses with RFC 5322 syntax checking, MX record verification, dispos...
104,8819,614philiprehberger-retry_kitA lightweight retry library with exponential/linear/constant backoff, configurable jitt...
115,523144,442philiprehberger-structured_loggerA zero-dependency Ruby gem for structured JSON logging with context merging, child logg...
125,76735,633philiprehberger-cache_kitA lightweight, thread-safe in-memory LRU cache with TTL expiration and tag-based bulk i...
135,80735,633philiprehberger-config_kitA zero-dependency Ruby gem for layered configuration resolution. Define typed config ke...
145,814144,442philiprehberger-env_loaderLoad environment variables from multiple .env files with configurable precedence, type ...
155,82829,604philiprehberger-jwt_kitA complete JWT toolkit for Ruby. Encode and decode tokens with automatic claim manageme...
165,87453,400philiprehberger-sanitize_htmlHTML sanitizer with configurable allow lists for tags and attributes. Strip dangerous e...
175,87529,604philiprehberger-paginationPagination library supporting offset-based, cursor-based, and keyset strategies. Return...
185,87753,400philiprehberger-slugGenerate URL-safe slugs from any string with built-in Unicode transliteration, configur...
195,88153,400philiprehberger-corsRack-compatible CORS middleware supporting configurable allowed origins, methods, heade...
205,88526,327philiprehberger-json_schemaValidate Ruby data structures against JSON Schema definitions with support for type che...
215,887144,442philiprehberger-circuitCircuit breaker pattern with closed, open, and half-open states, configurable failure t...
225,88953,400philiprehberger-env_validatorDefine environment variable schemas with type casting, required/optional flags, and def...
235,89035,633philiprehberger-middlewareA composable middleware stack that supports lambda and class-based middleware, named en...
245,89224,087philiprehberger-resultA lightweight Result type for Ruby with Ok and Err variants, monadic map/flat_map opera...
255,89453,400philiprehberger-state_machineA minimal state machine for Ruby objects. Define states, events, transitions, guard con...
265,89722,352philiprehberger-memoMemoize methods with a simple decorator. Supports TTL expiration, LRU eviction, thread-...
275,902144,442philiprehberger-string_kitString case conversion, slug generation, transliteration, padding, HTML stripping, whit...
285,904144,442philiprehberger-inflectorProvides pluralize, singularize, camelize, underscore, tableize, classify, ordinalize, ...
295,906144,442philiprehberger-id_genGenerate unique identifiers in multiple formats: time-sortable ULIDs, compact nanoids, ...
305,907144,442philiprehberger-poolA generic thread-safe object pool for Ruby with configurable size, checkout timeouts, i...
315,908144,442philiprehberger-schedulerA lightweight in-process task scheduler for Ruby. Schedule recurring tasks using simple...
325,909144,442philiprehberger-cron_parserParse standard 5-field cron expressions and calculate next/previous occurrences, match ...
335,911144,442philiprehberger-parallel_eachParallel iteration methods (map, each, select, reject, find, flat_map, any?, all?, none...
345,914144,442philiprehberger-feature_flagA lightweight feature flag library supporting in-memory, ENV, and YAML backends with pe...
355,91735,633philiprehberger-webhook_signatureSign and verify webhook payloads using HMAC-SHA256 with timestamp-based replay preventi...
365,91953,400philiprehberger-webhook_builderA webhook delivery client that signs payloads with HMAC-SHA256, retries failed deliveri...
375,921144,442philiprehberger-maybeA Maybe/Optional type for Ruby providing Some and None containers with safe chaining, p...
385,922144,442philiprehberger-date_kitDate utilities including business day counting and arithmetic, quarter boundaries, week...
395,92329,604philiprehberger-tryA tiny utility for concise error handling. Wrap risky expressions with Try.call, chain ...
405,92453,400philiprehberger-csv_kitStreaming CSV processor with row-by-row transforms, validations, column plucking, strea...
415,926144,442philiprehberger-csv_builderBuild CSV files from record collections using a declarative DSL with column definitions...
425,92735,633philiprehberger-data_mapperA zero-dependency Ruby gem for transforming data between formats with a mapping DSL, fi...
435,929144,442philiprehberger-uri_kitParse, build, and manipulate URLs with query parameter management, normalization, domai...
445,931144,442philiprehberger-json_pathEvaluate JSONPath expressions against Ruby hashes and arrays. Supports dot notation, ar...
455,936144,442philiprehberger-json_mergeApply and generate JSON patches using RFC 7396 Merge Patch and RFC 6902 JSON Patch. Sup...
465,937144,442philiprehberger-test_factoryLightweight DSL for building test data objects without ActiveRecord. Define factories w...
475,939144,442philiprehberger-mime_typeDetect MIME types from file extensions, filenames, and binary content using magic byte ...
485,94153,400philiprehberger-http_mockStub HTTP requests in tests with a fluent API for matching methods, URLs, headers, and ...
495,943144,442philiprehberger-random_dataGenerate random test data including names, emails, phone numbers, UUIDs, sentences, par...
505,94435,633philiprehberger-cli_kitLightweight CLI toolkit combining argument parsing with flags and options, interactive ...
515,946144,442philiprehberger-colorA lightweight Ruby library for terminal ANSI color and styling with chainable API, RGB/...
525,94753,400philiprehberger-progressDisplay progress bars with percentage, ETA, and throughput, or spinners for indetermina...
535,94835,633philiprehberger-tableFormat data as terminal tables with Unicode, ASCII, Markdown, or compact styles. Build ...
545,95026,327philiprehberger-signed_payloadA zero-dependency Ruby gem for signing and verifying JSON payloads using HMAC-SHA256 wi...
555,95253,400philiprehberger-multipartBuild and parse multipart/form-data request bodies with a clean DSL for adding text fie...
565,958144,442philiprehberger-header_kitParse and build Accept, Accept-Language, Accept-Encoding, Authorization, Cache-Control,...
575,959144,442philiprehberger-checksumCompute MD5, SHA-1, SHA-256, SHA-512, and CRC32 checksums for strings and files. HMAC-S...
585,96353,400philiprehberger-lruThread-safe LRU cache backed by a hash and doubly-linked list for O(1) get/set, with co...
595,964144,442philiprehberger-cryptA high-level encryption toolkit providing AES-256-GCM encryption and decryption, key ro...
605,965144,442philiprehberger-schema_validatorA zero-dependency Ruby gem for validating hash data against schemas with type checking,...
615,97353,400philiprehberger-config_validatorDefine configuration schemas with required and optional keys, type constraints, default...
625,97535,633philiprehberger-safe_yamlSafe YAML loading with restricted types, schema validation, and size limits. Wraps YAML...
635,976144,442philiprehberger-toml_kitParse and generate TOML v1.0 documents with full type support including datetimes, inli...
645,977144,442philiprehberger-timeout_kitA cooperative timeout library providing deadline and timeout patterns that avoid Thread...
655,979144,442philiprehberger-semaphoreCounting semaphore built on Mutex and ConditionVariable for concurrent access control w...
665,980144,442philiprehberger-lock_kitFile locks using flock and PID file locks with stale detection for coordinating between...
675,982144,442philiprehberger-retry_queueProcesses collections of items with configurable per-item retry logic, exponential back...
685,983144,442philiprehberger-tarPure-Ruby implementation of tar archive creation and extraction using the standard 512-...
695,984144,442philiprehberger-pluralizePluralize and singularize English words without ActiveSupport. Includes 200+ rules, irr...
705,985144,442philiprehberger-html_builderBuild HTML programmatically using a clean tag DSL with nested blocks, automatic content...
715,986144,442philiprehberger-gzip_kitSimple API for gzip compression and decompression with support for strings, files, and ...
725,987144,442philiprehberger-xml_builderProgrammatic XML construction with a clean DSL, auto-escaping, CDATA, comments, process...
735,98853,400philiprehberger-moneyA lean money library that stores amounts as integer subunits (cents) to avoid floating-...
745,99029,604philiprehberger-durationParse human strings and ISO 8601 durations, perform arithmetic and comparison, and outp...
755,99221,068philiprehberger-semverA lightweight Ruby library for parsing, comparing, sorting, and matching semantic versi...
765,994144,442philiprehberger-human_sizeFormat byte counts as human-readable strings (1.5 MB) and parse them back. Supports SI ...
775,995144,442philiprehberger-version_compareParse semantic version strings into comparable objects with support for sorting, findin...
785,997144,442philiprehberger-metric_unitsUnit conversion library supporting length, weight, temperature, volume, speed, pressure...
795,99824,087philiprehberger-ip_addrParse and classify IPv4/IPv6 addresses with private, loopback, and multicast detection....
806,00011,551philiprehberger-maskAutomatically detect and redact sensitive data like emails, credit cards, SSNs, and tok...
816,001144,442philiprehberger-geo_pointGeographic point calculations including Haversine/Vincenty distance, bearing, midpoint,...
826,004144,442philiprehberger-image_sizeReads width, height, format, DPI, and color depth from image file headers (PNG, JPEG, G...
836,005144,442philiprehberger-task_runnerRun shell commands with captured stdout/stderr, exit code, duration measurement, config...
846,00635,633philiprehberger-log_filterPattern-based log filtering — drop or transform log lines matching rules. Includes pres...
856,00753,400philiprehberger-file_watcherWatch files and directories for changes using polling. Detects created, modified, and d...
866,01135,633philiprehberger-event_emitterA thread-safe event emitter for Ruby with sync and async listeners, wildcard event matc...
876,014144,442philiprehberger-etagGenerate strong and weak ETags, evaluate If-None-Match and If-Match headers, and serve ...
886,01521,068philiprehberger-token_bucketThread-safe token bucket rate limiter with configurable capacity and refill rate, suppo...
896,017144,442philiprehberger-metricA thread-safe in-process metrics library providing counters, gauges, histograms, and su...
906,02116,361philiprehberger-fuzzy_matchMatch strings approximately using multiple algorithms: Levenshtein edit distance, Damer...
916,022144,442philiprehberger-natural_sortNatural sort for strings containing numbers. Splits strings into text and numeric chunk...
926,024144,442philiprehberger-locale_kitParse BCP 47 language tags, negotiate content language from Accept-Language headers, an...
936,025144,442philiprehberger-regex_libA library of tested, documented regex patterns for common data formats. Includes named ...
946,026144,442philiprehberger-safe_execSafely evaluate arithmetic, comparison, and boolean expressions from untrusted input. U...
956,027144,442philiprehberger-truncateTruncate strings by word count, character count, or sentence count with word-boundary a...
966,030144,442philiprehberger-word_wrapWrap text to a specific width at word boundaries. Supports indentation, hanging indent,...
976,032144,442philiprehberger-job_meterThread-safe instrumentation for background jobs. Record execution duration and success/...
986,034144,442philiprehberger-rate_counterMeasure event rates (requests/sec, errors/min) using a sliding window counter. Thread-s...
996,0357,914philiprehberger-priority_queueA binary heap-based priority queue supporting min-heap, max-heap, and custom comparator...
1006,03653,400philiprehberger-rate_windowThread-safe time-windowed rate tracker that records values into bucketed time slots. Su...
1016,037144,442philiprehberger-stopwatchHigh-resolution stopwatch using monotonic clock with start, stop, reset, lap timing, pa...
1026,038144,442philiprehberger-treeA generic tree data structure supporting depth-first and breadth-first traversal, node ...
1036,03910,512philiprehberger-dependency_graphBuild and resolve dependency graphs using topological sort, detect cycles, generate par...
1046,04035,633philiprehberger-graphGraph data structure supporting directed and undirected modes with adjacency list stora...
1056,04353,400philiprehberger-queue_stackThread-safe queue and stack data structures with configurable capacity limits, blocking...
1066,044144,442philiprehberger-ring_bufferFixed-capacity ring buffer that overwrites oldest entries on overflow, with index acces...
1076,045144,442philiprehberger-bloom_filterBloom filter implementation using a bit array with double hashing. Supports configurabl...
1086,048144,442philiprehberger-intervalInterval data type supporting closed, open, and half-open boundaries with overlap detec...
1096,049144,442philiprehberger-hash_ringConsistent hash ring with virtual nodes, weighted members, and replication support. Min...
1106,050144,442philiprehberger-event_storeThread-safe in-memory event store for CQRS patterns. Supports named streams, event appe...
1116,051144,442philiprehberger-rule_engineA lightweight rule engine with a declarative DSL for defining conditions and actions. S...
1126,05224,087philiprehberger-pipeA Ruby library for functional pipeline composition with named steps, pipeline compositi...
1136,053144,442philiprehberger-struct_kitDefine data classes with typed fields, default values, validation rules, and pattern ma...
1146,054144,442philiprehberger-guard_clauseA chainable guard clause DSL for validating method preconditions with built-in checks f...
1156,056144,442philiprehberger-dot_accessAccess deeply nested hash values using dot notation (config.database.host) with nil-saf...
1166,058144,442philiprehberger-typed_hashDefine typed hash schemas with per-key type declarations, optional coercion functions, ...
1176,060144,442philiprehberger-batchProcesses collections in configurable chunks with progress tracking callbacks and per-i...
1186,06253,400philiprehberger-enumDefine type-safe enums in Ruby with automatic ordinals, custom values, lookup methods, ...
1196,063144,442philiprehberger-debounceDebounce delays execution until a quiet period elapses. Throttle limits execution frequ...
1206,064144,442philiprehberger-deep_freezeRecursively freeze entire object graphs (hashes, arrays, strings, structs, Data) to cre...
1216,06653,400philiprehberger-differA Ruby library for deep structural diffing of hashes, arrays, and nested objects with a...
1226,067144,442philiprehberger-expiring_mapA thread-safe hash map where each key has its own TTL, with automatic expiration, max s...
1236,068144,442philiprehberger-base_convertEncode and decode data in Base32 (Crockford), Base58 (Bitcoin), Base62, and Base85 (ASC...
1246,069144,442philiprehberger-counterCount element frequencies from any enumerable with most-common and least-common queries...
1256,07253,400philiprehberger-math_kitDescriptive statistics, linear interpolation, rounding modes, and moving averages. Ligh...
1266,076144,442philiprehberger-base64_urlURL-safe Base64 encoding and decoding using Base64.urlsafe_encode64/decode64 with no pa...
1276,07753,400philiprehberger-circuit_boardHealth check framework that aggregates dependency checks with configurable timeouts and...
1286,07853,400philiprehberger-hexEncode and decode hexadecimal strings with 0x prefix handling, produce xxd-style hex du...
1296,081144,442philiprehberger-compact_idConvert UUIDs to compact Base58 or Base62 representations (22 chars vs 36). Guaranteed ...
1306,082144,442philiprehberger-color_convertA color conversion library supporting hex, RGB, HSL, and HSV formats with parsing, mani...
1316,08353,400philiprehberger-encoding_kitDetect encoding from BOM and heuristics with confidence scores, convert between encodin...
1326,08424,087philiprehberger-ini_parserParse and generate INI configuration files with sections, inline comments, multiline va...
1336,085144,442philiprehberger-pathname_kitPathname utility library providing atomic writes, safe deletes, directory creation, glo...
1346,086144,442philiprehberger-approxCompare numeric values, arrays, and hashes for approximate equality using configurable ...
1356,08953,400philiprehberger-env_diffParse .env files or environment hashes, compare them, and get a clear report of added, ...
1366,09153,400philiprehberger-state_bagThread-local key-value state bag with scoped overrides via blocks, automatic restoratio...
1376,09353,400philiprehberger-changelog_parserParse Keep a Changelog formatted markdown files with version querying, category managem...
1386,09453,400philiprehberger-bit_fieldNamed bit flags with a DSL for defining flags at bit positions, symbolic read/set/clear...
1396,095144,442philiprehberger-audit_trailA lightweight audit trail library for tracking changes to hashes and objects with actor...
1406,09629,604philiprehberger-assertA lightweight runtime assertion library for Ruby with chainable matchers, soft assertio...