{"adoption": {"forks": 82, "observed_at": "2026-08-28T04:04:46.983457+00:00", "stars": 1457}, "canonical_url": "https://ross.abutalabs.com/products/contractsruby", "card": {"archived": false, "artifact_type": "library", "description": "Contracts for Ruby.", "domain": ["developer-tools", "programming-languages"], "enriched": true, "function": ["testing", "error-handling", "type-system"], "health_score": 77, "homepage": "http://egonschiele.github.com/contracts.ruby", "language": "Ruby", "license": "BSD-2-Clause", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["egonSchiele/contracts.ruby"], "name": "egonSchiele/contracts.ruby", "platform": ["ruby"], "pushed_at": "2026-07-31T22:20:45+00:00", "repo": "egonSchiele/contracts.ruby", "stars": 1457, "tags": ["design-by-contract", "contracts", "runtime-validation", "assertions"], "topics": [], "urls": [], "use_cases": ["validate method arguments and return values in Ruby", "replace defensive boilerplate code with declarative contracts", "get detailed error messages when a method receives wrong types", "add runtime type checking to Ruby classes", "enforce preconditions and postconditions on Ruby methods"], "what_it_is": "contracts.ruby is a Ruby library for design-by-contract programming, letting you declare one-line contracts above methods that validate arguments and return values. It replaces boilerplate defensive code with clear, declarative checks and detailed contract-violation errors.", "when_to_avoid": ["you need static type checking rather than runtime validation", "you're on Ruby 2.x and can't use the 0.16.x line", "the project needs an actively maintained library - it is seeking a new maintainer"], "when_to_choose": ["you want design-by-contract style validation in Ruby", "you want to cut down on manual argument-checking boilerplate", "you're on Ruby 3.x and want lightweight runtime contracts"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/contractsruby", "repo": "egonSchiele/contracts.ruby", "role": "main", "score": 75}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:46.983457+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:35:32.920543+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d6d8ac630744ddcfb92928ac24702dcb10b5db7ac506cc9daf85970f54f4b61e", "fetched_at": "2026-08-28T04:04:46.983457+00:00", "kind": "readme", "missing": false, "url": "https://github.com/egonSchiele/contracts.ruby"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:46.983457+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:35:32.920543+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d6d8ac630744ddcfb92928ac24702dcb10b5db7ac506cc9daf85970f54f4b61e", "fetched_at": "2026-08-28T04:04:46.983457+00:00", "kind": "readme", "missing": false, "url": "https://github.com/egonSchiele/contracts.ruby"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:35:32.920543+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d6d8ac630744ddcfb92928ac24702dcb10b5db7ac506cc9daf85970f54f4b61e", "fetched_at": "2026-08-28T04:04:46.983457+00:00", "kind": "readme", "missing": false, "url": "https://github.com/egonSchiele/contracts.ruby"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:04:46.983457+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:46.983457+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:46.983457+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:35:32.920543+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d6d8ac630744ddcfb92928ac24702dcb10b5db7ac506cc9daf85970f54f4b61e", "fetched_at": "2026-08-28T04:04:46.983457+00:00", "kind": "readme", "missing": false, "url": "https://github.com/egonSchiele/contracts.ruby"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:46.983457+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:46.983457+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:35:32.920543+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d6d8ac630744ddcfb92928ac24702dcb10b5db7ac506cc9daf85970f54f4b61e", "fetched_at": "2026-08-28T04:04:46.983457+00:00", "kind": "readme", "missing": false, "url": "https://github.com/egonSchiele/contracts.ruby"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:46.983457+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:46.983457+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:46.983457+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:35:32.920543+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d6d8ac630744ddcfb92928ac24702dcb10b5db7ac506cc9daf85970f54f4b61e", "fetched_at": "2026-08-28T04:04:46.983457+00:00", "kind": "readme", "missing": false, "url": "https://github.com/egonSchiele/contracts.ruby"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:46.983457+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:46.983457+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:35:32.920543+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d6d8ac630744ddcfb92928ac24702dcb10b5db7ac506cc9daf85970f54f4b61e", "fetched_at": "2026-08-28T04:04:46.983457+00:00", "kind": "readme", "missing": false, "url": "https://github.com/egonSchiele/contracts.ruby"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:35:32.920543+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d6d8ac630744ddcfb92928ac24702dcb10b5db7ac506cc9daf85970f54f4b61e", "fetched_at": "2026-08-28T04:04:46.983457+00:00", "kind": "readme", "missing": false, "url": "https://github.com/egonSchiele/contracts.ruby"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:35:32.920543+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d6d8ac630744ddcfb92928ac24702dcb10b5db7ac506cc9daf85970f54f4b61e", "fetched_at": "2026-08-28T04:04:46.983457+00:00", "kind": "readme", "missing": false, "url": "https://github.com/egonSchiele/contracts.ruby"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:35:32.920543+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d6d8ac630744ddcfb92928ac24702dcb10b5db7ac506cc9daf85970f54f4b61e", "fetched_at": "2026-08-28T04:04:46.983457+00:00", "kind": "readme", "missing": false, "url": "https://github.com/egonSchiele/contracts.ruby"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 95, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 5200, "days_push": 33, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 75, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}