{"id":19156272,"url":"https://github.com/ess/linesman","last_synced_at":"2025-02-22T21:42:03.425Z","repository":{"id":20791734,"uuid":"24076910","full_name":"ess/linesman","owner":"ess","description":"Determine if a value is within given bounds","archived":false,"fork":false,"pushed_at":"2014-09-15T23:04:49.000Z","size":132,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T04:53:02.056Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ess.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.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":"2014-09-15T22:52:53.000Z","updated_at":"2014-09-15T22:53:23.000Z","dependencies_parsed_at":"2022-09-11T15:31:44.728Z","dependency_job_id":null,"html_url":"https://github.com/ess/linesman","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/ess%2Flinesman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ess%2Flinesman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ess%2Flinesman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ess%2Flinesman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ess","download_url":"https://codeload.github.com/ess/linesman/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240241802,"owners_count":19770463,"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-11-09T08:33:57.667Z","updated_at":"2025-02-22T21:42:03.402Z","avatar_url":"https://github.com/ess.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Linesman ##\n\nDetermine if a value is in-bounds\n\n## Gem Setup ##\n\n```ruby\ngem install linesman\n\n# Gemfile\ngem 'linesman'\n```\n## How Do I Use This Thing? ##\n\nThere's not really much to it. There is only one method: Linesman.within_bounds?\n\nIt takes an option hash and a block.\n\nThe options hash must contain at least one of the following:\n\n* :exactly\n* :min\n* :max\n\nThe block should return a value that is comparable to the bounds specified in\nthe options hash.\n\nThe method returns either true or false based on the given criteria.\n\nExamples:\n\n```ruby\nLinesman.within_bounds?(exactly: 1) {2 - 1} # =\u003e true\n\nLinesman.within_bounds?(min: 1, max: 10) {1} # =\u003e true\nLinesman.within_bounds?(min: 1) {0} # =\u003e false\nLinesman.within_bounds?(max: 1) {0} # =\u003e true\n```\n\n## Formal Documentation ##\n\nThe actual library docs can be read\n[over on rubydoc](http://rubydoc.info/gems/linesman/frames).\n\n## Contributing ##\n\nDo you use git-flow? I sure do. Please base anything you do off of\n[the develop branch](https://github.com/ess/linesman/tree/develop).\n\n1. Fork it.\n2. Perform some BDD magic. Seriously. Be testing.\n3. Submit a pull request.\n\n## So, Uh, Why? ##\n\nIn short, I've been needing this exact functionality all over the place of\nlate, and it was quick enough to just throw it together.\n\n## License ##\n\nMIT License. Copyright 2013 Ess\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fess%2Flinesman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fess%2Flinesman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fess%2Flinesman/lists"}