Skip to content

Commit

Permalink
Update RIIIF to 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne authored and jkeck committed Apr 25, 2018
1 parent e07ec19 commit 5353a1e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/services/spotlight/carrierwave_file_resolver.rb
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion blacklight-spotlight.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,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'
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/spotlight/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5353a1e

Please sign in to comment.