{"id":25598191,"url":"https://github.com/code0-tech/code0-zero_track","last_synced_at":"2026-02-18T11:37:59.015Z","repository":{"id":277768760,"uuid":"933445065","full_name":"code0-tech/code0-zero_track","owner":"code0-tech","description":"Common helpers for Code0 rails applications","archived":false,"fork":false,"pushed_at":"2026-01-11T21:00:30.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-11T23:54:41.936Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/code0-tech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-02-16T00:54:13.000Z","updated_at":"2026-01-11T20:59:51.000Z","dependencies_parsed_at":"2025-02-16T01:01:49.135Z","dependency_job_id":"3757bf8c-d034-48ca-b5c3-4d653c93dc6b","html_url":"https://github.com/code0-tech/code0-zero_track","commit_stats":null,"previous_names":["code0-tech/code0-zero_track"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/code0-tech/code0-zero_track","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code0-tech%2Fcode0-zero_track","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code0-tech%2Fcode0-zero_track/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code0-tech%2Fcode0-zero_track/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code0-tech%2Fcode0-zero_track/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code0-tech","download_url":"https://codeload.github.com/code0-tech/code0-zero_track/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code0-tech%2Fcode0-zero_track/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29578018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T08:38:15.585Z","status":"ssl_error","status_checked_at":"2026-02-18T08:38:14.917Z","response_time":162,"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":"2025-02-21T13:30:49.501Z","updated_at":"2026-02-18T11:37:54.006Z","avatar_url":"https://github.com/code0-tech.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code0::ZeroTrack\n\nZeroTrack is a Ruby gem designed to accelerate and standardize Rails development for Code0 projects.\n\n## Installation\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"code0-zero_track\"\n```\n\nAnd then execute:\n```bash\n$ bundle\n```\n\nOr install it yourself as:\n```bash\n$ gem install code0-zero_track\n```\n\n## Features\n\n### `Code0::ZeroTrack::Context`\n\nContext allows you to save data in a thread local object. Data from the Context is merged into the\nlog messages, if `Code0::ZeroTrack::Logs::JsonFormatter` or `Code0::ZeroTrack::Logs::JsonFormatter::Tagged`\nis used.\n\n`.with_context(data, \u0026block)` creates a new context inheriting data from the previous context and adds the\npassed data to it. The new context is dropped after the block finished execution. \\\n`.push(data)` creates a new context inheriting data from the previous context and adds the passed data to it. \\\n`.current` returns the context from the top of the stack.\n\n### `Code0::ZeroTrack::Memoize`\n\nThis module can be included to get access to the `memoize(name, reset_on_change, \u0026block)` method.\n\nThis method allows to memoize a value, so it only gets computed once.\nEach memoize is identified by the name. You can pass a proc to `reset_on_change` and the memoization\nwill automatically clear every time returned value changes.\n\n`memoized?(name)` allows to check if a value for the given name is currently memoized. \\\nMemoizations can be cleared with `clear_memoize(name)` or `clear_memoize!(name)`.\n\n### `config.zero_track.active_record.schema_cleaner`\n\nWhen using `config.active_record.schema_format = :sql`, Rails produces a `db/structure.sql`.\nThis file contains a lot of noise that doesn't provide much value.\n\nThis noise can be cleaned out with `config.zero_track.active_record.schema_cleaner = true`.\n\n### `config.zero_track.active_record.timestamps`\n\nSetting `config.zero_track.active_record.timestamps = true` adds `timestamps_with_timezone`\nand `datetime_with_timezone` as methods on the table model when creating tables in migrations.\n\nThey behave just like `timestamps` and `datetime`, just including timezones.\n\n### `config.zero_track.active_record.schema_migrations`\n\nRails uses the `schema_migrations` table to keep track which migrations have been executed.\nThis information is also persisted in the `db/structure.sql`, so the `schema_migrations` table\ncan be filled with the correct entries when the schema is loaded from the schema file.\n\nThis approach is prone to git conflicts, so you can switch to a file based persistence\nwith `config.zero_track.active_record.schema_migrations = true`. Instead of an `INSERT INTO` in\nthe `db/structure.sql`, this mode creates files in the `db/schema_migrations` directory.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode0-tech%2Fcode0-zero_track","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode0-tech%2Fcode0-zero_track","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode0-tech%2Fcode0-zero_track/lists"}