{"id":16616291,"url":"https://github.com/cbothner/clowne_active_storage","last_synced_at":"2025-08-25T20:11:54.315Z","repository":{"id":62555852,"uuid":"143173884","full_name":"cbothner/clowne_active_storage","owner":"cbothner","description":"Clone ActiveStorage attachment associations with Clowne","archived":false,"fork":false,"pushed_at":"2018-08-02T14:56:44.000Z","size":15,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T20:18:33.784Z","etag":null,"topics":["activestorage","attachments","clone","clowne","rails"],"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/cbothner.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}},"created_at":"2018-08-01T15:20:54.000Z","updated_at":"2021-10-20T15:20:08.000Z","dependencies_parsed_at":"2022-11-03T05:45:28.196Z","dependency_job_id":null,"html_url":"https://github.com/cbothner/clowne_active_storage","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cbothner/clowne_active_storage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbothner%2Fclowne_active_storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbothner%2Fclowne_active_storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbothner%2Fclowne_active_storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbothner%2Fclowne_active_storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbothner","download_url":"https://codeload.github.com/cbothner/clowne_active_storage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbothner%2Fclowne_active_storage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272124753,"owners_count":24877720,"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-08-25T02:00:12.092Z","response_time":1107,"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":["activestorage","attachments","clone","clowne","rails"],"created_at":"2024-10-12T02:12:32.212Z","updated_at":"2025-08-25T20:11:54.292Z","avatar_url":"https://github.com/cbothner.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clowne_active_storage\n\n[![Gem](https://img.shields.io/gem/v/clowne_active_storage.svg)](https://rubygems.org/gems/clowne_active_storage)\n\n[Clowne][] is a flexible gem for making deep clones of your models. It supports ActiveRecord associations out of the box, so the whole dependency graph can be copied. This gem adds support for ActiveStorage attachments so they can be cloned in the process.\n\n[clowne]: https://github.com/palkan/clowne\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'clowne_active_storage'\n```\n\nAnd then execute:\n\n    $ bundle\n\n## Usage\n\nThis gem adds one command to Clowne’s DSL: `include_attached`. You can use it like this:\n\n```ruby\nclass PostCloner \u003c Clowne::Cloner\n  include_attached :cover_image, :files\nend\n```\n\n`include_attached` can handle `has_one_attached` and `has_many_attached` ActiveStorage associations in the same command.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` 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 tags, 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/cbothner/clowne_active_storage. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the ClowneActiveStorage project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/cbothner/clowne_active_storage/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbothner%2Fclowne_active_storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbothner%2Fclowne_active_storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbothner%2Fclowne_active_storage/lists"}