blacklight-gallery 0.6.1 → 0.7.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
  SHA1:
3
- metadata.gz: 1d0dddc4ffdfcec0a8ac27ef16353aad1856cbeb
4
- data.tar.gz: 7f5028accc8d7c7a389cb60a35b7df933f50c446
3
+ metadata.gz: e818cba7abe5286ac59f4451915533336dbdf8cc
4
+ data.tar.gz: e6947e5e2c39fdcd8bce1c111a4ec7b3fbd9943b
5
5
  SHA512:
6
- metadata.gz: 163cc2755d3759ed06c6bfe0cd62af72f9b69ebeaae4f1907464026a7b0213413cf2742e786c1f1c1a402208b33d576e40f1b2241459033e94898751b208f6f1
7
- data.tar.gz: 4281954a8821d21a4ec8481dda7b6aa60158d23467785fef2dac49e0ce8a9696272d59726f68986a78aca010b071d6c676aa51db1905097327136d656eee8065
6
+ metadata.gz: 877ba9ab192d0dcdea0b9fdf7e0f4ff1552bcf40174583dbab32b2908a5ffa9dcb7d6919e4f11a73026356c77488eb56d8a01808f79f601087f096ec9f584481
7
+ data.tar.gz: 5c8dc51a286dad2ba5eea8301b4a993b92d2ad20bdbb25763d75d76067861d66e92599db90299f250a4f670b2f6027936ea8774740250e888d3df40de5cac207
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ gemspec
6
6
  gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
7
7
 
8
8
  # BEGIN ENGINE_CART BLOCK
9
- # engine_cart: 0.10.0
9
+ # engine_cart: 1.1.0
10
10
  # engine_cart stanza: 0.10.0
11
11
  # the below comes from engine_cart, a gem used to test this Rails engine gem in the context of a Rails app.
12
12
  file = File.expand_path('Gemfile', ENV['ENGINE_CART_DESTINATION'] || ENV['RAILS_ROOT'] || File.expand_path('.internal_test_app', File.dirname(__FILE__)))
data/Rakefile CHANGED
@@ -34,6 +34,7 @@ task :ci => ['engine_cart:generate'] do
34
34
  end
35
35
 
36
36
 
37
+ desc "Run Solr and Blacklight for interactive development"
37
38
  task :server do
38
39
  require 'solr_wrapper'
39
40
  SolrWrapper.wrap(port: '8983') do |solr|
@@ -2,7 +2,7 @@
2
2
  &:before { content: "\e011"; }
3
3
  }
4
4
 
5
- #documents.gallery {
5
+ .gallery {
6
6
 
7
7
  display: -webkit-box;
8
8
  display: -moz-box;
@@ -5,41 +5,39 @@
5
5
  @include img-retina("blacklight/gallery/view-icon-masonry.png","blacklight/gallery/view-icon-masonry@2x.png", 13px, 13px);
6
6
  }
7
7
 
8
- #documents {
9
- .masonry {
10
- &.document {
11
- padding: 0;
12
- margin: 0 $padding-xs-horizontal $padding-large-vertical 0;
13
- border-bottom: 0;
14
- background-color: $gray-lighter;
15
- min-height: 70px;
8
+ .masonry {
9
+ &.document {
10
+ padding: 0;
11
+ margin: 0 $padding-xs-horizontal $padding-large-vertical 0;
12
+ border-bottom: 0;
13
+ background-color: $gray-lighter;
14
+ min-height: 70px;
16
15
 
17
- .thumbnail {
18
- border: 0;
19
- padding: 0;
20
- margin-bottom: 0;
16
+ .thumbnail {
17
+ border: 0;
18
+ padding: 0;
19
+ margin-bottom: 0;
20
+ }
21
+ .caption {
22
+ &:first-child { display: block; } // To display captions when there is no image
23
+ a {
24
+ color: $gray-lighter;
25
+ text-shadow: $carousel-text-shadow;
21
26
  }
27
+ line-height: 17px;
28
+ background-color: rgba(0,0,0,0.3);
29
+ text-align: center;
30
+ position: absolute;
31
+ bottom: 0;
32
+ right: 0;
33
+ left: 0;
34
+ width: 100%;
35
+ padding: 5px 7px;
36
+ display: none;
37
+ }
38
+ &:hover {
22
39
  .caption {
23
- &:first-child { display: block; } // To display captions when there is no image
24
- a {
25
- color: $gray-lighter;
26
- text-shadow: $carousel-text-shadow;
27
- }
28
- line-height: 17px;
29
- background-color: rgba(0,0,0,0.3);
30
- text-align: center;
31
- position: absolute;
32
- bottom: 0;
33
- right: 0;
34
- left: 0;
35
- width: 100%;
36
- padding: 5px 7px;
37
- display: none;
38
- }
39
- &:hover {
40
- .caption {
41
- display: block;
42
- }
40
+ display: block;
43
41
  }
44
42
  }
45
43
  }
@@ -5,7 +5,7 @@
5
5
  $gray-light: lightgray !default;
6
6
  $gray-dark: darkgray !default;
7
7
 
8
- #slideshow-modal {
8
+ .slideshow-modal {
9
9
  .modal-dialog {
10
10
  width: 100%;
11
11
  margin: 1% auto;
@@ -29,7 +29,7 @@ $gray-dark: darkgray !default;
29
29
  }
30
30
  }
31
31
 
32
- #slideshow {
32
+ .slideshow-presenter {
33
33
  height: 100%;
34
34
 
35
35
  .slideshow-inner {
@@ -94,7 +94,7 @@ $gray-dark: darkgray !default;
94
94
  }
95
95
  }
96
96
 
97
- #documents {
97
+ .slideshow-documents {
98
98
  margin: 0;
99
99
 
100
100
  .info {
@@ -1,5 +1,5 @@
1
1
  <% # container for all documents in slideshow view -%>
2
- <div id="documents" class="row slideshow">
2
+ <div id="documents" class="row slideshow-documents">
3
3
  <div class="info">
4
4
  <h3><%= t(:'blacklight_gallery.catalog.document_slideshow.header') %></h3>
5
5
  </div>
@@ -4,7 +4,7 @@
4
4
  <% if thumbnail_url(document) %>
5
5
  <%= image_tag thumbnail_url(document) %>
6
6
  <% else %>
7
- <%= t(:missing_image) %>
7
+ <%= t('.missing_image', scope: [:blacklight_gallery]) %>
8
8
  <% end %>
9
9
  <% end %>
10
10
  </div>
@@ -1,4 +1,4 @@
1
- <div id="slideshow" class="">
1
+ <div id="slideshow" class="slideshow-presenter">
2
2
  <!-- Wrapper for slides -->
3
3
  <div class="slideshow-inner">
4
4
  <%= render collection: documents, as: :document, partial: 'index_slideshow', locals: {count: documents.count} %>
@@ -1,5 +1,5 @@
1
1
  <!-- Modal -->
2
- <div class="modal fade" id="slideshow-modal" tabindex="-1" role="dialog" aria-labelledby="slideshow-modal-label" aria-hidden="true">
2
+ <div class="slideshow-modal modal fade" id="slideshow-modal" tabindex="-1" role="dialog" aria-labelledby="slideshow-modal-label" aria-hidden="true">
3
3
  <div class="modal-dialog col-md-10">
4
4
  <div class="modal-content">
5
5
  <div class="modal-header">
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency "rspec-activemodel-mocks"
31
31
  spec.add_development_dependency "rspec-collection_matchers"
32
32
  spec.add_development_dependency "solr_wrapper"
33
- spec.add_development_dependency "engine_cart", "~> 0.8"
33
+ spec.add_development_dependency "engine_cart", "~> 1.1"
34
34
  spec.add_development_dependency "capybara"
35
35
  spec.add_development_dependency "poltergeist", ">= 1.5.0"
36
36
  end
@@ -1,5 +1,5 @@
1
1
  module Blacklight
2
2
  module Gallery
3
- VERSION = "0.6.1"
3
+ VERSION = "0.7.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight-gallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.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: 2016-07-07 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '0.8'
187
+ version: '1.1'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: '0.8'
194
+ version: '1.1'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: capybara
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -316,7 +316,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
316
316
  version: '0'
317
317
  requirements: []
318
318
  rubyforge_project:
319
- rubygems_version: 2.6.4
319
+ rubygems_version: 2.6.8
320
320
  signing_key:
321
321
  specification_version: 4
322
322
  summary: Gallery display for Blacklight