blacklight-spotlight 3.4.3 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 015c3d1d9182c5276e2858501be6398e9b2108f3cf01e4f1929f55186d1367dc
4
- data.tar.gz: a44d6ccf76fe4517e28e2caa1774451b83e3496f99b1b33ace9379e2de761959
3
+ metadata.gz: 688e108f5a003a92db5a4a9308218477f1041ccbe84d57a1c585a2786ca2b585
4
+ data.tar.gz: da0a179127c908fd7da0517158db17b45b4cdcb58e39ef70556fc939dd295590
5
5
  SHA512:
6
- metadata.gz: d96e24ae4b61975d9aa133ffda970fc59b87b89ab912f1b1a9b4900bd4e26be13e0737fd137c1a779a7c540f20bc348f5a2c160fc4efb6c762cab18124e42d54
7
- data.tar.gz: a538e93da018c999c7b5f69cd1f2dc50e6faf3f1b5ee94bf461e4c04cf8a6844d0cf9d648f9f145640368d43c3d9750176fff27698cd8e46a6547ec377c79a8b
6
+ metadata.gz: 345a73cf428dfd0cdd58396267882d6012494ddf1129717c6e1edbbdeb1071ba60e1bc320d97afc9b2d5b397b1a53abd06a55a12a699a5564721ecac453658c8
7
+ data.tar.gz: 17d52b57fa5ffaddc82a50faa5d45c32bcfac99efc9334a71719a0f7a98d3ebb6b8723e04343d04cac7b53787677ae5c342268bbc7f67097a968309ab2bebcb2
data/README.md CHANGED
@@ -19,13 +19,13 @@ Read more about what Spotlight is, our motivations for creating it, and how to i
19
19
  To bootstrap a new Rails application:
20
20
 
21
21
  ```
22
- $ rails new app-name -m https://raw.githubusercontent.com/projectblacklight/spotlight/master/template.rb
22
+ $ rails new app-name -m https://raw.githubusercontent.com/projectblacklight/spotlight/main/template.rb
23
23
  ```
24
24
 
25
25
  or from an existing Rails application:
26
26
 
27
27
  ```
28
- $ rails app:template LOCATION=https://raw.githubusercontent.com/projectblacklight/spotlight/master/template.rb
28
+ $ rails app:template LOCATION=https://raw.githubusercontent.com/projectblacklight/spotlight/main/template.rb
29
29
  ```
30
30
 
31
31
  *During this process you will be prompted to enter an initial administrator email and password (this is a super-admin that can administer any exhibit in the installation).* If you choose not to create one, the first user will be given administrative privileges.
@@ -16,7 +16,11 @@ module Spotlight
16
16
  has_many :groups, through: :group_memberships
17
17
  accepts_nested_attributes_for :group_memberships
18
18
  accepts_nested_attributes_for :groups
19
- serialize :query_params, Hash
19
+ if defined?(Blacklight::SearchParamsYamlCoder)
20
+ serialize :query_params, Blacklight::SearchParamsYamlCoder, default: -> { {} }
21
+ else
22
+ serialize :query_params, Hash
23
+ end
20
24
  default_scope { order('weight ASC') }
21
25
  scope :published, -> { where(published: true) }
22
26
  scope :unpublished, -> { where(published: [nil, false]) }
@@ -8,7 +8,7 @@ module Spotlight
8
8
  # nodes.
9
9
  #
10
10
  # IIIFManifest expects the following methods: #file_set_presenters, #work_presenters, #manifest_url, #description.
11
- # see: https://github.com/projecthydra-labs/iiif_manifest/blob/master/README.md
11
+ # see: https://github.com/projecthydra-labs/iiif_manifest/blob/main/README.md
12
12
  class IiifManifestPresenter
13
13
  require 'iiif_manifest'
14
14
 
@@ -1,5 +1,5 @@
1
- <% if video.source == 'vimeo' %>
2
- <%= render partial: '/spotlight/sir_trevor/blocks/videos/vimeo', vimeo: video %>
3
- <% elsif video.source == 'youtube' %>
4
- <%= render partial: '/spotlight/sir_trevor/blocks/videos/youtube', youtube: video %>
5
- <% end %>
1
+ <% if video_block.source == 'vimeo' %>
2
+ <%= render partial: '/spotlight/sir_trevor/blocks/videos/vimeo', locals: { vimeo: video_block } %>
3
+ <% elsif video_block.source == 'youtube' %>
4
+ <%= render partial: '/spotlight/sir_trevor/blocks/videos/youtube', locals: { youtube: video_block } %>
5
+ <% end %>
@@ -78,7 +78,7 @@ ignore_unused:
78
78
  # TODO Look into these as its unclear
79
79
  - activerecord.models.spotlight.page
80
80
  #- # perhaps removed here? https://github.com/projectblacklight/spotlight/commit/d4fdf04565ab3d648f0cb2a1238d84f262509fcd
81
- - devise.mailer.*.* # Does this even work? https://github.com/projectblacklight/spotlight/blob/master/app/mailers/spotlight/invitation_mailer.rb#L16
81
+ - devise.mailer.*.* # Does this even work? https://github.com/projectblacklight/spotlight/blob/main/app/mailers/spotlight/invitation_mailer.rb#L16
82
82
  - helpers.submit.solr_document.{batch_error,batch_updated,create,created,destroyed,submit,update,updated} # Do we need this?
83
83
  - helpers.submit.user.{batch_error,batch_updated,create,created,destroyed,submit,update,updated} # Do we need this?
84
84
  - helpers.action.destroy # no idea here
@@ -308,5 +308,10 @@ module Spotlight
308
308
  config.assign_default_roles_to_first_user = true
309
309
 
310
310
  config.exhibit_roles = %w[admin curator viewer]
311
+
312
+ if ActiveRecord.respond_to?(:yaml_column_permitted_classes) || ActiveRecord::Base.respond_to?(:yaml_column_permitted_classes)
313
+ config.active_record.yaml_column_permitted_classes ||= []
314
+ config.active_record.yaml_column_permitted_classes += [Symbol, ActiveSupport::HashWithIndifferentAccess]
315
+ end
311
316
  end
312
317
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spotlight
4
- VERSION = '3.4.3'
4
+ VERSION = '3.5.0'
5
5
  end
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: 3.4.3
4
+ version: 3.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: 2022-06-28 00:00:00.000000000 Z
14
+ date: 2022-07-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activejob-status