{"id":20481178,"url":"https://github.com/zenizh/carender","last_synced_at":"2025-10-08T10:44:37.525Z","repository":{"id":62555127,"uuid":"117835606","full_name":"zenizh/carender","owner":"zenizh","description":"📅 A monthly calendar for Rails application","archived":false,"fork":false,"pushed_at":"2018-01-19T16:47:51.000Z","size":42,"stargazers_count":15,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-30T20:33:54.857Z","etag":null,"topics":["calendar","gem","rails","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/carender","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/zenizh.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":"2018-01-17T12:50:59.000Z","updated_at":"2019-04-05T05:52:56.000Z","dependencies_parsed_at":"2022-11-03T05:15:48.442Z","dependency_job_id":null,"html_url":"https://github.com/zenizh/carender","commit_stats":null,"previous_names":["kami-zh/carender"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/zenizh/carender","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenizh%2Fcarender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenizh%2Fcarender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenizh%2Fcarender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenizh%2Fcarender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zenizh","download_url":"https://codeload.github.com/zenizh/carender/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenizh%2Fcarender/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278786686,"owners_count":26045591,"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-10-07T02:00:06.786Z","response_time":59,"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":["calendar","gem","rails","ruby"],"created_at":"2024-11-15T16:07:14.067Z","updated_at":"2025-10-08T10:44:37.508Z","avatar_url":"https://github.com/zenizh.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Carender\n\n[![Gem Version](https://badge.fury.io/rb/carender.svg)](https://badge.fury.io/rb/carender)\n[![Build Status](https://travis-ci.org/kami-zh/carender.svg?branch=master)](https://travis-ci.org/kami-zh/carender)\n\nThis gem renders a monthly calendar for Ruby on Rails application.\n\n## Usage\n\nThis gem automatically renders a monthly calendar as HTML table by fetching `params[:year]` and `params[:month]` at view context.\nFollowing code renders a simple monthly calendar:\n\n```erb\n\u003c%= carender do |date| %\u003e\n  \u003c%= date.day %\u003e\n\u003c% end %\u003e\n```\n\nThe content passed as a block is rendered in each cell.\nFor example, above code renders like following HTML table.\n\n```html\n\u003ctable\u003e\n  \u003ctr\u003e\u003cth\u003eSun\u003c/th\u003e\u003cth\u003eMon\u003c/th\u003e\u003cth\u003eTue\u003c/th\u003e\u003cth\u003eWed\u003c/th\u003e\u003cth\u003eThu\u003c/th\u003e\u003cth\u003eFri\u003c/th\u003e\u003cth\u003eSat\u003c/th\u003e\u003c/tr\u003e\n  \u003ctr\u003e\u003ctd\u003e\u003c/td\u003e\u003ctd\u003e1\u003c/td\u003e\u003ctd\u003e2\u003c/td\u003e\u003ctd\u003e3\u003c/td\u003e\u003ctd\u003e4\u003c/td\u003e\u003ctd\u003e5\u003c/td\u003e\u003ctd\u003e6\u003c/td\u003e\u003c/tr\u003e\n  \u003ctr\u003e\u003ctd\u003e7\u003c/td\u003e\u003ctd\u003e8\u003c/td\u003e\u003ctd\u003e9\u003c/td\u003e\u003ctd\u003e10\u003c/td\u003e\u003ctd\u003e11\u003c/td\u003e\u003ctd\u003e12\u003c/td\u003e\u003ctd\u003e13\u003c/td\u003e\u003c/tr\u003e\n  ...\n\u003c/table\u003e\n```\n\n### Collection\n\nTo render a calendar with a collection which is grouped by the specified column, you can pass `:collection` and `:column` arguments like as follows:\n\n```erb\n\u003c%= carender collection: @posts, column: :posted_on do |date, posts| %\u003e\n  \u003c% posts.each do |post| %\u003e\n    \u003c%= link_to post.title, post %\u003e\n  \u003c% end %\u003e\n\u003c% end %\u003e\n```\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'carender'\n```\n\nAnd then execute:\n\n```bash\n$ bundle\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/kami-zh/carender. 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenizh%2Fcarender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzenizh%2Fcarender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenizh%2Fcarender/lists"}