wax_iiif 0.0.2 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +25 -0
- data/.travis.yml +2 -2
- data/Gemfile +3 -2
- data/README.md +4 -4
- data/lib/wax_iiif.rb +34 -44
- data/lib/wax_iiif/base_properties.rb +90 -0
- data/lib/wax_iiif/builder.rb +252 -0
- data/lib/wax_iiif/collection.rb +58 -0
- data/lib/{iiif_s3 → wax_iiif}/config.rb +46 -60
- data/lib/{iiif_s3 → wax_iiif}/errors.rb +6 -12
- data/lib/{iiif_s3 → wax_iiif}/full_image.rb +3 -8
- data/lib/wax_iiif/image_info.rb +89 -0
- data/lib/{iiif_s3 → wax_iiif}/image_record.rb +48 -63
- data/lib/{iiif_s3 → wax_iiif}/image_tile.rb +8 -14
- data/lib/{iiif_s3 → wax_iiif}/image_variant.rb +20 -38
- data/lib/wax_iiif/manifest.rb +151 -0
- data/lib/{iiif_s3 → wax_iiif}/thumbnail.rb +5 -9
- data/lib/{iiif_s3 → wax_iiif}/utilities.rb +5 -5
- data/lib/{iiif_s3 → wax_iiif}/utilities/helpers.rb +18 -48
- data/lib/{iiif_s3 → wax_iiif}/utilities/pdf_splitter.rb +20 -23
- data/spec/base_properties_spec.rb +8 -12
- data/spec/shared_contexts.rb +28 -92
- data/spec/spec_helper.rb +3 -3
- data/spec/wax_iiif/builder_spec.rb +143 -0
- data/spec/wax_iiif/collection_spec.rb +53 -0
- data/spec/wax_iiif/config_spec.rb +15 -0
- data/spec/wax_iiif/image_info_spec.rb +57 -0
- data/spec/wax_iiif/image_record_spec.rb +82 -0
- data/spec/wax_iiif/image_variant_spec.rb +66 -0
- data/spec/wax_iiif/manifest_spec.rb +97 -0
- data/spec/wax_iiif/utilities/pdf_splitter_spec.rb +14 -0
- data/wax_iiif.gemspec +15 -19
- metadata +52 -97
- data/Guardfile +0 -10
- data/Rakefile +0 -24
- data/lib/iiif_s3/base_properties.rb +0 -95
- data/lib/iiif_s3/builder.rb +0 -241
- data/lib/iiif_s3/collection.rb +0 -61
- data/lib/iiif_s3/image_info.rb +0 -96
- data/lib/iiif_s3/manifest.rb +0 -151
- data/lib/iiif_s3/version.rb +0 -5
- data/spec/iiif_s3/builder_spec.rb +0 -152
- data/spec/iiif_s3/collection_spec.rb +0 -68
- data/spec/iiif_s3/config_spec.rb +0 -15
- data/spec/iiif_s3/image_info_spec.rb +0 -57
- data/spec/iiif_s3/image_record_spec.rb +0 -96
- data/spec/iiif_s3/image_variant_spec.rb +0 -68
- data/spec/iiif_s3/manifest_spec.rb +0 -97
- data/spec/iiif_s3/utilities/pdf_splitter_spec.rb +0 -17
- data/test.rb +0 -77
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
|
4
|
+
describe WaxIiif::Config do
|
5
|
+
context 'comparing' do
|
6
|
+
it 'shows equal things to be equal' do
|
7
|
+
expect(WaxIiif::Config.new).to eq(WaxIiif::Config.new)
|
8
|
+
end
|
9
|
+
it 'shows different things to be different' do
|
10
|
+
opts = {tile_width: 99, upload_to_s3: false}
|
11
|
+
opts2 = {tile_width: 100, upload_to_s3: false}
|
12
|
+
expect(WaxIiif::Config.new opts).not_to eq(WaxIiif::Config.new opts2)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'ostruct'
|
3
|
+
|
4
|
+
include WaxIiif
|
5
|
+
|
6
|
+
describe WaxIiif::ImageInfo do
|
7
|
+
|
8
|
+
let(:uri) {'http://www.example.com/test/1'}
|
9
|
+
include_context('fake variants')
|
10
|
+
|
11
|
+
context 'intialization' do
|
12
|
+
|
13
|
+
|
14
|
+
it 'initializes without errors' do
|
15
|
+
expect{ImageInfo.new(uri,@fake_variants)}.not_to raise_error
|
16
|
+
end
|
17
|
+
it "raises an error without a 'full' variant" do
|
18
|
+
@fake_variants.delete 'full'
|
19
|
+
expect{ImageInfo.new(uri,@fake_variants)}.to raise_error(Error::InvalidImageData)
|
20
|
+
end
|
21
|
+
it "raises an error without a 'thumbnail' variant" do
|
22
|
+
@fake_variants.delete 'thumbnail'
|
23
|
+
expect{ImageInfo.new(uri,@fake_variants)}.to raise_error(Error::InvalidImageData)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
|
28
|
+
context 'valid data' do
|
29
|
+
before(:example) do
|
30
|
+
@info = ImageInfo.new(uri,@fake_variants)
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'generates correct sizes' do
|
34
|
+
expect(@info.sizes).to eq([{'width' => 1000, 'height' => 1200},{'width' => 100, 'height' => 120}])
|
35
|
+
end
|
36
|
+
|
37
|
+
it 'generates nil when no tile data appears' do
|
38
|
+
expect(@info.tiles).to be_nil
|
39
|
+
end
|
40
|
+
|
41
|
+
it 'generates tile info when tile data appears' do
|
42
|
+
info = ImageInfo.new(uri,@fake_variants,500,[1,2,4])
|
43
|
+
expect(info.tiles).to eq([{'width' => 500, 'scaleFactors' => [1,2,4]}])
|
44
|
+
end
|
45
|
+
|
46
|
+
it 'has the correct other methods' do
|
47
|
+
expect(@info).to respond_to 'context'
|
48
|
+
expect(@info).to respond_to 'protocol'
|
49
|
+
expect(@info).to respond_to 'profile'
|
50
|
+
expect(@info).to respond_to 'service'
|
51
|
+
end
|
52
|
+
|
53
|
+
it 'generates correct JSON' do
|
54
|
+
expect(@info.to_json.delete(" \t\r\n")).to eq(@fake_image_info)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'base_properties_spec'
|
3
|
+
|
4
|
+
|
5
|
+
describe WaxIiif::ImageRecord do
|
6
|
+
let(:opts) {{
|
7
|
+
id: 1
|
8
|
+
}}
|
9
|
+
let(:image_record) {WaxIiif::ImageRecord.new(opts)}
|
10
|
+
|
11
|
+
it 'initializes without an error' do
|
12
|
+
expect{WaxIiif::ImageRecord.new}.not_to raise_error
|
13
|
+
end
|
14
|
+
it 'initializes without an error when provided a hash' do
|
15
|
+
opts = {id: 1}
|
16
|
+
expect{WaxIiif::ImageRecord.new(opts)}.not_to raise_error
|
17
|
+
end
|
18
|
+
|
19
|
+
context '#viewing_direction' do
|
20
|
+
it 'has a sensible default' do
|
21
|
+
expect(image_record.viewing_direction).to eq WaxIiif::DEFAULT_VIEWING_DIRECTION
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'rejects invalid viewing directions on init' do
|
25
|
+
opts = {viewing_direction: 'wonky'}
|
26
|
+
expect{WaxIiif::ImageRecord.new(opts)}.to raise_error(WaxIiif::Error::InvalidViewingDirection)
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'rejects setting invalid viewing directions' do
|
30
|
+
expect{image_record.viewing_direction = 'wonky'}.to raise_error(WaxIiif::Error::InvalidViewingDirection)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'initializes with provided hash values' do
|
35
|
+
expect(image_record.id).to eq opts[:id]
|
36
|
+
end
|
37
|
+
it 'ignores unknown data' do
|
38
|
+
opts['junk_data'] = 'bozo'
|
39
|
+
expect{WaxIiif::ImageRecord.new(opts)}.not_to raise_error
|
40
|
+
end
|
41
|
+
context '#is_primary' do
|
42
|
+
it 'defaults to false' do
|
43
|
+
expect(image_record.primary?).to equal(false)
|
44
|
+
end
|
45
|
+
it 'forces is_primary to boolean' do
|
46
|
+
image_record.is_primary = 'banana'
|
47
|
+
expect(image_record.primary?).to equal(true)
|
48
|
+
end
|
49
|
+
it 'allows page_number default to be overridded' do
|
50
|
+
image_record.is_primary = false
|
51
|
+
expect(image_record.primary?).to equal(false)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
context '#image_path' do
|
55
|
+
it 'raises on a blan path' do
|
56
|
+
expect{image_record.path = nil}.to raise_error(WaxIiif::Error::InvalidImageData)
|
57
|
+
end
|
58
|
+
it 'raises an error for a bad file name' do
|
59
|
+
expect{image_record.path = 'imaginary_file.jpg'}.to raise_error(WaxIiif::Error::InvalidImageData)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
context '#section' do
|
63
|
+
it 'uses the default for the name' do
|
64
|
+
expect(image_record.section).to eq WaxIiif::DEFAULT_CANVAS_LABEL
|
65
|
+
end
|
66
|
+
it 'uses the default for the label' do
|
67
|
+
expect(image_record.section_label).to eq WaxIiif::DEFAULT_CANVAS_LABEL
|
68
|
+
end
|
69
|
+
end
|
70
|
+
context '#is_document' do
|
71
|
+
it 'defaults to false' do
|
72
|
+
expect(image_record.document?).to equal(false)
|
73
|
+
end
|
74
|
+
it 'has_an_alias' do
|
75
|
+
expect(image_record.document?).to equal(false)
|
76
|
+
end
|
77
|
+
it 'forces is_document to boolean' do
|
78
|
+
image_record.is_document = 'banana'
|
79
|
+
expect(image_record.document?).to equal(true)
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe WaxIiif::ImageVariant do
|
4
|
+
let(:config) {WaxIiif::Config.new}
|
5
|
+
let(:data) { WaxIiif::ImageRecord.new({
|
6
|
+
'path' => './spec/data/test.jpg',
|
7
|
+
'id' => 1})
|
8
|
+
}
|
9
|
+
|
10
|
+
context 'initialization errors' do
|
11
|
+
it 'raises if the image does not have an ID' do
|
12
|
+
data.id =nil
|
13
|
+
expect{WaxIiif::ImageVariant.new(data, config)}.to raise_error(WaxIiif::Error::InvalidImageData)
|
14
|
+
end
|
15
|
+
it 'raises if the image has a blank ID' do
|
16
|
+
data.id = ''
|
17
|
+
expect{WaxIiif::ImageVariant.new(data, config)}.to raise_error(WaxIiif::Error::InvalidImageData)
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'raises if the image is not a valid image file' do
|
21
|
+
data.path = './spec/data/test.csv'
|
22
|
+
expect{WaxIiif::ImageVariant.new(data, config)}.to raise_error(WaxIiif::Error::InvalidImageData)
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
context 'basic data' do
|
28
|
+
before(:all) do
|
29
|
+
data = WaxIiif::ImageRecord.new({
|
30
|
+
'path' => './spec/data/test.jpg',
|
31
|
+
'id' => 1
|
32
|
+
})
|
33
|
+
config = WaxIiif::Config.new
|
34
|
+
@img = WaxIiif::ImageVariant.new(data, config, 100)
|
35
|
+
end
|
36
|
+
|
37
|
+
# it 'has a uri' do
|
38
|
+
# expect(@img.uri).to eq("#{@img.generate_image_id(1)}/full/100,/0/default.jpg")
|
39
|
+
# end
|
40
|
+
# it 'has an id' do
|
41
|
+
# expect(@img.id).to eq(@img.generate_image_id(1))
|
42
|
+
# end
|
43
|
+
# it 'has a width' do
|
44
|
+
# expect(@img.width).to eq(100)
|
45
|
+
# end
|
46
|
+
# it 'has a mime type' do
|
47
|
+
# expect(@img.mime_type).to eq('image/jpeg')
|
48
|
+
# end
|
49
|
+
end
|
50
|
+
|
51
|
+
context 'Full Image' do
|
52
|
+
before(:all) do
|
53
|
+
data = WaxIiif::ImageRecord.new({
|
54
|
+
'path' => './spec/data/test.jpg',
|
55
|
+
'id' => 1,
|
56
|
+
'page_number' => 1
|
57
|
+
})
|
58
|
+
config = WaxIiif::Config.new
|
59
|
+
@img = WaxIiif::FullImage.new(data, config)
|
60
|
+
end
|
61
|
+
# it 'has the default filestring' do
|
62
|
+
# expect(@img.uri).to include 'full/full'
|
63
|
+
# end
|
64
|
+
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,97 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'base_properties_spec'
|
3
|
+
|
4
|
+
|
5
|
+
describe WaxIiif::Manifest do
|
6
|
+
include_context('fake data')
|
7
|
+
|
8
|
+
context 'base' do
|
9
|
+
before(:each) do
|
10
|
+
@object = m
|
11
|
+
end
|
12
|
+
it_behaves_like 'base properties'
|
13
|
+
end
|
14
|
+
|
15
|
+
let (:config) {WaxIiif::Config.new()}
|
16
|
+
let (:m) {WaxIiif::Manifest.new(@fake_data[0,2], config)}
|
17
|
+
let (:output) {JSON.parse(m.to_json)}
|
18
|
+
|
19
|
+
it 'initializes without an error' do
|
20
|
+
expect(m).to be_a(WaxIiif::Manifest)
|
21
|
+
end
|
22
|
+
|
23
|
+
|
24
|
+
it 'exports JSON-LD as a valid JSON string' do
|
25
|
+
expect(m.to_json).to be_a(String)
|
26
|
+
expect{JSON.parse(m.to_json)}.not_to raise_error
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'has a @context' do
|
30
|
+
expect(output['@context']).to eq(WaxIiif::PRESENTATION_CONTEXT)
|
31
|
+
end
|
32
|
+
it 'has a @type' do
|
33
|
+
expect(output['@type']).to eq(WaxIiif::Manifest::TYPE)
|
34
|
+
end
|
35
|
+
it 'has an @id' do
|
36
|
+
expect(output['@id']).to eq("#{WaxIiif::Config::DEFAULT_URL}/1/manifest.json")
|
37
|
+
end
|
38
|
+
|
39
|
+
context 'error checking' do
|
40
|
+
it 'throws an error if not provided ImageRecords' do
|
41
|
+
expect{WaxIiif::Manifest.new(['not an image record'],config)}.to raise_error(WaxIiif::Error::InvalidImageData)
|
42
|
+
end
|
43
|
+
it "throws an error unless there's a primary image" do
|
44
|
+
data = @fake_data.clone
|
45
|
+
data.map { |d| d.is_primary = false }
|
46
|
+
expect{WaxIiif::Manifest.new(data, config)}.to raise_error(WaxIiif::Error::InvalidImageData)
|
47
|
+
end
|
48
|
+
it 'throws an error if there are two primary images' do
|
49
|
+
data1 = WaxIiif::ImageRecord.new({is_primary: true})
|
50
|
+
data2 = WaxIiif::ImageRecord.new({is_primary: true})
|
51
|
+
|
52
|
+
expect{WaxIiif::Manifest.new([data1, data2],config)}.to raise_error(WaxIiif::Error::MultiplePrimaryImages)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
context 'config variables' do
|
57
|
+
let (:config) {WaxIiif::Config.new({:use_extensions => false})}
|
58
|
+
it 'the @id has an extension if configured thusly' do
|
59
|
+
expect(output['@id']).to eq("#{WaxIiif::Config::DEFAULT_URL}/1/manifest")
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
context 'base_url config variable' do
|
64
|
+
let (:config) {WaxIiif::Config.new({base_url: 'http://www.example.com'})}
|
65
|
+
it 'uses non-test uris' do
|
66
|
+
expect(output['@id']).to eq('http://www.example.com/1/manifest.json')
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
context 'spec requirements' do
|
71
|
+
it 'has a label' do
|
72
|
+
expect(output['label'].length).to be > 0
|
73
|
+
end
|
74
|
+
it 'does not have a format' do
|
75
|
+
expect(output['format']).to be_nil
|
76
|
+
end
|
77
|
+
it 'does not have a height' do
|
78
|
+
expect(output['height']).to be_nil
|
79
|
+
end
|
80
|
+
it 'does not have a width' do
|
81
|
+
expect(output['width']).to be_nil
|
82
|
+
end
|
83
|
+
it 'does not have a startCanvas' do
|
84
|
+
expect(output['startCanvas']).to be_nil
|
85
|
+
end
|
86
|
+
it 'accepts valid viewing directions' do
|
87
|
+
dir = 'right-to-left'
|
88
|
+
new_data = @fake_data.first
|
89
|
+
new_data.viewing_direction = dir
|
90
|
+
m = WaxIiif::Manifest.new([new_data],config)
|
91
|
+
o = JSON.parse(m.to_json)
|
92
|
+
expect(o['viewingDirection']).to eq(dir)
|
93
|
+
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
|
4
|
+
describe WaxIiif::Utilities::PdfSplitter do
|
5
|
+
context 'comparing' do
|
6
|
+
it 'generates the proper number of files' do
|
7
|
+
skip('skipping expensive tests') if ENV['SKIP_EXPENSIVE_TESTS']
|
8
|
+
Dir.mktmpdir do |dir|
|
9
|
+
results = WaxIiif::Utilities::PdfSplitter.split('./spec/data/test.pdf', output_dir: dir)
|
10
|
+
expect(results.count).to eq(3)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/wax_iiif.gemspec
CHANGED
@@ -1,29 +1,25 @@
|
|
1
|
-
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
3
|
|
5
4
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name =
|
7
|
-
spec.version =
|
8
|
-
spec.authors = [
|
9
|
-
spec.email = [
|
10
|
-
spec.summary =
|
11
|
-
spec.description =
|
12
|
-
spec.homepage =
|
13
|
-
spec.license =
|
5
|
+
spec.name = 'wax_iiif'
|
6
|
+
spec.version = '0.1.0'
|
7
|
+
spec.authors = ['Marii Nyrop', 'David Newbury']
|
8
|
+
spec.email = ['m.nyrop@columbia.edu']
|
9
|
+
spec.summary = 'Minimal IIIF level 0 generator'
|
10
|
+
spec.description = 'Minimal IIIF level 0 generator for use with minicomp/wax'
|
11
|
+
spec.homepage = 'https://github.com/minicomp/wax_iiif'
|
12
|
+
spec.license = 'MIT'
|
14
13
|
|
15
14
|
spec.files = `git ls-files -z`.split("\x0")
|
16
15
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
-
spec.require_paths = [
|
17
|
+
spec.require_paths = ['lib']
|
19
18
|
|
20
|
-
spec.add_development_dependency
|
21
|
-
spec.add_development_dependency
|
22
|
-
spec.add_development_dependency
|
23
|
-
spec.add_development_dependency
|
24
|
-
spec.add_development_dependency "guard-rspec"
|
25
|
-
spec.add_development_dependency "dotenv"
|
26
|
-
spec.add_development_dependency "simplecov", "~> 0.10"
|
19
|
+
spec.add_development_dependency 'bundler', '~> 1.16'
|
20
|
+
spec.add_development_dependency 'dotenv', '~> 2.5'
|
21
|
+
spec.add_development_dependency 'rspec', '~> 3.8'
|
22
|
+
spec.add_development_dependency 'simplecov', '~> 0.16'
|
27
23
|
|
28
|
-
spec.add_runtime_dependency
|
24
|
+
spec.add_runtime_dependency 'mini_magick', '~> 4.8'
|
29
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wax_iiif
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marii Nyrop
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-11-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -17,113 +17,71 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '1.
|
20
|
+
version: '1.16'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '1.
|
27
|
+
version: '1.16'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
29
|
+
name: dotenv
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '2.5'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '2.5'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rspec
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - "
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '0'
|
49
|
-
type: :development
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - ">="
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '0'
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: guard
|
58
|
-
requirement: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - ">="
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '0'
|
63
|
-
type: :development
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: guard-rspec
|
72
|
-
requirement: !ruby/object:Gem::Requirement
|
73
|
-
requirements:
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: '0'
|
77
|
-
type: :development
|
78
|
-
prerelease: false
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
80
|
-
requirements:
|
81
|
-
- - ">="
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: '0'
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: dotenv
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - ">="
|
46
|
+
- - "~>"
|
89
47
|
- !ruby/object:Gem::Version
|
90
|
-
version: '
|
48
|
+
version: '3.8'
|
91
49
|
type: :development
|
92
50
|
prerelease: false
|
93
51
|
version_requirements: !ruby/object:Gem::Requirement
|
94
52
|
requirements:
|
95
|
-
- - "
|
53
|
+
- - "~>"
|
96
54
|
- !ruby/object:Gem::Version
|
97
|
-
version: '
|
55
|
+
version: '3.8'
|
98
56
|
- !ruby/object:Gem::Dependency
|
99
57
|
name: simplecov
|
100
58
|
requirement: !ruby/object:Gem::Requirement
|
101
59
|
requirements:
|
102
60
|
- - "~>"
|
103
61
|
- !ruby/object:Gem::Version
|
104
|
-
version: '0.
|
62
|
+
version: '0.16'
|
105
63
|
type: :development
|
106
64
|
prerelease: false
|
107
65
|
version_requirements: !ruby/object:Gem::Requirement
|
108
66
|
requirements:
|
109
67
|
- - "~>"
|
110
68
|
- !ruby/object:Gem::Version
|
111
|
-
version: '0.
|
69
|
+
version: '0.16'
|
112
70
|
- !ruby/object:Gem::Dependency
|
113
71
|
name: mini_magick
|
114
72
|
requirement: !ruby/object:Gem::Requirement
|
115
73
|
requirements:
|
116
|
-
- - "
|
74
|
+
- - "~>"
|
117
75
|
- !ruby/object:Gem::Version
|
118
76
|
version: '4.8'
|
119
77
|
type: :runtime
|
120
78
|
prerelease: false
|
121
79
|
version_requirements: !ruby/object:Gem::Requirement
|
122
80
|
requirements:
|
123
|
-
- - "
|
81
|
+
- - "~>"
|
124
82
|
- !ruby/object:Gem::Version
|
125
83
|
version: '4.8'
|
126
|
-
description:
|
84
|
+
description: Minimal IIIF level 0 generator for use with minicomp/wax
|
127
85
|
email:
|
128
86
|
- m.nyrop@columbia.edu
|
129
87
|
executables: []
|
@@ -132,29 +90,27 @@ extra_rdoc_files: []
|
|
132
90
|
files:
|
133
91
|
- ".gitignore"
|
134
92
|
- ".rspec"
|
93
|
+
- ".rubocop.yml"
|
135
94
|
- ".travis.yml"
|
136
95
|
- Gemfile
|
137
|
-
- Guardfile
|
138
96
|
- LICENSE.md
|
139
97
|
- README.md
|
140
|
-
- Rakefile
|
141
|
-
- lib/iiif_s3/base_properties.rb
|
142
|
-
- lib/iiif_s3/builder.rb
|
143
|
-
- lib/iiif_s3/collection.rb
|
144
|
-
- lib/iiif_s3/config.rb
|
145
|
-
- lib/iiif_s3/errors.rb
|
146
|
-
- lib/iiif_s3/full_image.rb
|
147
|
-
- lib/iiif_s3/image_info.rb
|
148
|
-
- lib/iiif_s3/image_record.rb
|
149
|
-
- lib/iiif_s3/image_tile.rb
|
150
|
-
- lib/iiif_s3/image_variant.rb
|
151
|
-
- lib/iiif_s3/manifest.rb
|
152
|
-
- lib/iiif_s3/thumbnail.rb
|
153
|
-
- lib/iiif_s3/utilities.rb
|
154
|
-
- lib/iiif_s3/utilities/helpers.rb
|
155
|
-
- lib/iiif_s3/utilities/pdf_splitter.rb
|
156
|
-
- lib/iiif_s3/version.rb
|
157
98
|
- lib/wax_iiif.rb
|
99
|
+
- lib/wax_iiif/base_properties.rb
|
100
|
+
- lib/wax_iiif/builder.rb
|
101
|
+
- lib/wax_iiif/collection.rb
|
102
|
+
- lib/wax_iiif/config.rb
|
103
|
+
- lib/wax_iiif/errors.rb
|
104
|
+
- lib/wax_iiif/full_image.rb
|
105
|
+
- lib/wax_iiif/image_info.rb
|
106
|
+
- lib/wax_iiif/image_record.rb
|
107
|
+
- lib/wax_iiif/image_tile.rb
|
108
|
+
- lib/wax_iiif/image_variant.rb
|
109
|
+
- lib/wax_iiif/manifest.rb
|
110
|
+
- lib/wax_iiif/thumbnail.rb
|
111
|
+
- lib/wax_iiif/utilities.rb
|
112
|
+
- lib/wax_iiif/utilities/helpers.rb
|
113
|
+
- lib/wax_iiif/utilities/pdf_splitter.rb
|
158
114
|
- spec/base_properties_spec.rb
|
159
115
|
- spec/data/blank.csv
|
160
116
|
- spec/data/invalid.csv
|
@@ -162,19 +118,18 @@ files:
|
|
162
118
|
- spec/data/test.csv
|
163
119
|
- spec/data/test.jpg
|
164
120
|
- spec/data/test.pdf
|
165
|
-
- spec/iiif_s3/builder_spec.rb
|
166
|
-
- spec/iiif_s3/collection_spec.rb
|
167
|
-
- spec/iiif_s3/config_spec.rb
|
168
|
-
- spec/iiif_s3/image_info_spec.rb
|
169
|
-
- spec/iiif_s3/image_record_spec.rb
|
170
|
-
- spec/iiif_s3/image_variant_spec.rb
|
171
|
-
- spec/iiif_s3/manifest_spec.rb
|
172
|
-
- spec/iiif_s3/utilities/pdf_splitter_spec.rb
|
173
121
|
- spec/shared_contexts.rb
|
174
122
|
- spec/spec_helper.rb
|
175
|
-
-
|
123
|
+
- spec/wax_iiif/builder_spec.rb
|
124
|
+
- spec/wax_iiif/collection_spec.rb
|
125
|
+
- spec/wax_iiif/config_spec.rb
|
126
|
+
- spec/wax_iiif/image_info_spec.rb
|
127
|
+
- spec/wax_iiif/image_record_spec.rb
|
128
|
+
- spec/wax_iiif/image_variant_spec.rb
|
129
|
+
- spec/wax_iiif/manifest_spec.rb
|
130
|
+
- spec/wax_iiif/utilities/pdf_splitter_spec.rb
|
176
131
|
- wax_iiif.gemspec
|
177
|
-
homepage: https://github.com/
|
132
|
+
homepage: https://github.com/minicomp/wax_iiif
|
178
133
|
licenses:
|
179
134
|
- MIT
|
180
135
|
metadata: {}
|
@@ -197,7 +152,7 @@ rubyforge_project:
|
|
197
152
|
rubygems_version: 2.7.6
|
198
153
|
signing_key:
|
199
154
|
specification_version: 4
|
200
|
-
summary: Minimal
|
155
|
+
summary: Minimal IIIF level 0 generator
|
201
156
|
test_files:
|
202
157
|
- spec/base_properties_spec.rb
|
203
158
|
- spec/data/blank.csv
|
@@ -206,13 +161,13 @@ test_files:
|
|
206
161
|
- spec/data/test.csv
|
207
162
|
- spec/data/test.jpg
|
208
163
|
- spec/data/test.pdf
|
209
|
-
- spec/iiif_s3/builder_spec.rb
|
210
|
-
- spec/iiif_s3/collection_spec.rb
|
211
|
-
- spec/iiif_s3/config_spec.rb
|
212
|
-
- spec/iiif_s3/image_info_spec.rb
|
213
|
-
- spec/iiif_s3/image_record_spec.rb
|
214
|
-
- spec/iiif_s3/image_variant_spec.rb
|
215
|
-
- spec/iiif_s3/manifest_spec.rb
|
216
|
-
- spec/iiif_s3/utilities/pdf_splitter_spec.rb
|
217
164
|
- spec/shared_contexts.rb
|
218
165
|
- spec/spec_helper.rb
|
166
|
+
- spec/wax_iiif/builder_spec.rb
|
167
|
+
- spec/wax_iiif/collection_spec.rb
|
168
|
+
- spec/wax_iiif/config_spec.rb
|
169
|
+
- spec/wax_iiif/image_info_spec.rb
|
170
|
+
- spec/wax_iiif/image_record_spec.rb
|
171
|
+
- spec/wax_iiif/image_variant_spec.rb
|
172
|
+
- spec/wax_iiif/manifest_spec.rb
|
173
|
+
- spec/wax_iiif/utilities/pdf_splitter_spec.rb
|