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 +4 -4
- data/.travis.yml +8 -3
- data/Rakefile +2 -2
- data/app/assets/stylesheets/blacklight_gallery/_slideshow.scss +2 -2
- data/blacklight-gallery.gemspec +1 -1
- data/lib/blacklight/gallery/version.rb +1 -1
- data/lib/generators/blacklight_gallery/install_generator.rb +5 -8
- data/spec/features/gallery_spec.rb +1 -1
- data/spec/features/masonry_spec.rb +1 -1
- data/spec/features/slideshow_spec.rb +1 -1
- data/spec/views/catalog/_document_slideshow.html.erb_spec.rb +1 -0
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42e5096b63e6fe16c6c0ffa17ce12c9b31bdfc93
|
4
|
+
data.tar.gz: 7e85718d294bdce0c610e10c79c3ce447684450d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
6
|
-
- 2.
|
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:
|
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:
|
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;
|
data/blacklight-gallery.gemspec
CHANGED
@@ -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', '
|
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
|
|
@@ -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
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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
|
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
|
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
|
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
|
+
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-
|
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:
|
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:
|
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:
|