{"id":23744957,"url":"https://github.com/wheeyls/custom_seeds","last_synced_at":"2026-02-21T18:37:14.587Z","repository":{"id":258011832,"uuid":"869178799","full_name":"wheeyls/custom_seeds","owner":"wheeyls","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-07T15:49:03.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-02T00:43:19.785Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wheeyls.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-07T21:12:25.000Z","updated_at":"2025-02-07T15:49:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"d03039d8-bc9b-476d-9412-f7704b954c6b","html_url":"https://github.com/wheeyls/custom_seeds","commit_stats":null,"previous_names":["wheeyls/custom_seeds"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/wheeyls/custom_seeds","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wheeyls%2Fcustom_seeds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wheeyls%2Fcustom_seeds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wheeyls%2Fcustom_seeds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wheeyls%2Fcustom_seeds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wheeyls","download_url":"https://codeload.github.com/wheeyls/custom_seeds/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wheeyls%2Fcustom_seeds/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29690132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T18:18:25.093Z","status":"ssl_error","status_checked_at":"2026-02-21T18:18:22.435Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-12-31T12:51:23.914Z","updated_at":"2026-02-21T18:37:14.546Z","avatar_url":"https://github.com/wheeyls.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CustomSeeds\n\nSeed file helpers for Rails applications.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\n    gem 'custom_seeds'\n```\n\nAnd then execute:\n\n    $ bundle\n\n## Usage\n\nCreate a seedfile under `db/seeds`:\n\n```ruby\n# db/seeds/users/followed_products.rb\n\nCustomSeeds.define do\n  title 'Followed Products'\n  description 'Add followed products to user accounts'\n\n  let(:products) { Product.validated.sample }\n\n  before do\n    FollowedProduct.destroy_all\n  end\n\n  records do\n    User.all\n  end\n\n  each_record do |user|\n    products.each do { |product| user.followed_products.create!(product: product) }\n  end\n\n  log_each do |user|\n    \"User #{user.email} followed #{user.followed_products.count} products\"\n  end\nend\n```\n\n### CLI\n\nRun seeds using the `rseed` command:\n\n    $ rseed\n    $ rseed db/seeds/users/\n    $ rseed db/seeds/users/followed_products.rb\n    $ rseed db/seeds/users/followed_products.rb --dry-run\n    $ rseed db/seeds/users/followed_products.rb --verbose\n\nRun all seeds:\n\n### Rake\n\nRun the file using the rake task:\n\n```bash\n$ rake db:seed:users:followed_products\n```\n\nRun all seeds using the rake task:\n\n```bash\n$ rake db:seed:all\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwheeyls%2Fcustom_seeds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwheeyls%2Fcustom_seeds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwheeyls%2Fcustom_seeds/lists"}