diff --git a/app/services/spotlight/carrierwave_file_resolver.rb b/app/services/spotlight/carrierwave_file_resolver.rb index adec4fb76..60e98472e 100644 --- a/app/services/spotlight/carrierwave_file_resolver.rb +++ b/app/services/spotlight/carrierwave_file_resolver.rb @@ -1,8 +1,8 @@ module Spotlight # Used by RIIIF to find files uploaded by carrierwave class CarrierwaveFileResolver < Riiif::AbstractFileSystemResolver - # Override initialzer to avoid deprecation about not providing base path - def initializer + # Override initialize to avoid deprecation about not providing base path + def initialize # nop end diff --git a/blacklight-spotlight.gemspec b/blacklight-spotlight.gemspec index 16e8221f1..e97fbbac9 100644 --- a/blacklight-spotlight.gemspec +++ b/blacklight-spotlight.gemspec @@ -50,7 +50,7 @@ these collections.) s.add_dependency 'clipboard-rails', '~> 1.5' s.add_dependency 'almond-rails', '~> 0.1' s.add_dependency 'sprockets-es6' - s.add_dependency 'riiif', '~> 1.0' + s.add_dependency 'riiif', '~> 2.0' s.add_dependency 'iiif-presentation' s.add_dependency 'iiif_manifest' s.add_dependency 'leaflet-rails' diff --git a/lib/generators/spotlight/install_generator.rb b/lib/generators/spotlight/install_generator.rb index 6850eb251..403bae453 100644 --- a/lib/generators/spotlight/install_generator.rb +++ b/lib/generators/spotlight/install_generator.rb @@ -24,7 +24,7 @@ def friendly_id end def riiif - gem 'riiif', '~> 1.0' + gem 'riiif', '~> 2.0' route "mount Riiif::Engine => '/images', as: 'riiif'" copy_file 'config/initializers/riiif.rb' end diff --git a/lib/generators/spotlight/templates/config/initializers/riiif.rb b/lib/generators/spotlight/templates/config/initializers/riiif.rb index 4d550b10c..090a874a1 100644 --- a/lib/generators/spotlight/templates/config/initializers/riiif.rb +++ b/lib/generators/spotlight/templates/config/initializers/riiif.rb @@ -4,4 +4,4 @@ # Riiif.not_found_image = 'app/assets/images/us_404.svg' # -Riiif::Engine.config.cache_duration_in_days = 365 +Riiif::Engine.config.cache_duration = 365.days