{"id":22989182,"url":"https://github.com/cookpad/gem_collector","last_synced_at":"2025-08-13T20:33:52.503Z","repository":{"id":45258774,"uuid":"85176176","full_name":"cookpad/gem_collector","owner":"cookpad","description":"Collect gems used by applications","archived":false,"fork":false,"pushed_at":"2021-12-27T09:58:52.000Z","size":112,"stargazers_count":27,"open_issues_count":1,"forks_count":5,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-07-27T18:58:17.036Z","etag":null,"topics":["rails-engine","rubygems"],"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/cookpad.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-16T09:16:53.000Z","updated_at":"2024-01-10T05:54:17.000Z","dependencies_parsed_at":"2022-08-20T22:31:12.752Z","dependency_job_id":null,"html_url":"https://github.com/cookpad/gem_collector","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/cookpad/gem_collector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookpad%2Fgem_collector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookpad%2Fgem_collector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookpad%2Fgem_collector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookpad%2Fgem_collector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cookpad","download_url":"https://codeload.github.com/cookpad/gem_collector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cookpad%2Fgem_collector/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270305842,"owners_count":24562109,"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-08-13T02:00:09.904Z","response_time":66,"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":["rails-engine","rubygems"],"created_at":"2024-12-15T04:16:42.658Z","updated_at":"2025-08-13T20:33:52.172Z","avatar_url":"https://github.com/cookpad.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GemCollector\n[![Gem Version](https://badge.fury.io/rb/gem_collector.svg)](https://badge.fury.io/rb/gem_collector)\n[![Build Status](https://github.com/cookpad/gem_collector/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/cookpad/gem_collector/actions/workflows/ci.yml)\n\nCollect gems used by applications.\n\n- Collect Gemfile.lock of the repository via GitHub webhook\n- Show gem versions of the repository\n- Show repositories using the gem\n- Show \"how up-to-date?\" of the repository\n- Create a issue to repositories using the gem\n\n## Usage\nThere're two ways to add GemCollector webhook to repository.\n\n### Add webhook from repository setting\nVisit `https://github.com/:user/:repo/settings/hooks` and add `https://gem-collector.example.com/github-webhook` with `push` event.\n\n### Add webhook from GemCollector\nVisit `https://gem-collector.example.com/repositories/new` and enter repository location.\nIt will automatically add `ENV['WEBHOOK_URL']` with `push` event.\n\n## Installation\n### Gemfile\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'gem_collector'\n```\n\n### Octokit\nPut config/octokit.yml like below.\n\n```yaml\ndefault: \u0026default\n  github.com:\n    access_token: \u003c%= ENV['GITHUB_ACCESS_TOKEN'] %\u003e\n    webhook_secret: \u003c%= ENV['GITHUB_WEBHOOK_SECRET'] %\u003e\n  github-enterprise.example.com:\n    api_endpoint: https://github-enterprise.example.com/api/v3\n    web_endpoint: https://github-enterprise.example.com\n    access_token: \u003c%= ENV['GHE_ACCESS_TOKEN'] %\u003e\n\ndevelopment:\n  \u003c\u003c: *default\n\nproduction:\n  \u003c\u003c: *default\n```\n\n### Database\nConfigure database.yml. GemCollector requires PostgreSQL.\n\n```yaml\n# config/database.yml\ndevelopment:\n  adapter: postgresql\n  encoding: unicode\n  database: gem_collector_development\n\nproduction:\n  url: \u003c%= ENV['DATABASE_URL'] %\u003e\n```\n\n### ActiveJob\nConfigure ActiveJob adapter. We're using [Barbeque](https://github.com/cookpad/barbeque), but other adapters should work.\n\n```ruby\n# config/initializers/barbeque.rb\nRails.application.configure do\n  config.active_job.queue_adapter = :barbeque\nend\n\nBarbequeClient.configure do |config|\n  config.application = 'gem-collector'\n  config.default_queue = 'default'\n  config.endpoint =\n    if Rails.env.production?\n      ENV.fetch('BARBEQUE_ENDPOINT')\n    else\n      ENV.fetch('BARBEQUE_ENDPOINT', 'http://localhost:3003')\n    end\nend\n```\n\n### Environment variables\n- `WEBHOOK_URL` (required when `/repositories/new` is used)\n  - URL to be added when the repository is registered from `/repositories/new`\n  - Example: `https://gem-collector.example.com/github-webhook`\n- `DEFAULT_GITHUB_SITE` (optional: default to `github.com`)\n  - Placeholder site for `/repositories/new`\n  - Example: `github-enterprise.example.com`\n\n## Contributing\nContribution directions go here.\n\n## License\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcookpad%2Fgem_collector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcookpad%2Fgem_collector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcookpad%2Fgem_collector/lists"}