Bpluser
Rails engine for providing Devise-based user models and functionality for digital repository applications using CommonwealthVlrEngine.
This includes bookmarks (Blacklight default), custom folders, and saved searches.
Requirements
ruby >= 3.1, < 3.2rails ~> 6.1.7postgres v12 or higher
To install, add the following to your Gemfile:
gem 'bpluser', '~> 0.1.0'
# OR
gem 'bpluser', git: 'https://github.com/boston-library/bpluser'
Then run:
$ bundle install
$ rails generate bpluser:install
When updating run
rails bpluser:install:update_migrations
(Note that the installer will ask to overwrite your local config/locales/devise.en.yml).
Running tests
Start Solr from project root:
$ solr_wrapper --config .solr_wrapper_test.yml
Index the sample Solr documents (run from ./spec/dummy):
# Solr must be running
$ RAILS_ENV=test bundle exec rake bpluser:test_index:seed
Run specs
# run all tests
$ bundle exec rake spec
# run a single spec
$ bundle exec rake spec SPEC=./spec/models/some_model_spec.rb