{"adoption": {"forks": 151, "observed_at": "2026-09-03T02:15:12.872458+00:00", "stars": 1191}, "canonical_url": "https://ross.abutalabs.com/products/active_storage_validations", "card": {"archived": false, "artifact_type": "library", "description": "Do it like => validates :photos, attached: true, content_type: ['image/png', 'image/jpg', 'image/jpeg'], size: { less_than: 500.kilobytes }, limit: { min: 1, max: 3 }, aspect_ratio: :landscape, dimension: { width: { in: 800..1600 }", "domain": ["web-development", "backend", "files", "developer-tools"], "enriched": true, "function": ["form-handling", "file-upload", "image-processing", "testing"], "health_score": 100, "homepage": "https://www.igorkasyanchuk.com/", "language": "Ruby", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["igorkasyanchuk/active_storage_validations"], "name": "igorkasyanchuk/active_storage_validations", "platform": ["ruby", "cross-platform"], "pushed_at": "2026-09-02T20:24:58+00:00", "repo": "igorkasyanchuk/active_storage_validations", "stars": 1191, "tags": ["rails", "active-storage", "activerecord", "gem", "file-validation", "i18n", "test-matchers", "web-server"], "topics": ["activestorage", "validations", "rails", "active-storage"], "urls": [], "use_cases": ["validate that an avatar attachment is present and is a PNG or JPEG", "limit number of uploaded photos to between 1 and 3", "enforce max file size on uploads", "check image dimensions and aspect ratio before accepting uploads", "validate video or audio duration in Active Storage", "prevent content type spoofing on uploaded files", "test attachment validations in Rails test suites"], "what_it_is": "A Ruby gem that adds validations for Rails Active Storage attachments, such as attached presence, content type, file size, dimensions, aspect ratio, duration, and page count. It includes I18n error messages and RSpec/MiniTest test matchers.", "when_to_avoid": ["you are not using Rails or Active Storage", "you need validation of files stored outside Active Storage", "you need a general-purpose file processing pipeline rather than validation"], "when_to_choose": ["you use Rails Active Storage and need declarative attachment validations", "you want built-in I18n error messages for upload validation failures", "you need metadata checks like image dimensions, aspect ratio, or media duration"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/active_storage_validations", "repo": "igorkasyanchuk/active_storage_validations", "role": "main", "score": 95}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-09-03T02:15:12.872458+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T06:23:02.199695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "56b31572df1c71bdb03ad09cc8fb31acfe5ee0a8eb28c6f0213f1a0734e48837", "fetched_at": "2026-09-03T02:15:12.872458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/igorkasyanchuk/active_storage_validations"}, {"content_hash": "08fc0beb8ec8c751aab6f5906dc324553d257bed02e9b052985f281447d448af", "fetched_at": "2026-08-29T12:30:05.884199+00:00", "kind": "homepage", "missing": false, "url": "https://www.railsjazz.com/"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-09-03T02:15:12.872458+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T06:23:02.199695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "56b31572df1c71bdb03ad09cc8fb31acfe5ee0a8eb28c6f0213f1a0734e48837", "fetched_at": "2026-09-03T02:15:12.872458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/igorkasyanchuk/active_storage_validations"}, {"content_hash": "08fc0beb8ec8c751aab6f5906dc324553d257bed02e9b052985f281447d448af", "fetched_at": "2026-08-29T12:30:05.884199+00:00", "kind": "homepage", "missing": false, "url": "https://www.railsjazz.com/"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T06:23:02.199695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "56b31572df1c71bdb03ad09cc8fb31acfe5ee0a8eb28c6f0213f1a0734e48837", "fetched_at": "2026-09-03T02:15:12.872458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/igorkasyanchuk/active_storage_validations"}, {"content_hash": "08fc0beb8ec8c751aab6f5906dc324553d257bed02e9b052985f281447d448af", "fetched_at": "2026-08-29T12:30:05.884199+00:00", "kind": "homepage", "missing": false, "url": "https://www.railsjazz.com/"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-09-03T02:15:12.872458+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-09-03T02:15:12.872458+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-09-03T02:15:12.872458+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T06:23:02.199695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "56b31572df1c71bdb03ad09cc8fb31acfe5ee0a8eb28c6f0213f1a0734e48837", "fetched_at": "2026-09-03T02:15:12.872458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/igorkasyanchuk/active_storage_validations"}, {"content_hash": "08fc0beb8ec8c751aab6f5906dc324553d257bed02e9b052985f281447d448af", "fetched_at": "2026-08-29T12:30:05.884199+00:00", "kind": "homepage", "missing": false, "url": "https://www.railsjazz.com/"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-09-03T02:15:12.872458+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-09-03T02:15:12.872458+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T06:23:02.199695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "56b31572df1c71bdb03ad09cc8fb31acfe5ee0a8eb28c6f0213f1a0734e48837", "fetched_at": "2026-09-03T02:15:12.872458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/igorkasyanchuk/active_storage_validations"}, {"content_hash": "08fc0beb8ec8c751aab6f5906dc324553d257bed02e9b052985f281447d448af", "fetched_at": "2026-08-29T12:30:05.884199+00:00", "kind": "homepage", "missing": false, "url": "https://www.railsjazz.com/"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-09-03T02:15:12.872458+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-09-03T02:15:12.872458+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-09-03T02:15:12.872458+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T06:23:02.199695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "56b31572df1c71bdb03ad09cc8fb31acfe5ee0a8eb28c6f0213f1a0734e48837", "fetched_at": "2026-09-03T02:15:12.872458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/igorkasyanchuk/active_storage_validations"}, {"content_hash": "08fc0beb8ec8c751aab6f5906dc324553d257bed02e9b052985f281447d448af", "fetched_at": "2026-08-29T12:30:05.884199+00:00", "kind": "homepage", "missing": false, "url": "https://www.railsjazz.com/"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-09-03T02:15:12.872458+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-09-03T02:15:12.872458+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T06:23:02.199695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "56b31572df1c71bdb03ad09cc8fb31acfe5ee0a8eb28c6f0213f1a0734e48837", "fetched_at": "2026-09-03T02:15:12.872458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/igorkasyanchuk/active_storage_validations"}, {"content_hash": "08fc0beb8ec8c751aab6f5906dc324553d257bed02e9b052985f281447d448af", "fetched_at": "2026-08-29T12:30:05.884199+00:00", "kind": "homepage", "missing": false, "url": "https://www.railsjazz.com/"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T06:23:02.199695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "56b31572df1c71bdb03ad09cc8fb31acfe5ee0a8eb28c6f0213f1a0734e48837", "fetched_at": "2026-09-03T02:15:12.872458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/igorkasyanchuk/active_storage_validations"}, {"content_hash": "08fc0beb8ec8c751aab6f5906dc324553d257bed02e9b052985f281447d448af", "fetched_at": "2026-08-29T12:30:05.884199+00:00", "kind": "homepage", "missing": false, "url": "https://www.railsjazz.com/"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T06:23:02.199695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "56b31572df1c71bdb03ad09cc8fb31acfe5ee0a8eb28c6f0213f1a0734e48837", "fetched_at": "2026-09-03T02:15:12.872458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/igorkasyanchuk/active_storage_validations"}, {"content_hash": "08fc0beb8ec8c751aab6f5906dc324553d257bed02e9b052985f281447d448af", "fetched_at": "2026-08-29T12:30:05.884199+00:00", "kind": "homepage", "missing": false, "url": "https://www.railsjazz.com/"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T06:23:02.199695+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "56b31572df1c71bdb03ad09cc8fb31acfe5ee0a8eb28c6f0213f1a0734e48837", "fetched_at": "2026-09-03T02:15:12.872458+00:00", "kind": "readme", "missing": false, "url": "https://github.com/igorkasyanchuk/active_storage_validations"}, {"content_hash": "08fc0beb8ec8c751aab6f5906dc324553d257bed02e9b052985f281447d448af", "fetched_at": "2026-08-29T12:30:05.884199+00:00", "kind": "homepage", "missing": false, "url": "https://www.railsjazz.com/"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 100, "longevity": 100, "rhythm": 86}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2927, "days_push": 0, "days_rel": 14, "gap_med": 36.5, "n_releases_24m": 19}, "score": 95, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 3, "stale_scrape": false}}