Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to spotlight 2.2.1 #293

Merged
merged 2 commits into from
Apr 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
### 2.2.1 (2020-04-05)

* spotlight version updated to v2.2.1
* fixes an issue where show fields were not showing up as sorted in the metadata administrator panel.

### 2.2.0 (2020-04-05)

* spotlight version updated to v2.2.0
* make several changes to fix the build, including updating our Rubocop todo, and requiring i18n < 1.1 as i18n introduced a backwards incompatible change with Rails (rails/rails#33574)
* Updates our CI to build with Rails 5.2.1
* adds new locale files for Chinese and Italian languages
* Update the PaperTrails versions table to be larger to accommodate large Spotlight::Page
* Uses textarea for free form text input

### 2.1.0 (2020-04-05)

* spotlight version updated to v2.1.0
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ gem 'uglifier', '~> 4.2'
gem 'blacklight', ' ~> 6.14.0'
gem 'blacklight-gallery', '>= 0.12.0'
gem 'blacklight-oembed', '>= 0.3.0'
gem 'blacklight-spotlight', '= 2.1.0'
gem 'blacklight-spotlight', '= 2.2.1'
gem 'bootstrap-sass', '~> 3.3.6'
gem 'devise'
gem 'devise-guests', '~> 0.7'
Expand Down
9 changes: 5 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ GEM
bootstrap-sass (~> 3.0)
rails
ruby-oembed
blacklight-spotlight (2.1.0)
blacklight-spotlight (2.2.1)
acts-as-taggable-on (>= 5.0, < 7)
almond-rails (~> 0.1)
autoprefixer-rails
Expand All @@ -115,6 +115,7 @@ GEM
faraday_middleware
friendly_id (~> 5.2)
github-markup
i18n (< 1.1)
i18n-active_record
iiif-presentation
iiif_manifest
Expand Down Expand Up @@ -205,7 +206,7 @@ GEM
github-markup (3.0.4)
globalid (0.4.2)
activesupport (>= 4.2.0)
i18n (1.8.2)
i18n (1.0.1)
concurrent-ruby (~> 1.0)
i18n-active_record (0.4.0)
i18n (>= 0.5.0)
Expand Down Expand Up @@ -244,7 +245,7 @@ GEM
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
loofah (2.4.0)
loofah (2.5.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
Expand Down Expand Up @@ -484,7 +485,7 @@ DEPENDENCIES
blacklight (~> 6.14.0)
blacklight-gallery (>= 0.12.0)
blacklight-oembed (>= 0.3.0)
blacklight-spotlight (= 2.1.0)
blacklight-spotlight (= 2.2.1)
bootstrap-sass (~> 3.3.6)
byebug
carrierwave-aws
Expand Down
4 changes: 2 additions & 2 deletions app/views/shared/_footer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="container">
<p>©2020 Cornell University Library / (607) 255-4144 / <a href="http://www.library.cornell.edu/privacy">Privacy</a></p>
<p><small><a href="https://cul-it.github.io/exhibits-library-cornell-edu/">Spotlight help</a></small></p>
<p class="text-muted version"><small>Cornell Exhibits v2.1.0</small></p>
<p class="text-muted version"><small>Spotlight v2.1.0</small></p>
<p class="text-muted version"><small>Cornell Exhibits v2.2.1</small></p>
<p class="text-muted version"><small>Spotlight v2.2.1</small></p>
</div>
</footer>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
##
# A migration that updates the object column size on PaperTrail's version table
# This is in a generator template because our migrations run before PaperTrail is installed
class ChangePaperTrailVersionsObjectColumnToMediumText < ActiveRecord::Migration[5.1]
# See https://github.com/paper-trail-gem/paper_trail/blob/6c34a3dd5a5f8c1b042f458b7727c9d3bbf81a50/lib/generators/paper_trail/install/templates/create_versions.rb.erb#L5-L17
# for rationale of the 1,073,741,823 byte limit

def change
change_column :versions, :object, :text, limit: 1_073_741_823
end
end