blacklight-gallery 1.6.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +22 -5
  3. data/README.md +1 -1
  4. data/app/assets/images/blacklight/pause_slideshow.svg +1 -0
  5. data/app/assets/images/blacklight/start_slideshow.svg +1 -0
  6. data/app/assets/javascripts/blacklight_gallery/slideshow.js +10 -6
  7. data/app/assets/stylesheets/blacklight_gallery/_gallery.scss +4 -17
  8. data/app/assets/stylesheets/blacklight_gallery/_masonry.scss +3 -3
  9. data/app/assets/stylesheets/blacklight_gallery/_osd_viewer.scss +2 -2
  10. data/app/assets/stylesheets/blacklight_gallery/_slideshow.scss +6 -0
  11. data/app/views/catalog/_document_gallery.html.erb +1 -1
  12. data/app/views/catalog/_document_masonry.html.erb +1 -1
  13. data/app/views/catalog/_document_slideshow.html.erb +0 -4
  14. data/app/views/catalog/_grid_slideshow.html.erb +1 -1
  15. data/app/views/catalog/_index_gallery.html.erb +8 -2
  16. data/app/views/catalog/_index_masonry.html.erb +1 -1
  17. data/app/views/catalog/_index_slideshow.html.erb +1 -1
  18. data/app/views/catalog/_openseadragon_default.html.erb +14 -15
  19. data/app/views/catalog/_slideshow.html.erb +10 -2
  20. data/app/views/catalog/_slideshow_modal.html.erb +2 -1
  21. data/blacklight-gallery.gemspec +2 -2
  22. data/config/locales/blacklight-gallery.ar.yml +8 -4
  23. data/config/locales/blacklight-gallery.en.yml +6 -2
  24. data/config/locales/blacklight-gallery.es.yml +3 -2
  25. data/config/locales/blacklight-gallery.fr.yml +3 -2
  26. data/config/locales/blacklight-gallery.it.yml +3 -2
  27. data/config/locales/blacklight-gallery.pt-BR.yml +3 -0
  28. data/config/locales/blacklight-gallery.zh.yml +3 -2
  29. data/lib/blacklight/gallery/engine.rb +0 -1
  30. data/lib/blacklight/gallery/version.rb +1 -1
  31. data/lib/generators/blacklight_gallery/install_generator.rb +1 -0
  32. data/spec/views/catalog/_index_gallery.html.erb_spec.rb +1 -1
  33. data/spec/views/catalog/_index_masonry.html.erb_spec.rb +3 -0
  34. metadata +15 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14925720da8a37bde4f1e05a13ff9063898600c81887dd30ef6294a46762b8bf
4
- data.tar.gz: 5e9ccf945bf9e2c495d5babfa85144d60a5ec5f58a068e7e987631e43f5176e6
3
+ metadata.gz: d4078c05e9420ccca75758be7fac8ccb01a4a512d8931f629c683bce2572b739
4
+ data.tar.gz: a68b999ad88d7f80760a70acfd86f897cebe7d1c48744b893cb78fe85f567458
5
5
  SHA512:
6
- metadata.gz: af850e569c98cc5b4797262b01be871d3b9136173be1281618e09d6f3ffb3b35bd537002df36911718e3671f79d4bd434f4a33e190e757544c701b92ee9460bd
7
- data.tar.gz: 571fe4f304a47dfda6f58b720d7878ee192f94b0d0cf1ab1ae24d2b9d4da0b15b241165ae175e22530e5ef628b535ba839693e17bd6fabef36d334eb7203ba8f
6
+ metadata.gz: '08669e46871077bba5222f7531675089ad2ad947a1a8ca366c041f220d01a960c5932475e250bcb43b5b9c04c83d8ffd08bb5a82a8db888533c6b13f21b31d73'
7
+ data.tar.gz: 2dab16fdf85d599cf8a5cd05ff6c8b81e77436c59123d3b392bbc4dc01a04195d35c21f22728ba82a0ec5841f16b6e991b31b726e01239441ddb62493c6e8de0
@@ -1,13 +1,16 @@
1
1
  language: ruby
2
2
  sudo: false
3
+ dist: bionic
4
+
5
+ addons:
6
+ chrome: stable
7
+
8
+ before_install:
9
+ - google-chrome-stable --headless --disable-gpu --no-sandbox --remote-debugging-port=9222 http://localhost &
3
10
 
4
11
  notifications:
5
12
  email: false
6
13
 
7
- rvm:
8
- - 2.5.3
9
- - 2.6.0
10
-
11
14
  notifications:
12
15
  irc: "irc.freenode.org#blacklight"
13
16
  email:
@@ -16,6 +19,20 @@ notifications:
16
19
  env:
17
20
  global:
18
21
  - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
19
- - RAILS_VERSION='5.2.3'
22
+ - ENGINE_CART_RAILS_OPTIONS='--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
23
+
24
+ matrix:
25
+ include:
26
+ - rvm: 2.7.1
27
+ env: "RAILS_VERSION=6.0.3.1"
28
+ - rvm: 2.6.6
29
+ env: "RAILS_VERSION=6.0.3.1"
30
+ - rvm: 2.6.6
31
+ env: "RAILS_VERSION=5.2.4.3"
32
+ - rvm: 2.5.8
33
+ env: "RAILS_VERSION=5.2.4.3"
34
+ - rvm: 2.4.9
35
+ env: "RAILS_VERSION=5.2.4.3"
36
+ fast_finish: true
20
37
 
21
38
  jdk: openjdk11
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Blacklight::Gallery
2
- [![Gem Version](https://badge.fury.io/rb/blacklight-gallery.svg)](http://badge.fury.io/rb/blacklight-gallery)
2
+ [![Gem Version](https://badge.fury.io/rb/blacklight-gallery.svg)](http://badge.fury.io/rb/blacklight-gallery) [![Build Status](https://travis-ci.org/projectblacklight/blacklight-gallery.svg?branch=master)](https://travis-ci.org/projectblacklight/blacklight-gallery)
3
3
 
4
4
  Gallery views for Blacklight search results
5
5
 
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"></path></svg
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z"></path></svg>
@@ -72,12 +72,16 @@
72
72
  var $img = this.$element.find('.frame img'),
73
73
  _this = this;
74
74
 
75
- // pause slideshow on image mouseenter event
76
- $img.on('mouseenter', function() { _this.pause(); });
75
+ $(document).on('click', '[data-behavior="pause-slideshow"]', function(e) {
76
+ e.preventDefault();
77
+
78
+ _this.pause();
79
+ });
80
+
81
+ $(document).on('click', '[data-behavior="start-slideshow"]', function(e) {
82
+ e.preventDefault();
77
83
 
78
- // play slideshow on image mouseleave event
79
- $img.on('mouseleave', function() {
80
- if (_this.options.autoPlay) _this.play();
84
+ _this.play();
81
85
  });
82
86
 
83
87
  $(document).on('click', '[data-slide], [data-slide-to]', function(e) {
@@ -99,7 +103,7 @@
99
103
 
100
104
 
101
105
  Slideshow.DEFAULTS = {
102
- autoPlay: true,
106
+ autoPlay: false,
103
107
  interval: 5000 // in milliseconds
104
108
  }
105
109
 
@@ -1,23 +1,7 @@
1
1
  .gallery {
2
-
3
- display: -webkit-box;
4
- display: -moz-box;
5
- display: -ms-flexbox;
6
- display: -webkit-flex;
7
- display: flex;
8
- flex-flow: row wrap;
9
- -webkit-flex-wrap: wrap;
10
-
11
-
12
2
  .document {
13
3
  border-bottom: none;
14
4
 
15
- -webkit-box-flex: 1;
16
- -moz-box-flex: 1;
17
- -ms-flex: 1;
18
- flex: 1;
19
-
20
- min-width: 250px;
21
5
  min-height: 250px;
22
6
  -webkit-flex: 1 0 250px;
23
7
  }
@@ -45,8 +29,11 @@
45
29
  clear: none;
46
30
  text-align: left;
47
31
  margin: 0;
48
- padding: 0;
49
32
  }
50
33
 
51
34
  }
52
35
  }
36
+
37
+ #documents .gallery, .masonry-gallery, .slideshow-documents {
38
+ border-bottom: $pagination-border-width solid $pagination-border-color
39
+ }
@@ -6,11 +6,11 @@
6
6
  background-color: $gray-300;
7
7
  min-height: 70px;
8
8
 
9
- .thumbnail {
10
- border: 0;
9
+ .img-thumbnail {
10
+ border-radius: 0;
11
11
  padding: 0;
12
- margin-bottom: 0;
13
12
  }
13
+
14
14
  .caption {
15
15
  &:first-child { display: block; } // To display captions when there is no image
16
16
  a {
@@ -1,4 +1,4 @@
1
- #document {
1
+ .openseadragon-container {
2
2
 
3
3
  .osd-toolbar {
4
4
  padding: 5px 0;
@@ -26,4 +26,4 @@
26
26
  height: 400px;
27
27
 
28
28
  }
29
- }
29
+ }
@@ -93,6 +93,12 @@ $gray-dark: #343a40 !default;
93
93
  padding: 4px 10px;
94
94
  text-align: center;
95
95
  }
96
+
97
+ .controls {
98
+ svg {
99
+ fill: $gray-light;
100
+ }
101
+ }
96
102
  }
97
103
 
98
104
  .slideshow-documents {
@@ -1,4 +1,4 @@
1
1
  <% # container for all documents in index view -%>
2
- <div id="documents" class="row gallery">
2
+ <div id="documents" class="gallery row <%= blacklight_config.view_config(:gallery).classes || 'row-cols-2 row-cols-md-3' %>">
3
3
  <%= render_gallery_collection documents %>
4
4
  </div>
@@ -1,4 +1,4 @@
1
1
  <% # container for all documents in index view -%>
2
- <div id="documents" class="row" data-behavior="masonry-gallery">
2
+ <div id="documents" class="row masonry-gallery" data-behavior="masonry-gallery">
3
3
  <%= render collection: documents, as: :document, partial: 'index_masonry', locals: {count: documents.count} %>
4
4
  </div>
@@ -1,9 +1,5 @@
1
1
  <% # container for all documents in slideshow view -%>
2
2
  <div id="documents" class="row slideshow-documents">
3
- <div class="info w-100">
4
- <h3><%= t(:'blacklight_gallery.catalog.document_slideshow.header') %></h3>
5
- </div>
6
-
7
3
  <div class="grid">
8
4
  <%= render collection: documents, as: :document, partial: 'grid_slideshow' %>
9
5
  </div>
@@ -2,7 +2,7 @@
2
2
  <div class="thumbnail">
3
3
  <%= link_to '#', data: { :'slide-to' => document_counter, toggle: "modal", target: "#slideshow-modal" } do %>
4
4
  <% if thumbnail_url(document) %>
5
- <%= image_tag thumbnail_url(document), class: 'img-thumbnail' %>
5
+ <%= image_tag thumbnail_url(document), class: 'img-thumbnail', alt: index_presenter(document).heading %>
6
6
  <% else %>
7
7
  <%= t('.missing_image', scope: [:blacklight_gallery]) %>
8
8
  <% end %>
@@ -1,6 +1,12 @@
1
- <div class="document col-6 col-md-4">
1
+ <div class="document col">
2
2
  <div class="thumbnail">
3
- <%= render_thumbnail_tag(document, { class: 'img-thumbnail' }, :counter => document_counter_with_offset(document_counter)) %>
3
+ <%= render_thumbnail_tag(
4
+ document,
5
+ { class: 'img-thumbnail', alt: '' },
6
+ counter: document_counter_with_offset(document_counter),
7
+ 'aria-hidden': true,
8
+ tabindex: -1
9
+ ) %>
4
10
  <div class="caption">
5
11
  <%= render_document_partials document, blacklight_config.view_config(:gallery).partials, :document_counter => document_counter %>
6
12
  </div>
@@ -1,6 +1,6 @@
1
1
  <div class="masonry document col-6 col-md-3">
2
2
  <div class="thumbnail">
3
- <%= render_thumbnail_tag(document, { class: 'img-thumbnail' }, counter: document_counter_with_offset(document_counter)) %>
3
+ <%= render_thumbnail_tag(document, { class: 'img-thumbnail', alt: index_presenter(document).heading }, counter: document_counter_with_offset(document_counter)) %>
4
4
  <div class="caption">
5
5
  <%= render_document_partials document, blacklight_config.view_config(:masonry).partials, :document_counter => document_counter %>
6
6
  </div>
@@ -1,6 +1,6 @@
1
1
  <div class="item<%= ' active' if document_counter == 0 %>">
2
2
  <div class="frame">
3
- <%= render_slideshow_tag(document) %>
3
+ <%= render_slideshow_tag(document, { alt: '' }) %>
4
4
  <div class="caption">
5
5
  <%= index_presenter(document).label(document_show_link_field(document)) %>
6
6
  </div>
@@ -23,21 +23,20 @@
23
23
  <% count = Array(image).length %>
24
24
  <div class="openseadragon-container <%= osd_container_class %>">
25
25
  <div class="osd-toolbar row">
26
- <% if count > 1 %>
27
- <% osd_config = osd_config_referencestrip.merge(osd_config) %>
28
-
29
- <div class="col-md-6 pagination">
30
- <a id="osd-previous"><%= blacklight_icon('chevron_left') %></a>
31
- <span id="osd-page">1</span> of <%= count %>
32
- <a id="osd-next"><%= blacklight_icon('chevron_right') %></a>
33
- </div>
34
- <% end %>
35
- <div class="col-md-6 controls">
36
- <a id="osd-zoom-in"><%= blacklight_icon('add_circle') %></a>
37
- <a id="osd-zoom-out"><%= blacklight_icon('remove_circle') %></a>
38
- <a id="osd-home"><%= blacklight_icon('resize_small') %></a>
39
- <a id="osd-full-page"><%= blacklight_icon('custom_fullscreen') %></a>
40
- </div>
26
+ <div class="col-md-6 pagination">
27
+ <% if count > 1 %>
28
+ <% osd_config = osd_config_referencestrip.merge(osd_config) %>
29
+ <a id="osd-previous"><%= blacklight_icon('chevron_left') %></a>
30
+ <span id="osd-page">1</span> of <%= count %>
31
+ <a id="osd-next"><%= blacklight_icon('chevron_right') %></a>
32
+ <% end %>
33
+ </div>
34
+ <div class="col-md-6 controls">
35
+ <a id="osd-zoom-in"><%= blacklight_icon('add_circle') %></a>
36
+ <a id="osd-zoom-out"><%= blacklight_icon('remove_circle') %></a>
37
+ <a id="osd-home"><%= blacklight_icon('resize_small') %></a>
38
+ <a id="osd-full-page"><%= blacklight_icon('custom_fullscreen') %></a>
39
+ </div>
41
40
  </div>
42
41
  <%= openseadragon_picture_tag image, class: 'osd-image row', data: { openseadragon: osd_config } %>
43
42
  </div>
@@ -6,10 +6,18 @@
6
6
 
7
7
  <!-- Controls -->
8
8
  <a class="left carousel-control prev" href="#slideshow" data-slide="prev">
9
- <%= blacklight_icon 'chevron_left' %>
9
+ <%= blacklight_icon 'chevron_left', { additional_options: { label_context: 'previous_image' }} %>
10
10
  </a>
11
11
  <a class="right carousel-control next" href="#slideshow" data-slide="next">
12
- <%= blacklight_icon 'chevron_right' %>
12
+ <%= blacklight_icon 'chevron_right', { additional_options: { label_context: 'next_image' }} %>
13
13
  </a>
14
14
 
15
+ <div class="controls text-center">
16
+ <button class="btn btn-sm btn-link" data-behavior="pause-slideshow" aria-label="<%= t('blacklight_gallery.catalog.slideshow.pause') %>">
17
+ <%= blacklight_icon 'pause_slideshow' %>
18
+ </button>
19
+ <button class="btn btn-sm btn-link" data-behavior="start-slideshow" aria-label="<%= t('blacklight_gallery.catalog.slideshow.start') %>">
20
+ <%= blacklight_icon 'start_slideshow' %>
21
+ </button>
22
+ </div>
15
23
  </div>
@@ -4,7 +4,8 @@
4
4
  <div class="modal-content">
5
5
  <div class="modal-header">
6
6
  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
7
- ×
7
+ <span class="sr-only">close</span>
8
+ <span aria-hidden="true">×</span>
8
9
  </button>
9
10
  </div>
10
11
  <div class="modal-body">
@@ -17,8 +17,8 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_dependency "rails", '~> 5.1'
21
- spec.add_dependency 'blacklight', '~> 7.0'
20
+ spec.add_dependency "rails", '>= 5.1', '< 7'
21
+ spec.add_dependency 'blacklight', '~> 7.7'
22
22
  spec.add_dependency "bootstrap", "~> 4.0"
23
23
  spec.add_dependency "openseadragon", ">= 0.2.0"
24
24
 
@@ -1,15 +1,19 @@
1
1
  ar:
2
2
  blacklight:
3
+ icon:
4
+ chevron_left_previous_image: 'الصورة السابقة'
5
+ chevron_right_next_image: 'الصورة التالية'
3
6
  search:
4
7
  view:
5
8
  gallery: "معرض الصور"
6
- slideshow: "عرض متتابع"
9
+ slideshow: "عرض الصور"
7
10
  masonry: "عرض الصور كمجموعة"
8
11
  blacklight_gallery:
9
12
  catalog:
10
13
  grid_slideshow:
11
- missing_image: "صورة غير موجودة"
12
- document_slideshow:
13
- header: "حدد صورة لبدء العرض المتتابع"
14
+ missing_image: 'غير موجود'
14
15
  modal_slideshow:
15
16
  counter: "%{counter} من %{count}"
17
+ slideshow:
18
+ pause: وقف عرض الصور
19
+ start: بدء عرض الصور
@@ -1,5 +1,8 @@
1
1
  en:
2
2
  blacklight:
3
+ icon:
4
+ chevron_left_previous_image: 'previous image'
5
+ chevron_right_next_image: 'next image'
3
6
  search:
4
7
  view:
5
8
  gallery: "Gallery"
@@ -9,7 +12,8 @@ en:
9
12
  catalog:
10
13
  grid_slideshow:
11
14
  missing_image: 'Missing'
12
- document_slideshow:
13
- header: "Select an image to start the slideshow"
14
15
  modal_slideshow:
15
16
  counter: "%{counter} of %{count}"
17
+ slideshow:
18
+ pause: Pause slideshow
19
+ start: Start slideshow
@@ -9,7 +9,8 @@ es:
9
9
  catalog:
10
10
  grid_slideshow:
11
11
  missing_image: No hay nada
12
- document_slideshow:
13
- header: Selecione una imagen para empezar
14
12
  modal_slideshow:
15
13
  counter: "%{counter} de %{count}"
14
+ slideshow:
15
+ pause: Pausa la Diapositivas
16
+ start: Empezar la Diapositivas
@@ -9,7 +9,8 @@ fr:
9
9
  catalog:
10
10
  grid_slideshow:
11
11
  missing_image: 'Image manquante'
12
- document_slideshow:
13
- header: "Sélectionnez une image pour lancer le diaporama"
14
12
  modal_slideshow:
15
13
  counter: "%{counter} de %{count}"
14
+ slideshow:
15
+ pause: Suspendre le diaporama
16
+ start: Lancer le diaporama
@@ -9,7 +9,8 @@ it:
9
9
  catalog:
10
10
  grid_slideshow:
11
11
  missing_image: 'Mancante'
12
- document_slideshow:
13
- header: "Seleziona un immagine per l'avvio del slideshow"
14
12
  modal_slideshow:
15
13
  counter: "%{counter} di %{count}"
14
+ slideshow:
15
+ pause: Pausa del slideshow
16
+ start: Avvia del slideshow
@@ -13,3 +13,6 @@ pt-BR:
13
13
  header: "Selecione uma imagem para iniciar a apresentação de slides"
14
14
  modal_slideshow:
15
15
  counter: "%{counter} de %{count}"
16
+ slideshow:
17
+ pause: Pausar a apresentação de slides
18
+ start: Iniciar a apresentação de slides
@@ -9,7 +9,8 @@ zh:
9
9
  catalog:
10
10
  grid_slideshow:
11
11
  missing_image: '图片缺失'
12
- document_slideshow:
13
- header: '选择图片启动幻灯展示'
14
12
  modal_slideshow:
15
13
  counter: "%{counter} of %{count}"
14
+ slideshow:
15
+ pause: 暂停幻灯片展示
16
+ start: 启动幻灯片展示
@@ -4,7 +4,6 @@ module Blacklight
4
4
  module Gallery
5
5
  class Engine < Rails::Engine
6
6
  require 'openseadragon'
7
-
8
7
  end
9
8
  end
10
9
  end
@@ -1,5 +1,5 @@
1
1
  module Blacklight
2
2
  module Gallery
3
- VERSION = "1.6.0"
3
+ VERSION = "2.1.0"
4
4
  end
5
5
  end
@@ -13,6 +13,7 @@ module BlacklightGallery
13
13
  def configuration
14
14
  inject_into_file 'app/controllers/catalog_controller.rb', after: "configure_blacklight do |config|" do
15
15
  "\n config.view.gallery.partials = [:index_header, :index]" \
16
+ "\n # config.view.gallery.classes = 'row-cols-2 row-cols-md-3'" \
16
17
  "\n config.view.masonry.partials = [:index]" \
17
18
  "\n config.view.slideshow.partials = [:index]\n\n" \
18
19
  "\n config.show.tile_source_field = :content_metadata_image_iiif_info_ssm" \
@@ -13,7 +13,7 @@ describe "catalog/_index_gallery.html.erb", :type => :view do
13
13
  end
14
14
 
15
15
  it "should have thumbnail and caption" do
16
- expect(view).to receive(:render_thumbnail_tag).with(document, { class: 'img-thumbnail' }, hash_including(:counter)).and_return('Thumbnail')
16
+ expect(view).to receive(:render_thumbnail_tag).with(document, { class: 'img-thumbnail', alt: '' }, hash_including(:counter)).and_return('Thumbnail')
17
17
  expect(view).to receive(:render_document_partials).with(document, ['a', 'b'], document_counter: 3).and_return('Z')
18
18
  render
19
19
  expect(rendered).to have_selector '.thumbnail', text: 'Thumbnail'
@@ -3,8 +3,10 @@ require 'spec_helper'
3
3
  describe "catalog/_document_masonry.html.erb", :type => :view do
4
4
  let(:blacklight_config) { Blacklight::Configuration.new }
5
5
  let(:documents) { [stub_model(::SolrDocument), stub_model(::SolrDocument)] }
6
+ let(:presenter) { instance_double(Blacklight::IndexPresenter, heading: 'xyz')}
6
7
  before do
7
8
  allow(view).to receive_messages(blacklight_config: blacklight_config)
9
+ allow(view).to receive_messages(index_presenter: presenter)
8
10
  allow(view).to receive_messages(documents: documents)
9
11
  allow(view).to receive_messages(document_counter: 1)
10
12
  allow(view).to receive_messages(document_counter_with_offset: 1)
@@ -23,6 +25,7 @@ describe "catalog/_document_masonry.html.erb", :type => :view do
23
25
 
24
26
  it 'should render the thumbnail' do
25
27
  expect(rendered).to have_css('.thumbnail', text: 'Thumbnail')
28
+ expect(view).to have_received(:render_thumbnail_tag).with(documents.first, { class: 'img-thumbnail', alt: 'xyz' }, counter: 1)
26
29
  end
27
30
 
28
31
  it 'should render the caption' do
metadata CHANGED
@@ -1,43 +1,49 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight-gallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-04 00:00:00.000000000 Z
11
+ date: 2020-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '5.1'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '7'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '5.1'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '7'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: blacklight
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '7.0'
39
+ version: '7.7'
34
40
  type: :runtime
35
41
  prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
44
  - - "~>"
39
45
  - !ruby/object:Gem::Version
40
- version: '7.0'
46
+ version: '7.7'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: bootstrap
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -240,9 +246,11 @@ files:
240
246
  - app/assets/images/blacklight/custom_fullscreen.svg
241
247
  - app/assets/images/blacklight/gallery.svg
242
248
  - app/assets/images/blacklight/masonry.svg
249
+ - app/assets/images/blacklight/pause_slideshow.svg
243
250
  - app/assets/images/blacklight/remove_circle.svg
244
251
  - app/assets/images/blacklight/resize_small.svg
245
252
  - app/assets/images/blacklight/slideshow.svg
253
+ - app/assets/images/blacklight/start_slideshow.svg
246
254
  - app/assets/javascripts/blacklight_gallery/default.js
247
255
  - app/assets/javascripts/blacklight_gallery/masonry.js
248
256
  - app/assets/javascripts/blacklight_gallery/osd_viewer.js
@@ -330,7 +338,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
330
338
  - !ruby/object:Gem::Version
331
339
  version: '0'
332
340
  requirements: []
333
- rubygems_version: 3.0.3
341
+ rubygems_version: 3.1.2
334
342
  signing_key:
335
343
  specification_version: 4
336
344
  summary: Gallery display for Blacklight