blacklight 8.8.4 → 8.10.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/.github/matrix.json +78 -0
- data/.github/workflows/build.yml +16 -0
- data/.github/workflows/lint.yml +25 -0
- data/.github/workflows/main.yml +24 -0
- data/.github/workflows/test.yml +58 -0
- data/VERSION +1 -1
- data/app/assets/javascripts/blacklight/blacklight.esm.js +40 -5
- data/app/assets/javascripts/blacklight/blacklight.esm.js.map +1 -1
- data/app/assets/javascripts/blacklight/blacklight.js +40 -5
- data/app/assets/javascripts/blacklight/blacklight.js.map +1 -1
- data/app/assets/stylesheets/blacklight/_bootstrap_overrides.scss +11 -1
- data/app/assets/stylesheets/blacklight/_facets.scss +6 -6
- data/app/assets/stylesheets/blacklight/_modal.scss +9 -8
- data/app/assets/stylesheets/blacklight/_pagination.scss +1 -3
- data/app/assets/stylesheets/blacklight/blacklight_defaults.scss +3 -0
- data/app/components/blacklight/facet_field_pagination_component.html.erb +2 -2
- data/app/components/blacklight/search/facet_suggest_input.html.erb +5 -2
- data/app/controllers/concerns/blacklight/search_context.rb +1 -1
- data/app/javascript/blacklight/facet_suggest.js +25 -3
- data/app/javascript/blacklight/modal.js +15 -0
- data/app/javascript/blacklight/search_context.js +3 -2
- data/app/views/catalog/facet.html.erb +9 -9
- data/lib/blacklight/configuration/field.rb +2 -0
- data/package.json +1 -1
- data/spec/components/blacklight/search/facet_suggest_input_spec.rb +9 -1
- data/spec/features/facets_spec.rb +64 -11
- data/spec/test_app_templates/Gemfile.extra +0 -1
- data/spec/views/catalog/facet.html.erb_spec.rb +8 -0
- metadata +7 -3
- data/.github/workflows/ruby.yml +0 -106
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.
|
4
|
+
version: 8.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Rochkind
|
@@ -16,7 +16,7 @@ authors:
|
|
16
16
|
- Justin Coyne
|
17
17
|
bindir: exe
|
18
18
|
cert_chain: []
|
19
|
-
date: 2025-
|
19
|
+
date: 2025-04-28 00:00:00.000000000 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: rails
|
@@ -421,7 +421,11 @@ files:
|
|
421
421
|
- ".docker/app/entrypoint.sh"
|
422
422
|
- ".dockerignore"
|
423
423
|
- ".env"
|
424
|
-
- ".github/
|
424
|
+
- ".github/matrix.json"
|
425
|
+
- ".github/workflows/build.yml"
|
426
|
+
- ".github/workflows/lint.yml"
|
427
|
+
- ".github/workflows/main.yml"
|
428
|
+
- ".github/workflows/test.yml"
|
425
429
|
- ".gitignore"
|
426
430
|
- ".hound.yml"
|
427
431
|
- ".jshintrc"
|
data/.github/workflows/ruby.yml
DELETED
@@ -1,106 +0,0 @@
|
|
1
|
-
# This workflow uses actions that are not certified by GitHub.
|
2
|
-
# They are provided by a third-party and are governed by
|
3
|
-
# separate terms of service, privacy policy, and support
|
4
|
-
# documentation.
|
5
|
-
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
-
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
-
|
8
|
-
name: CI
|
9
|
-
|
10
|
-
on:
|
11
|
-
push:
|
12
|
-
branches:
|
13
|
-
- main
|
14
|
-
- "release-*"
|
15
|
-
pull_request:
|
16
|
-
|
17
|
-
jobs:
|
18
|
-
lint:
|
19
|
-
runs-on: ubuntu-latest
|
20
|
-
steps:
|
21
|
-
- uses: actions/checkout@v4
|
22
|
-
- name: Set up Ruby
|
23
|
-
uses: ruby/setup-ruby@v1
|
24
|
-
with:
|
25
|
-
ruby-version: 3.2
|
26
|
-
bundler: "latest"
|
27
|
-
- name: Change permissions
|
28
|
-
run: "chmod -f -R o-w /opt/hostedtoolcache/Ruby/3.2.5/x64/lib/ruby/gems/3.2.0/gems | :"
|
29
|
-
- name: Install dependencies
|
30
|
-
run: bundle install
|
31
|
-
- name: Run linter
|
32
|
-
run: bundle exec rake rubocop
|
33
|
-
test:
|
34
|
-
runs-on: ubuntu-latest
|
35
|
-
name: test (ruby ${{ matrix.ruby }} / rails ${{ matrix.rails_version }} ${{ matrix.additional_name }})
|
36
|
-
strategy:
|
37
|
-
fail-fast: false
|
38
|
-
matrix:
|
39
|
-
ruby: ["3.3"]
|
40
|
-
rails_version: ["7.1.5.1", "7.2.2.1"]
|
41
|
-
bootstrap_version: [null]
|
42
|
-
view_component_version: ["~> 3.12"]
|
43
|
-
api: [null]
|
44
|
-
additional_engine_cart_rails_options: [""]
|
45
|
-
additional_name: [""]
|
46
|
-
include:
|
47
|
-
- ruby: "3.3"
|
48
|
-
rails_version: "8.0.1"
|
49
|
-
additional_engine_cart_rails_options: --css=bootstrap
|
50
|
-
- ruby: "3.3"
|
51
|
-
rails_version: "8.0.1"
|
52
|
-
additional_engine_cart_rails_options: --css=bootstrap --js=esbuild
|
53
|
-
additional_name: "/ esbuild"
|
54
|
-
- ruby: "3.2"
|
55
|
-
rails_version: "7.1.5.1"
|
56
|
-
solr_version: "8.11.2"
|
57
|
-
additional_name: "Solr 8.11.2"
|
58
|
-
- ruby: "3.1"
|
59
|
-
rails_version: "7.1.5.1"
|
60
|
-
- ruby: "3.1"
|
61
|
-
rails_version: "7.1.5.1"
|
62
|
-
view_component_version: "~> 2.74"
|
63
|
-
additional_name: "/ ViewComponent 2"
|
64
|
-
- ruby: "3.1"
|
65
|
-
rails_version: "7.1.5.1"
|
66
|
-
additional_name: "/ Propshaft"
|
67
|
-
additional_engine_cart_rails_options: -a propshaft --css=bootstrap
|
68
|
-
- ruby: "3.1"
|
69
|
-
rails_version: "7.1.5.1"
|
70
|
-
bootstrap_version: "~> 4.0"
|
71
|
-
additional_name: "/ Bootstrap 4"
|
72
|
-
- ruby: "3.3"
|
73
|
-
rails_version: "7.1.5.1"
|
74
|
-
api: "true"
|
75
|
-
additional_engine_cart_rails_options: --api --skip-yarn
|
76
|
-
additional_name: "/ API"
|
77
|
-
- ruby: "3.3"
|
78
|
-
rails_version: "7.2.2.1"
|
79
|
-
additional_engine_cart_rails_options: -a propshaft --css=bootstrap --js=esbuild
|
80
|
-
additional_name: "/ Propshaft, esbuild"
|
81
|
-
env:
|
82
|
-
RAILS_VERSION: ${{ matrix.rails_version }}
|
83
|
-
SOLR_VERSION: ${{ matrix.solr_version || 'latest' }}
|
84
|
-
VIEW_COMPONENT_VERSION: ${{ matrix.view_component_version }}
|
85
|
-
BOOTSTRAP_VERSION: ${{ matrix.bootstrap_version }}
|
86
|
-
BLACKLIGHT_API_TEST: ${{ matrix.api }}
|
87
|
-
ENGINE_CART_RAILS_OPTIONS: "--skip-git --skip-listen --skip-spring --skip-keeps --skip-kamal --skip-solid --skip-coffee --skip-test ${{ matrix.additional_engine_cart_rails_options }}"
|
88
|
-
steps:
|
89
|
-
- uses: actions/checkout@v4
|
90
|
-
- name: Set up Ruby
|
91
|
-
uses: ruby/setup-ruby@v1
|
92
|
-
with:
|
93
|
-
bundler: "latest"
|
94
|
-
ruby-version: ${{ matrix.ruby }}
|
95
|
-
- name: Change permissions
|
96
|
-
run: "chmod -f -R o-w /opt/hostedtoolcache/Ruby/3.2.5/x64/lib/ruby/gems/3.2.0/gems | :"
|
97
|
-
- name: Install dependencies
|
98
|
-
run: bundle install
|
99
|
-
- name: Run tests
|
100
|
-
run: bundle exec rake ci
|
101
|
-
docker_build:
|
102
|
-
runs-on: ubuntu-latest
|
103
|
-
steps:
|
104
|
-
- uses: actions/checkout@v4
|
105
|
-
- name: Build docker image
|
106
|
-
run: docker compose build app
|