{"id":15650784,"url":"https://github.com/schwern/ruby-time_range","last_synced_at":"2026-01-11T01:06:55.110Z","repository":{"id":212197501,"uuid":"727536213","full_name":"schwern/ruby-time_range","owner":"schwern","description":"Ruby gem to Range over Time stepping by time intervals.","archived":false,"fork":false,"pushed_at":"2024-10-06T21:12:12.000Z","size":49,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T02:39:27.622Z","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/schwern.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-05T03:57:11.000Z","updated_at":"2025-01-16T16:13:36.000Z","dependencies_parsed_at":"2024-12-10T17:41:29.013Z","dependency_job_id":null,"html_url":"https://github.com/schwern/ruby-time_range","commit_stats":{"total_commits":40,"total_committers":1,"mean_commits":40.0,"dds":0.0,"last_synced_commit":"cf7330a8b8d88be03877520dcacb9b472b172998"},"previous_names":["schwern/ruby-time-iterator","schwern/ruby-time_iterator","schwern/ruby-time_range"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schwern%2Fruby-time_range","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schwern%2Fruby-time_range/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schwern%2Fruby-time_range/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schwern%2Fruby-time_range/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schwern","download_url":"https://codeload.github.com/schwern/ruby-time_range/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246262492,"owners_count":20749170,"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-10-03T12:35:50.389Z","updated_at":"2026-01-11T01:06:55.047Z","avatar_url":"https://github.com/schwern.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TimeRange\n\nRange over Time using time intervals without ActiveSupport.\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n    bundle add time_range\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n    gem install time_range\n\n## Usage\n\nWorks just like Range with one important change; **you must call `#step_by` to set a time interval.**\n\n    require 'time_range'\n\n    # Print the first day of each month of 2024.\n    time_range = TimeRange\n      .new(Time.local(2024), Time.local(2025), true)\n      .step_by(months: 1)\n    time_range.each { |time| puts time }\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 the created tag, 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/schwern/ruby-time_range\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschwern%2Fruby-time_range","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschwern%2Fruby-time_range","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschwern%2Fruby-time_range/lists"}