{"id":23125530,"url":"https://github.com/humawork/wardrobe","last_synced_at":"2025-08-17T03:32:50.342Z","repository":{"id":56897793,"uuid":"80616474","full_name":"humawork/wardrobe","owner":"humawork","description":"Dress up your Ruby objects with garments from Wardrobe!","archived":false,"fork":false,"pushed_at":"2017-10-03T15:00:19.000Z","size":1982,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-28T16:37:11.010Z","etag":null,"topics":["attributes","coercion","config","gem","immutable","ruby","validation"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/humawork.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-01T12:07:59.000Z","updated_at":"2020-05-12T14:01:41.000Z","dependencies_parsed_at":"2022-08-20T17:40:42.545Z","dependency_job_id":null,"html_url":"https://github.com/humawork/wardrobe","commit_stats":null,"previous_names":["agensdev/wardrobe"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/humawork/wardrobe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humawork%2Fwardrobe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humawork%2Fwardrobe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humawork%2Fwardrobe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humawork%2Fwardrobe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/humawork","download_url":"https://codeload.github.com/humawork/wardrobe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humawork%2Fwardrobe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270803039,"owners_count":24648682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["attributes","coercion","config","gem","immutable","ruby","validation"],"created_at":"2024-12-17T08:13:52.420Z","updated_at":"2025-08-17T03:32:50.044Z","avatar_url":"https://github.com/humawork.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wardrobe\n[![Build Status](https://travis-ci.org/agensdev/wardrobe.svg?branch=master)](https://travis-ci.org/agensdev/wardrobe)\n[![Code Climate](https://codeclimate.com/github/agensdev/wardrobe.svg)](https://codeclimate.com/github/agensdev/wardrobe)\n[![Test Coverage](https://codeclimate.com/github/agensdev/wardrobe/badges/coverage.svg)](https://codeclimate.com/github/agensdev/wardrobe/coverage)\n[![Gem Version](https://badge.fury.io/rb/wardrobe.svg)](https://rubygems.org/gems/wardrobe)\n\nWardrobe is a gem that simplifies creating Ruby objects with attributes. Wardrobe bundles a multitude of plugins. See [list](#bundled-plugins) below.\n\n## Requirements\n\nWardrobe requires Ruby 2.4.0 or later. Read more about why [here](#ruby-24).\nJRuby should be supported once [9.2.0.0](https://github.com/jruby/jruby/milestone/53) is released\n\n## Documentation\n[Documentation for Wardrobe](https://agensdev.github.io/wardrobe/getting-started/about/)\n\n## Installation\n\n```\ngem install wardrobe\n```\n\n## Getting started\n\n```ruby\nrequire 'wardrobe'\n\nclass User\n  include Wardrobe\n  attribute :name, String\nend\n\nUser.new(name: 'Wardrobe User')\n```\n\n[Read more here](https://agensdev.github.io/wardrobe/getting-started/about/)\n\n## Goals\n\nWardrobe should:\n\n* be faster than Virtus\n* have no dependencies (plugins may)\n* not pollute the instance level with any methods other than ones prefixed with `_`\n* should be immutable in the config layer allowing subclasses or singleton classes to modify the config\n* be easy to extend with plugins\n* simplify coercions through refinements\n\n## Ruby 2.4\n\nWhen working on the first \"Proof of Concept\" for Wardrobe I wanted to use refinements for coercion. This was right before Ruby 2.4 was released that added support for using Kernel#send to call a method defined in a refined class. This was needed to get my first POC working and is why Wardrobe requires ruby 2.4 or above.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumawork%2Fwardrobe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhumawork%2Fwardrobe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumawork%2Fwardrobe/lists"}