{"id":22025170,"url":"https://github.com/drexed/lite-measurements","last_synced_at":"2026-05-15T21:02:54.796Z","repository":{"id":35024423,"uuid":"196740615","full_name":"drexed/lite-measurements","owner":"drexed","description":"Convert measurements to different unit sizes or types","archived":false,"fork":false,"pushed_at":"2023-03-08T20:12:42.000Z","size":81,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-03T04:10:35.340Z","etag":null,"topics":["conversions","measurements","ruby"],"latest_commit_sha":null,"homepage":"https://drexed.github.io/lite-measurements","language":"Ruby","has_issues":false,"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/drexed.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-07-13T16:04:08.000Z","updated_at":"2022-03-03T03:20:58.000Z","dependencies_parsed_at":"2023-02-10T18:00:36.275Z","dependency_job_id":null,"html_url":"https://github.com/drexed/lite-measurements","commit_stats":{"total_commits":36,"total_committers":2,"mean_commits":18.0,"dds":0.02777777777777779,"last_synced_commit":"b3689deabf916032d6e27df37d359bfc74428a86"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/drexed/lite-measurements","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Flite-measurements","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Flite-measurements/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Flite-measurements/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Flite-measurements/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drexed","download_url":"https://codeload.github.com/drexed/lite-measurements/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Flite-measurements/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275225879,"owners_count":25427009,"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-09-15T02:00:09.272Z","response_time":75,"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":["conversions","measurements","ruby"],"created_at":"2024-11-30T07:14:47.164Z","updated_at":"2026-05-15T21:02:49.773Z","avatar_url":"https://github.com/drexed.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lite::Measurements\n\n[![Gem Version](https://badge.fury.io/rb/lite-measurements.svg)](http://badge.fury.io/rb/lite-measurements)\n[![Build Status](https://travis-ci.org/drexed/lite-measurements.svg?branch=master)](https://travis-ci.org/drexed/lite-measurements)\n\nLite::Measurements is a library for converting measurements to different unit sizes or types.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'lite-measurements'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install lite-measurements\n\n## Table of Contents\n\n* [Configurations](#configurations)\n* [Measurements](#measurements)\n* [Monkey patches](#monkey-patches)\n\n## Configurations\n\nAny and all monkey patches must be explicitly included anywhere you want to use it.\n\nTo globally use the monkey patches, just create an initializer requiring them.\n\n`rails g lite:measurements:install` will generate the following file:\n`../config/initalizers/lite_measurements.rb`\n\nThey can be disabled by commenting any of them out.\n\n```ruby\n# frozen_string_literal: true\n\nrequire 'lite/measurements/monkey_patches'\n\n# - or-\n\n# require 'lite/measurements/monkey_patches/digital_storage'\n# require 'lite/measurements/monkey_patches/length'\n# require 'lite/measurements/monkey_patches/mass'\n# require 'lite/measurements/monkey_patches/temperature'\n# require 'lite/measurements/monkey_patches/time'\n```\n\n## Measurements\n\n* [Digital Storage](https://github.com/drexed/lite-measurements/blob/master/docs/DIGITAL_STORAGE.md)\n* [Length](https://github.com/drexed/lite-measurements/blob/master/docs/LENGTH.md)\n* [Mass](https://github.com/drexed/lite-measurements/blob/master/docs/MASS.md)\n* [Temperature](https://github.com/drexed/lite-measurements/blob/master/docs/TEMPERATURE.md)\n* [Time](https://github.com/drexed/lite-measurements/blob/master/docs/TIME.md)\n\n## Monkey patches\n\nIncluding monkey patches will give you `Numeric` access to conversions.\n\n```ruby\n2.convert_temperature(from: :fahrenheit, to: :celsius) #=\u003e -16.666666666666668\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. 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 https://github.com/[USERNAME]/lite-measurements. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Lite::Measurements project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/lite-measurements/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrexed%2Flite-measurements","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrexed%2Flite-measurements","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrexed%2Flite-measurements/lists"}