bpluser 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abdb48f9fc552414be7298fdc2b0cb6d4e2517bc87ef5f44ac2ef3e4a869ea2f
4
- data.tar.gz: 8a7ec2a43bd1badfc2ddf33ad767c7262fe39847c2cca5e7a1b18da452468ace
3
+ metadata.gz: bb1b456327994594e22bf36c97eb65c70095cf4c95defa9ec8915d9afb2a8e20
4
+ data.tar.gz: d8d7903f634af553c0b902c542ef9c43adc4ccbf6bda371f012831272978cbf7
5
5
  SHA512:
6
- metadata.gz: 1a22bd759304d114c0583c83b8ea2485b016cdccfbaad5061c5883de47c772b7a7f91efa92b0e3671915f4b322ebba7338e81ecde75222754c837aa940b42341
7
- data.tar.gz: 483c799849eeee668ccc22f6346e7e3cb20af481fc1a768eed79f1d5e8c6a7f5ea004111b774d415c92766f0bc20901b29e18928384b39dbe862286f81b40926
6
+ metadata.gz: c2ad70554b1d5600d55c18e993268815f8d7d51c0be534f1d4f46258bf69e13bf10650933f20eb0b354f1f19bbf00163e1b7e62b91af664007c5bb8e38692f29
7
+ data.tar.gz: 87e39affb5d1600ed387f33a03a6f6256613063f12be5988bdfa273958dbe16056f076d004b4bdaa1219b88ff1056ebe4a7f6039f8a3d97c5db2ffda2da2531f
data/README.md CHANGED
@@ -8,8 +8,8 @@ Rails engine for providing Devise-based user models and functionality for digita
8
8
  This includes bookmarks (Blacklight default), custom folders, and saved searches.
9
9
 
10
10
  # Requirements
11
- - `ruby >= 2.6.10`
12
- - `rails ~> 6.0.6`
11
+ - `ruby >= 3.1, < 3.2`
12
+ - `rails ~> 6.1.7`
13
13
  - `postgres v12 or higher`
14
14
 
15
15
  To install, add the following to your Gemfile:
@@ -31,3 +31,23 @@ rails bpluser:install:update_migrations
31
31
  ```
32
32
 
33
33
  (Note that the installer will ask to overwrite your local `config/locales/devise.en.yml`).
34
+
35
+ ### Running tests
36
+
37
+ Start Solr from project root:
38
+ ```
39
+ $ solr_wrapper --config .solr_wrapper_test.yml
40
+ ```
41
+ Index the sample Solr documents (run from `./spec/dummy`):
42
+ ```
43
+ # Solr must be running
44
+ $ RAILS_ENV=test bundle exec rake bpluser:test_index:seed
45
+ ```
46
+ Run specs
47
+ ```
48
+ # run all tests
49
+ $ bundle exec rake spec
50
+
51
+ # run a single spec
52
+ $ bundle exec rake spec SPEC=./spec/models/some_model_spec.rb
53
+ ```
@@ -22,7 +22,7 @@ class BookmarksController < CatalogController
22
22
 
23
23
  if request.xhr?
24
24
  # success ? render(json: { bookmarks: { count: current_or_guest_user.bookmarks.count }}) : render(:text => "", :status => "500")
25
- success ? render(:update) : render(plain: '', status: '500')
25
+ success ? render(:update) : render(plain: '', status: :internal_server_error)
26
26
  else
27
27
  if @bookmarks.any? && success
28
28
  flash[:notice] = I18n.t('blacklight.bookmarks.add.success', count: @bookmarks.count)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bpluser
4
- VERSION = '0.3.0'
4
+ VERSION = '0.4.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bpluser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boston Public Library Repository Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-22 00:00:00.000000000 Z
11
+ date: 2024-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: blacklight
@@ -283,17 +283,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
283
283
  requirements:
284
284
  - - ">="
285
285
  - !ruby/object:Gem::Version
286
- version: 3.0.6
286
+ version: '3.1'
287
287
  - - "<"
288
288
  - !ruby/object:Gem::Version
289
- version: '3.1'
289
+ version: '3.2'
290
290
  required_rubygems_version: !ruby/object:Gem::Requirement
291
291
  requirements:
292
292
  - - ">="
293
293
  - !ruby/object:Gem::Version
294
294
  version: '0'
295
295
  requirements: []
296
- rubygems_version: 3.4.10
296
+ rubygems_version: 3.3.26
297
297
  signing_key:
298
298
  specification_version: 4
299
299
  summary: Shared user access gem for public front ends