bpluser 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +22 -2
- data/app/controllers/bookmarks_controller.rb +1 -1
- data/lib/bpluser/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb1b456327994594e22bf36c97eb65c70095cf4c95defa9ec8915d9afb2a8e20
|
4
|
+
data.tar.gz: d8d7903f634af553c0b902c542ef9c43adc4ccbf6bda371f012831272978cbf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 >=
|
12
|
-
- `rails ~> 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:
|
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)
|
data/lib/bpluser/version.rb
CHANGED
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.
|
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:
|
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.
|
286
|
+
version: '3.1'
|
287
287
|
- - "<"
|
288
288
|
- !ruby/object:Gem::Version
|
289
|
-
version: '3.
|
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.
|
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
|