blacklight 8.12.2 → 8.13.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 +43 -26
- data/.github/workflows/test.yml +1 -2
- data/.rubocop.yml +151 -8
- data/.rubocop_todo.yml +65 -53
- data/VERSION +1 -1
- data/app/assets/javascripts/blacklight/blacklight.esm.js.map +1 -1
- data/app/assets/javascripts/blacklight/blacklight.js.map +1 -1
- data/app/components/blacklight/advanced_search_form_component.rb +2 -2
- data/app/components/blacklight/constraints_component.rb +2 -2
- data/app/components/blacklight/document/bookmark_component.rb +2 -2
- data/app/components/blacklight/document/more_like_this_component.rb +2 -2
- data/app/components/blacklight/icons/legacy_icon_component.rb +1 -1
- data/app/components/blacklight/metadata_field_plain_text_layout_component.rb +2 -2
- data/app/controllers/concerns/blacklight/bookmarks.rb +5 -5
- data/app/controllers/concerns/blacklight/search_context.rb +1 -1
- data/app/controllers/concerns/blacklight/search_history.rb +1 -1
- data/app/helpers/blacklight/configuration_helper_behavior.rb +2 -2
- data/app/helpers/blacklight/icon_helper_behavior.rb +3 -3
- data/app/helpers/blacklight/layout_helper_behavior.rb +2 -2
- data/app/models/blacklight/icon.rb +3 -2
- data/app/models/concerns/blacklight/user.rb +1 -0
- data/app/presenters/blacklight/facet_field_presenter.rb +2 -2
- data/app/presenters/blacklight/rendering/helper_method.rb +4 -4
- data/app/presenters/blacklight/rendering/join.rb +2 -2
- data/app/presenters/blacklight/rendering/microdata.rb +1 -0
- data/app/values/blacklight/types.rb +2 -2
- data/app/views/catalog/_email_form.html.erb +2 -2
- data/app/views/catalog/_sms_form.html.erb +2 -2
- data/blacklight.gemspec +1 -1
- data/lib/blacklight/abstract_repository.rb +2 -2
- data/lib/blacklight/component.rb +2 -0
- data/lib/blacklight/configuration/context.rb +3 -3
- data/lib/blacklight/configuration/display_field.rb +1 -1
- data/lib/blacklight/configuration/field.rb +10 -10
- data/lib/blacklight/configuration/fields.rb +3 -3
- data/lib/blacklight/configuration/sort_field.rb +2 -2
- data/lib/blacklight/configuration/view_config.rb +2 -2
- data/lib/blacklight/configuration.rb +1 -1
- data/lib/blacklight/nested_open_struct_with_hash_access.rb +1 -1
- data/lib/blacklight/open_struct_with_hash_access.rb +5 -5
- data/lib/blacklight/parameters.rb +1 -1
- data/lib/blacklight/search_builder.rb +4 -4
- data/lib/blacklight/search_state/filter_field.rb +2 -2
- data/lib/blacklight/search_state/pivot_filter_field.rb +1 -1
- data/lib/blacklight/solr/request.rb +1 -1
- data/lib/blacklight/solr/response/facets.rb +2 -2
- data/lib/blacklight/solr/response/group_response.rb +2 -2
- data/lib/blacklight/solr/response.rb +4 -1
- data/lib/blacklight.rb +1 -1
- data/lib/generators/blacklight/assets/importmap_generator.rb +28 -3
- data/lib/generators/blacklight/search_builder_generator.rb +1 -1
- data/lib/generators/blacklight/templates/solr/conf/schema.xml +264 -178
- data/lib/generators/blacklight/templates/solr/conf/solrconfig.xml +6 -18
- data/package.json +1 -1
- data/spec/components/blacklight/document/action_component_spec.rb +1 -1
- data/spec/components/blacklight/document/group_component_spec.rb +1 -1
- data/spec/components/blacklight/document_component_spec.rb +9 -9
- data/spec/components/blacklight/facet_component_spec.rb +2 -2
- data/spec/components/blacklight/facet_field_list_component_spec.rb +1 -1
- data/spec/controllers/catalog_controller_spec.rb +2 -2
- data/spec/features/advanced_search_spec.rb +12 -12
- data/spec/features/bookmarks_spec.rb +12 -12
- data/spec/features/did_you_mean_spec.rb +17 -17
- data/spec/features/facet_missing_spec.rb +3 -3
- data/spec/features/modal_spec.rb +1 -1
- data/spec/features/record_view_spec.rb +14 -14
- data/spec/features/search_context_spec.rb +7 -7
- data/spec/features/search_filters_spec.rb +12 -12
- data/spec/features/search_formats_spec.rb +2 -2
- data/spec/features/search_history_spec.rb +11 -11
- data/spec/features/search_pagination_spec.rb +9 -9
- data/spec/features/search_results_spec.rb +3 -3
- data/spec/features/search_sort_spec.rb +4 -4
- data/spec/features/search_spec.rb +15 -15
- data/spec/helpers/blacklight/url_helper_behavior_spec.rb +14 -14
- data/spec/helpers/blacklight_helper_spec.rb +6 -0
- data/spec/helpers/catalog_helper_spec.rb +6 -6
- data/spec/lib/blacklight/open_struct_with_hash_access_spec.rb +7 -0
- data/spec/lib/blacklight/search_state/pivot_filter_field_spec.rb +1 -1
- data/spec/models/record_mailer_spec.rb +5 -5
- data/spec/models/solr_document_spec.rb +5 -1
- data/spec/presenters/blacklight/index_presenter_spec.rb +1 -0
- data/spec/presenters/blacklight/rendering/pipeline_spec.rb +1 -0
- data/spec/presenters/blacklight/show_presenter_spec.rb +1 -0
- data/spec/presenters/blacklight/thumbnail_presenter_spec.rb +1 -0
- data/spec/views/catalog/_document.html.erb_spec.rb +4 -4
- data/spec/views/catalog/_search_header.erb_spec.rb +2 -2
- data/spec/views/catalog/_sort_and_per_page.html.erb_spec.rb +5 -5
- data/spec/views/catalog/facet.html.erb_spec.rb +1 -1
- data/spec/views/catalog/index.html.erb_spec.rb +2 -2
- data/spec/views/catalog/show.html.erb_spec.rb +3 -3
- metadata +7 -10
|
@@ -35,8 +35,8 @@ RSpec.describe "catalog/show.html.erb" do
|
|
|
35
35
|
stub_template "catalog/_b_default.html.erb" => "b_partial"
|
|
36
36
|
stub_template "catalog/_c_default.html.erb" => "c_partial"
|
|
37
37
|
render
|
|
38
|
-
expect(rendered).to
|
|
39
|
-
expect(rendered).to
|
|
40
|
-
expect(rendered).to
|
|
38
|
+
expect(rendered).to include('a_partial')
|
|
39
|
+
expect(rendered).to include('b_partial')
|
|
40
|
+
expect(rendered).to include('c_partial')
|
|
41
41
|
end
|
|
42
42
|
end
|
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.13.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jonathan Rochkind
|
|
@@ -14,10 +14,9 @@ authors:
|
|
|
14
14
|
- Dan Funk
|
|
15
15
|
- Naomi Dushay
|
|
16
16
|
- Justin Coyne
|
|
17
|
-
autorequire:
|
|
18
17
|
bindir: exe
|
|
19
18
|
cert_chain: []
|
|
20
|
-
date:
|
|
19
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
21
20
|
dependencies:
|
|
22
21
|
- !ruby/object:Gem::Dependency
|
|
23
22
|
name: rails
|
|
@@ -201,16 +200,16 @@ dependencies:
|
|
|
201
200
|
name: axe-core-rspec
|
|
202
201
|
requirement: !ruby/object:Gem::Requirement
|
|
203
202
|
requirements:
|
|
204
|
-
- - "
|
|
203
|
+
- - "~>"
|
|
205
204
|
- !ruby/object:Gem::Version
|
|
206
|
-
version:
|
|
205
|
+
version: 4.12.0
|
|
207
206
|
type: :development
|
|
208
207
|
prerelease: false
|
|
209
208
|
version_requirements: !ruby/object:Gem::Requirement
|
|
210
209
|
requirements:
|
|
211
|
-
- - "
|
|
210
|
+
- - "~>"
|
|
212
211
|
- !ruby/object:Gem::Version
|
|
213
|
-
version:
|
|
212
|
+
version: 4.12.0
|
|
214
213
|
- !ruby/object:Gem::Dependency
|
|
215
214
|
name: capybara
|
|
216
215
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -1012,7 +1011,6 @@ homepage: http://projectblacklight.org/
|
|
|
1012
1011
|
licenses:
|
|
1013
1012
|
- Apache 2.0
|
|
1014
1013
|
metadata: {}
|
|
1015
|
-
post_install_message:
|
|
1016
1014
|
rdoc_options: []
|
|
1017
1015
|
require_paths:
|
|
1018
1016
|
- lib
|
|
@@ -1027,8 +1025,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1027
1025
|
- !ruby/object:Gem::Version
|
|
1028
1026
|
version: '0'
|
|
1029
1027
|
requirements: []
|
|
1030
|
-
rubygems_version:
|
|
1031
|
-
signing_key:
|
|
1028
|
+
rubygems_version: 4.0.19
|
|
1032
1029
|
specification_version: 4
|
|
1033
1030
|
summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)
|
|
1034
1031
|
index.
|