{"id":41758984,"url":"https://github.com/ream88/mongoid-versioning","last_synced_at":"2026-01-25T02:05:44.951Z","repository":{"id":7139377,"uuid":"8436294","full_name":"ream88/mongoid-versioning","owner":"ream88","description":"Versioned Documents for Mongoid 4+","archived":false,"fork":false,"pushed_at":"2023-11-17T14:09:54.000Z","size":95,"stargazers_count":17,"open_issues_count":7,"forks_count":28,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-13T08:35:36.817Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ream88.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2013-02-26T16:10:11.000Z","updated_at":"2021-09-02T19:06:31.000Z","dependencies_parsed_at":"2024-06-19T01:37:51.971Z","dependency_job_id":"42c72558-6743-4c87-8ed4-507057b14ae4","html_url":"https://github.com/ream88/mongoid-versioning","commit_stats":null,"previous_names":["haihappen/mongoid-versioning"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ream88/mongoid-versioning","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ream88%2Fmongoid-versioning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ream88%2Fmongoid-versioning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ream88%2Fmongoid-versioning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ream88%2Fmongoid-versioning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ream88","download_url":"https://codeload.github.com/ream88/mongoid-versioning/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ream88%2Fmongoid-versioning/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28741649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T01:40:51.112Z","status":"online","status_checked_at":"2026-01-25T02:00:06.841Z","response_time":113,"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":[],"created_at":"2026-01-25T02:05:44.899Z","updated_at":"2026-01-25T02:05:44.944Z","avatar_url":"https://github.com/ream88.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mongoid-versioning [![Build Status](https://travis-ci.org/haihappen/mongoid-versioning.png)](https://travis-ci.org/haihappen/mongoid-versioning)\n\n**Important:** This gem is an extraction of [Mongoid::Versioning](http://mongoid.github.io/en/mongoid/docs/extras.html#versioning) from the official [mongoid](http://mongoid.org) gem.\nSince Mongoid::Versioning was removed in the `4.0.0` release of Mongoid, this gem re-enables the functionality of versioned documents.\n\n**Please submit only bug and security fixes**. Neither I will accept new features nor changes to existing APIs. Please consider forking the project if you want new features to appear! :)\n\n---\n\nMongoid supports simple versioning through inclusion of the `Mongoid::Versioning` module. Including this module will create a versions embedded relation on the document that it will append to on each save. It will also update the version number on the document, which is an integer.\n\n## Installation\n\nIn your Gemfile:\n\n```ruby\ngem 'mongoid-versioning'\n```\n\n## Usage\n\n```ruby\nclass Person\n  include Mongoid::Document\n  include Mongoid::Versioning\nend\n```\n\nYou can also set a `max_versions` setting, and Mongoid will only keep the max most recent versions.\n\n```ruby\nclass Person\n  include Mongoid::Document\n  include Mongoid::Versioning\n\n  # keep at most 5 versions of a record\n  max_versions 5\nend\n```\n\nYou may skip versioning at any point in time by wrapping the persistence call in a `versionless` block.\n\n```ruby\nperson.versionless do |doc|\n  doc.update_attributes(name: \"Theodore\")\nend\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## Copyright\n\n(The MIT license)\n\nCopyright (c) 2009-2013 Durran Jordan, 2013-2015 Mario Uher\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fream88%2Fmongoid-versioning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fream88%2Fmongoid-versioning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fream88%2Fmongoid-versioning/lists"}