blacklight-gallery 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -2
- data/Rakefile +2 -1
- data/app/helpers/blacklight/openseadragon_helper.rb +7 -0
- data/app/views/catalog/_openseadragon_default.html.erb +1 -2
- data/blacklight-gallery.gemspec +1 -1
- data/lib/blacklight/gallery/version.rb +1 -1
- data/spec/views/catalog/_openseadragon_default.html.erb_spec.rb +22 -0
- metadata +9 -8
- data/spec/test_app_templates/Gemfile.extra +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75cf30d29220c524abdaa09204fd0ab02a3ff4b4
|
4
|
+
data.tar.gz: b651519feb0538bdb5e37185b2fe246a7db5129c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e8ce1efaa2a5c6284398610fa722dba56de243934775561a25815b5b351e95074389bed74a563f182c5b901ca41b3923091554c85eec3eaf521ac7170eea4af
|
7
|
+
data.tar.gz: 911b69f24495df399cde128255451f06b10c3b36a6300686076dc51fa53048318b83f8bc8fd7dc75c2c797c1bee70d77b8e801d0ed84c72227de0984f14eed78
|
data/.travis.yml
CHANGED
data/Rakefile
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
2
|
|
3
|
-
ZIP_URL = "https://github.com/projectblacklight/blacklight-jetty/archive/v4.10.
|
3
|
+
ZIP_URL = "https://github.com/projectblacklight/blacklight-jetty/archive/v4.10.3.zip"
|
4
4
|
APP_ROOT = File.dirname(__FILE__)
|
5
5
|
|
6
6
|
require 'rspec/core/rake_task'
|
7
7
|
require 'engine_cart/rake_task'
|
8
|
+
EngineCart.fingerprint_proc = EngineCart.rails_fingerprint_proc
|
8
9
|
|
9
10
|
require 'jettywrapper'
|
10
11
|
|
@@ -21,8 +21,7 @@
|
|
21
21
|
|
22
22
|
<% unless image.nil? %>
|
23
23
|
<% count = Array(image).length %>
|
24
|
-
|
25
|
-
<div class="col-md-6">
|
24
|
+
<div class="openseadragon-container <%= osd_container_class %>">
|
26
25
|
<div class="osd-toolbar row">
|
27
26
|
<% if count > 1 %>
|
28
27
|
<% osd_config = osd_config_referencestrip.merge(osd_config) %>
|
data/blacklight-gallery.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency "rspec-activemodel-mocks"
|
30
30
|
spec.add_development_dependency "rspec-collection_matchers"
|
31
31
|
spec.add_development_dependency "jettywrapper"
|
32
|
-
spec.add_development_dependency "engine_cart"
|
32
|
+
spec.add_development_dependency "engine_cart", "~> 0.6"
|
33
33
|
spec.add_development_dependency "capybara"
|
34
34
|
spec.add_development_dependency "poltergeist", ">= 1.5.0"
|
35
35
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "catalog/openseadragon_default" do
|
4
|
+
let(:document) { SolrDocument.new }
|
5
|
+
let(:blacklight_config) { Blacklight::Configuration.new }
|
6
|
+
let(:p) { "catalog/openseadragon_default.html.erb" }
|
7
|
+
|
8
|
+
before do
|
9
|
+
allow(view).to receive_messages(blacklight_config: blacklight_config, openseadragon_picture_tag: "<img />")
|
10
|
+
allow(document).to receive_messages(to_openseadragon: [])
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should render the openseadragon container" do
|
14
|
+
render partial: p, locals: { document: document }
|
15
|
+
expect(rendered).to have_selector ".openseadragon-container"
|
16
|
+
end
|
17
|
+
|
18
|
+
it "should support passing a container class" do
|
19
|
+
render partial: p, locals: { document: document, osd_container_class: "custom-container" }
|
20
|
+
expect(rendered).to have_selector ".custom-container"
|
21
|
+
end
|
22
|
+
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -168,16 +168,16 @@ dependencies:
|
|
168
168
|
name: engine_cart
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- - "
|
171
|
+
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: '0'
|
173
|
+
version: '0.6'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- - "
|
178
|
+
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: '0'
|
180
|
+
version: '0.6'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: capybara
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -231,6 +231,7 @@ files:
|
|
231
231
|
- app/assets/stylesheets/blacklight_gallery/_slideshow.scss
|
232
232
|
- app/assets/stylesheets/blacklight_gallery/default.scss
|
233
233
|
- app/helpers/blacklight/gallery_helper.rb
|
234
|
+
- app/helpers/blacklight/openseadragon_helper.rb
|
234
235
|
- app/models/concerns/blacklight/gallery/openseadragon_solr_document.rb
|
235
236
|
- app/views/catalog/_document_gallery.html.erb
|
236
237
|
- app/views/catalog/_document_masonry.html.erb
|
@@ -258,11 +259,11 @@ files:
|
|
258
259
|
- spec/features/slideshow_spec.rb
|
259
260
|
- spec/helpers/blacklight/gallery_helper_spec.rb
|
260
261
|
- spec/spec_helper.rb
|
261
|
-
- spec/test_app_templates/Gemfile.extra
|
262
262
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
263
263
|
- spec/views/catalog/_document_slideshow.html.erb_spec.rb
|
264
264
|
- spec/views/catalog/_index_gallery.html.erb_spec.rb
|
265
265
|
- spec/views/catalog/_index_masonry.html.erb_spec.rb
|
266
|
+
- spec/views/catalog/_openseadragon_default.html.erb_spec.rb
|
266
267
|
- vendor/assets/javascripts/imagesloaded.min.js
|
267
268
|
- vendor/assets/javascripts/masonry.min.js
|
268
269
|
homepage: https://github.com/projectblacklight/blacklight-gallery
|
@@ -295,8 +296,8 @@ test_files:
|
|
295
296
|
- spec/features/slideshow_spec.rb
|
296
297
|
- spec/helpers/blacklight/gallery_helper_spec.rb
|
297
298
|
- spec/spec_helper.rb
|
298
|
-
- spec/test_app_templates/Gemfile.extra
|
299
299
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
300
300
|
- spec/views/catalog/_document_slideshow.html.erb_spec.rb
|
301
301
|
- spec/views/catalog/_index_gallery.html.erb_spec.rb
|
302
302
|
- spec/views/catalog/_index_masonry.html.erb_spec.rb
|
303
|
+
- spec/views/catalog/_openseadragon_default.html.erb_spec.rb
|
@@ -1,22 +0,0 @@
|
|
1
|
-
platforms :jruby do
|
2
|
-
gem 'jdbc-sqlite3'
|
3
|
-
gem 'mediashelf-loggable', '>= 0.4.8'
|
4
|
-
gem 'therubyrhino'
|
5
|
-
end
|
6
|
-
|
7
|
-
platforms :ruby do
|
8
|
-
gem 'sqlite3'
|
9
|
-
end
|
10
|
-
|
11
|
-
gem 'jquery-rails'
|
12
|
-
|
13
|
-
group :test do
|
14
|
-
gem 'rspec-rails', '~> 3.1'
|
15
|
-
gem 'generator_spec'
|
16
|
-
gem 'poltergeist'
|
17
|
-
gem 'simplecov'
|
18
|
-
end
|
19
|
-
|
20
|
-
gem 'jettywrapper', '>= 1.2.0'
|
21
|
-
|
22
|
-
gem 'blacklight'
|