{"id":14955917,"url":"https://github.com/uvera/trackstamps-reborn","last_synced_at":"2025-06-15T10:38:24.594Z","repository":{"id":61612748,"uuid":"552958054","full_name":"uvera/trackstamps-reborn","owner":"uvera","description":"Track which user created or updated record in Rails.","archived":false,"fork":false,"pushed_at":"2025-06-01T13:17:17.000Z","size":101,"stargazers_count":2,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-08T23:27:38.732Z","etag":null,"topics":["activerecord","hacktoberfest","rails","ruby"],"latest_commit_sha":null,"homepage":"","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/uvera.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2022-10-17T13:45:10.000Z","updated_at":"2025-03-12T15:39:35.000Z","dependencies_parsed_at":"2024-08-25T17:53:11.839Z","dependency_job_id":"62c7672f-5489-4f69-bf31-2bbacc4c7f1e","html_url":"https://github.com/uvera/trackstamps-reborn","commit_stats":{"total_commits":48,"total_committers":5,"mean_commits":9.6,"dds":0.6666666666666667,"last_synced_commit":"77593628e1e686b6b75fe049c07619cdffb0fd56"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":"mattbrictson/gem","purl":"pkg:github/uvera/trackstamps-reborn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uvera%2Ftrackstamps-reborn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uvera%2Ftrackstamps-reborn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uvera%2Ftrackstamps-reborn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uvera%2Ftrackstamps-reborn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uvera","download_url":"https://codeload.github.com/uvera/trackstamps-reborn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uvera%2Ftrackstamps-reborn/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259960588,"owners_count":22938092,"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","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":["activerecord","hacktoberfest","rails","ruby"],"created_at":"2024-09-24T13:11:59.985Z","updated_at":"2025-06-15T10:38:24.556Z","avatar_url":"https://github.com/uvera.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trackstamps-reborn\n\n[![Gem Version](https://badge.fury.io/rb/trackstamps-reborn.svg)](https://rubygems.org/gems/trackstamps-reborn)\n[![Test](https://github.com/uvera/trackstamps-reborn/actions/workflows/test.yml/badge.svg)](https://github.com/uvera/trackstamps-reborn/actions/workflows/test.yml)\n\nTrack which user created or updated record in Rails.\n\nInspired and part of code used from original [Trackstamps](https://github.com/mshahzadtariq/trackstamps) gem\n\n---\n\n- [Quick start](#quick-start)\n- [Support](#support)\n- [License](#license)\n- [Code of conduct](#code-of-conduct)\n- [Contribution guide](#contribution-guide)\n\n## Quick start\n\n```\n$ bundler install trackstamps-reborn\n```\n\n### Hook current_user into CurrentAttributes\n\n```ruby\nclass ApplicationController \u003c ActionController::Base\n  before_action :set_trackstamps_user  \n\n  def set_trackstamps_user\n    Trackstamps::Reborn::Current.user = current_user\n    # or use your current attributes class with proc override in initializers\n    YourCurrentAttributesClass.user = current_user\n  end\nend\n```\n\n### Override implementation for current user\n\n```ruby\n## filename: config/initializers/trackstamps-reborn.rb\nTrackstamps::Reborn.config.get_current_user = -\u003e { YourCurrentAttributesClass.user }\n# or\nTrackstamps::Reborn[:alternative].config.get_current_user = -\u003e { YourAlternativeCurrentAttributesClass.user }\n```\n\n### Generate migrations\n```\nrails generate trackstamps:reborn:migration table_name\n```\n\n## Include trackstamps\n```ruby\nclass Example \u003c ActiveRecord::Base\n  include Trackstamps::Reborn\n  # or\n  include Trackstamps::Reborn[:whatever]\nend\n```\n\n## Multiple configuration\n\nMultiple configuration is achieved with module builder pattern utilizing `self.[]` method.\nUpon calling\n\n```ruby\nTrackstamps::Reborn[:whatever]\n```\n\nspecific module is cached in `::Concurrent::Map` instance.\n\n## Support\n\nIf you want to report a bug, or have ideas, feedback or questions about the gem, [let me know via GitHub issues](https://github.com/uvera/trackstamps-reborn/issues/new) and I will do my best to provide a helpful answer. Happy hacking!\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](LICENSE.txt).\n\n## Code of conduct\n\nEveryone interacting in this project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](CODE_OF_CONDUCT.md).\n\n## Contribution guide\n\nPull requests are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuvera%2Ftrackstamps-reborn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuvera%2Ftrackstamps-reborn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuvera%2Ftrackstamps-reborn/lists"}