Philiprehberger's Gems

icon
See profile on Gravatar
#Total RankDaily RankNameSummary
13,016247philiprehberger-http_clientA zero-dependency HTTP client built on Ruby's net/http with automatic retries, request/...
23,706248philiprehberger-phoneParse phone numbers from various formats, validate against country rules, and format as...
33,751250philiprehberger-rate_limiterA zero-dependency Ruby gem for rate limiting with sliding window and token bucket algor...
44,337244philiprehberger-cron_kitA zero-dependency Ruby gem for parsing 5-field cron expressions and running an in-proce...
54,346249philiprehberger-task_queueA lightweight, zero-dependency, thread-safe in-process async job queue with configurabl...
64,354245philiprehberger-passwordValidate passwords against configurable policies (length, complexity, common password d...
74,356246philiprehberger-templateA lightweight Mustache-style template engine supporting variable interpolation, section...
84,6201,572philiprehberger-time_agoFormat timestamps as human-readable relative strings like "3 minutes ago" or "in 2 hour...
94,7781,631philiprehberger-email_validatorValidates email addresses with RFC 5322 syntax checking, MX record verification, dispos...
105,3131,663philiprehberger-retry_kitA lightweight retry library with exponential/linear/constant backoff, configurable jitt...
116,1581,650philiprehberger-structured_loggerA zero-dependency Ruby gem for structured JSON logging with context merging, child logg...
126,5761,626philiprehberger-cache_kitA lightweight, thread-safe in-memory LRU cache with TTL expiration and tag-based bulk i...
136,6541,564philiprehberger-config_kitA zero-dependency Ruby gem for layered configuration resolution. Define typed config ke...
146,6631,598philiprehberger-env_loaderLoad environment variables from multiple .env files with configurable precedence, type ...
156,6911,688philiprehberger-jwt_kitA complete JWT toolkit for Ruby. Encode and decode tokens with automatic claim manageme...
166,7971,626philiprehberger-sanitize_htmlHTML sanitizer with configurable allow lists for tags and attributes. Strip dangerous e...
176,8001,658philiprehberger-paginationPagination library supporting offset-based, cursor-based, and keyset strategies. Return...
186,8011,638philiprehberger-slugGenerate URL-safe slugs from any string with built-in Unicode transliteration, configur...
196,8101,631philiprehberger-corsRack-compatible CORS middleware supporting configurable allowed origins, methods, heade...
206,8181,564philiprehberger-json_schemaValidate Ruby data structures against JSON Schema definitions with support for type che...
216,8211,607philiprehberger-circuitCircuit breaker pattern with closed, open, and half-open states, configurable failure t...
226,8271,626philiprehberger-env_validatorDefine environment variable schemas with type casting, required/optional flags, and def...
236,8281,676philiprehberger-middlewareA composable middleware stack that supports lambda and class-based middleware, named en...
246,8321,585philiprehberger-resultA lightweight Result type for Ruby with Ok and Err variants, monadic map/flat_map opera...
256,8331,560philiprehberger-state_machineA minimal state machine for Ruby objects. Define states, events, transitions, guard con...
266,8351,674philiprehberger-memoMemoize methods with a simple decorator. Supports TTL expiration, LRU eviction, thread-...
276,8381,658philiprehberger-string_kitString case conversion, slug generation, transliteration, padding, HTML stripping, whit...
286,8391,674philiprehberger-inflectorProvides pluralize, singularize, camelize, underscore, tableize, classify, ordinalize, ...
296,8401,665philiprehberger-id_genGenerate unique identifiers in multiple formats: time-sortable ULIDs, compact nanoids, ...
306,8441,591philiprehberger-schedulerA lightweight in-process task scheduler for Ruby. Schedule recurring tasks using simple...
316,8491,676philiprehberger-cron_parserParse standard 5-field cron expressions and calculate next/previous occurrences, match ...
326,8501,580philiprehberger-parallel_eachParallel iteration methods (map, each, select, reject, find, flat_map, any?, all?, none...
336,8511,647philiprehberger-poolA generic thread-safe object pool for Ruby with configurable size, checkout timeouts, i...
346,8591,617philiprehberger-feature_flagA lightweight feature flag library supporting in-memory, ENV, and YAML backends with pe...
356,8631,617philiprehberger-webhook_signatureSign and verify webhook payloads using HMAC-SHA256 with timestamp-based replay preventi...
366,8651,665philiprehberger-webhook_builderA webhook delivery client that signs payloads with HMAC-SHA256, retries failed deliveri...
376,8671,647philiprehberger-date_kitDate utilities including business day counting and arithmetic, quarter boundaries, week...
386,8681,669philiprehberger-maybeA Maybe/Optional type for Ruby providing Some and None containers with safe chaining, p...
396,8691,596philiprehberger-tryA tiny utility for concise error handling. Wrap risky expressions with Try.call, chain ...
406,8711,583philiprehberger-csv_kitStreaming CSV processor with row-by-row transforms, validations, column plucking, strea...
416,8721,607philiprehberger-csv_builderBuild CSV files from record collections using a declarative DSL with column definitions...
426,8741,631philiprehberger-data_mapperA zero-dependency Ruby gem for transforming data between formats with a mapping DSL, fi...
436,8761,631philiprehberger-uri_kitParse, build, and manipulate URLs with query parameter management, normalization, domai...
446,8771,626philiprehberger-json_pathEvaluate JSONPath expressions against Ruby hashes and arrays. Supports dot notation, ar...
456,8781,694philiprehberger-json_mergeApply and generate JSON patches using RFC 7396 Merge Patch and RFC 6902 JSON Patch. Sup...
466,8791,638philiprehberger-test_factoryLightweight DSL for building test data objects without ActiveRecord. Define factories w...
476,8801,643philiprehberger-mime_typeDetect MIME types from file extensions, filenames, and binary content using magic byte ...
486,8811,603philiprehberger-http_mockStub HTTP requests in tests with a fluent API for matching methods, URLs, headers, and ...
496,8831,685philiprehberger-random_dataGenerate random test data including names, emails, phone numbers, UUIDs, sentences, par...
506,8871,692philiprehberger-cli_kitLightweight CLI toolkit combining argument parsing with flags and options, interactive ...
516,8911,585philiprehberger-colorA lightweight Ruby library for terminal ANSI color and styling with chainable API, RGB/...
526,8931,631philiprehberger-progressDisplay progress bars with percentage, ETA, and throughput, or spinners for indetermina...
536,8951,695philiprehberger-tableFormat data as terminal tables with Unicode, ASCII, Markdown, or compact styles. Build ...
546,8971,598philiprehberger-signed_payloadA zero-dependency Ruby gem for signing and verifying JSON payloads using HMAC-SHA256 wi...
556,8991,592philiprehberger-multipartBuild and parse multipart/form-data request bodies with a clean DSL for adding text fie...
566,9011,647philiprehberger-header_kitParse and build Accept, Accept-Language, Accept-Encoding, Authorization, Cache-Control,...
576,9021,569philiprehberger-checksumCompute MD5, SHA-1, SHA-256, SHA-512, and CRC32 checksums for strings and files. HMAC-S...
586,9031,607philiprehberger-lruThread-safe LRU cache backed by a hash and doubly-linked list for O(1) get/set, with co...
596,9041,577philiprehberger-cryptA high-level encryption toolkit providing AES-256-GCM encryption and decryption, key ro...
606,9071,658philiprehberger-schema_validatorA zero-dependency Ruby gem for validating hash data against schemas with type checking,...
616,9151,617philiprehberger-config_validatorDefine configuration schemas with required and optional keys, type constraints, default...
626,9161,583philiprehberger-safe_yamlSafe YAML loading with restricted types, schema validation, and size limits. Wraps YAML...
636,9201,598philiprehberger-toml_kitParse and generate TOML v1.0 documents with full type support including datetimes, inli...
646,9221,650philiprehberger-timeout_kitA cooperative timeout library providing deadline and timeout patterns that avoid Thread...
656,9251,631philiprehberger-semaphoreCounting semaphore built on Mutex and ConditionVariable for concurrent access control w...
666,9261,603philiprehberger-lock_kitFile locks using flock and PID file locks with stale detection for coordinating between...
676,9281,562philiprehberger-retry_queueProcesses collections of items with configurable per-item retry logic, exponential back...
686,9321,598philiprehberger-pluralizePluralize and singularize English words without ActiveSupport. Includes 200+ rules, irr...
696,9341,585philiprehberger-tarPure-Ruby implementation of tar archive creation and extraction using the standard 512-...
706,9361,611philiprehberger-html_builderBuild HTML programmatically using a clean tag DSL with nested blocks, automatic content...
716,9381,658philiprehberger-gzip_kitSimple API for gzip compression and decompression with support for strings, files, and ...
726,9401,562philiprehberger-xml_builderProgrammatic XML construction with a clean DSL, auto-escaping, CDATA, comments, process...
736,9411,577philiprehberger-moneyA lean money library that stores amounts as integer subunits (cents) to avoid floating-...
746,9461,669philiprehberger-durationParse human strings and ISO 8601 durations, perform arithmetic and comparison, and outp...
756,9511,663philiprehberger-semverA lightweight Ruby library for parsing, comparing, sorting, and matching semantic versi...
766,9521,566philiprehberger-human_sizeFormat byte counts as human-readable strings (1.5 MB) and parse them back. Supports SI ...
776,9541,693philiprehberger-version_compareParse semantic version strings into comparable objects with support for sorting, findin...
786,9571,576philiprehberger-metric_unitsUnit conversion library supporting length, weight, temperature, volume, speed, pressure...
796,9601,611philiprehberger-ip_addrParse and classify IPv4/IPv6 addresses with private, loopback, and multicast detection....
806,9641,585philiprehberger-geo_pointGeographic point calculations including Haversine/Vincenty distance, bearing, midpoint,...
816,9721,638philiprehberger-image_sizeReads width, height, format, DPI, and color depth from image file headers (PNG, JPEG, G...
826,9731,569philiprehberger-task_runnerRun shell commands with captured stdout/stderr, exit code, duration measurement, config...
836,9741,626philiprehberger-maskAutomatically detect and redact sensitive data like emails, credit cards, SSNs, and tok...
846,9771,566philiprehberger-file_watcherWatch files and directories for changes using polling. Detects created, modified, and d...
856,9781,655philiprehberger-log_filterPattern-based log filtering — drop or transform log lines matching rules. Includes pres...
866,9821,655philiprehberger-event_emitterA thread-safe event emitter for Ruby with sync and async listeners, wildcard event matc...
876,9831,561philiprehberger-etagGenerate strong and weak ETags, evaluate If-None-Match and If-Match headers, and serve ...
886,9841,585philiprehberger-metricA thread-safe in-process metrics library providing counters, gauges, histograms, and su...
896,9851,681philiprehberger-token_bucketThread-safe token bucket rate limiter with configurable capacity and refill rate, suppo...
906,9891,690philiprehberger-fuzzy_matchMatch strings approximately using multiple algorithms: Levenshtein edit distance, Damer...
916,9901,611philiprehberger-locale_kitParse BCP 47 language tags, negotiate content language from Accept-Language headers, an...
926,9911,580philiprehberger-natural_sortNatural sort for strings containing numbers. Splits strings into text and numeric chunk...
936,9931,580philiprehberger-regex_libA library of tested, documented regex patterns for common data formats. Includes named ...
946,9941,611philiprehberger-safe_execSafely evaluate arithmetic, comparison, and boolean expressions from untrusted input. U...
957,0001,669philiprehberger-truncateTruncate strings by word count, character count, or sentence count with word-boundary a...
967,0031,658philiprehberger-word_wrapWrap text to a specific width at word boundaries. Supports indentation, hanging indent,...
977,0091,676philiprehberger-job_meterThread-safe instrumentation for background jobs. Record execution duration and success/...
987,0121,690philiprehberger-rate_counterMeasure event rates (requests/sec, errors/min) using a sliding window counter. Thread-s...
997,0131,688philiprehberger-rate_windowThread-safe time-windowed rate tracker that records values into bucketed time slots. Su...
1007,0141,572philiprehberger-stopwatchHigh-resolution stopwatch using monotonic clock with start, stop, reset, lap timing, pa...
1017,0161,603philiprehberger-treeA generic tree data structure supporting depth-first and breadth-first traversal, node ...
1027,0201,572philiprehberger-graphGraph data structure supporting directed and undirected modes with adjacency list stora...
1037,0211,665philiprehberger-dependency_graphBuild and resolve dependency graphs using topological sort, detect cycles, generate par...
1047,0231,685philiprehberger-priority_queueA binary heap-based priority queue supporting min-heap, max-heap, and custom comparator...
1057,0281,607philiprehberger-queue_stackThread-safe queue and stack data structures with configurable capacity limits, blocking...
1067,0291,617philiprehberger-ring_bufferFixed-capacity ring buffer that overwrites oldest entries on overflow, with index acces...
1077,0301,617philiprehberger-bloom_filterBloom filter implementation using a bit array with double hashing. Supports configurabl...
1087,0351,617philiprehberger-intervalInterval data type supporting closed, open, and half-open boundaries with overlap detec...
1097,0371,638philiprehberger-hash_ringConsistent hash ring with virtual nodes, weighted members, and replication support. Min...
1107,0411,596philiprehberger-event_storeThread-safe in-memory event store for CQRS patterns. Supports named streams, event appe...
1117,0431,669philiprehberger-rule_engineA lightweight rule engine with a declarative DSL for defining conditions and actions. S...
1127,0451,681philiprehberger-pipeA Ruby library for functional pipeline composition with named steps, pipeline compositi...
1137,0471,572philiprehberger-struct_kitDefine data classes with typed fields, default values, validation rules, and pattern ma...
1147,0481,592philiprehberger-guard_clauseA chainable guard clause DSL for validating method preconditions with built-in checks f...
1157,0541,681philiprehberger-dot_accessAccess deeply nested hash values using dot notation (config.database.host) with nil-saf...
1167,0561,650philiprehberger-typed_hashDefine typed hash schemas with per-key type declarations, optional coercion functions, ...
1177,0571,643philiprehberger-batchProcesses collections in configurable chunks with progress tracking callbacks and per-i...
1187,0601,592philiprehberger-enumDefine type-safe enums in Ruby with automatic ordinals, custom values, lookup methods, ...
1197,0611,650philiprehberger-debounceDebounce delays execution until a quiet period elapses. Throttle limits execution frequ...
1207,0671,617philiprehberger-deep_freezeRecursively freeze entire object graphs (hashes, arrays, strings, structs, Data) to cre...
1217,0691,598philiprehberger-expiring_mapA thread-safe hash map where each key has its own TTL, with automatic expiration, max s...
1227,0701,603philiprehberger-differA Ruby library for deep structural diffing of hashes, arrays, and nested objects with a...
1237,0711,611philiprehberger-base_convertEncode and decode data in Base32 (Crockford), Base58 (Bitcoin), Base62, and Base85 (ASC...
1247,0741,631philiprehberger-counterCount element frequencies from any enumerable with most-common and least-common queries...
1257,0771,617philiprehberger-math_kitDescriptive statistics, linear interpolation, rounding modes, and moving averages. Ligh...
1267,0801,676philiprehberger-base64_urlURL-safe Base64 encoding and decoding using Base64.urlsafe_encode64/decode64 with no pa...
1277,0821,585philiprehberger-circuit_boardHealth check framework that aggregates dependency checks with configurable timeouts and...
1287,0851,643philiprehberger-hexEncode and decode hexadecimal strings with 0x prefix handling, produce xxd-style hex du...
1297,0881,685philiprehberger-compact_idConvert UUIDs to compact Base58 or Base62 representations (22 chars vs 36). Guaranteed ...
1307,0921,611philiprehberger-encoding_kitDetect encoding from BOM and heuristics with confidence scores, convert between encodin...
1317,0931,681philiprehberger-color_convertA color conversion library supporting hex, RGB, HSL, and HSV formats with parsing, mani...
1327,0971,665philiprehberger-pathname_kitPathname utility library providing atomic writes, safe deletes, directory creation, glo...
1337,0981,643philiprehberger-ini_parserParse and generate INI configuration files with sections, inline comments, multiline va...
1347,0991,566philiprehberger-approxCompare numeric values, arrays, and hashes for approximate equality using configurable ...
1357,1001,650philiprehberger-env_diffParse .env files or environment hashes, compare them, and get a clear report of added, ...
1367,1011,638philiprehberger-bit_fieldNamed bit flags with a DSL for defining flags at bit positions, symbolic read/set/clear...
1377,1021,569philiprehberger-changelog_parserParse Keep a Changelog formatted markdown files with version querying, category managem...
1387,1031,655philiprehberger-state_bagThread-local key-value state bag with scoped overrides via blocks, automatic restoratio...
1397,1061,676philiprehberger-audit_trailA lightweight audit trail library for tracking changes to hashes and objects with actor...
1407,1091,669philiprehberger-assertA lightweight runtime assertion library for Ruby with chainable matchers, soft assertio...