{"id":18836652,"url":"https://github.com/dapi/archivable","last_synced_at":"2026-01-27T20:30:21.925Z","repository":{"id":54229785,"uuid":"146650574","full_name":"dapi/archivable","owner":"dapi","description":"gem 'dapi-archivable'. Archivable concern for ActiveRecords","archived":false,"fork":false,"pushed_at":"2023-03-16T23:58:39.000Z","size":17,"stargazers_count":0,"open_issues_count":4,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-19T22:50:50.548Z","etag":null,"topics":["gem","ruby","ruby-gem"],"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/dapi.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2018-08-29T19:50:22.000Z","updated_at":"2019-12-10T07:31:48.000Z","dependencies_parsed_at":"2023-02-17T07:10:25.217Z","dependency_job_id":"a6006e0b-5771-4c94-8314-0588de25d70f","html_url":"https://github.com/dapi/archivable","commit_stats":null,"previous_names":["brandymint/archivable"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapi%2Farchivable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapi%2Farchivable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapi%2Farchivable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapi%2Farchivable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dapi","download_url":"https://codeload.github.com/dapi/archivable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239774326,"owners_count":19694700,"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":["gem","ruby","ruby-gem"],"created_at":"2024-11-08T02:25:02.252Z","updated_at":"2026-01-27T20:30:21.858Z","avatar_url":"https://github.com/dapi.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Archivable\n\n[![Build Status](https://travis-ci.org/BrandyMint/archivable.svg)](https://travis-ci.org/search/archivable)\n\nAdd common methods to archive models.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'dapi-archivable'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install dapi-archivable\n\n## Usage\n\n```\nclass MyRecord \u003c ApplicationRecord\n include Archivable\n```\n\nCreate and run migration:\n\n```\n\u003e rails g migration AddArchivedAtToMyRecords archived_at:timestamp\n```\n\nAdd to routes:\n\n```\nconcern :archivable do\n  member do\n    delete :archive\n    post :restore\n  end\nend\n```\n\nAnd use like a boss:\n\n```\nresources :clients do\n  concerns :archivable\nend\n```\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 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/dapi/archivable. 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 Archivable project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/dapi/archivable/blob/master/CODE_OF_CONDUCT.md).\n\n## Other gems\n\n* https://github.com/johno/archivable\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdapi%2Farchivable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdapi%2Farchivable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdapi%2Farchivable/lists"}