blacklight-spotlight 3.0.0.rc6 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/spotlight/admin/blocks/block.js +4 -0
  3. data/app/controllers/spotlight/pages_controller.rb +3 -2
  4. data/app/jobs/spotlight/process_bulk_updates_csv_job.rb +1 -1
  5. data/app/jobs/spotlight/reindex_exhibit_job.rb +9 -1
  6. data/app/models/sir_trevor_rails/blocks/browse_block.rb +1 -1
  7. data/app/models/sir_trevor_rails/blocks/featured_pages_block.rb +1 -1
  8. data/app/models/spotlight/featured_image.rb +33 -0
  9. data/app/models/spotlight/search.rb +3 -1
  10. data/app/views/layouts/spotlight/base.html.erb +2 -1
  11. data/app/views/shared/_body_preamble.html.erb +0 -0
  12. data/app/views/shared/_footer.html.erb +0 -1
  13. data/app/views/shared/_masthead.html.erb +1 -1
  14. data/app/views/shared/_user_util_links.html.erb +8 -2
  15. data/app/views/spotlight/about_pages/_sidebar.html.erb +2 -2
  16. data/app/views/spotlight/browse/_search.html.erb +3 -3
  17. data/app/views/spotlight/browse/_search_title.html.erb +1 -1
  18. data/app/views/spotlight/feature_pages/_sidebar.html.erb +1 -1
  19. data/app/views/spotlight/pages/_order_pages.html.erb +2 -2
  20. data/app/views/spotlight/pages/show.html.erb +1 -1
  21. data/app/views/spotlight/sir_trevor/blocks/_search_results_block.html.erb +2 -1
  22. data/db/migrate/20210506070809_add_indexes_for_featured_images.rb +9 -0
  23. data/lib/generators/spotlight/install_generator.rb +16 -7
  24. data/lib/spotlight/version.rb +1 -1
  25. data/spec/examples.txt +1499 -1496
  26. data/spec/factories/bulk_updates.rb +6 -0
  27. data/spec/features/javascript/blocks/search_result_block_spec.rb +1 -1
  28. data/spec/features/report_a_problem_spec.rb +1 -0
  29. data/spec/fixtures/iiif_responses.rb +81 -81
  30. data/spec/fixtures/updated-bulk-update-template-no-cols.csv +4 -0
  31. data/spec/jobs/spotlight/process_bulk_updates_csv_job_spec.rb +8 -0
  32. data/spec/models/spotlight/access_controls_enforcement_search_builder_spec.rb +1 -2
  33. data/spec/models/spotlight/featured_image_spec.rb +12 -0
  34. data/spec/models/spotlight/page_configurations_spec.rb +2 -2
  35. data/spec/test_app_templates/catalog_controller.rb +0 -1
  36. data/spec/views/spotlight/pages/show.html.erb_spec.rb +16 -6
  37. metadata +12 -10
  38. data/spec/views/shared/_footer.html.erb_spec.rb +0 -15
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight-spotlight
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.rc6
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
8
8
  - Jessie Keck
9
9
  - Gary Geisler
10
10
  - Justin Coyne
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2021-04-28 00:00:00.000000000 Z
14
+ date: 2021-06-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activejob-status
@@ -867,7 +867,7 @@ dependencies:
867
867
  - - ">="
868
868
  - !ruby/object:Gem::Version
869
869
  version: '0'
870
- description:
870
+ description:
871
871
  email:
872
872
  - exhibits-feedback@lists.stanford.edu
873
873
  executables: []
@@ -1191,6 +1191,7 @@ files:
1191
1191
  - app/views/layouts/spotlight/spotlight.html.erb
1192
1192
  - app/views/shared/_about_navbar.html.erb
1193
1193
  - app/views/shared/_analytics.html.erb
1194
+ - app/views/shared/_body_preamble.html.erb
1194
1195
  - app/views/shared/_breadcrumbs.html.erb
1195
1196
  - app/views/shared/_browse_navbar.html.erb
1196
1197
  - app/views/shared/_curated_features_navbar.html.erb
@@ -1458,6 +1459,7 @@ files:
1458
1459
  - db/migrate/20210305070001_remove_class_from_sirtrevor_image_blocks.rb
1459
1460
  - db/migrate/20210305171150_create_bulk_updates.rb
1460
1461
  - db/migrate/20210308090000_migrate_caption_values_for_title_key.rb
1462
+ - db/migrate/20210506070809_add_indexes_for_featured_images.rb
1461
1463
  - lib/blacklight/spotlight.rb
1462
1464
  - lib/generators/spotlight/install_generator.rb
1463
1465
  - lib/generators/spotlight/scaffold_resource_generator.rb
@@ -1608,6 +1610,7 @@ files:
1608
1610
  - spec/fixtures/iiif_responses.rb
1609
1611
  - spec/fixtures/json-upload-fixture.json
1610
1612
  - spec/fixtures/sample_solr_documents.yml
1613
+ - spec/fixtures/updated-bulk-update-template-no-cols.csv
1611
1614
  - spec/fixtures/updated-bulk-update-template-w-tags.csv
1612
1615
  - spec/fixtures/updated-bulk-update-template.csv
1613
1616
  - spec/helpers/spotlight/application_helper_spec.rb
@@ -1723,7 +1726,6 @@ files:
1723
1726
  - spec/uploaders/spotlight/featured_image_uploader_spec.rb
1724
1727
  - spec/views/shared/_analytics.html.erb_spec.rb
1725
1728
  - spec/views/shared/_exhibit_navbar.html.erb_spec.rb
1726
- - spec/views/shared/_footer.html.erb_spec.rb
1727
1729
  - spec/views/shared/_header_navbar.html.erb_spec.rb
1728
1730
  - spec/views/shared/_masthead.html.erb_spec.rb
1729
1731
  - spec/views/shared/_user_util_links.html.erb_spec.rb
@@ -1818,7 +1820,7 @@ files:
1818
1820
  homepage: https://github.com/projectblacklight/spotlight
1819
1821
  licenses: []
1820
1822
  metadata: {}
1821
- post_install_message:
1823
+ post_install_message:
1822
1824
  rdoc_options: []
1823
1825
  require_paths:
1824
1826
  - lib
@@ -1829,12 +1831,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
1829
1831
  version: '2.6'
1830
1832
  required_rubygems_version: !ruby/object:Gem::Requirement
1831
1833
  requirements:
1832
- - - ">"
1834
+ - - ">="
1833
1835
  - !ruby/object:Gem::Version
1834
- version: 1.3.1
1836
+ version: '0'
1835
1837
  requirements: []
1836
1838
  rubygems_version: 3.2.3
1837
- signing_key:
1839
+ signing_key:
1838
1840
  specification_version: 4
1839
1841
  summary: Enable librarians, curators, and others who are responsible for digital collections
1840
1842
  to create attractive, feature-rich websites that feature these collections.
@@ -1967,6 +1969,7 @@ test_files:
1967
1969
  - spec/fixtures/iiif_responses.rb
1968
1970
  - spec/fixtures/json-upload-fixture.json
1969
1971
  - spec/fixtures/sample_solr_documents.yml
1972
+ - spec/fixtures/updated-bulk-update-template-no-cols.csv
1970
1973
  - spec/fixtures/updated-bulk-update-template-w-tags.csv
1971
1974
  - spec/fixtures/updated-bulk-update-template.csv
1972
1975
  - spec/helpers/spotlight/application_helper_spec.rb
@@ -2082,7 +2085,6 @@ test_files:
2082
2085
  - spec/uploaders/spotlight/featured_image_uploader_spec.rb
2083
2086
  - spec/views/shared/_analytics.html.erb_spec.rb
2084
2087
  - spec/views/shared/_exhibit_navbar.html.erb_spec.rb
2085
- - spec/views/shared/_footer.html.erb_spec.rb
2086
2088
  - spec/views/shared/_header_navbar.html.erb_spec.rb
2087
2089
  - spec/views/shared/_masthead.html.erb_spec.rb
2088
2090
  - spec/views/shared/_user_util_links.html.erb_spec.rb
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- describe 'shared/_footer', type: :view do
4
- let(:current_exhibit) { double(title: 'Some title', subtitle: 'Subtitle') }
5
-
6
- before do
7
- allow(view).to receive_messages(current_exhibit: current_exhibit)
8
- end
9
-
10
- it 'includes analytics reporting' do
11
- stub_template 'shared/_analytics.html.erb' => 'analytics'
12
- render
13
- expect(rendered).to have_content 'analytics'
14
- end
15
- end