blacklight-gallery 2.0.2 → 2.1.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: c458c48c44b2973ab9be6eb367ccf31e77d7e63107bc1678d2a95d01be410718
4
- data.tar.gz: b86795ecc4bbbd5035e83cf48b16d3f28ada95d28c24c6618641a2079775d146
3
+ metadata.gz: d4078c05e9420ccca75758be7fac8ccb01a4a512d8931f629c683bce2572b739
4
+ data.tar.gz: a68b999ad88d7f80760a70acfd86f897cebe7d1c48744b893cb78fe85f567458
5
5
  SHA512:
6
- metadata.gz: 82aec9b13b527c8748c92bbefc1fa0bfc565b4ff7e324440c2a5aa679d7d4a0856acafbfa6e2be78a677e5ddc61750271b8b21db30be39f1ffdf7c08f476ffdd
7
- data.tar.gz: f21a0e1635c8262f478ccbc7623b7a62a7b9ce81188b1b3d0ce243bf9a9f56f421642e4988179658c08e450f035e35a901e2339553f5ec24cf5667addb8c643a
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
 
@@ -1,22 +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
5
  min-height: 250px;
21
6
  -webkit-flex: 1 0 250px;
22
7
  }
@@ -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
- <div class="document col-6 col-md-4">
1
+ <div class="document col">
2
2
  <div class="thumbnail">
3
3
  <%= render_thumbnail_tag(
4
4
  document,
@@ -17,7 +17,7 @@ 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'
20
+ spec.add_dependency "rails", '>= 5.1', '< 7'
21
21
  spec.add_dependency 'blacklight', '~> 7.7'
22
22
  spec.add_dependency "bootstrap", "~> 4.0"
23
23
  spec.add_dependency "openseadragon", ">= 0.2.0"
@@ -1,5 +1,5 @@
1
1
  module Blacklight
2
2
  module Gallery
3
- VERSION = "2.0.2"
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" \
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight-gallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
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-05-21 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