blacklight-spotlight 2.4.1 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (414) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -0
  3. data/app/assets/javascripts/spotlight/block_mixins/formable.js +6 -2
  4. data/app/builders/spotlight/bootstrap_breadcrumbs_builder.rb +2 -0
  5. data/app/controllers/concerns/spotlight/base.rb +2 -0
  6. data/app/controllers/concerns/spotlight/catalog.rb +2 -0
  7. data/app/controllers/concerns/spotlight/config.rb +2 -0
  8. data/app/controllers/concerns/spotlight/controller.rb +2 -0
  9. data/app/controllers/spotlight/about_pages_controller.rb +2 -0
  10. data/app/controllers/spotlight/admin_users_controller.rb +2 -0
  11. data/app/controllers/spotlight/appearances_controller.rb +2 -0
  12. data/app/controllers/spotlight/application_controller.rb +2 -0
  13. data/app/controllers/spotlight/attachments_controller.rb +2 -0
  14. data/app/controllers/spotlight/browse_controller.rb +2 -0
  15. data/app/controllers/spotlight/catalog_controller.rb +2 -0
  16. data/app/controllers/spotlight/concerns/application_controller.rb +2 -0
  17. data/app/controllers/spotlight/concerns/catalog_search_context.rb +2 -0
  18. data/app/controllers/spotlight/confirmations_controller.rb +2 -0
  19. data/app/controllers/spotlight/contact_email_controller.rb +2 -0
  20. data/app/controllers/spotlight/contact_forms_controller.rb +2 -0
  21. data/app/controllers/spotlight/contacts_controller.rb +2 -0
  22. data/app/controllers/spotlight/custom_fields_controller.rb +2 -0
  23. data/app/controllers/spotlight/dashboards_controller.rb +2 -0
  24. data/app/controllers/spotlight/exhibits_controller.rb +2 -0
  25. data/app/controllers/spotlight/feature_pages_controller.rb +2 -0
  26. data/app/controllers/spotlight/featured_images_controller.rb +2 -0
  27. data/app/controllers/spotlight/filters_controller.rb +2 -0
  28. data/app/controllers/spotlight/home_pages_controller.rb +2 -0
  29. data/app/controllers/spotlight/languages_controller.rb +2 -0
  30. data/app/controllers/spotlight/lock_controller.rb +2 -0
  31. data/app/controllers/spotlight/metadata_configurations_controller.rb +2 -0
  32. data/app/controllers/spotlight/pages_controller.rb +2 -0
  33. data/app/controllers/spotlight/resources/csv_upload_controller.rb +2 -0
  34. data/app/controllers/spotlight/resources/iiif_harvester_controller.rb +2 -0
  35. data/app/controllers/spotlight/resources/upload_controller.rb +2 -0
  36. data/app/controllers/spotlight/resources_controller.rb +2 -0
  37. data/app/controllers/spotlight/roles_controller.rb +2 -0
  38. data/app/controllers/spotlight/search_configurations_controller.rb +2 -0
  39. data/app/controllers/spotlight/searches_controller.rb +2 -0
  40. data/app/controllers/spotlight/sites_controller.rb +2 -0
  41. data/app/controllers/spotlight/solr_controller.rb +2 -0
  42. data/app/controllers/spotlight/tags_controller.rb +2 -0
  43. data/app/controllers/spotlight/translations_controller.rb +2 -0
  44. data/app/controllers/spotlight/versions_controller.rb +2 -0
  45. data/app/controllers/spotlight/view_configurations_controller.rb +2 -0
  46. data/app/helpers/spotlight/application_helper.rb +2 -0
  47. data/app/helpers/spotlight/browse_helper.rb +2 -0
  48. data/app/helpers/spotlight/crop_helper.rb +2 -0
  49. data/app/helpers/spotlight/crud_link_helpers.rb +2 -0
  50. data/app/helpers/spotlight/languages_helper.rb +2 -0
  51. data/app/helpers/spotlight/main_app_helpers.rb +2 -0
  52. data/app/helpers/spotlight/meta_helper.rb +2 -0
  53. data/app/helpers/spotlight/navbar_helper.rb +2 -0
  54. data/app/helpers/spotlight/pages_helper.rb +2 -0
  55. data/app/helpers/spotlight/rendering_helper.rb +2 -0
  56. data/app/helpers/spotlight/roles_helper.rb +2 -0
  57. data/app/helpers/spotlight/search_configurations_helper.rb +2 -0
  58. data/app/helpers/spotlight/searches_helper.rb +2 -0
  59. data/app/helpers/spotlight/title_helper.rb +2 -0
  60. data/app/helpers/spotlight/translations_helper.rb +2 -0
  61. data/app/jobs/spotlight/add_uploads_from_csv.rb +2 -0
  62. data/app/jobs/spotlight/default_thumbnail_job.rb +2 -0
  63. data/app/jobs/spotlight/reindex_job.rb +2 -0
  64. data/app/jobs/spotlight/rename_sidecar_field_job.rb +2 -0
  65. data/app/mailers/spotlight/confirmation_mailer.rb +2 -0
  66. data/app/mailers/spotlight/contact_mailer.rb +2 -0
  67. data/app/mailers/spotlight/indexing_complete_mailer.rb +2 -0
  68. data/app/mailers/spotlight/invitation_mailer.rb +2 -0
  69. data/app/models/ability.rb +2 -0
  70. data/app/models/concerns/spotlight/access_controls_enforcement_search_builder.rb +2 -0
  71. data/app/models/concerns/spotlight/blacklight_configuration_defaults.rb +2 -0
  72. data/app/models/concerns/spotlight/custom_translation_extension.rb +2 -0
  73. data/app/models/concerns/spotlight/exhibit_analytics.rb +2 -0
  74. data/app/models/concerns/spotlight/exhibit_defaults.rb +2 -0
  75. data/app/models/concerns/spotlight/exhibit_documents.rb +2 -0
  76. data/app/models/concerns/spotlight/resources/open_graph.rb +2 -0
  77. data/app/models/concerns/spotlight/resources/web.rb +2 -0
  78. data/app/models/concerns/spotlight/sitemap.rb +2 -0
  79. data/app/models/concerns/spotlight/solr_document.rb +2 -0
  80. data/app/models/concerns/spotlight/solr_document/atomic_updates.rb +2 -0
  81. data/app/models/concerns/spotlight/solr_document/finder.rb +2 -0
  82. data/app/models/concerns/spotlight/solr_document/uploaded_resource.rb +2 -0
  83. data/app/models/concerns/spotlight/translatables.rb +2 -0
  84. data/app/models/concerns/spotlight/user.rb +2 -0
  85. data/app/models/sir_trevor_rails/blocks/browse_block.rb +2 -0
  86. data/app/models/sir_trevor_rails/blocks/displayable.rb +2 -0
  87. data/app/models/sir_trevor_rails/blocks/featured_pages_block.rb +2 -0
  88. data/app/models/sir_trevor_rails/blocks/link_to_search_block.rb +2 -0
  89. data/app/models/sir_trevor_rails/blocks/oembed_block.rb +2 -0
  90. data/app/models/sir_trevor_rails/blocks/search_results_block.rb +2 -0
  91. data/app/models/sir_trevor_rails/blocks/solr_documents_block.rb +2 -0
  92. data/app/models/sir_trevor_rails/blocks/solr_documents_carousel_block.rb +2 -0
  93. data/app/models/sir_trevor_rails/blocks/solr_documents_embed_block.rb +2 -0
  94. data/app/models/sir_trevor_rails/blocks/solr_documents_features_block.rb +2 -0
  95. data/app/models/sir_trevor_rails/blocks/solr_documents_grid_block.rb +2 -0
  96. data/app/models/sir_trevor_rails/blocks/textable.rb +2 -0
  97. data/app/models/sir_trevor_rails/blocks/uploaded_items_block.rb +2 -0
  98. data/app/models/spotlight/ability.rb +2 -0
  99. data/app/models/spotlight/about_page.rb +2 -0
  100. data/app/models/spotlight/analytics/ga.rb +2 -0
  101. data/app/models/spotlight/attachment.rb +2 -0
  102. data/app/models/spotlight/blacklight_configuration.rb +2 -0
  103. data/app/models/spotlight/contact.rb +2 -0
  104. data/app/models/spotlight/contact_email.rb +2 -0
  105. data/app/models/spotlight/contact_form.rb +2 -0
  106. data/app/models/spotlight/contact_image.rb +2 -0
  107. data/app/models/spotlight/custom_field.rb +2 -0
  108. data/app/models/spotlight/exhibit.rb +2 -0
  109. data/app/models/spotlight/exhibit_thumbnail.rb +2 -0
  110. data/app/models/spotlight/feature_page.rb +2 -0
  111. data/app/models/spotlight/featured_image.rb +2 -0
  112. data/app/models/spotlight/field_metadata.rb +2 -0
  113. data/app/models/spotlight/filter.rb +2 -0
  114. data/app/models/spotlight/home_page.rb +2 -0
  115. data/app/models/spotlight/language.rb +2 -0
  116. data/app/models/spotlight/lock.rb +2 -0
  117. data/app/models/spotlight/main_navigation.rb +2 -0
  118. data/app/models/spotlight/masthead.rb +2 -0
  119. data/app/models/spotlight/page.rb +2 -0
  120. data/app/models/spotlight/page_configurations.rb +2 -0
  121. data/app/models/spotlight/reindex_progress.rb +2 -0
  122. data/app/models/spotlight/reindexing_log_entry.rb +2 -0
  123. data/app/models/spotlight/resource.rb +2 -0
  124. data/app/models/spotlight/resources/csv_upload.rb +2 -0
  125. data/app/models/spotlight/resources/iiif_harvester.rb +2 -0
  126. data/app/models/spotlight/resources/iiif_manifest.rb +2 -0
  127. data/app/models/spotlight/resources/iiif_service.rb +2 -0
  128. data/app/models/spotlight/resources/json_upload.rb +2 -0
  129. data/app/models/spotlight/resources/upload.rb +2 -0
  130. data/app/models/spotlight/role.rb +2 -0
  131. data/app/models/spotlight/search.rb +2 -0
  132. data/app/models/spotlight/site.rb +2 -0
  133. data/app/models/spotlight/solr_document_sidecar.rb +2 -0
  134. data/app/presenters/spotlight/iiif_manifest_presenter.rb +2 -0
  135. data/app/serializers/spotlight/exhibit_export_serializer.rb +2 -0
  136. data/app/serializers/spotlight/featured_image_representer.rb +2 -0
  137. data/app/serializers/spotlight/main_navigation_representer.rb +2 -0
  138. data/app/serializers/spotlight/page_representer.rb +2 -0
  139. data/app/services/spotlight/carrierwave_file_resolver.rb +2 -0
  140. data/app/services/spotlight/iiif_resource_resolver.rb +2 -0
  141. data/app/services/spotlight/invite_users_service.rb +2 -0
  142. data/app/services/spotlight/resources/iiif_builder.rb +2 -0
  143. data/app/services/spotlight/solr_document_builder.rb +2 -0
  144. data/app/services/spotlight/upload_solr_document_builder.rb +2 -0
  145. data/app/uploaders/spotlight/attachment_uploader.rb +2 -0
  146. data/app/uploaders/spotlight/featured_image_uploader.rb +2 -0
  147. data/app/values/custom_field_name.rb +2 -0
  148. data/app/views/devise/confirmations/new.html.erb +1 -2
  149. data/app/views/shared/_analytics.html.erb +1 -0
  150. data/config/routes.rb +2 -0
  151. data/lib/blacklight/spotlight.rb +2 -0
  152. data/lib/generators/spotlight/install_generator.rb +2 -1
  153. data/lib/generators/spotlight/scaffold_resource_generator.rb +2 -0
  154. data/lib/generators/spotlight/templates/catalog_controller.rb +2 -0
  155. data/lib/generators/spotlight/templates/config/initializers/riiif.rb +3 -1
  156. data/lib/generators/spotlight/templates/config/initializers/spotlight_initializer.rb +4 -1
  157. data/lib/generators/spotlight/templates/config/initializers/translation.rb +2 -0
  158. data/lib/generators/spotlight/templates/config/sitemap.rb +2 -0
  159. data/lib/generators/spotlight/templates/spotlight_helper.rb +2 -0
  160. data/lib/migration/iiif.rb +2 -0
  161. data/lib/migration/page_language.rb +2 -0
  162. data/lib/spotlight.rb +2 -0
  163. data/lib/spotlight/engine.rb +8 -4
  164. data/lib/spotlight/version.rb +3 -1
  165. data/lib/tasks/spotlight_tasks.rake +2 -0
  166. data/spec/controllers/application_controller_spec.rb +2 -0
  167. data/spec/controllers/spotlight/about_pages_controller_spec.rb +2 -0
  168. data/spec/controllers/spotlight/admin_users_controller_spec.rb +4 -2
  169. data/spec/controllers/spotlight/appearances_controller_spec.rb +2 -0
  170. data/spec/controllers/spotlight/application_controller_spec.rb +2 -0
  171. data/spec/controllers/spotlight/attachments_controller_spec.rb +2 -0
  172. data/spec/controllers/spotlight/browse_controller_spec.rb +2 -0
  173. data/spec/controllers/spotlight/catalog_controller_spec.rb +2 -0
  174. data/spec/controllers/spotlight/confirmations_controller_spec.rb +2 -0
  175. data/spec/controllers/spotlight/contact_email_controller_spec.rb +2 -0
  176. data/spec/controllers/spotlight/contact_forms_controller_spec.rb +2 -0
  177. data/spec/controllers/spotlight/contacts_controller_spec.rb +2 -0
  178. data/spec/controllers/spotlight/custom_fields_controller_spec.rb +2 -0
  179. data/spec/controllers/spotlight/dashboards_controller_spec.rb +2 -0
  180. data/spec/controllers/spotlight/exhibits_controller_spec.rb +3 -1
  181. data/spec/controllers/spotlight/feature_pages_controller_spec.rb +2 -0
  182. data/spec/controllers/spotlight/featured_images_controller_spec.rb +2 -0
  183. data/spec/controllers/spotlight/filters_controller_spec.rb +2 -0
  184. data/spec/controllers/spotlight/home_pages_controller_spec.rb +2 -0
  185. data/spec/controllers/spotlight/languages_controller_spec.rb +2 -0
  186. data/spec/controllers/spotlight/metadata_configurations_controller_spec.rb +2 -0
  187. data/spec/controllers/spotlight/pages_controller_spec.rb +2 -0
  188. data/spec/controllers/spotlight/resources/csv_upload_controller_spec.rb +2 -0
  189. data/spec/controllers/spotlight/resources/upload_controller_spec.rb +2 -0
  190. data/spec/controllers/spotlight/resources_controller_spec.rb +3 -1
  191. data/spec/controllers/spotlight/roles_controller_spec.rb +2 -0
  192. data/spec/controllers/spotlight/search_configurations_controller_spec.rb +2 -0
  193. data/spec/controllers/spotlight/searches_controller_spec.rb +2 -0
  194. data/spec/controllers/spotlight/sites_controller_spec.rb +2 -0
  195. data/spec/controllers/spotlight/solr_controller_spec.rb +2 -0
  196. data/spec/controllers/spotlight/tags_controller_spec.rb +2 -0
  197. data/spec/controllers/spotlight/translations_controller_spec.rb +2 -0
  198. data/spec/controllers/spotlight/versions_controller_spec.rb +2 -0
  199. data/spec/controllers/spotlight/view_configurations_controller_spec.rb +2 -0
  200. data/spec/examples.txt +1302 -6
  201. data/spec/factories/contact_emails.rb +2 -0
  202. data/spec/factories/contact_images.rb +2 -0
  203. data/spec/factories/contacts.rb +2 -0
  204. data/spec/factories/custom_fields.rb +2 -0
  205. data/spec/factories/exhibit_thumbnails.rb +2 -0
  206. data/spec/factories/exhibits.rb +2 -0
  207. data/spec/factories/featured_images.rb +2 -0
  208. data/spec/factories/language.rb +2 -0
  209. data/spec/factories/main_navigation.rb +2 -0
  210. data/spec/factories/pages.rb +2 -0
  211. data/spec/factories/reindexing_log_entries.rb +2 -0
  212. data/spec/factories/resources.rb +2 -0
  213. data/spec/factories/roles.rb +2 -0
  214. data/spec/factories/searches.rb +2 -0
  215. data/spec/factories/tags.rb +2 -0
  216. data/spec/factories/translation.rb +2 -0
  217. data/spec/factories/users.rb +2 -0
  218. data/spec/features/about_page_spec.rb +2 -0
  219. data/spec/features/add_contacts_spec.rb +2 -0
  220. data/spec/features/add_custom_field_metadata_spec.rb +2 -0
  221. data/spec/features/add_iiif_manifest_spec.rb +2 -0
  222. data/spec/features/add_items_spec.rb +2 -0
  223. data/spec/features/autocomplete_typeahead_spec.rb +2 -0
  224. data/spec/features/browse_category_admin_spec.rb +2 -0
  225. data/spec/features/browse_category_spec.rb +2 -0
  226. data/spec/features/catalog_spec.rb +2 -0
  227. data/spec/features/confirm_email_spec.rb +2 -0
  228. data/spec/features/create_exhibit_spec.rb +2 -0
  229. data/spec/features/create_page_spec.rb +2 -0
  230. data/spec/features/dashboard_spec.rb +2 -0
  231. data/spec/features/edit_contact_spec.rb +2 -0
  232. data/spec/features/edit_search_fields_spec.rb +2 -0
  233. data/spec/features/exhibit_masthead_spec.rb +2 -0
  234. data/spec/features/exhibit_themes_spec.rb +2 -0
  235. data/spec/features/exhibits/add_tags_spec.rb +2 -0
  236. data/spec/features/exhibits/administration_spec.rb +2 -0
  237. data/spec/features/exhibits/custom_metadata_fields_spec.rb +2 -0
  238. data/spec/features/exhibits/edit_metadata_fields_spec.rb +2 -0
  239. data/spec/features/exhibits/language_create_edit_spec.rb +2 -0
  240. data/spec/features/exhibits_index_spec.rb +2 -0
  241. data/spec/features/feature_page_spec.rb +2 -0
  242. data/spec/features/home_page_spec.rb +2 -0
  243. data/spec/features/import_exhibit_spec.rb +2 -0
  244. data/spec/features/item_admin_spec.rb +2 -0
  245. data/spec/features/javascript/about_page_admin_spec.rb +2 -0
  246. data/spec/features/javascript/block_controls_spec.rb +2 -0
  247. data/spec/features/javascript/blocks/featured_browse_categories_block_spec.rb +2 -0
  248. data/spec/features/javascript/blocks/featured_pages_block_spec.rb +2 -0
  249. data/spec/features/javascript/blocks/link_to_search_block_spec.rb +2 -0
  250. data/spec/features/javascript/blocks/rule_block_spec.rb +2 -0
  251. data/spec/features/javascript/blocks/search_result_block_spec.rb +2 -0
  252. data/spec/features/javascript/blocks/solr_documents_block_spec.rb +2 -0
  253. data/spec/features/javascript/blocks/uploaded_items_block_spec.rb +2 -0
  254. data/spec/features/javascript/edit_in_place_spec.rb +2 -0
  255. data/spec/features/javascript/feature_page_admin_spec.rb +2 -0
  256. data/spec/features/javascript/home_page_edit_spec.rb +2 -0
  257. data/spec/features/javascript/metadata_admin_spec.rb +2 -0
  258. data/spec/features/javascript/multi_image_select_spec.rb +2 -0
  259. data/spec/features/javascript/reindex_monitor_spec.rb +2 -0
  260. data/spec/features/javascript/roles_admin_spec.rb +2 -0
  261. data/spec/features/javascript/search_config_admin_spec.rb +2 -0
  262. data/spec/features/javascript/search_context_spec.rb +2 -0
  263. data/spec/features/main_navigation_spec.rb +2 -0
  264. data/spec/features/metadata_admin_spec.rb +2 -0
  265. data/spec/features/report_a_problem_spec.rb +2 -0
  266. data/spec/features/site_admin_management_spec.rb +2 -0
  267. data/spec/features/site_masthead_spec.rb +2 -0
  268. data/spec/features/slideshow_spec.rb +2 -0
  269. data/spec/features/translation_scope_spec.rb +2 -0
  270. data/spec/fixtures/iiif_responses.rb +2 -0
  271. data/spec/helpers/spotlight/application_helper_spec.rb +2 -0
  272. data/spec/helpers/spotlight/browse_helper_spec.rb +2 -0
  273. data/spec/helpers/spotlight/crop_helper_spec.rb +2 -0
  274. data/spec/helpers/spotlight/crud_link_helpers_spec.rb +2 -0
  275. data/spec/helpers/spotlight/languages_helper_spec.rb +2 -0
  276. data/spec/helpers/spotlight/main_app_helpers_spec.rb +2 -0
  277. data/spec/helpers/spotlight/meta_helper_spec.rb +2 -0
  278. data/spec/helpers/spotlight/navbar_helper_spec.rb +2 -0
  279. data/spec/helpers/spotlight/pages_helper_spec.rb +2 -0
  280. data/spec/helpers/spotlight/roles_helper_spec.rb +2 -0
  281. data/spec/helpers/spotlight/search_configurations_helper_spec.rb +2 -0
  282. data/spec/helpers/spotlight/title_helper_spec.rb +2 -0
  283. data/spec/jobs/spotlight/add_uploads_from_csv_spec.rb +2 -0
  284. data/spec/jobs/spotlight/default_thumbnail_job_spec.rb +2 -0
  285. data/spec/jobs/spotlight/reindex_job_spec.rb +2 -0
  286. data/spec/jobs/spotlight/rename_sidecar_field_job_spec.rb +2 -0
  287. data/spec/lib/migration/iiif_spec.rb +2 -0
  288. data/spec/lib/migration/page_language_spec.rb +2 -0
  289. data/spec/lib/spotlight/controller_spec.rb +2 -0
  290. data/spec/mailers/spotlight/indexing_complete_mailer_spec.rb +2 -0
  291. data/spec/models/sir_trevor_rails/blocks/browse_block_spec.rb +2 -0
  292. data/spec/models/sir_trevor_rails/blocks/featured_pages_block_spec.rb +2 -0
  293. data/spec/models/sir_trevor_rails/blocks/search_results_block_spec.rb +2 -0
  294. data/spec/models/sir_trevor_rails/blocks/solr_documents_block_spec.rb +2 -0
  295. data/spec/models/sir_trevor_rails/blocks/textable_spec.rb +2 -0
  296. data/spec/models/solr_document_spec.rb +2 -0
  297. data/spec/models/spotlight/ability_spec.rb +2 -0
  298. data/spec/models/spotlight/about_page_spec.rb +2 -0
  299. data/spec/models/spotlight/access_controls_enforcement_search_builder_spec.rb +2 -0
  300. data/spec/models/spotlight/analytics/ga_spec.rb +2 -0
  301. data/spec/models/spotlight/blacklight_configuration_spec.rb +2 -0
  302. data/spec/models/spotlight/contact_email_spec.rb +2 -0
  303. data/spec/models/spotlight/contact_form_spec.rb +2 -0
  304. data/spec/models/spotlight/contact_image_spec.rb +2 -0
  305. data/spec/models/spotlight/contact_spec.rb +2 -0
  306. data/spec/models/spotlight/custom_field_spec.rb +2 -0
  307. data/spec/models/spotlight/exhibit_spec.rb +2 -0
  308. data/spec/models/spotlight/exhibit_thumbnail_spec.rb +2 -0
  309. data/spec/models/spotlight/feature_page_spec.rb +2 -0
  310. data/spec/models/spotlight/featured_image_spec.rb +2 -0
  311. data/spec/models/spotlight/field_metadata_spec.rb +2 -0
  312. data/spec/models/spotlight/filter_spec.rb +2 -0
  313. data/spec/models/spotlight/home_page_spec.rb +2 -0
  314. data/spec/models/spotlight/main_navigation_spec.rb +2 -0
  315. data/spec/models/spotlight/masthead_spec.rb +2 -0
  316. data/spec/models/spotlight/page_spec.rb +2 -0
  317. data/spec/models/spotlight/reindex_progress_spec.rb +2 -0
  318. data/spec/models/spotlight/reindexing_log_entry_spec.rb +2 -0
  319. data/spec/models/spotlight/resource_spec.rb +2 -0
  320. data/spec/models/spotlight/resources/iiif_harvester_spec.rb +2 -0
  321. data/spec/models/spotlight/resources/iiif_manifest_spec.rb +2 -0
  322. data/spec/models/spotlight/resources/iiif_service_spec.rb +2 -0
  323. data/spec/models/spotlight/resources/open_graph_spec.rb +2 -0
  324. data/spec/models/spotlight/resources/upload_spec.rb +2 -0
  325. data/spec/models/spotlight/resources/web_spec.rb +2 -0
  326. data/spec/models/spotlight/role_spec.rb +2 -0
  327. data/spec/models/spotlight/search_spec.rb +2 -0
  328. data/spec/models/spotlight/site_spec.rb +2 -0
  329. data/spec/models/spotlight/sitemap_spec.rb +2 -0
  330. data/spec/models/spotlight/solr_document/atomic_updates_spec.rb +2 -0
  331. data/spec/models/spotlight/solr_document/uploaded_resource_spec.rb +2 -0
  332. data/spec/models/spotlight/solr_document_sidecar_spec.rb +2 -0
  333. data/spec/models/spotlight/user_spec.rb +2 -0
  334. data/spec/models/translation_spec.rb +2 -0
  335. data/spec/presenters/spotlight/iiif_manifest_presenter_spec.rb +2 -0
  336. data/spec/routing/spotlight/exhibit_catalog_spec.rb +2 -0
  337. data/spec/routing/spotlight/featured_images_spec.rb +2 -0
  338. data/spec/routing/spotlight/pages_routing_spec.rb +2 -0
  339. data/spec/serializers/spotlight/exhibit_export_serializer_spec.rb +2 -0
  340. data/spec/services/spotlight/carrierwave_file_resolver_spec.rb +2 -0
  341. data/spec/services/spotlight/iiif_resource_resolver_spec.rb +2 -0
  342. data/spec/services/spotlight/invite_users_service_spec.rb +2 -0
  343. data/spec/services/spotlight/solr_document_builder_spec.rb +2 -0
  344. data/spec/spec_helper.rb +2 -0
  345. data/spec/support/controllers/engine_helpers.rb +2 -0
  346. data/spec/support/disable_friendly_id_deprecation_warnings.rb +2 -0
  347. data/spec/support/features/capybara_default_max_wait_metadata_helper.rb +2 -0
  348. data/spec/support/features/test_features_helpers.rb +2 -0
  349. data/spec/support/helpers/controller_level_helpers.rb +2 -0
  350. data/spec/support/stub_iiif_response.rb +2 -0
  351. data/spec/support/views/test_view_helpers.rb +2 -0
  352. data/spec/test_app_templates/carrierwave.rb +2 -0
  353. data/spec/test_app_templates/catalog_controller.rb +2 -0
  354. data/spec/test_app_templates/lib/generators/test_app_generator.rb +2 -0
  355. data/spec/test_app_templates/spotlight_test.rake +2 -0
  356. data/spec/uploaders/spotlight/attachment_uploader_spec.rb +2 -0
  357. data/spec/uploaders/spotlight/featured_image_uploader_spec.rb +2 -0
  358. data/spec/views/_user_util_links.html.erb_spec.rb +2 -0
  359. data/spec/views/shared/_analytics.html.erb_spec.rb +4 -0
  360. data/spec/views/shared/_exhibit_navbar.html.erb_spec.rb +2 -0
  361. data/spec/views/shared/_footer.html.erb_spec.rb +2 -0
  362. data/spec/views/shared/_header_navbar.html.erb_spec.rb +2 -0
  363. data/spec/views/shared/_masthead.html.erb_spec.rb +2 -0
  364. data/spec/views/spotlight/about_pages/_empty.html.erb_spec.rb +2 -0
  365. data/spec/views/spotlight/about_pages/_sidebar.html.erb_spec.rb +2 -0
  366. data/spec/views/spotlight/about_pages/index.html.erb_spec.rb +2 -0
  367. data/spec/views/spotlight/browse/_search.html.erb_spec.rb +2 -0
  368. data/spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb +2 -0
  369. data/spec/views/spotlight/browse/index.html.erb_spec.rb +2 -0
  370. data/spec/views/spotlight/browse/show.html.erb_spec.rb +2 -0
  371. data/spec/views/spotlight/catalog/_edit_default.html.erb_spec.rb +2 -0
  372. data/spec/views/spotlight/catalog/admin.html.erb_spec.rb +2 -0
  373. data/spec/views/spotlight/catalog/edit.html.erb_spec.rb +2 -0
  374. data/spec/views/spotlight/contacts/edit.html.erb_spec.rb +2 -0
  375. data/spec/views/spotlight/dashboards/_analytics.html.erb_spec.rb +2 -0
  376. data/spec/views/spotlight/dashboards/_reindexing_activity.html.erb_spec.rb +2 -0
  377. data/spec/views/spotlight/dashboards/analytics.html.erb_spec.rb +2 -0
  378. data/spec/views/spotlight/exhibits/_exhibit_card_front.html.erb_spec.rb +2 -0
  379. data/spec/views/spotlight/exhibits/_form.html.erb_spec.rb +2 -0
  380. data/spec/views/spotlight/exhibits/edit.html.erb_spec.rb +2 -0
  381. data/spec/views/spotlight/exhibits/index.html.erb_spec.rb +2 -0
  382. data/spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb +2 -0
  383. data/spec/views/spotlight/feature_pages/_sidebar.html.erb_spec.rb +2 -0
  384. data/spec/views/spotlight/home_pages/_empty.html.erb_spec.rb +2 -0
  385. data/spec/views/spotlight/home_pages/_sidebar.html.erb_spec.rb +2 -0
  386. data/spec/views/spotlight/metadata_configurations/_metadata_field.html.erb_spec.rb +2 -0
  387. data/spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb +2 -0
  388. data/spec/views/spotlight/pages/_form.html.erb_spec.rb +2 -0
  389. data/spec/views/spotlight/pages/edit.html.erb_spec.rb +2 -0
  390. data/spec/views/spotlight/pages/index.html.erb_spec.rb +2 -0
  391. data/spec/views/spotlight/pages/new.html.erb_spec.rb +2 -0
  392. data/spec/views/spotlight/pages/show.html.erb_spec.rb +2 -0
  393. data/spec/views/spotlight/resources/_external_resources_form.html.erb_spec.rb +2 -0
  394. data/spec/views/spotlight/resources/new.html.erb_spec.rb +2 -0
  395. data/spec/views/spotlight/roles/index.html.erb_spec.rb +2 -0
  396. data/spec/views/spotlight/search_configurations/_facet_metadata.html.erb_spec.rb +2 -0
  397. data/spec/views/spotlight/search_configurations/_facets.html.erb_spec.rb +2 -0
  398. data/spec/views/spotlight/search_configurations/_search_fields.html.erb_spec.rb +2 -0
  399. data/spec/views/spotlight/search_configurations/_sort.html.erb_spec.rb +2 -0
  400. data/spec/views/spotlight/searches/_search.html.erb_spec.rb +2 -0
  401. data/spec/views/spotlight/searches/edit.html.erb_spec.rb +2 -0
  402. data/spec/views/spotlight/searches/index.html.erb_spec.rb +2 -0
  403. data/spec/views/spotlight/sir_trevor/blocks/_browse_block.html.erb_spec.rb +2 -0
  404. data/spec/views/spotlight/sir_trevor/blocks/_iframe_block.html.erb_spec.rb +2 -0
  405. data/spec/views/spotlight/sir_trevor/blocks/_link_to_search_block.html.erb_spec.rb +2 -0
  406. data/spec/views/spotlight/sir_trevor/blocks/_rule_block.html.erb_spec.rb +2 -0
  407. data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb_spec.rb +2 -0
  408. data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb_spec.rb +2 -0
  409. data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb_spec.rb +2 -0
  410. data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb_spec.rb +2 -0
  411. data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb_spec.rb +2 -0
  412. data/spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb +2 -0
  413. data/spec/views/spotlight/tags/index.html.erb_spec.rb +2 -0
  414. metadata +4 -18
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/feature_pages/_sidebar.html.erb', type: :view do
2
4
  let(:exhibit) { FactoryBot.create(:exhibit) }
3
5
  let!(:parent1) { FactoryBot.create(:feature_page, exhibit: exhibit, title: 'Parent Page') }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/home_pages/_empty.html.erb', type: :view do
2
4
  describe 'resource providers' do
3
5
  before do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/home_pages/_sidebar.html.erb', type: :view do
2
4
  before do
3
5
  stub_template 'catalog/_search_sidebar.html.erb' => 'Search Sidebar'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/metadata_configurations/_metadata_field', type: :view do
2
4
  let(:exhibit) { FactoryBot.create(:exhibit) }
3
5
  let(:p) { 'spotlight/metadata_configurations/metadata_field.html.erb' }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/metadata_configurations/edit', type: :view do
2
4
  let(:exhibit) { FactoryBot.create(:exhibit) }
3
5
  before do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/pages/edit', type: :view do
2
4
  let(:exhibit) { stub_model(Spotlight::Exhibit) }
3
5
  let(:page) { stub_model(Spotlight::FeaturePage, exhibit: exhibit) }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/pages/edit', type: :view do
2
4
  let(:exhibit) { stub_model(Spotlight::Exhibit) }
3
5
  let(:page) { stub_model(Spotlight::FeaturePage, exhibit: exhibit) }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/pages/index.html.erb', type: :view do
2
4
  let(:pages) do
3
5
  [
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/pages/new', type: :view do
2
4
  let(:exhibit) { stub_model(Spotlight::Exhibit) }
3
5
  before do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/pages/show', type: :view do
2
4
  let(:exhibit) { stub_model(Spotlight::Exhibit) }
3
5
  let(:page) do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/resources/_external_resources_form.html.erb', type: :view do
2
4
  let(:blacklight_config) { Blacklight::Configuration.new }
3
5
  let(:exhibit) { stub_model(Spotlight::Exhibit) }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/resources/new.html.erb', type: :view do
2
4
  let(:blacklight_config) { Blacklight::Configuration.new }
3
5
  let(:exhibit) { stub_model(Spotlight::Exhibit) }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/roles/index', type: :view do
2
4
  let(:user) { stub_model(Spotlight::Engine.user_class, email: 'jane@example.com') }
3
5
  let(:exhibit) { FactoryBot.create(:exhibit) }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/search_configurations/_facet_metadata', type: :view do
2
4
  before do
3
5
  render partial: 'spotlight/search_configurations/facet_metadata', locals: { metadata: metadata }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/search_configurations/_facets', type: :view do
2
4
  let(:exhibit) { FactoryBot.create(:exhibit) }
3
5
  let!(:custom_field) { FactoryBot.create(:custom_field, exhibit: exhibit, label: 'Foobar', field_type: 'vocab') }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/search_configurations/_search_fields', type: :view do
2
4
  let(:exhibit) { FactoryBot.create(:exhibit) }
3
5
  let(:f) do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/search_configurations/_sort', type: :view do
2
4
  let(:exhibit) { FactoryBot.create(:exhibit) }
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/searches/_search.html.erb', type: :view do
2
4
  let(:search) do
3
5
  FactoryBot.build_stubbed(:search, exhibit: FactoryBot.create(:exhibit),
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/searches/edit.html.erb', type: :view do
2
4
  let(:blacklight_config) do
3
5
  Blacklight::Configuration.new do |config|
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/searches/index.html.erb', type: :view do
2
4
  let(:exhibit) { stub_model(Spotlight::Exhibit) }
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/sir_trevor/blocks/_browse_block.html.erb', type: :view do
2
4
  let(:p) { 'spotlight/sir_trevor/blocks/browse_block.html.erb' }
3
5
  let(:page) { double('Page', display_sidebar?: true) }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/sir_trevor/blocks/_iframe_block.html.erb', type: :view do
2
4
  let(:p) { 'spotlight/sir_trevor/blocks/iframe_block.html.erb' }
3
5
  let(:block) do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/sir_trevor/blocks/_link_to_search_block.html.erb', type: :view do
2
4
  let(:p) { 'spotlight/sir_trevor/blocks/link_to_search_block.html.erb' }
3
5
  let(:page) { double('Page', display_sidebar?: true) }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/sir_trevor/blocks/_rule_block.html.erb', type: :view do
2
4
  let(:p) { 'spotlight/sir_trevor/blocks/rule_block.html.erb' }
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/sir_trevor/blocks/_solr_documents_block.html.erb', type: :view do
2
4
  let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_block.html.erb' }
3
5
  let(:page) { double('Page') }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb', type: :view do
2
4
  let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_carousel_block.html.erb' }
3
5
  let(:block) do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb', type: :view do
2
4
  let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_embed_block.html.erb' }
3
5
  let(:page) { double('Page') }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb', type: :view do
2
4
  let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_features_block.html.erb' }
3
5
  let(:block) do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb', type: :view do
2
4
  let(:p) { 'spotlight/sir_trevor/blocks/solr_documents_grid_block.html.erb' }
3
5
  let(:page) { double('Page') }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/sites/edit_exhibits', type: :view do
2
4
  let!(:exhibit_a) { FactoryBot.create(:exhibit) }
3
5
  let!(:exhibit_b) { FactoryBot.create(:exhibit) }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  describe 'spotlight/tags/index.html.erb', type: :view do
2
4
  let(:exhibit) { FactoryBot.create(:exhibit) }
3
5
  let!(:tag1) { FactoryBot.create(:tagging, tagger: exhibit, taggable: exhibit) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight-spotlight
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-03-12 00:00:00.000000000 Z
14
+ date: 2019-04-18 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -445,14 +445,14 @@ dependencies:
445
445
  requirements:
446
446
  - - "~>"
447
447
  - !ruby/object:Gem::Version
448
- version: '1.0'
448
+ version: '2.0'
449
449
  type: :runtime
450
450
  prerelease: false
451
451
  version_requirements: !ruby/object:Gem::Requirement
452
452
  requirements:
453
453
  - - "~>"
454
454
  - !ruby/object:Gem::Version
455
- version: '1.0'
455
+ version: '2.0'
456
456
  - !ruby/object:Gem::Dependency
457
457
  name: iiif-presentation
458
458
  requirement: !ruby/object:Gem::Requirement
@@ -509,20 +509,6 @@ dependencies:
509
509
  - - ">="
510
510
  - !ruby/object:Gem::Version
511
511
  version: '0'
512
- - !ruby/object:Gem::Dependency
513
- name: i18n
514
- requirement: !ruby/object:Gem::Requirement
515
- requirements:
516
- - - "<"
517
- - !ruby/object:Gem::Version
518
- version: '1.1'
519
- type: :runtime
520
- prerelease: false
521
- version_requirements: !ruby/object:Gem::Requirement
522
- requirements:
523
- - - "<"
524
- - !ruby/object:Gem::Version
525
- version: '1.1'
526
512
  - !ruby/object:Gem::Dependency
527
513
  name: sqlite3
528
514
  requirement: !ruby/object:Gem::Requirement