{"id":19667213,"url":"https://github.com/vikdotdev/activerecord-discover","last_synced_at":"2025-02-27T04:18:37.625Z","repository":{"id":101319151,"uuid":"453640994","full_name":"vikdotdev/activerecord-discover","owner":"vikdotdev","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-04T14:24:56.000Z","size":154,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-18T15:03:25.998Z","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/vikdotdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-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}},"created_at":"2022-01-30T09:47:42.000Z","updated_at":"2023-02-02T15:52:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e196bae-0f7f-4bd2-bc61-41b71b94e09f","html_url":"https://github.com/vikdotdev/activerecord-discover","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikdotdev%2Factiverecord-discover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikdotdev%2Factiverecord-discover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikdotdev%2Factiverecord-discover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikdotdev%2Factiverecord-discover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vikdotdev","download_url":"https://codeload.github.com/vikdotdev/activerecord-discover/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240976351,"owners_count":19887472,"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":[],"created_at":"2024-11-11T16:31:09.114Z","updated_at":"2025-02-27T04:18:37.609Z","avatar_url":"https://github.com/vikdotdev.png","language":"Ruby","readme":"# ActiveRecordDiscover\nShort description and motivation.\n\nPrepare the testing database:\n```\npushd test/dummy\nRAILS_ENV=test bin/rails db:migrate\npopd\n```\n\n## Usage\nHow to use my plugin.\n\n## Installation\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'activerecord-discover'\n```\n\nAnd then execute:\n```bash\n$ bundle\n```\n\n## Roadmap\n- Add filtering by fields for validations.\n- Add `after_[create|update|destroy]_commit` alias callbacks and related ones.\n- Implement associations.\n- Improve coloring for light themes.\n- Potentially bring some items from [Unsupported](#unsupported) section.\n\n## Unsupported\nSome things from here might get implemented in the future:\n- `with_options` won't display in the output;\n- `validates_with` with custom `ActiveModel::Validator` won't display class definition in the output;\n- `validates` with custom `ActiveModel::EachValidator` won't display class definition in the output;\n- Options for specific validator `validates :foo, presence: { if: :bar? }` won't display method definitions;\n\n## Contributing\nContribution directions go here.\n\n## License\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n### Ideas \u0026 Thoughts\n- Monkey-patch ActiveRecord::Base class to include method for print instead of generating methods?\nAdd arbitrary methods with method_missing e.g. Model.discover_before_save_and_after_create_callbacks;\n- Adapt gem to be compatible with ActiveRecord without Rails?\n- Print file path \"Intelligently\" by looking at combined entity LOC.\n- Show inherited entities in the output.\n\n## TODO\n- Rename manual dummy models to something more generic.\n- Fix handling of `ASTMethod`s that are not found. Current approach has a bug?\n- Print with debug information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikdotdev%2Factiverecord-discover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvikdotdev%2Factiverecord-discover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikdotdev%2Factiverecord-discover/lists"}