{"id":15403445,"url":"https://github.com/mbj/auom","last_synced_at":"2025-10-10T02:34:42.560Z","repository":{"id":55789164,"uuid":"3201174","full_name":"mbj/auom","owner":"mbj","description":"Algebra with units of measurement.","archived":false,"fork":false,"pushed_at":"2020-12-12T05:02:59.000Z","size":165,"stargazers_count":28,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-16T03:53:53.527Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbj.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":"2012-01-17T16:53:06.000Z","updated_at":"2025-04-07T00:30:27.000Z","dependencies_parsed_at":"2022-08-15T07:01:16.534Z","dependency_job_id":null,"html_url":"https://github.com/mbj/auom","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/mbj/auom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbj%2Fauom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbj%2Fauom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbj%2Fauom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbj%2Fauom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbj","download_url":"https://codeload.github.com/mbj/auom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbj%2Fauom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002538,"owners_count":26083400,"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-10-10T02:00:06.843Z","response_time":62,"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":[],"created_at":"2024-10-01T16:08:35.675Z","updated_at":"2025-10-10T02:34:42.546Z","avatar_url":"https://github.com/mbj.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"AUOM Algebra (for) Units of Measurement\n=======================================\n\n[![Build Status](https://secure.travis-ci.org/mbj/auom.png?branch=master)](http://travis-ci.org/mbj/auom)\n[![Dependency Status](https://gemnasium.com/mbj/auom.png)](https://gemnasium.com/mbj/auom)\n[![Code Climate](https://codeclimate.com/github/mbj/auom.png)](https://codeclimate.com/github/mbj/auom)\n\nThis is another unit system for ruby.\nIt was created since I was not confident about the existing ones.\n\nFeatures:\n\n* No unit conversions \n* No core patches (Especially does not require mathn!)\n* Dependency free.\n* Functional implementation style.\n* No magic coercion from number like strings to numbers.\n* Will never loose precision (Uses rational as scalar internally)\n* Allows namespacing of unit systems via subclass.\n* Well tested (100% mutation coverage via [mutant](https://github.com/mbj/mutant))\n\nThe default set of predefined units is minimal as this library should be used in an application\nspecific subclass. Override: ```AUOM::Unit.units```\n\nInstallation\n------------\n\nInstall the gem `auom` via your preferred method.\n\nExamples\n--------\n\n``` ruby\nrequire 'auom'\n\ninclude AUOM\n\nu = Unit.new(1,  :meter)             # \u003cAUOM::Unit @scalar=1 meter\u003e\nu * 100                              # \u003cAUOM::Unit @scalar=100 meter\u003e\nu / Unit.new(10, :meter)             # \u003cAUOM::Unit @scalar=0.1\u003e\nu / Unit.new(10, [ :meter, :meter ]) # \u003cAUOM::Unit @scaler=0.1 1/meter\u003e\nu * Unit.new(10, :meter)             # \u003cAUOM::Unit @scalar=10 meter^2\u003e\nu * Unit.new(1,  :euro)              # \u003cAUOM::Unit @scalar=1 euro*meter\u003e\nu - Unit.new(1,  :meter)             # \u003cAUOM::Unit @scalar=0 meter\u003e\nu + Unit.new(1,  :meter)             # \u003cAUOM::Unit @scalar=2 meter\u003e\nu + Unit.new(1,  :euro)              # raises error about incompatible units\n```\n\nCredits\n-------\n\nRoom for your name!\n\nContributing\n-------------\n\n* Fork the project.\n* Make your feature addition or bug fix.\n* Add tests for it. This is important so I don't break it in a\n  future version unintentionally.\n* Commit, do not mess with Rakefile or version\n  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)\n* Send me a pull request. Bonus points for topic branches.\n\nCopyright\n---------\n\nCopyright (c) 2014 Markus Schirp\n\nSee `LICENSE` for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbj%2Fauom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbj%2Fauom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbj%2Fauom/lists"}