{"id":19474598,"url":"https://github.com/tomasc/mongoid-path_extension","last_synced_at":"2026-01-03T09:38:07.006Z","repository":{"id":48039111,"uuid":"67790344","full_name":"tomasc/mongoid-path_extension","owner":"tomasc","description":"Mongoid field extension simplifying path parsing.","archived":false,"fork":false,"pushed_at":"2024-08-07T20:32:30.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T14:50:02.748Z","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/tomasc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-09-09T10:32:34.000Z","updated_at":"2024-08-07T20:32:28.000Z","dependencies_parsed_at":"2023-12-13T13:46:17.097Z","dependency_job_id":"369339e5-7719-4828-ad78-03e1af37bcc5","html_url":"https://github.com/tomasc/mongoid-path_extension","commit_stats":{"total_commits":13,"total_committers":3,"mean_commits":4.333333333333333,"dds":0.3076923076923077,"last_synced_commit":"ccf68775b78b081f294b157ba48877b6c4973069"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fmongoid-path_extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fmongoid-path_extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fmongoid-path_extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fmongoid-path_extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomasc","download_url":"https://codeload.github.com/tomasc/mongoid-path_extension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250817788,"owners_count":21492223,"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-10T19:25:49.494Z","updated_at":"2026-01-03T09:38:06.966Z","avatar_url":"https://github.com/tomasc.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mongoid PathExtension\n\n[![Build Status](https://travis-ci.org/tomasc/mongoid-path_extension.svg)](https://travis-ci.org/tomasc/mongoid-path_extension) [![Gem Version](https://badge.fury.io/rb/mongoid-path_extension.svg)](http://badge.fury.io/rb/mongoid-path_extension) [![Coverage Status](https://img.shields.io/coveralls/tomasc/mongoid-path_extension.svg)](https://coveralls.io/r/tomasc/mongoid-path_extension)\n\nMongoid field extension simplifying path parsing.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'mongoid-path_extension'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install mongoid-path_extension\n\n## Usage\n\n```ruby\nclass MyDoc\n  include Mongoid::Document\n  field :path, type: Mongoid::PathExtension\nend\n\nmy_doc = MyDoc.new(path: 'LevelOne/LevelTwo/LevelThree')\n\nmy_doc.path # =\u003e 'LevelOne/LevelTwo/LevelThree'\nmy_doc.path.components # =\u003e %w(LevelOne LevelTwo LevelThree)\nmy_doc.path.absolute # =\u003e '/LevelOne/LevelTwo/LevelThree'\nmy_doc.path.root # =\u003e 'LevelOne'\nmy_doc.path.permalink # =\u003e 'LevelThree'\nmy_doc.path.parent_path # =\u003e 'LevelOne/LevelTwo'\nmy_doc.path.parent_permalink # =\u003e 'LevelTwo'\nmy_doc.path.has_parent? # =\u003e true\n\nmy_doc.path.permalink = 'NewPermalink'\nputs my_doc.path.permalink # =\u003e 'NewPermalink'\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/tomasc/mongoid-path_extension.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasc%2Fmongoid-path_extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomasc%2Fmongoid-path_extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasc%2Fmongoid-path_extension/lists"}