{"id":22808204,"url":"https://github.com/sixarm/sixarm_ruby_week","last_synced_at":"2025-06-15T01:32:19.537Z","repository":{"id":2564437,"uuid":"3543875","full_name":"SixArm/sixarm_ruby_week","owner":"SixArm","description":"SixArm.com » Ruby » Week model based on Ruby Date","archived":false,"fork":false,"pushed_at":"2025-04-14T09:21:30.000Z","size":539,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T10:31:14.409Z","etag":null,"topics":["date","extensions","gem","ruby","time","week"],"latest_commit_sha":null,"homepage":"http://sixarm.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SixArm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2012-02-25T10:34:06.000Z","updated_at":"2025-04-14T09:21:34.000Z","dependencies_parsed_at":"2025-04-14T10:26:02.622Z","dependency_job_id":"cb42c1df-e589-4db7-a4c6-9577632554b2","html_url":"https://github.com/SixArm/sixarm_ruby_week","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SixArm/sixarm_ruby_week","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_week","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_week/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_week/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_week/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SixArm","download_url":"https://codeload.github.com/SixArm/sixarm_ruby_week/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_week/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259908651,"owners_count":22930451,"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":["date","extensions","gem","ruby","time","week"],"created_at":"2024-12-12T11:08:33.174Z","updated_at":"2025-06-15T01:32:19.496Z","avatar_url":"https://github.com/SixArm.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SixArm.com → Ruby → \u003cbr\u003e Week model based on Ruby Date\n\n\u003c!--header-open--\u003e\n\n[![Gem Version](https://badge.fury.io/rb/sixarm_ruby_week.svg)](http://badge.fury.io/rb/sixarm_ruby_week)\n[![Build Status](https://travis-ci.org/SixArm/sixarm_ruby_week.png)](https://travis-ci.org/SixArm/sixarm_ruby_week)\n[![Code Climate](https://api.codeclimate.com/v1/badges/f0cb0c2061882c919bd2/maintainability)](https://codeclimate.com/github/SixArm/sixarm_ruby_week/maintainability)\n\n* Git: \u003chttps://github.com/SixArm/sixarm_ruby_week\u003e\n* Doc: \u003chttp://sixarm.com/sixarm_ruby_week/doc\u003e\n* Gem: \u003chttps://rubygems.org/gems/sixarm_ruby_week\u003e\n* Contact: Joel Parker Henderson, \u003cjoel@sixarm.com\u003e\n* Project: [changes](CHANGES.md), [license](LICENSE.md), [contributing](CONTRIBUTING.md).\n\n\u003c!--header-shut--\u003e\n\n\n## Introduction\n\nThis gem models a week, based on the built-in Ruby Date class.\n\nFor docs go to \u003chttp://sixarm.com/sixarm_ruby_week/doc\u003e\n\nWant to help? We're happy to get pull requests.\n\n\n\u003c!--install-open--\u003e\n\n## Install\n\n### Gem\n\nTo install this gem in your shell or terminal:\n\n    gem install sixarm_ruby_week\n\n### Gemfile\n\nTo add this gem to your Gemfile:\n\n    gem 'sixarm_ruby_week'\n\n### Require\n\nTo require the gem in your code:\n\n    require 'sixarm_ruby_week'\n\n\u003c!--install-shut--\u003e\n\n\n## Examples\n\nCreate:\n\n    week = Week.now\n\n    week = Week.new(Date.today)\n\n    week = Week.parse(\"2015-12-31\")\n\nEnumerable:\n\n    week.previous =\u003e seven days earlier\n\n    week.next =\u003e seven days later\n\nMath:\n\n    week - 2 =\u003e two weeks earlier\n\n    week + 2 =\u003e two weeks later\n\nFirst/Last, Begin/End, Start/Stop:\n\n    week.first_date =\u003e the first date of the week\n    week.last_date =\u003e the last date of the week\n\n    week.begin_date =\u003e first_date\n    week.end_date =\u003e last_date\n\n    week.start_date =\u003e first_date\n    week.stop_date =\u003e last_date\n\nRange:\n\n    week.date_range =\u003e week.first_date..week.last_date\n\nCollection:\n\n    week.include?(date) =\u003e true\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Fsixarm_ruby_week","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsixarm%2Fsixarm_ruby_week","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Fsixarm_ruby_week/lists"}