blacklight 8.13.0 → 9.0.0.beta1

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.
Files changed (242) hide show
  1. checksums.yaml +4 -4
  2. data/.env +3 -3
  3. data/.github/pull_request_template.md +7 -0
  4. data/.github/workflows/ruby.yml +98 -0
  5. data/.rubocop.yml +8 -151
  6. data/.rubocop_todo.yml +53 -74
  7. data/.solr_wrapper.yml +0 -2
  8. data/README.md +30 -8
  9. data/VERSION +1 -1
  10. data/app/assets/builds/blacklight.css +448 -0
  11. data/app/assets/javascripts/blacklight/blacklight.esm.js +8 -51
  12. data/app/assets/javascripts/blacklight/blacklight.esm.js.map +1 -1
  13. data/app/assets/javascripts/blacklight/blacklight.js +8 -51
  14. data/app/assets/javascripts/blacklight/blacklight.js.map +1 -1
  15. data/app/assets/stylesheets/blacklight/_balanced_list.scss +1 -4
  16. data/app/assets/stylesheets/blacklight/_blacklight_base.scss +1 -3
  17. data/app/assets/stylesheets/blacklight/_bookmark.scss +44 -41
  18. data/app/assets/stylesheets/blacklight/_bootstrap_overrides.scss +0 -29
  19. data/app/assets/stylesheets/blacklight/_constraints.scss +15 -24
  20. data/app/assets/stylesheets/blacklight/_controls.scss +2 -18
  21. data/app/assets/stylesheets/blacklight/_facets.scss +15 -82
  22. data/app/assets/stylesheets/blacklight/_group.scss +2 -5
  23. data/app/assets/stylesheets/blacklight/_header.scss +4 -11
  24. data/app/assets/stylesheets/blacklight/_icons.scss +0 -8
  25. data/app/assets/stylesheets/blacklight/_modal.scss +9 -10
  26. data/app/assets/stylesheets/blacklight/_pagination.scss +3 -5
  27. data/app/assets/stylesheets/blacklight/_search_form.scss +0 -1
  28. data/app/assets/stylesheets/blacklight/_search_history.scss +0 -4
  29. data/app/assets/stylesheets/blacklight/_search_results.scss +1 -15
  30. data/app/assets/stylesheets/blacklight/blacklight_defaults.scss +9 -17
  31. data/app/assets/stylesheets/blacklight/build.scss +4 -0
  32. data/app/components/blacklight/advanced_search_form_component.rb +3 -3
  33. data/app/components/blacklight/constraint_component.rb +1 -1
  34. data/app/components/blacklight/constraint_layout_component.html.erb +2 -2
  35. data/app/components/blacklight/constraints_component.html.erb +2 -2
  36. data/app/components/blacklight/constraints_component.rb +3 -3
  37. data/app/components/blacklight/document/action_component.rb +3 -1
  38. data/app/components/blacklight/document/bookmark_component.html.erb +3 -3
  39. data/app/components/blacklight/document/bookmark_component.rb +2 -3
  40. data/app/components/blacklight/document/group_component.html.erb +1 -1
  41. data/app/components/blacklight/document/more_like_this_component.rb +2 -2
  42. data/app/components/blacklight/document/page_header_component.rb +3 -3
  43. data/app/components/blacklight/document/sidebar_component.rb +5 -5
  44. data/app/components/blacklight/document_component.rb +14 -20
  45. data/app/components/blacklight/document_title_component.rb +3 -2
  46. data/app/components/blacklight/facet_field_component.html.erb +5 -5
  47. data/app/components/blacklight/facet_field_list_component.rb +4 -22
  48. data/app/components/blacklight/facet_field_pagination_component.html.erb +2 -2
  49. data/app/components/blacklight/facet_item_component.rb +2 -2
  50. data/app/components/blacklight/facet_item_pivot_component.rb +2 -2
  51. data/app/components/blacklight/header_component.rb +2 -2
  52. data/app/components/blacklight/metadata_field_plain_text_layout_component.rb +2 -2
  53. data/app/components/blacklight/response/facet_group_component.html.erb +3 -18
  54. data/app/components/blacklight/response/facet_group_component.rb +7 -23
  55. data/app/components/blacklight/response/facet_toggle_button_component.html.erb +16 -0
  56. data/app/components/blacklight/response/facet_toggle_button_component.rb +14 -0
  57. data/app/components/blacklight/response/pagination_component.html.erb +1 -1
  58. data/app/components/blacklight/response/pagination_component.rb +2 -1
  59. data/app/components/blacklight/response/sort_component.rb +1 -0
  60. data/app/components/blacklight/response/view_type_button_component.html.erb +1 -1
  61. data/app/components/blacklight/response/view_type_component.html.erb +1 -1
  62. data/app/components/blacklight/search/facet_suggest_input.html.erb +7 -10
  63. data/app/components/blacklight/search/facet_suggest_input.rb +0 -4
  64. data/app/components/blacklight/search/per_page_component.html.erb +1 -1
  65. data/app/components/blacklight/search/per_page_component.rb +1 -0
  66. data/app/components/blacklight/search/sidebar_component.html.erb +1 -1
  67. data/app/components/blacklight/search/sidebar_component.rb +1 -1
  68. data/app/components/blacklight/search_bar_component.html.erb +3 -3
  69. data/app/components/blacklight/search_bar_component.rb +2 -2
  70. data/app/components/blacklight/search_button_component.rb +2 -2
  71. data/app/components/blacklight/search_context/server_applied_params_component.html.erb +2 -2
  72. data/app/components/blacklight/search_context/server_applied_params_component.rb +9 -0
  73. data/app/components/blacklight/skip_link_component.html.erb +1 -1
  74. data/app/components/blacklight/skip_link_component.rb +2 -1
  75. data/app/components/blacklight/system/dropdown_component.html.erb +1 -1
  76. data/app/components/blacklight/system/dropdown_component.rb +1 -1
  77. data/app/components/blacklight/top_navbar_component.html.erb +1 -1
  78. data/app/controllers/concerns/blacklight/bookmarks.rb +5 -5
  79. data/app/controllers/concerns/blacklight/catalog.rb +3 -2
  80. data/app/controllers/concerns/blacklight/search_context.rb +2 -14
  81. data/app/controllers/concerns/blacklight/search_history.rb +1 -1
  82. data/app/helpers/blacklight/blacklight_helper_behavior.rb +0 -6
  83. data/app/helpers/blacklight/catalog_helper_behavior.rb +0 -10
  84. data/app/helpers/blacklight/configuration_helper_behavior.rb +2 -14
  85. data/app/helpers/blacklight/document_helper_behavior.rb +0 -26
  86. data/app/helpers/blacklight/icon_helper_behavior.rb +3 -11
  87. data/app/helpers/blacklight/render_partials_helper_behavior.rb +0 -14
  88. data/app/helpers/blacklight/url_helper_behavior.rb +1 -1
  89. data/app/javascript/{blacklight → blacklight-frontend}/bookmark_toggle.js +1 -1
  90. data/app/javascript/{blacklight → blacklight-frontend}/core.js +2 -10
  91. data/app/javascript/{blacklight → blacklight-frontend}/debounce.js +1 -1
  92. data/app/javascript/blacklight-frontend/facet_suggest.js +26 -0
  93. data/app/javascript/blacklight-frontend/index.js +18 -0
  94. data/app/javascript/{blacklight → blacklight-frontend}/modal.js +2 -14
  95. data/app/javascript/{blacklight → blacklight-frontend}/search_context.js +2 -3
  96. data/app/models/blacklight/icon.rb +2 -3
  97. data/app/models/concerns/blacklight/document.rb +0 -11
  98. data/app/models/concerns/blacklight/user.rb +1 -2
  99. data/app/presenters/blacklight/json_presenter.rb +3 -1
  100. data/app/presenters/blacklight/rendering/helper_method.rb +4 -4
  101. data/app/presenters/blacklight/rendering/join.rb +2 -2
  102. data/app/presenters/blacklight/rendering/microdata.rb +0 -1
  103. data/app/services/blacklight/search_params_yaml_coder.rb +0 -2
  104. data/app/values/blacklight/types.rb +2 -2
  105. data/app/views/bookmarks/_clear_bookmarks_widget.html.erb +0 -2
  106. data/app/views/bookmarks/index.html.erb +1 -1
  107. data/app/views/catalog/_document.atom.builder +1 -1
  108. data/app/views/catalog/_document.html.erb +1 -1
  109. data/app/views/catalog/_email_form.html.erb +2 -2
  110. data/app/views/catalog/_results_pagination.html.erb +2 -5
  111. data/app/views/catalog/_search_results.html.erb +3 -3
  112. data/app/views/catalog/_search_results_header.html.erb +1 -1
  113. data/app/views/catalog/_show_main_content.html.erb +1 -1
  114. data/app/views/catalog/_sms_form.html.erb +2 -2
  115. data/app/views/catalog/_sort_and_per_page.html.erb +1 -1
  116. data/app/views/catalog/_sort_widget.html.erb +1 -0
  117. data/app/views/catalog/facet.html.erb +9 -9
  118. data/app/views/catalog/show.html.erb +2 -3
  119. data/app/views/kaminari/blacklight/_paginator.html.erb +1 -2
  120. data/app/views/layouts/blacklight/base.html.erb +3 -7
  121. data/app/views/search_history/index.html.erb +0 -2
  122. data/blacklight.gemspec +5 -5
  123. data/config/importmap.rb +1 -1
  124. data/config/locales/blacklight.ar.yml +4 -4
  125. data/config/locales/blacklight.ca.yml +124 -124
  126. data/config/locales/blacklight.de.yml +2 -2
  127. data/config/locales/blacklight.en.yml +14 -14
  128. data/config/locales/blacklight.es.yml +4 -4
  129. data/config/locales/blacklight.fr.yml +4 -4
  130. data/config/locales/blacklight.hu.yml +4 -4
  131. data/config/locales/blacklight.it.yml +3 -3
  132. data/config/locales/blacklight.nl.yml +3 -3
  133. data/config/locales/blacklight.pt-BR.yml +3 -3
  134. data/config/locales/blacklight.sq.yml +4 -4
  135. data/config/locales/blacklight.zh.yml +4 -4
  136. data/lib/blacklight/abstract_repository.rb +2 -2
  137. data/lib/blacklight/component.rb +1 -4
  138. data/lib/blacklight/configuration/context.rb +3 -3
  139. data/lib/blacklight/configuration/field.rb +10 -10
  140. data/lib/blacklight/configuration/sort_field.rb +2 -2
  141. data/lib/blacklight/configuration/view_config.rb +2 -4
  142. data/lib/blacklight/configuration.rb +4 -10
  143. data/lib/blacklight/engine.rb +0 -6
  144. data/lib/blacklight/nested_open_struct_with_hash_access.rb +1 -1
  145. data/lib/blacklight/open_struct_with_hash_access.rb +2 -2
  146. data/lib/blacklight/parameters.rb +1 -1
  147. data/lib/blacklight/search_state/filter_field.rb +4 -4
  148. data/lib/blacklight/search_state/pivot_filter_field.rb +1 -1
  149. data/lib/blacklight/solr/request.rb +2 -8
  150. data/lib/blacklight/solr/response/facets.rb +2 -2
  151. data/lib/blacklight/solr/response.rb +1 -4
  152. data/lib/generators/blacklight/assets/importmap_generator.rb +10 -51
  153. data/lib/generators/blacklight/assets/propshaft_generator.rb +1 -1
  154. data/lib/generators/blacklight/assets_generator.rb +3 -3
  155. data/lib/generators/blacklight/controller_generator.rb +3 -3
  156. data/lib/generators/blacklight/search_builder_generator.rb +1 -1
  157. data/lib/generators/blacklight/templates/.solr_wrapper.yml +0 -2
  158. data/lib/generators/blacklight/templates/solr/conf/schema.xml +178 -264
  159. data/lib/generators/blacklight/templates/solr/conf/solrconfig.xml +18 -6
  160. data/lib/generators/blacklight/user_generator.rb +9 -10
  161. data/package.json +14 -4
  162. data/rollup.config.js +1 -1
  163. data/spec/components/blacklight/document/action_component_spec.rb +2 -6
  164. data/spec/components/blacklight/document/group_component_spec.rb +1 -1
  165. data/spec/components/blacklight/document/sidebar_component_spec.rb +5 -20
  166. data/spec/components/blacklight/document_component_spec.rb +19 -24
  167. data/spec/components/blacklight/facet_component_spec.rb +2 -2
  168. data/spec/components/blacklight/facet_field_checkboxes_component_spec.rb +2 -2
  169. data/spec/components/blacklight/facet_field_list_component_spec.rb +3 -3
  170. data/spec/components/blacklight/search/facet_suggest_input_spec.rb +3 -27
  171. data/spec/components/blacklight/search_bar_component_spec.rb +1 -1
  172. data/spec/controllers/blacklight/catalog_spec.rb +1 -1
  173. data/spec/controllers/catalog_controller_spec.rb +3 -3
  174. data/spec/features/advanced_search_spec.rb +12 -12
  175. data/spec/features/axe_spec.rb +6 -11
  176. data/spec/features/bookmarks_spec.rb +60 -23
  177. data/spec/features/did_you_mean_spec.rb +17 -17
  178. data/spec/features/facet_missing_spec.rb +3 -3
  179. data/spec/features/facets_spec.rb +22 -90
  180. data/spec/features/modal_spec.rb +1 -1
  181. data/spec/features/record_view_spec.rb +14 -14
  182. data/spec/features/search_context_spec.rb +8 -9
  183. data/spec/features/search_filters_spec.rb +18 -18
  184. data/spec/features/search_formats_spec.rb +2 -2
  185. data/spec/features/search_history_spec.rb +11 -11
  186. data/spec/features/search_pagination_spec.rb +9 -9
  187. data/spec/features/search_results_spec.rb +3 -3
  188. data/spec/features/search_sort_spec.rb +4 -4
  189. data/spec/features/search_spec.rb +15 -15
  190. data/spec/helpers/blacklight/configuration_helper_behavior_spec.rb +0 -9
  191. data/spec/helpers/blacklight/render_partials_helper_behavior_spec.rb +1 -1
  192. data/spec/helpers/blacklight/url_helper_behavior_spec.rb +14 -14
  193. data/spec/helpers/blacklight_helper_spec.rb +0 -6
  194. data/spec/helpers/catalog_helper_spec.rb +6 -6
  195. data/spec/lib/blacklight/open_struct_with_hash_access_spec.rb +0 -7
  196. data/spec/lib/blacklight/parameters_spec.rb +1 -12
  197. data/spec/lib/blacklight/search_state/filter_field_spec.rb +0 -18
  198. data/spec/lib/blacklight/search_state/pivot_filter_field_spec.rb +1 -1
  199. data/spec/models/blacklight/solr/request_spec.rb +7 -0
  200. data/spec/models/record_mailer_spec.rb +5 -5
  201. data/spec/models/solr_document_spec.rb +1 -5
  202. data/spec/presenters/blacklight/index_presenter_spec.rb +0 -1
  203. data/spec/presenters/blacklight/rendering/pipeline_spec.rb +0 -1
  204. data/spec/presenters/blacklight/show_presenter_spec.rb +0 -1
  205. data/spec/presenters/blacklight/thumbnail_presenter_spec.rb +0 -1
  206. data/spec/services/blacklight/search_service_spec.rb +1 -1
  207. data/spec/support/presenter_test_helpers.rb +1 -1
  208. data/spec/views/catalog/_document.html.erb_spec.rb +4 -4
  209. data/spec/views/catalog/_facet_layout.html.erb_spec.rb +3 -3
  210. data/spec/views/catalog/_sort_and_per_page.html.erb_spec.rb +5 -5
  211. data/spec/views/catalog/facet.html.erb_spec.rb +1 -9
  212. data/spec/views/catalog/index.atom.builder_spec.rb +0 -2
  213. data/spec/views/catalog/index.html.erb_spec.rb +7 -4
  214. data/spec/views/catalog/show.html.erb_spec.rb +4 -3
  215. data/tasks/blacklight.rake +8 -5
  216. metadata +34 -65
  217. data/.github/matrix.json +0 -109
  218. data/.github/workflows/build.yml +0 -16
  219. data/.github/workflows/lint.yml +0 -25
  220. data/.github/workflows/main.yml +0 -24
  221. data/.github/workflows/test.yml +0 -57
  222. data/app/assets/stylesheets/blacklight/_autocomplete.scss +0 -25
  223. data/app/assets/stylesheets/blacklight/_mixins.scss +0 -20
  224. data/app/components/blacklight/icons/legacy_icon_component.rb +0 -30
  225. data/app/javascript/blacklight/facet_suggest.js +0 -48
  226. data/app/javascript/blacklight/index.js +0 -18
  227. data/app/views/catalog/_constraints.html.erb +0 -1
  228. data/app/views/catalog/_facets.html.erb +0 -5
  229. data/app/views/catalog/_search_form.html.erb +0 -7
  230. data/app/views/catalog/_search_header.html.erb +0 -1
  231. data/app/views/catalog/_show_sidebar.html.erb +0 -3
  232. data/app/views/catalog/_show_tools.html.erb +0 -2
  233. data/app/views/catalog/_start_over.html.erb +0 -1
  234. data/app/views/shared/_header_navbar.html.erb +0 -1
  235. data/lib/generators/blacklight/assets/sprockets_generator.rb +0 -68
  236. data/spec/components/blacklight/system/dropdown_component_spec.rb +0 -26
  237. data/spec/views/catalog/_search_header.erb_spec.rb +0 -14
  238. data/spec/views/catalog/_show_sidebar.erb_spec.rb +0 -24
  239. data/spec/views/catalog/_show_tools.html.erb_spec.rb +0 -37
  240. /data/app/javascript/{blacklight → blacklight-frontend}/button_focus.js +0 -0
  241. /data/app/javascript/{blacklight → blacklight-frontend}/checkbox_submit.js +0 -0
  242. /data/app/javascript/{blacklight → blacklight-frontend}/modalForm.js +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3806d03fd90598754cbf0f4d2cc5437788d456bbe8a81bc6367cd5e80e1391f1
4
- data.tar.gz: 7fe3bb2c4f9c3a5ec1793f10e19c7ab23d91f611a8d811614b2c76b2e8f88835
3
+ metadata.gz: a4ffba1fbfab58e820f1953e4c0b1ff8d3bbcd57da645c10a44aa2f0a09f4a7a
4
+ data.tar.gz: 323b2afff4d4a8b308486ad81978b64f3a88aa8414e890ea5563bd3ae7820d0e
5
5
  SHA512:
6
- metadata.gz: ded030f5290a59ee5a60f4d6517bb1a2364cc9a6410959b4f0ebe64c5d2ab381b3d19d612918425a7e68d3b3d68703e722f266b38d0197f863d7d2f2a484391a
7
- data.tar.gz: 1c0de5ef22aff907b3ec2d5031418aa7d41111b81f3f3288522c82e7e03ece7d68c9d972873a487a4741e5c87355ad83ffbe4f7094cdacf3bd58c8e949714395
6
+ metadata.gz: 8d3bbad62d2d7ecfa2b19657d43dab0186e6a945dbd6093c120f2fa5ba833be91b78f75ccd73379008bfb20e199a44702ce49000ce5561203baae41029a5cd3f
7
+ data.tar.gz: 6a2837ca8deb3fd6650b947197d8dd5c5320631a339ac04a3e804aa1cc930050c50ed097f6fbff27ad3e50aab1c84b0bfe2817e91a466926dc0d0fd0202945b8
data/.env CHANGED
@@ -1,6 +1,6 @@
1
- ALPINE_RUBY_VERSION=3.1.6
2
- RAILS_VERSION=6.1.4.6
3
- VIEW_COMPONENT_VERSION=3.12.1
1
+ ALPINE_RUBY_VERSION=3.3
2
+ RAILS_VERSION=7.2.1
3
+ VIEW_COMPONENT_VERSION=3.14.0
4
4
  SOLR_PORT=8983
5
5
  SOLR_URL=http://solr:8983/solr/blacklight-core
6
6
  SOLR_VERSION=latest
@@ -0,0 +1,7 @@
1
+ <!--
2
+ Thanks for contributing to Blacklight!
3
+
4
+ If you changed any SASS files in this pull-request, ensure you have built the CSS.
5
+ You can do this by running `npm run build` and commit the resulting changes to `app/assets/builds/blacklight.css`
6
+
7
+ -->
@@ -0,0 +1,98 @@
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.3"
61
+ rails_version: "7.1.5.1"
62
+ additional_name: "/ Propshaft"
63
+ additional_engine_cart_rails_options: -a propshaft --css=bootstrap
64
+ - ruby: "3.3"
65
+ rails_version: "7.1.5.1"
66
+ api: "true"
67
+ additional_engine_cart_rails_options: --api --skip-yarn
68
+ additional_name: "/ API"
69
+ - ruby: "3.3"
70
+ rails_version: "7.2.2.1"
71
+ additional_engine_cart_rails_options: -a propshaft --css=bootstrap --js=esbuild
72
+ additional_name: "/ Propshaft, esbuild"
73
+ env:
74
+ RAILS_VERSION: ${{ matrix.rails_version }}
75
+ SOLR_VERSION: ${{ matrix.solr_version || 'latest' }}
76
+ VIEW_COMPONENT_VERSION: ${{ matrix.view_component_version }}
77
+ BOOTSTRAP_VERSION: ${{ matrix.bootstrap_version }}
78
+ BLACKLIGHT_API_TEST: ${{ matrix.api }}
79
+ 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 }}"
80
+ steps:
81
+ - uses: actions/checkout@v4
82
+ - name: Set up Ruby
83
+ uses: ruby/setup-ruby@v1
84
+ with:
85
+ bundler: "latest"
86
+ ruby-version: ${{ matrix.ruby }}
87
+ - name: Change permissions
88
+ run: "chmod -f -R o-w /opt/hostedtoolcache/Ruby/3.2.5/x64/lib/ruby/gems/3.2.0/gems | :"
89
+ - name: Install dependencies
90
+ run: bundle install
91
+ - name: Run tests
92
+ run: bundle exec rake ci
93
+ docker_build:
94
+ runs-on: ubuntu-latest
95
+ steps:
96
+ - uses: actions/checkout@v4
97
+ - name: Build docker image
98
+ run: docker compose build app
data/.rubocop.yml CHANGED
@@ -1,4 +1,4 @@
1
- plugins:
1
+ require:
2
2
  - rubocop-capybara
3
3
  - rubocop-rspec
4
4
  - rubocop-rspec_rails
@@ -10,8 +10,8 @@ inherit_from:
10
10
 
11
11
  AllCops:
12
12
  DisplayCopNames: true
13
- TargetRubyVersion: 3.3
14
- TargetRailsVersion: 7.2
13
+ TargetRubyVersion: 3.1
14
+ TargetRailsVersion: 7.0
15
15
  Exclude:
16
16
  - "lib/generators/blacklight/templates/**/*"
17
17
  - "blacklight.gemspec"
@@ -75,7 +75,7 @@ Naming/MethodParameterName:
75
75
  - of
76
76
  - by
77
77
 
78
- Naming/PredicatePrefix:
78
+ Naming/PredicateName:
79
79
  ForbiddenPrefixes:
80
80
  - is_
81
81
 
@@ -89,9 +89,6 @@ Rails/ApplicationMailer:
89
89
  Style/AccessModifierDeclarations:
90
90
  Enabled: false
91
91
 
92
- Style/FormatStringToken:
93
- EnforcedStyle: template
94
-
95
92
  Style/MissingRespondToMissing:
96
93
  Exclude:
97
94
  - "lib/blacklight/nested_open_struct_with_hash_access.rb"
@@ -460,11 +457,11 @@ Style/SuperWithArgsParentheses: # new in 1.58
460
457
  Enabled: true
461
458
  Style/YAMLFileRead: # new in 1.53
462
459
  Enabled: true
463
- Capybara/AssertStyle: # new in 2.17
460
+ Capybara/ClickLinkOrButtonStyle: # new in 2.19
464
461
  Enabled: true
465
- Capybara/RSpec/MatchStyle:
462
+ Capybara/MatchStyle: # new in 2.17
466
463
  Enabled: true
467
- Capybara/RSpec/NegationMatcher: # new in 2.14
464
+ Capybara/NegationMatcher: # new in 2.14
468
465
  Enabled: true
469
466
  Exclude:
470
467
  - "spec/models/**/*"
@@ -474,7 +471,7 @@ Capybara/SpecificActions: # new in 2.14
474
471
  Enabled: true
475
472
  Capybara/SpecificFinders: # new in 2.13
476
473
  Enabled: true
477
- Capybara/RSpec/SpecificMatcher: # new in 2.12
474
+ Capybara/SpecificMatcher: # new in 2.12
478
475
  Enabled: true
479
476
  Capybara/RSpec/HaveSelector: # new in 2.19
480
477
  Enabled: true
@@ -588,143 +585,3 @@ Rails/WhereRange: # new in 2.25
588
585
  Enabled: true
589
586
  Gemspec/AddRuntimeDependency: # new in 1.65
590
587
  Enabled: true
591
- Lint/ArrayLiteralInRegexp: # new in 1.71
592
- Enabled: true
593
- Lint/ConstantReassignment: # new in 1.70
594
- Enabled: true
595
- Lint/DuplicateSetElement: # new in 1.67
596
- Enabled: true
597
- Lint/HashNewWithKeywordArgumentsAsDefault: # new in 1.69
598
- Enabled: true
599
- Lint/NumericOperationWithConstantResult: # new in 1.69
600
- Enabled: true
601
- Lint/SharedMutableDefault: # new in 1.70
602
- Enabled: true
603
- Lint/UnescapedBracketInRegexp: # new in 1.68
604
- Enabled: true
605
- Lint/UselessDefined: # new in 1.69
606
- Enabled: true
607
- Lint/UselessNumericOperation: # new in 1.66
608
- Enabled: true
609
- Style/AmbiguousEndlessMethodDefinition: # new in 1.68
610
- Enabled: true
611
- Style/BitwisePredicate: # new in 1.68
612
- Enabled: true
613
- Style/CombinableDefined: # new in 1.68
614
- Enabled: true
615
- Style/DigChain: # new in 1.69
616
- Enabled: true
617
- Style/FileNull: # new in 1.69
618
- Enabled: true
619
- Style/FileTouch: # new in 1.69
620
- Enabled: true
621
- Style/HashSlice: # new in 1.71
622
- Enabled: true
623
- Style/ItAssignment: # new in 1.70
624
- Enabled: true
625
- Style/KeywordArgumentsMerging: # new in 1.68
626
- Enabled: true
627
- Style/RedundantInterpolationUnfreeze: # new in 1.66
628
- Enabled: true
629
- Style/SafeNavigationChainLength: # new in 1.68
630
- Enabled: true
631
- Rails/EnumSyntax: # new in 2.26
632
- Enabled: true
633
- Rails/MultipleRoutePaths: # new in 2.29
634
- Enabled: true
635
- Rails/StrongParametersExpect: # new in 2.29
636
- Enabled: true
637
- Lint/CopDirectiveSyntax: # new in 1.72
638
- Enabled: true
639
- Lint/RedundantTypeConversion: # new in 1.72
640
- Enabled: true
641
- Lint/SuppressedExceptionInNumberConversion: # new in 1.72
642
- Enabled: true
643
- Lint/UselessConstantScoping: # new in 1.72
644
- Enabled: true
645
- Style/ComparableBetween: # new in 1.74
646
- Enabled: true
647
- Style/HashFetchChain: # new in 1.75
648
- Enabled: true
649
- Style/ItBlockParameter: # new in 1.75
650
- Enabled: true
651
- Style/RedundantFormat: # new in 1.72
652
- Enabled: true
653
- Capybara/FindAllFirst: # new in 2.22
654
- Enabled: true
655
- Capybara/RSpec/NegationMatcherAfterVisit: # new in 2.22
656
- Enabled: true
657
- RSpec/IncludeExamples: # new in 3.6
658
- Enabled: true
659
- Lint/UselessDefaultValueArgument: # new in 1.76
660
- Enabled: true
661
- Lint/UselessOr: # new in 1.76
662
- Enabled: true
663
- Naming/PredicateMethod: # new in 1.76
664
- Enabled: true
665
- Style/EmptyStringInsideInterpolation: # new in 1.76
666
- Enabled: true
667
- Style/RedundantArrayFlatten: # new in 1.76
668
- Enabled: true
669
- Gemspec/AttributeAssignment: # new in 1.77
670
- Enabled: true
671
- Layout/EmptyLinesAfterModuleInclusion: # new in 1.79
672
- Enabled: true
673
- Lint/DataDefineOverride: # new in 1.85
674
- Enabled: true
675
- Lint/UnreachablePatternBranch: # new in 1.85
676
- Enabled: true
677
- Style/ArrayIntersectWithSingleElement: # new in 1.81
678
- Enabled: true
679
- Style/CollectionQuerying: # new in 1.77
680
- Enabled: true
681
- Style/EmptyClassDefinition: # new in 1.84
682
- Enabled: true
683
- Style/FileOpen: # new in 1.85
684
- Enabled: true
685
- Style/MapJoin: # new in 1.85
686
- Enabled: true
687
- Style/ModuleMemberExistenceCheck: # new in 1.82
688
- Enabled: true
689
- Style/NegativeArrayIndex: # new in 1.84
690
- Enabled: true
691
- Style/OneClassPerFile: # new in 1.85
692
- Enabled: true
693
- Style/PartitionInsteadOfDoubleSelect: # new in 1.85
694
- Enabled: true
695
- Style/PredicateWithKind: # new in 1.85
696
- Enabled: true
697
- Style/ReduceToHash: # new in 1.85
698
- Enabled: true
699
- Style/RedundantMinMaxBy: # new in 1.85
700
- Enabled: true
701
- Style/ReverseFind: # new in 1.84
702
- Enabled: true
703
- Style/SelectByKind: # new in 1.85
704
- Enabled: true
705
- Style/SelectByRange: # new in 1.85
706
- Enabled: true
707
- Style/TallyMethod: # new in 1.85
708
- Enabled: true
709
- Capybara/RSpec/CurrentPathExpectation: # new in 1.18
710
- Enabled: true
711
- Capybara/RSpec/HaveContent: # new in 2.23
712
- Enabled: true
713
- Capybara/RSpec/VisibilityMatcher: # new in 1.39
714
- Enabled: true
715
- RSpec/LeakyLocalVariable: # new in 3.8
716
- Enabled: true
717
- RSpec/Output: # new in 3.9
718
- Enabled: true
719
- RSpecRails/HttpStatusNameConsistency: # new in 2.32
720
- Enabled: true
721
- Rails/FindByOrAssignmentMemoization: # new in 2.33
722
- Enabled: true
723
- Rails/OrderArguments: # new in 2.33
724
- Enabled: true
725
- Rails/RedirectBackOrTo: # new in 2.34
726
- Enabled: true
727
- RSpec/DiscardedMatcher: # new in 3.10
728
- Enabled: true
729
- RSpec/MatchWithSimpleRegex: # new in 3.10
730
- Enabled: true
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2026-07-22 03:10:29 UTC using RuboCop version 1.88.2.
3
+ # on 2024-09-03 14:22:19 UTC using RuboCop version 1.66.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -8,35 +8,17 @@
8
8
 
9
9
  # Offense count: 4
10
10
  # This cop supports safe autocorrection (--autocorrect).
11
- Capybara/RSpec/CurrentPathExpectation:
11
+ Capybara/CurrentPathExpectation:
12
12
  Exclude:
13
13
  - 'spec/features/alternate_controller_spec.rb'
14
14
 
15
- # Offense count: 6
16
- Capybara/RSpec/NegationMatcherAfterVisit:
17
- Exclude:
18
- - 'spec/features/facets_spec.rb'
19
- - 'spec/features/modal_spec.rb'
20
- - 'spec/features/record_view_spec.rb'
21
- - 'spec/features/search_context_spec.rb'
22
- - 'spec/features/sitelinks_search_box_spec.rb'
23
-
24
15
  # Offense count: 13
25
- Capybara/RSpec/VisibilityMatcher:
16
+ Capybara/VisibilityMatcher:
26
17
  Exclude:
27
18
  - 'spec/features/facets_spec.rb'
28
19
  - 'spec/features/search_filters_spec.rb'
29
20
  - 'spec/helpers/blacklight_helper_spec.rb'
30
21
 
31
- # Offense count: 5
32
- # This cop supports safe autocorrection (--autocorrect).
33
- # Configuration parameters: EnforcedStyle.
34
- # SupportedStyles: leading, trailing
35
- Layout/LineContinuationLeadingSpace:
36
- Exclude:
37
- - 'lib/generators/blacklight/controller_generator.rb'
38
- - 'lib/generators/blacklight/user_generator.rb'
39
-
40
22
  # Offense count: 1
41
23
  # This cop supports safe autocorrection (--autocorrect).
42
24
  # Configuration parameters: AllowedMethods, AllowedPatterns.
@@ -53,12 +35,20 @@ Lint/AmbiguousOperator:
53
35
  - 'spec/models/blacklight/facet_paginator_spec.rb'
54
36
  - 'spec/services/blacklight/search_service_spec.rb'
55
37
 
56
- # Offense count: 7
38
+ # Offense count: 45
57
39
  # This cop supports safe autocorrection (--autocorrect).
58
40
  Lint/AmbiguousRegexpLiteral:
59
41
  Exclude:
42
+ - 'spec/controllers/catalog_controller_spec.rb'
60
43
  - 'spec/features/alternate_controller_spec.rb'
44
+ - 'spec/helpers/blacklight/url_helper_behavior_spec.rb'
45
+ - 'spec/helpers/catalog_helper_spec.rb'
61
46
  - 'spec/models/record_mailer_spec.rb'
47
+ - 'spec/views/catalog/_document.html.erb_spec.rb'
48
+ - 'spec/views/catalog/_search_header.erb_spec.rb'
49
+ - 'spec/views/catalog/_sort_and_per_page.html.erb_spec.rb'
50
+ - 'spec/views/catalog/index.html.erb_spec.rb'
51
+ - 'spec/views/catalog/show.html.erb_spec.rb'
62
52
 
63
53
  # Offense count: 1
64
54
  Lint/BinaryOperatorWithIdenticalOperands:
@@ -91,7 +81,7 @@ Lint/EmptyFile:
91
81
  Exclude:
92
82
  - 'spec/components/blacklight/document_metadata_component_spec.rb'
93
83
 
94
- # Offense count: 51
84
+ # Offense count: 48
95
85
  # Configuration parameters: AllowedParentClasses.
96
86
  Lint/MissingSuper:
97
87
  Enabled: false
@@ -106,12 +96,12 @@ Lint/ParenthesesAsGroupedExpression:
106
96
  - 'spec/features/search_spec.rb'
107
97
  - 'spec/models/blacklight/solr/repository_spec.rb'
108
98
 
109
- # Offense count: 1
110
- Lint/UselessDefined:
99
+ # Offense count: 2
100
+ Lint/ShadowingOuterLocalVariable:
111
101
  Exclude:
112
- - 'spec/models/blacklight/solr/document_spec.rb'
102
+ - 'spec/models/blacklight/configuration_spec.rb'
113
103
 
114
- # Offense count: 82
104
+ # Offense count: 83
115
105
  # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
116
106
  Metrics/AbcSize:
117
107
  Max: 46
@@ -122,12 +112,12 @@ Metrics/AbcSize:
122
112
  Metrics/BlockLength:
123
113
  Max: 26
124
114
 
125
- # Offense count: 40
115
+ # Offense count: 42
126
116
  # Configuration parameters: AllowedMethods, AllowedPatterns.
127
117
  Metrics/CyclomaticComplexity:
128
- Max: 13
118
+ Max: 14
129
119
 
130
- # Offense count: 79
120
+ # Offense count: 78
131
121
  # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
132
122
  Metrics/MethodLength:
133
123
  Max: 27
@@ -142,7 +132,7 @@ Metrics/ModuleLength:
142
132
  Metrics/ParameterLists:
143
133
  Max: 6
144
134
 
145
- # Offense count: 34
135
+ # Offense count: 36
146
136
  # Configuration parameters: AllowedMethods, AllowedPatterns.
147
137
  Metrics/PerceivedComplexity:
148
138
  Max: 14
@@ -168,19 +158,10 @@ Naming/MethodParameterName:
168
158
  - 'lib/blacklight/solr/document.rb'
169
159
  - 'lib/blacklight/solr/search_builder_behavior.rb'
170
160
 
171
- # Offense count: 3
172
- # Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
173
- # AllowedMethods: call
174
- # WaywardPredicates: infinite?, nonzero?
175
- Naming/PredicateMethod:
176
- Exclude:
177
- - 'app/controllers/concerns/blacklight/catalog.rb'
178
- - 'lib/blacklight/solr/repository.rb'
179
-
180
161
  # Offense count: 9
181
162
  # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
182
163
  # SupportedStyles: snake_case, normalcase, non_integer
183
- # AllowedIdentifiers: TLS1_1, TLS1_2, capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
164
+ # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
184
165
  Naming/VariableNumber:
185
166
  Exclude:
186
167
  - 'spec/lib/blacklight/search_state_spec.rb'
@@ -194,13 +175,13 @@ RSpec/BeforeAfterAll:
194
175
  - 'spec/models/blacklight/document/dublin_core_spec.rb'
195
176
  - 'spec/models/blacklight/solr/document_spec.rb'
196
177
 
197
- # Offense count: 110
178
+ # Offense count: 109
198
179
  # Configuration parameters: Prefixes, AllowedPatterns.
199
180
  # Prefixes: when, with, without
200
181
  RSpec/ContextWording:
201
182
  Enabled: false
202
183
 
203
- # Offense count: 149
184
+ # Offense count: 138
204
185
  # Configuration parameters: CountAsOne.
205
186
  RSpec/ExampleLength:
206
187
  Max: 33
@@ -227,7 +208,6 @@ RSpec/InstanceVariable:
227
208
  - 'spec/views/catalog/index.atom.builder_spec.rb'
228
209
 
229
210
  # Offense count: 4
230
- # This cop supports safe autocorrection (--autocorrect).
231
211
  RSpec/IteratedExpectation:
232
212
  Exclude:
233
213
  - 'spec/models/blacklight/solr/response/group_response_spec.rb'
@@ -266,22 +246,22 @@ RSpec/MessageSpies:
266
246
  - 'spec/models/blacklight/suggest_search_spec.rb'
267
247
  - 'spec/presenters/blacklight/field_presenter_spec.rb'
268
248
 
269
- # Offense count: 403
249
+ # Offense count: 390
270
250
  RSpec/MultipleExpectations:
271
251
  Max: 16
272
252
 
273
- # Offense count: 296
253
+ # Offense count: 292
274
254
  # Configuration parameters: AllowSubject.
275
255
  RSpec/MultipleMemoizedHelpers:
276
256
  Max: 14
277
257
 
278
- # Offense count: 424
258
+ # Offense count: 399
279
259
  # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
280
260
  # SupportedStyles: always, named_only
281
261
  RSpec/NamedSubject:
282
262
  Enabled: false
283
263
 
284
- # Offense count: 61
264
+ # Offense count: 60
285
265
  # Configuration parameters: AllowedGroups.
286
266
  RSpec/NestedGroups:
287
267
  Max: 5
@@ -304,6 +284,7 @@ RSpec/RepeatedExampleGroupDescription:
304
284
 
305
285
  # Offense count: 1
306
286
  # This cop supports safe autocorrection (--autocorrect).
287
+ # Configuration parameters: AutoCorrect.
307
288
  RSpec/ScatteredLet:
308
289
  Exclude:
309
290
  - 'spec/views/catalog/index.atom.builder_spec.rb'
@@ -320,7 +301,6 @@ RSpec/StubbedMock:
320
301
  - 'spec/presenters/blacklight/field_presenter_spec.rb'
321
302
 
322
303
  # Offense count: 1
323
- # This cop supports safe autocorrection (--autocorrect).
324
304
  RSpec/SubjectDeclaration:
325
305
  Exclude:
326
306
  - 'spec/models/blacklight/document/cache_key_spec.rb'
@@ -335,21 +315,10 @@ RSpec/SubjectStub:
335
315
  - 'spec/presenters/blacklight/document_presenter_spec.rb'
336
316
  - 'spec/services/blacklight/search_service_spec.rb'
337
317
 
338
- # Offense count: 18
318
+ # Offense count: 80
339
319
  # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
340
320
  RSpec/VerifiedDoubles:
341
- Exclude:
342
- - 'spec/components/blacklight/search/facet_suggest_input_spec.rb'
343
- - 'spec/components/blacklight/system/dropdown_component_spec.rb'
344
- - 'spec/controllers/catalog_controller_spec.rb'
345
- - 'spec/helpers/blacklight/configuration_helper_behavior_spec.rb'
346
- - 'spec/helpers/blacklight/url_helper_behavior_spec.rb'
347
- - 'spec/helpers/catalog_helper_spec.rb'
348
- - 'spec/presenters/blacklight/document_presenter_spec.rb'
349
- - 'spec/presenters/blacklight/field_presenter_spec.rb'
350
- - 'spec/presenters/blacklight/thumbnail_presenter_spec.rb'
351
- - 'spec/services/blacklight/search_service_spec.rb'
352
- - 'spec/views/catalog/_document_list.html.erb_spec.rb'
321
+ Enabled: false
353
322
 
354
323
  # Offense count: 4
355
324
  # This cop supports unsafe autocorrection (--autocorrect-all).
@@ -359,7 +328,9 @@ Rails/Date:
359
328
  Exclude:
360
329
  - 'spec/models/search_spec.rb'
361
330
 
362
- # Offense count: 22
331
+ # Offense count: 20
332
+ # Configuration parameters: Include.
333
+ # Include: app/helpers/**/*.rb
363
334
  Rails/HelperInstanceVariable:
364
335
  Exclude:
365
336
  - 'app/helpers/blacklight/catalog_helper_behavior.rb'
@@ -369,6 +340,8 @@ Rails/HelperInstanceVariable:
369
340
  - 'app/helpers/blacklight/render_partials_helper_behavior.rb'
370
341
 
371
342
  # Offense count: 2
343
+ # Configuration parameters: Include.
344
+ # Include: spec/**/*.rb, test/**/*.rb
372
345
  Rails/I18nLocaleAssignment:
373
346
  Exclude:
374
347
  - 'spec/helpers/blacklight_helper_spec.rb'
@@ -378,7 +351,7 @@ Rails/OutputSafety:
378
351
  Exclude:
379
352
  - 'app/presenters/blacklight/rendering/join.rb'
380
353
 
381
- # Offense count: 15
354
+ # Offense count: 14
382
355
  Security/Eval:
383
356
  Exclude:
384
357
  - 'spec/models/blacklight/solr/response_spec.rb'
@@ -396,7 +369,7 @@ Style/Alias:
396
369
  - 'lib/blacklight/solr/response.rb'
397
370
  - 'lib/blacklight/solr/response/group_response.rb'
398
371
 
399
- # Offense count: 2
372
+ # Offense count: 3
400
373
  # This cop supports safe autocorrection (--autocorrect).
401
374
  # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
402
375
  # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
@@ -408,12 +381,10 @@ Style/BlockDelimiters:
408
381
  - 'app/views/catalog/index.rss.builder'
409
382
  - 'app/views/catalog/opensearch.xml.builder'
410
383
 
411
- # Offense count: 42
384
+ # Offense count: 52
412
385
  # This cop supports unsafe autocorrection (--autocorrect-all).
413
- # Configuration parameters: EnforcedStyle, EnforcedStyleForClasses, EnforcedStyleForModules.
386
+ # Configuration parameters: EnforcedStyle.
414
387
  # SupportedStyles: nested, compact
415
- # SupportedStylesForClasses: ~, nested, compact
416
- # SupportedStylesForModules: ~, nested, compact
417
388
  Style/ClassAndModuleChildren:
418
389
  Enabled: false
419
390
 
@@ -438,7 +409,7 @@ Style/DocumentDynamicEvalDefinition:
438
409
  - 'app/builders/blacklight/action_builder.rb'
439
410
  - 'lib/blacklight/configuration/fields.rb'
440
411
 
441
- # Offense count: 134
412
+ # Offense count: 133
442
413
  # Configuration parameters: AllowedConstants.
443
414
  Style/Documentation:
444
415
  Enabled: false
@@ -457,6 +428,14 @@ Style/ExpandPathArguments:
457
428
  - 'lib/generators/blacklight/test_support_generator.rb'
458
429
  - 'lib/generators/blacklight/user_generator.rb'
459
430
 
431
+ # Offense count: 16
432
+ # This cop supports safe autocorrection (--autocorrect).
433
+ # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
434
+ # SupportedStyles: annotated, template, unannotated
435
+ # AllowedMethods: redirect
436
+ Style/FormatStringToken:
437
+ EnforcedStyle: template
438
+
460
439
  # Offense count: 6
461
440
  # This cop supports safe autocorrection (--autocorrect).
462
441
  # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
@@ -468,7 +447,7 @@ Style/GuardClause:
468
447
  - 'app/helpers/blacklight/catalog_helper_behavior.rb'
469
448
  - 'lib/blacklight/solr/search_builder_behavior.rb'
470
449
 
471
- # Offense count: 30
450
+ # Offense count: 29
472
451
  # This cop supports safe autocorrection (--autocorrect).
473
452
  Style/IfUnlessModifier:
474
453
  Enabled: false
@@ -490,7 +469,7 @@ Style/MultipleComparison:
490
469
 
491
470
  # Offense count: 2
492
471
  # This cop supports unsafe autocorrection (--autocorrect-all).
493
- # Configuration parameters: EnforcedStyle, Recursive.
472
+ # Configuration parameters: EnforcedStyle.
494
473
  # SupportedStyles: literals, strict
495
474
  Style/MutableConstant:
496
475
  Exclude:
@@ -553,7 +532,7 @@ Style/RescueStandardError:
553
532
  - 'lib/blacklight/configuration/fields.rb'
554
533
  - 'lib/railties/blacklight.rake'
555
534
 
556
- # Offense count: 12
535
+ # Offense count: 11
557
536
  # This cop supports unsafe autocorrection (--autocorrect-all).
558
537
  # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
559
538
  # AllowedMethods: present?, blank?, presence, try, try!
@@ -582,7 +561,7 @@ Style/SoleNestedConditional:
582
561
  Exclude:
583
562
  - 'app/controllers/concerns/blacklight/controller.rb'
584
563
 
585
- # Offense count: 31
564
+ # Offense count: 32
586
565
  # This cop supports safe autocorrection (--autocorrect).
587
566
  # Configuration parameters: MinSize.
588
567
  # SupportedStyles: percent, brackets
data/.solr_wrapper.yml CHANGED
@@ -1,7 +1,5 @@
1
1
  # Place any default configuration for solr_wrapper here
2
2
  # port: 8983
3
- env:
4
- SOLR_MODULES: analysis-extras
5
3
  collection:
6
4
  dir: lib/generators/blacklight/templates/solr/conf
7
5
  name: blacklight-core