blacklight-gallery 0.4.1 → 0.5.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: a53aff88a47da1ba281d332cd1daea53020e37b4
4
- data.tar.gz: 1f81070bc809fe402b42db61a4a54bfe88c866b9
3
+ metadata.gz: 42e5096b63e6fe16c6c0ffa17ce12c9b31bdfc93
4
+ data.tar.gz: 7e85718d294bdce0c610e10c79c3ce447684450d
5
5
  SHA512:
6
- metadata.gz: cd5380372da4752fe3233febf9477e6308a53caf432a14b3ed954675fbfb9f69377bd08582cfeaaea94006e334e709d5de71d81cd29f659ddf730ee086d4606c
7
- data.tar.gz: 058d3d596e076e0713ce7ed9c4c74e26f1db0e8dad0ad49078d9c2dfa41d73a1ffa4a276568964db1597f8b06436d4c11f7f3b848bfb2dc8c265ce90c9421f01
6
+ metadata.gz: 7f82c9c461062b9d301de93c42c868de31e162e699397e0c68e0744c56c43b70ef79b74c44d22b59839f7276230df3a88ae0386854246faacd5f9e91979a73aa
7
+ data.tar.gz: 61b85e175bfd1d49936834846d64904cc303a7909d7ba3c4cf1688737250eb47de134631eb9476d00cec6afd333f4614cc30c6053d89ef914c92226f844629ae
data/.travis.yml CHANGED
@@ -1,9 +1,15 @@
1
+ language: ruby
2
+ sudo: false
3
+ cache:
4
+ directories:
5
+ - /tmp/solr-5.3.0
6
+
1
7
  notifications:
2
8
  email: false
3
9
 
4
10
  rvm:
5
- - 2.1.0
6
- - 2.0.0
11
+ - 2.3.0
12
+ - 2.2.4
7
13
 
8
14
  notifications:
9
15
  irc: "irc.freenode.org#blacklight"
@@ -12,5 +18,4 @@ notifications:
12
18
 
13
19
  env:
14
20
  global:
15
- - JRUBY_OPTS="-J-Xms512m -J-Xmx1024m"
16
21
  - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
data/Rakefile CHANGED
@@ -19,7 +19,7 @@ end
19
19
  desc "Load fixtures"
20
20
  task :fixtures => ['engine_cart:generate'] do
21
21
  within_test_app do
22
- system "rake blacklight:solr:seed RAILS_ENV=test"
22
+ system "rake blacklight:index:seed RAILS_ENV=test"
23
23
  abort "Error running fixtures" unless $?.success?
24
24
  end
25
25
  end
@@ -54,7 +54,7 @@ task :server do
54
54
 
55
55
  Jettywrapper.wrap(jetty_params) do
56
56
  within_test_app do
57
- system "rake blacklight:solr:seed"
57
+ system "rake blacklight:index:seed"
58
58
  system "bundle exec rails s"
59
59
  end
60
60
  end
@@ -1,5 +1,5 @@
1
1
  .view-icon-slideshow {
2
- &:before { content: "\e158"; }
2
+ &:before { content: "\e158"; }
3
3
  }
4
4
 
5
5
  $gray-light: lightgray !default;
@@ -102,7 +102,7 @@ $gray-dark: darkgray !default;
102
102
  margin-bottom: 15px;
103
103
  }
104
104
 
105
- h3 {
105
+ .slideshow h3 {
106
106
  background-color: whitesmoke;
107
107
  border-radius: 3px;
108
108
  border: 1px solid #ddd;
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.require_paths = ["lib"]
19
19
 
20
20
  spec.add_dependency "rails"
21
- spec.add_dependency 'blacklight', '>= 5.12', '< 7'
21
+ spec.add_dependency 'blacklight', '> 6.0.0.pre', '< 7'
22
22
  spec.add_dependency "bootstrap-sass", "~> 3.0"
23
23
  spec.add_dependency "openseadragon", ">= 0.2.0"
24
24
 
@@ -1,5 +1,5 @@
1
1
  module Blacklight
2
2
  module Gallery
3
- VERSION = "0.4.1"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
@@ -12,14 +12,11 @@ module BlacklightGallery
12
12
 
13
13
  def configuration
14
14
  inject_into_file 'app/controllers/catalog_controller.rb', after: "configure_blacklight do |config|" do
15
- <<-EOF
16
- config.view.gallery.partials = [:index_header, :index]
17
- config.view.masonry.partials = [:index]
18
- config.view.slideshow.partials = [:index]
19
-
20
- config.show.tile_source_field = :content_metadata_image_iiif_info_ssm
21
- config.show.partials.insert(1, :openseadragon)
22
- EOF
15
+ "\n config.view.gallery.partials = [:index_header, :index]" \
16
+ "\n config.view.masonry.partials = [:index]" \
17
+ "\n config.view.slideshow.partials = [:index]\n\n" \
18
+ "\n config.show.tile_source_field = :content_metadata_image_iiif_info_ssm" \
19
+ "\n config.show.partials.insert(1, :openseadragon)"
23
20
  end
24
21
  end
25
22
 
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe "Gallery view", :type => :feature do
4
- before { visit catalog_index_path :q => 'medicine', :view => 'gallery' }
4
+ before { visit search_catalog_path :q => 'medicine', :view => 'gallery' }
5
5
 
6
6
  it "should display results in a galley view" do
7
7
  expect(page).to have_selector("#documents.gallery")
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe "Masonry view", :type => :feature do
4
- before { visit catalog_index_path :q => 'medicine', :view => 'masonry' }
4
+ before { visit search_catalog_path :q => 'medicine', :view => 'masonry' }
5
5
 
6
6
  it "should display results in a galley view" do
7
7
  expect(page).to have_selector("#documents[data-behavior='masonry-gallery']")
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  describe "Slideshow", :js, :type => :feature do
4
4
 
5
5
  it "should open when one of the grid panes are clicked" do
6
- visit catalog_index_path( :q => 'medicine', :view => 'slideshow' )
6
+ visit search_catalog_path( :q => 'medicine', :view => 'slideshow' )
7
7
  expect(page).to have_content "You searched for:"
8
8
  within ".view-type" do
9
9
  click_link "Slideshow"
@@ -8,6 +8,7 @@ describe "catalog/_document_slideshow.html.erb", :type => :view do
8
8
  before do
9
9
  allow(view).to receive_messages(blacklight_config: blacklight_config)
10
10
  allow(view).to receive_messages(documents: [document])
11
+ allow(view).to receive(:blacklight_configuration_context).and_return(double(evaluate_if_unless_configuration: true))
11
12
  end
12
13
 
13
14
  it "should have a edit tag form" do
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.4.1
4
+ version: 0.5.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-01-28 00:00:00.000000000 Z
11
+ date: 2016-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -28,9 +28,9 @@ dependencies:
28
28
  name: blacklight
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ">"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.12'
33
+ version: 6.0.0.pre
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
36
  version: '7'
@@ -38,9 +38,9 @@ dependencies:
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ">="
41
+ - - ">"
42
42
  - !ruby/object:Gem::Version
43
- version: '5.12'
43
+ version: 6.0.0.pre
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '7'
@@ -323,3 +323,4 @@ test_files:
323
323
  - spec/views/catalog/_index_gallery.html.erb_spec.rb
324
324
  - spec/views/catalog/_index_masonry.html.erb_spec.rb
325
325
  - spec/views/catalog/_openseadragon_default.html.erb_spec.rb
326
+ has_rdoc: