{"id":19341836,"url":"https://github.com/samvera/hydra-role-management","last_synced_at":"2025-04-13T08:27:57.553Z","repository":{"id":668216,"uuid":"9349833","full_name":"samvera/hydra-role-management","owner":"samvera","description":"User roles for hydra users","archived":false,"fork":false,"pushed_at":"2024-10-02T19:50:40.000Z","size":174,"stargazers_count":6,"open_issues_count":3,"forks_count":11,"subscribers_count":64,"default_branch":"main","last_synced_at":"2025-03-27T00:12:02.830Z","etag":null,"topics":["core-components","samvera-community"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samvera.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-04-10T15:54:13.000Z","updated_at":"2024-10-02T19:50:20.000Z","dependencies_parsed_at":"2025-01-02T06:12:10.077Z","dependency_job_id":"ec75fa57-9fc8-4549-addb-d5d84e694d69","html_url":"https://github.com/samvera/hydra-role-management","commit_stats":{"total_commits":109,"total_committers":22,"mean_commits":4.954545454545454,"dds":0.7247706422018348,"last_synced_commit":"7410e6623a5f19b036ac1ce3db0347fc9ab73349"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samvera%2Fhydra-role-management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samvera%2Fhydra-role-management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samvera%2Fhydra-role-management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samvera%2Fhydra-role-management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samvera","download_url":"https://codeload.github.com/samvera/hydra-role-management/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248683498,"owners_count":21144916,"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":["core-components","samvera-community"],"created_at":"2024-11-10T03:32:43.448Z","updated_at":"2025-04-13T08:27:57.525Z","avatar_url":"https://github.com/samvera.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hydra-role-management\n\nCode:\n[![Gem Version](https://badge.fury.io/rb/hydra-role-management.svg)](https://badge.fury.io/rb/hydra-role-management)\n[![Build Status](https://circleci.com/gh/samvera/hydra-role-management.svg?style=svg)](https://circleci.com/gh/samvera/hydra-role-management)\n[![Coverage Status](https://coveralls.io/repos/github/samvera/hydra-role-management/badge.svg?branch=main)](https://coveralls.io/github/samvera/hydra-role-management?branch=main)\n\nDocs:\n[![Contribution Guidelines](http://img.shields.io/badge/CONTRIBUTING-Guidelines-blue.svg)](./CONTRIBUTING.md)\n[![Apache 2.0 License](http://img.shields.io/badge/APACHE2-license-blue.svg)](./LICENSE.md)\n\nCommunity Support: [![Samvera Community Slack](https://img.shields.io/badge/samvera-slack-blueviolet)](http://slack.samvera.org/)\n\n# What is hydra-role-management?\n\nAn engine gem to provide a RDBMS backed list of roles and their associated user. This replaces the hydra default role mapper.\n\nAs of version 1.0, this gem only supports Rails 5.\n\n## Product Owner \u0026 Maintenance\n\n`hydra-role-management` was a Core Component of the Samvera Community. Given a decline in available labor required for maintenance, this project no longer has a dedicated Product Owner. The documentation for what this means can be found [here](http://samvera.github.io/core_components.html#requirements-for-a-core-component).\n\n### Product Owner\n\n**Vacant**\n\n_Until a Product Owner has been identified, we ask that you please direct all requests for support, bug reports, and general questions to the [`#dev` Channel on the Samvera Slack](https://samvera.slack.com/app_redirect?channel=dev)._\n\n# Help\n\nThe Samvera community is here to help. Please see our [support guide](./SUPPORT.md).\n\n## Installing:\n\n- Add: `gem 'hydra-role-management'` to your Gemfile and then `bundle install`\n- `rails generate roles`\n- `rake db:migrate`\n- Add the following [cancan](https://github.com/ryanb/cancan) abilities:\n\n```\n  # app/models/ability.rb\n  if current_user.admin?\n    can [:create, :show, :add_user, :remove_user, :index, :edit, :update, :destroy], Role\n  end\n```\n\n## Testing:\n\n- Install a system javascript runtime or uncomment therubyracer in spec/support/Gemfile\n- Ensure that the testing app does not exist: `bundle exec rake engine_cart:clean`\n- Set Rails version you want to test against. For example:\n\n  - `export RAILS_VERSION=5.1.4`\n\n- Ensure that the correct version of Rails is installed: `bundle update`\n\n- Build test app: `bundle exec rake engine_cart:generate`\n\n- And run tests: `bundle exec rake ci`\n\n## Releasing\n\n1. `bundle install`\n2. Increase the version number in `lib/hydra/role_management/version.rb`\n3. Increase the same version number in `.github_changelog_generator`\n4. Update `CHANGELOG.md` by running this command:\n\n  ```\n  github_changelog_generator --user samvera --project hydra-role-management --token YOUR_GITHUB_TOKEN_HERE\n  ```\n\n5. Commit these changes to the main branch\n\n6. Run `rake release`\n\n# Acknowledgments\n\nThis software has been developed by and is brought to you by the Samvera community. Learn more at the [Samvera website](http://samvera.org/).\n\n![Samvera Logo](https://wiki.duraspace.org/download/thumbnails/87459292/samvera-fall-font2-200w.png?version=1\u0026modificationDate=1498550535816\u0026api=v2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamvera%2Fhydra-role-management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamvera%2Fhydra-role-management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamvera%2Fhydra-role-management/lists"}