{"id":21290156,"url":"https://github.com/blakewilliams/materialized","last_synced_at":"2025-09-12T18:09:30.635Z","repository":{"id":260822845,"uuid":"882446176","full_name":"BlakeWilliams/materialized","owner":"BlakeWilliams","description":"Easy database denormalization/materialization in Rails","archived":false,"fork":false,"pushed_at":"2024-11-03T17:45:21.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-07T23:47:35.772Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/BlakeWilliams.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","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":"2024-11-02T19:49:36.000Z","updated_at":"2024-11-03T17:45:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"792f547e-b64c-469e-822b-6928c59f29dd","html_url":"https://github.com/BlakeWilliams/materialized","commit_stats":null,"previous_names":["blakewilliams/materialized"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BlakeWilliams/materialized","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlakeWilliams%2Fmaterialized","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlakeWilliams%2Fmaterialized/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlakeWilliams%2Fmaterialized/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlakeWilliams%2Fmaterialized/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlakeWilliams","download_url":"https://codeload.github.com/BlakeWilliams/materialized/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlakeWilliams%2Fmaterialized/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274851351,"owners_count":25361563,"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-09-12T02:00:09.324Z","response_time":60,"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":[],"created_at":"2024-11-21T12:45:17.699Z","updated_at":"2025-09-12T18:09:30.612Z","avatar_url":"https://github.com/BlakeWilliams.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Materialized\n\nProof-of-concept to make it extremely easy for Rails applications to implement \"materialization\". For example, if we wanted to take a variety of data from a GitHub repository page to create a fast, and eventually consistent experience we could create a materializer that tracks:\n\n```ruby\nclass RepositoryLayoutMaterializer \u003c Materialized::Builder\n  depends_on Repository, :title\n  depends_on User, :login\n\n  def call\n    case\n    when user_changed?:\n     user.repositories.in_batches(100) do |repo|\n       RepositoryLayout.where(repository_id: repo.id).update(user_login: user.login)\n     end\n    when repository_changed?\n      RepositoryLayout.where(repository_id: repository.id).update(title: repository.title)\n    end\n  end\nend\n```\n\n## Installation\n\nTODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.\n\nInstall the gem and add to the application's Gemfile by executing:\n\n    $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n    $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG\n\n## Usage\n\nTODO: Write usage instructions here\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` 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 https://github.com/BlakeWilliams/materialized. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/BlakeWilliams/materialized/blob/main/CODE_OF_CONDUCT.md).\n\n## Code of Conduct\n\nEveryone interacting in the Materialized project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/BlakeWilliams/materialized/blob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblakewilliams%2Fmaterialized","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblakewilliams%2Fmaterialized","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblakewilliams%2Fmaterialized/lists"}