User roles for hydra users
Ruby HTML
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app Use user.id instead of user in the path for the "Remove User" delete … May 8, 2018
config Use translations for labels May 4, 2017
lib Removing the unnecessary '?' May 9, 2018
spec
.gitignore Update build matrix and README Nov 2, 2017
.rspec Update to modern testing practices like other Hydra components May 2, 2017
.travis.yml Updating the Travis CI build matrix to use Ruby 2.5.1 and 2.4.4 along… Aug 17, 2018
CONTRIBUTING.md Update docs according to templates Aug 14, 2018
Gemfile Add coveralls and travis badges Oct 31, 2017
LICENSE.md Added Apache 2.0 License. Fixes #7 Jan 12, 2015
README.md Update docs according to templates Aug 14, 2018
Rakefile Upgrade to rake 10.3, rspec 2.99 Jun 2, 2014
SUPPORT.md Update docs according to templates Aug 14, 2018
hydra-role-management.gemspec Updating the Travis CI build matrix to use Ruby 2.5.1 and 2.4.4 along… Aug 17, 2018

README.md

hydra-role-management

Code: Build Status Gem Version Coverage Status

Docs: Contribution Guidelines Apache 2.0 License

Jump In: Slack Status

What is hydra-role-management?

An engine gem to provide a RDBMS backed list of roles and their associated user. This replaces the hydra default role mapper.

As of version 1.0, this gem only supports Rails 5.

Product Owner & Maintenance

hydra-role-management is a Core Component of the Samvera community. The documentation for what this means can be found here.

Product Owner

jrgriffiniii

Help

The Samvera community is here to help. Please see our support guide.

Installing:

  • Add: gem 'hydra-role-management' to your Gemfile and then bundle install
  • rails generate roles
  • rake db:migrate
  • Add the following cancan abilities:
  # app/models/ability.rb
  if current_user.admin?
    can [:create, :show, :add_user, :remove_user, :index, :edit, :update, :destroy], Role
  end

Testing:

  • Install a system javascript runtime or uncomment therubyracer in spec/support/Gemfile
  • Ensure that the testing app does not exist: bundle exec rake clean
  • Set Rails version you want to test against. For example:
    • export RAILS_VERSION=5.1.4
  • Ensure that the correct version of Rails is installed: bundle update
  • Build test app: bundle exec rake engine_cart:generate
  • And run tests: bundle exec rake spec

Acknowledgments

This software has been developed by and is brought to you by the Samvera community. Learn more at the Samvera website.

Samvera Logo