{"id":13685683,"url":"https://github.com/metaware/to_range","last_synced_at":"2025-05-01T04:32:10.681Z","repository":{"id":27472000,"uuid":"30951306","full_name":"metaware/to_range","owner":"metaware","description":"Small Ruby Gem to Convert Parseable Strings into Ruby Range Objects","archived":false,"fork":false,"pushed_at":"2015-04-26T02:58:59.000Z","size":298,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T13:25:26.572Z","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/metaware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-18T03:59:17.000Z","updated_at":"2019-08-13T16:03:21.000Z","dependencies_parsed_at":"2022-09-02T07:51:30.718Z","dependency_job_id":null,"html_url":"https://github.com/metaware/to_range","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/metaware%2Fto_range","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaware%2Fto_range/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaware%2Fto_range/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaware%2Fto_range/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metaware","download_url":"https://codeload.github.com/metaware/to_range/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251824508,"owners_count":21649876,"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-08-02T14:00:55.908Z","updated_at":"2025-05-01T04:32:10.424Z","avatar_url":"https://github.com/metaware.png","language":"Ruby","readme":"# to_range [![Code Climate](https://codeclimate.com/github/metaware/to_range/badges/gpa.svg)](https://codeclimate.com/github/metaware/to_range) [![Build Status](https://travis-ci.org/metaware/to_range.svg?branch=master)](https://travis-ci.org/metaware/to_range)\n\n![to_range Logo](https://raw.github.com/metaware/to_range/master/to_range.png)\n\nRuby Gem to Convert strings (parsable) into Range Objects\n\n## Usage\n\n    irb(main):001:0\u003e \"1..10\".to_range\n    =\u003e 1..10\n    =\u003e PROFIT!\n\nFor any ambiguous cases, where there might be multiple matches of a possible range, This library assumes you need only the first possible, valid-looking Range match, ex:\n\n    irb(main):001:0\u003e \"1.10..50..100\".to_range\n    =\u003e 10..50\n\n**PS: It blows on your face, if it's unable to find a possible parsable match.**\n\n## TODO: \n\n- Add support for Date/Time ranges? (Not in huge favor but if there's interest, I can take a stab at it.)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'to_range'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install to_range\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaware%2Fto_range","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetaware%2Fto_range","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaware%2Fto_range/lists"}