{"id":22327143,"url":"https://github.com/bytedecoder/calculato","last_synced_at":"2025-06-22T05:34:18.944Z","repository":{"id":62554858,"uuid":"191258682","full_name":"ByteDecoder/calculato","owner":"ByteDecoder","description":"Offers a wide range of medical topic calculations.","archived":false,"fork":false,"pushed_at":"2022-04-07T21:25:31.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T13:55:50.475Z","etag":null,"topics":["ruby","ruby-gem"],"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/ByteDecoder.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-10T23:19:05.000Z","updated_at":"2022-04-07T16:57:02.000Z","dependencies_parsed_at":"2022-11-03T05:15:30.626Z","dependency_job_id":null,"html_url":"https://github.com/ByteDecoder/calculato","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByteDecoder%2Fcalculato","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByteDecoder%2Fcalculato/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByteDecoder%2Fcalculato/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByteDecoder%2Fcalculato/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ByteDecoder","download_url":"https://codeload.github.com/ByteDecoder/calculato/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228035013,"owners_count":17859245,"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":["ruby","ruby-gem"],"created_at":"2024-12-04T03:08:28.648Z","updated_at":"2024-12-04T03:08:29.416Z","avatar_url":"https://github.com/ByteDecoder.png","language":"Ruby","readme":"# Calculato\n\nOffers a wide range of medical topics calculations.\n\nCurrent features:\n\n- BMI Calculator\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'calculato'\n```\n\nAnd then execute:\n\n```bash\nbundle\n```\n\nOr install it yourself as:\n\n```bash\ngem install calculato\n```\n\n## Usage\n\nCalculating the BMI for a person with 5'0'' 155lbs\n\n```ruby\nrequire 'calculato'\n\nCalculato::BMICalculator.calculate(5, 0, 155)\n# 30.3\n```\n\nCalculating the BMI for a perosn with 70'' 170 lbs\n\n```ruby\nCalculato::BMICalculator.short_calculate(70, 170)\n# 24.4\n```\n\nCalculating the BMI category\n\n```ruby\nrequire 'calculato'\n\nCalculato::BMICalculator.category(15)\n# \"Very severely underweight\"\n```\n\nBMI Categories\n\n```ruby\nrequire 'calculato'\n\nCalculato::BMICalculator::CATEGORIES\n# {0..15=\u003e\"Very severely underweight\",\n#  15..16=\u003e\"Severely underweight\",\n#  16..18.5=\u003e\"Underweight\",\n#  16..18.5=\u003e\"Underweight\",\n#  18.5..25=\u003e\"Normal (healthy weight)\",\n#  25..30=\u003e\"Overweight\",\n#  30..35=\u003e\"Obese Class I (Moderately obese)\",\n#  35..40=\u003e\"Obese Class II (Severely obese)\",\n#  40..45=\u003e\"Obese Class III (Very severely obese)\",\n#  45..50=\u003e\"Obese Class IV (Morbidly Obese)\",\n#  50..60=\u003e\"Obese Class V (Super Obese)\",\n#  60..99=\u003e\"Obese Class VI (Hyper Obese)\"}\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at \u003chttps://github.com/ByteDecoder/calculato\u003e.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytedecoder%2Fcalculato","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytedecoder%2Fcalculato","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytedecoder%2Fcalculato/lists"}