{"id":15601442,"url":"https://github.com/solnic/virtus-units","last_synced_at":"2026-03-02T08:30:19.224Z","repository":{"id":66168193,"uuid":"2017562","full_name":"solnic/virtus-units","owner":"solnic","description":"ABANDONED - MOVE ON","archived":false,"fork":false,"pushed_at":"2011-07-08T12:00:19.000Z","size":96,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T09:29:16.315Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/solnic.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-07-08T11:46:38.000Z","updated_at":"2017-07-12T09:30:11.000Z","dependencies_parsed_at":"2023-02-19T23:30:38.587Z","dependency_job_id":null,"html_url":"https://github.com/solnic/virtus-units","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solnic%2Fvirtus-units","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solnic%2Fvirtus-units/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solnic%2Fvirtus-units/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solnic%2Fvirtus-units/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solnic","download_url":"https://codeload.github.com/solnic/virtus-units/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239879802,"owners_count":19712279,"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","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":[],"created_at":"2024-10-03T02:21:34.605Z","updated_at":"2026-03-02T08:30:19.193Z","avatar_url":"https://github.com/solnic.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Virtus Units\n\nThis is a set of custom virtus attributes that use ruby-units to convert between\ndifferent units of measure.\n\nThe project is currently only a code spike, a proof of concept. We'll\nsee how it goes.\n\n# API\n\nIt can look more or less like this:\n\n    class WaterPool\n      include Virtus\n\n      attribute :capacity, Volume, :input_unit =\u003e :gallon, :output_unit =\u003e :liter\n    end\n\n    water_pool = WaterPool.new(:capacity =\u003e 10000)\n    water_pool.capacity # 37854.118\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolnic%2Fvirtus-units","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolnic%2Fvirtus-units","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolnic%2Fvirtus-units/lists"}