iiif-presentation 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/Gemfile +2 -0
- data/LICENSE +23 -0
- data/README.md +173 -0
- data/Rakefile +12 -0
- data/VERSION +1 -0
- data/gemfiles/rails3.gemfile +5 -0
- data/gemfiles/rails4.gemfile +5 -0
- data/iiif-presentation.gemspec +28 -0
- data/lib/active_support/ordered_hash.rb +147 -0
- data/lib/iiif/hash_behaviours.rb +150 -0
- data/lib/iiif/presentation.rb +25 -0
- data/lib/iiif/presentation/abstract_resource.rb +75 -0
- data/lib/iiif/presentation/annotation.rb +25 -0
- data/lib/iiif/presentation/annotation_list.rb +28 -0
- data/lib/iiif/presentation/canvas.rb +45 -0
- data/lib/iiif/presentation/collection.rb +29 -0
- data/lib/iiif/presentation/image_resource.rb +115 -0
- data/lib/iiif/presentation/layer.rb +34 -0
- data/lib/iiif/presentation/manifest.rb +39 -0
- data/lib/iiif/presentation/range.rb +32 -0
- data/lib/iiif/presentation/resource.rb +21 -0
- data/lib/iiif/presentation/sequence.rb +35 -0
- data/lib/iiif/service.rb +418 -0
- data/spec/fixtures/manifests/complete_from_spec.json +171 -0
- data/spec/fixtures/manifests/minimal.json +40 -0
- data/spec/fixtures/manifests/service_only.json +11 -0
- data/spec/fixtures/vcr_cassettes/pul_loris_cassette.json +159 -0
- data/spec/integration/iiif/presentation/image_resource_spec.rb +123 -0
- data/spec/integration/iiif/service_spec.rb +211 -0
- data/spec/spec_helper.rb +104 -0
- data/spec/unit/active_support/ordered_hash_spec.rb +155 -0
- data/spec/unit/iiif/hash_behaviours_spec.rb +569 -0
- data/spec/unit/iiif/presentation/abstract_resource_spec.rb +133 -0
- data/spec/unit/iiif/presentation/annotation_list_spec.rb +7 -0
- data/spec/unit/iiif/presentation/annotation_spec.rb +7 -0
- data/spec/unit/iiif/presentation/canvas_spec.rb +40 -0
- data/spec/unit/iiif/presentation/collection_spec.rb +54 -0
- data/spec/unit/iiif/presentation/image_resource_spec.rb +13 -0
- data/spec/unit/iiif/presentation/layer_spec.rb +38 -0
- data/spec/unit/iiif/presentation/manifest_spec.rb +89 -0
- data/spec/unit/iiif/presentation/range_spec.rb +43 -0
- data/spec/unit/iiif/presentation/resource_spec.rb +16 -0
- data/spec/unit/iiif/presentation/sequence_spec.rb +110 -0
- data/spec/unit/iiif/presentation/shared_examples/abstract_resource_only_keys.rb +43 -0
- data/spec/unit/iiif/presentation/shared_examples/any_type_keys.rb +33 -0
- data/spec/unit/iiif/presentation/shared_examples/array_only_keys.rb +44 -0
- data/spec/unit/iiif/presentation/shared_examples/int_only_keys.rb +49 -0
- data/spec/unit/iiif/presentation/shared_examples/string_only_keys.rb +29 -0
- data/spec/unit/iiif/service_spec.rb +10 -0
- metadata +262 -0
@@ -0,0 +1,110 @@
|
|
1
|
+
describe IIIF::Presentation::Sequence do
|
2
|
+
|
3
|
+
let(:subclass_subject) do
|
4
|
+
Class.new(IIIF::Presentation::Sequence) do
|
5
|
+
def initialize(hsh={})
|
6
|
+
hsh = { '@type' => 'a:SubClass' }
|
7
|
+
super(hsh)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
let(:fixed_values) do
|
13
|
+
{
|
14
|
+
'@type' => 'sc:Sequence',
|
15
|
+
'@id' => 'http://example.com/prefix/sequence/456',
|
16
|
+
'@context' => IIIF::Presentation::CONTEXT,
|
17
|
+
'label' => 'Book 1',
|
18
|
+
'description' => 'A longer description of this example book. It should give some real information.',
|
19
|
+
'thumbnail' => {
|
20
|
+
'@id' => 'http://www.example.org/images/book1-page1/full/80,100/0/default.jpg',
|
21
|
+
'service'=> {
|
22
|
+
'@context' => 'http://iiif.io/api/image/2/context.json',
|
23
|
+
'@id' => 'http://www.example.org/images/book1-page1',
|
24
|
+
'profile' => 'http://iiif.io/api/image/2/level1.json'
|
25
|
+
}
|
26
|
+
},
|
27
|
+
'attribution' => 'Provided by Example Organization',
|
28
|
+
'license' => 'http://www.example.org/license.html',
|
29
|
+
'logo' => 'http://www.example.org/logos/institution1.jpg',
|
30
|
+
'see_also' => 'http://www.example.org/library/catalog/book1.xml',
|
31
|
+
'service' => {
|
32
|
+
'@context' => 'http://example.org/ns/jsonld/context.json',
|
33
|
+
'@id' => 'http://example.org/service/example',
|
34
|
+
'profile' => 'http://example.org/docs/example-service.html'
|
35
|
+
},
|
36
|
+
'related' => {
|
37
|
+
'@id' => 'http://www.example.org/videos/video-book1.mpg',
|
38
|
+
'format' => 'video/mpeg'
|
39
|
+
},
|
40
|
+
'within' => 'http://www.example.org/collections/books/',
|
41
|
+
# Sequence
|
42
|
+
'metadata' => [{'label'=>'Author', 'value'=>'Anne Author'}],
|
43
|
+
'canvases' => [{
|
44
|
+
'@id' => 'http://www.example.org/iiif/book1/canvas/p1',
|
45
|
+
'@type' => 'sc:Canvas',
|
46
|
+
'label' => 'p. 1',
|
47
|
+
'height' => 1000,
|
48
|
+
'width' => 750,
|
49
|
+
'images'=> []
|
50
|
+
}],
|
51
|
+
'viewing_hint' => 'paged',
|
52
|
+
'start_canvas' => 'http://www.example.org/iiif/book1/canvas/p2',
|
53
|
+
'viewing_direction' => 'right-to-left',
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
describe '#initialize' do
|
58
|
+
it 'sets @type to sc:Sequence by default' do
|
59
|
+
expect(subject['@type']).to eq 'sc:Sequence'
|
60
|
+
end
|
61
|
+
it 'allows subclasses to override @type' do
|
62
|
+
sub = subclass_subject.new
|
63
|
+
expect(sub['@type']).to eq 'a:SubClass'
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
describe '#required_keys' do
|
68
|
+
it 'accumulates from the superclass' do
|
69
|
+
expect(subject.required_keys).to eq %w{ @type }
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
describe '#string_only_keys' do
|
74
|
+
it 'accumulates from the superclass' do
|
75
|
+
expect(subject.string_only_keys).to eq %w{ viewing_hint start_canvas viewing_direction }
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
describe '#array_only_keys' do
|
80
|
+
it 'accumulates from the superclass' do
|
81
|
+
expect(subject.array_only_keys).to eq %w{ metadata canvases }
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
describe "#{described_class}.define_methods_for_array_only_keys" do
|
86
|
+
it_behaves_like 'it has the appropriate methods for array-only keys'
|
87
|
+
end
|
88
|
+
|
89
|
+
describe "#{described_class}.define_methods_for_string_only_keys" do
|
90
|
+
it_behaves_like 'it has the appropriate methods for string-only keys'
|
91
|
+
end
|
92
|
+
|
93
|
+
describe "#{described_class}.define_methods_for_any_type_keys" do
|
94
|
+
it_behaves_like 'it has the appropriate methods for any-type keys'
|
95
|
+
end
|
96
|
+
|
97
|
+
describe '#validate' do
|
98
|
+
it 'raises an error if viewing_hint isn\'t an allowable value' do
|
99
|
+
subject['viewing_hint'] = 'foo'
|
100
|
+
expect { subject.validate }.to raise_error IIIF::Presentation::IllegalValueError
|
101
|
+
end
|
102
|
+
it 'raises an error if viewing_directon isn\'t an allowable value' do
|
103
|
+
subject['viewing_direction'] = 'foo-to-bar'
|
104
|
+
expect { subject.validate }.to raise_error IIIF::Presentation::IllegalValueError
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
|
109
|
+
end
|
110
|
+
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require 'set'
|
2
|
+
|
3
|
+
shared_examples 'it has the appropriate methods for abstract_resource_only_keys' do
|
4
|
+
|
5
|
+
described_class.new.abstract_resource_only_keys.each do |entry|
|
6
|
+
|
7
|
+
describe "#{entry[:key]}=" do
|
8
|
+
it "sets #{entry[:key]}" do
|
9
|
+
@ex = entry[:type].new
|
10
|
+
subject.send("#{entry[:key]}=", @ex)
|
11
|
+
expect(subject[entry[:key]]).to eq @ex
|
12
|
+
end
|
13
|
+
if entry[:key].camelize(:lower) != entry[:key]
|
14
|
+
it "is aliased as ##{entry[:key].camelize(:lower)}=" do
|
15
|
+
@ex = entry[:type].new
|
16
|
+
subject.send("#{entry[:key].camelize(:lower)}=", @ex)
|
17
|
+
expect(subject[entry[:key]]).to eq @ex
|
18
|
+
end
|
19
|
+
end
|
20
|
+
it "raises an exception when attempting to set it to something other than an #{entry[:type]}" do
|
21
|
+
e = IIIF::Presentation::IllegalValueError
|
22
|
+
expect { subject.send("#{entry[:key]}=", 'Foo') }.to raise_error e
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
describe "#{entry[:key]}" do
|
27
|
+
it "gets #{entry[:key]}" do
|
28
|
+
@ex = entry[:type].new
|
29
|
+
subject[entry[:key]] = @ex
|
30
|
+
expect(subject.send(entry[:key])).to eq @ex
|
31
|
+
end
|
32
|
+
if entry[:key].camelize(:lower) != entry[:key]
|
33
|
+
it "is aliased as ##{entry[:key].camelize(:lower)}" do
|
34
|
+
@ex = entry[:type].new
|
35
|
+
subject[entry[:key]] = @ex
|
36
|
+
expect(subject.send("#{entry[:key].camelize(:lower)}")).to eq @ex
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'set'
|
2
|
+
|
3
|
+
shared_examples 'it has the appropriate methods for any-type keys' do
|
4
|
+
|
5
|
+
described_class.new.any_type_keys.each do |prop|
|
6
|
+
describe "##{prop}=" do
|
7
|
+
it "sets self['#{prop}']" do
|
8
|
+
subject.send("#{prop}=", fixed_values[prop])
|
9
|
+
expect(subject[prop]).to eq fixed_values[prop]
|
10
|
+
end
|
11
|
+
if prop.camelize(:lower) != prop
|
12
|
+
it "is aliased as ##{prop.camelize(:lower)}=" do
|
13
|
+
subject.send("#{prop.camelize(:lower)}=", fixed_values[prop])
|
14
|
+
expect(subject[prop]).to eq fixed_values[prop]
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
describe "##{prop}" do
|
20
|
+
it "gets self[#{prop}]" do
|
21
|
+
subject.send("[]=", prop, fixed_values[prop])
|
22
|
+
expect(subject.send("#{prop}")).to eq fixed_values[prop]
|
23
|
+
end
|
24
|
+
if prop.camelize(:lower) != prop
|
25
|
+
it "is aliased as ##{prop.camelize(:lower)}" do
|
26
|
+
subject.send("[]=", prop, fixed_values[prop])
|
27
|
+
expect(subject.send("#{prop.camelize(:lower)}")).to eq fixed_values[prop]
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'set'
|
2
|
+
|
3
|
+
shared_examples 'it has the appropriate methods for array-only keys' do
|
4
|
+
|
5
|
+
described_class.new.array_only_keys.each do |prop|
|
6
|
+
|
7
|
+
describe "#{prop}=" do
|
8
|
+
it "sets #{prop}" do
|
9
|
+
ex = [{'label' => 'XYZ'}]
|
10
|
+
subject.send("#{prop}=", ex)
|
11
|
+
expect(subject[prop]).to eq ex
|
12
|
+
end
|
13
|
+
if prop.camelize(:lower) != prop
|
14
|
+
it "is aliased as ##{prop.camelize(:lower)}=" do
|
15
|
+
ex = [{'label' => 'XYZ'}]
|
16
|
+
subject.send("#{prop.camelize(:lower)}=", ex)
|
17
|
+
expect(subject[prop]).to eq ex
|
18
|
+
end
|
19
|
+
end
|
20
|
+
it 'raises an exception when attempting to set it to something other than an Array' do
|
21
|
+
expect { subject.send("#{prop}=", 'Foo') }.to raise_error IIIF::Presentation::IllegalValueError
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
describe "#{prop}" do
|
26
|
+
it "gets #{prop}" do
|
27
|
+
ex = [{'label' => 'XYZ'}]
|
28
|
+
subject[prop] = ex
|
29
|
+
expect(subject.send(prop)).to eq ex
|
30
|
+
end
|
31
|
+
if prop.camelize(:lower) != prop
|
32
|
+
it "is aliased as ##{prop.camelize(:lower)}" do
|
33
|
+
ex = [{'label' => 'XYZ'}]
|
34
|
+
subject[prop] = ex
|
35
|
+
expect(subject.send("#{prop.camelize(:lower)}")).to eq ex
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'set'
|
2
|
+
|
3
|
+
shared_examples 'it has the appropriate methods for integer-only keys' do
|
4
|
+
|
5
|
+
described_class.new.int_only_keys.each do |prop|
|
6
|
+
|
7
|
+
describe "#{prop}=" do
|
8
|
+
before(:all) do
|
9
|
+
@ex = 7200
|
10
|
+
end
|
11
|
+
it "sets #{prop}" do
|
12
|
+
subject.send("#{prop}=", @ex)
|
13
|
+
expect(subject[prop]).to eq @ex
|
14
|
+
end
|
15
|
+
if prop.camelize(:lower) != prop
|
16
|
+
it "is aliased as ##{prop.camelize(:lower)}=" do
|
17
|
+
subject.send("#{prop.camelize(:lower)}=", @ex)
|
18
|
+
expect(subject[prop]).to eq @ex
|
19
|
+
end
|
20
|
+
end
|
21
|
+
it 'raises an exception when attempting to set it to something other than an Integer' do
|
22
|
+
expect { subject.send("#{prop}=", 'Foo') }.to raise_error IIIF::Presentation::IllegalValueError
|
23
|
+
end
|
24
|
+
it 'raises an exception when attempting to set it to a negative number' do
|
25
|
+
expect { subject.send("#{prop}=", -1) }.to raise_error IIIF::Presentation::IllegalValueError
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
describe "#{prop}" do
|
30
|
+
before(:all) do
|
31
|
+
@ex = 7200
|
32
|
+
end
|
33
|
+
it "gets #{prop}" do
|
34
|
+
subject[prop] = @ex
|
35
|
+
expect(subject.send(prop)).to eq @ex
|
36
|
+
end
|
37
|
+
if prop.camelize(:lower) != prop
|
38
|
+
it "is aliased as ##{prop.camelize(:lower)}" do
|
39
|
+
subject[prop] = @ex
|
40
|
+
expect(subject.send("#{prop.camelize(:lower)}")).to eq @ex
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
49
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'set'
|
2
|
+
|
3
|
+
shared_examples 'it has the appropriate methods for string-only keys' do
|
4
|
+
|
5
|
+
described_class.new.string_only_keys.each do |prop|
|
6
|
+
|
7
|
+
describe "#{prop}=" do
|
8
|
+
it "sets #{prop}" do
|
9
|
+
ex = 'foo'
|
10
|
+
subject.send("#{prop}=", ex)
|
11
|
+
expect(subject[prop]).to eq ex
|
12
|
+
end
|
13
|
+
it 'raises an exception when attempting to set it to something other than a String' do
|
14
|
+
expect { subject.send("#{prop}=", ['Foo']) }.to raise_error IIIF::Presentation::IllegalValueError
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "#{prop}" do
|
19
|
+
it "gets #{prop}" do
|
20
|
+
ex = 'bar'
|
21
|
+
subject[prop] = ex
|
22
|
+
expect(subject.send(prop)).to eq ex
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
metadata
ADDED
@@ -0,0 +1,262 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: iiif-presentation
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jon Stroop
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-09-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: coveralls
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: webmock
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: multi_json
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: vcr
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 2.9.3
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 2.9.3
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: json
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: activesupport
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 3.2.18
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 3.2.18
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: faraday
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.9.0
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.9.0
|
153
|
+
description: API for working with IIIF Presentation manifests.
|
154
|
+
email:
|
155
|
+
- jpstroop@gmail.com
|
156
|
+
executables: []
|
157
|
+
extensions: []
|
158
|
+
extra_rdoc_files: []
|
159
|
+
files:
|
160
|
+
- ".gitignore"
|
161
|
+
- ".rspec"
|
162
|
+
- ".travis.yml"
|
163
|
+
- Gemfile
|
164
|
+
- LICENSE
|
165
|
+
- README.md
|
166
|
+
- Rakefile
|
167
|
+
- VERSION
|
168
|
+
- gemfiles/rails3.gemfile
|
169
|
+
- gemfiles/rails4.gemfile
|
170
|
+
- iiif-presentation.gemspec
|
171
|
+
- lib/active_support/ordered_hash.rb
|
172
|
+
- lib/iiif/hash_behaviours.rb
|
173
|
+
- lib/iiif/presentation.rb
|
174
|
+
- lib/iiif/presentation/abstract_resource.rb
|
175
|
+
- lib/iiif/presentation/annotation.rb
|
176
|
+
- lib/iiif/presentation/annotation_list.rb
|
177
|
+
- lib/iiif/presentation/canvas.rb
|
178
|
+
- lib/iiif/presentation/collection.rb
|
179
|
+
- lib/iiif/presentation/image_resource.rb
|
180
|
+
- lib/iiif/presentation/layer.rb
|
181
|
+
- lib/iiif/presentation/manifest.rb
|
182
|
+
- lib/iiif/presentation/range.rb
|
183
|
+
- lib/iiif/presentation/resource.rb
|
184
|
+
- lib/iiif/presentation/sequence.rb
|
185
|
+
- lib/iiif/service.rb
|
186
|
+
- spec/fixtures/manifests/complete_from_spec.json
|
187
|
+
- spec/fixtures/manifests/minimal.json
|
188
|
+
- spec/fixtures/manifests/service_only.json
|
189
|
+
- spec/fixtures/vcr_cassettes/pul_loris_cassette.json
|
190
|
+
- spec/integration/iiif/presentation/image_resource_spec.rb
|
191
|
+
- spec/integration/iiif/service_spec.rb
|
192
|
+
- spec/spec_helper.rb
|
193
|
+
- spec/unit/active_support/ordered_hash_spec.rb
|
194
|
+
- spec/unit/iiif/hash_behaviours_spec.rb
|
195
|
+
- spec/unit/iiif/presentation/abstract_resource_spec.rb
|
196
|
+
- spec/unit/iiif/presentation/annotation_list_spec.rb
|
197
|
+
- spec/unit/iiif/presentation/annotation_spec.rb
|
198
|
+
- spec/unit/iiif/presentation/canvas_spec.rb
|
199
|
+
- spec/unit/iiif/presentation/collection_spec.rb
|
200
|
+
- spec/unit/iiif/presentation/image_resource_spec.rb
|
201
|
+
- spec/unit/iiif/presentation/layer_spec.rb
|
202
|
+
- spec/unit/iiif/presentation/manifest_spec.rb
|
203
|
+
- spec/unit/iiif/presentation/range_spec.rb
|
204
|
+
- spec/unit/iiif/presentation/resource_spec.rb
|
205
|
+
- spec/unit/iiif/presentation/sequence_spec.rb
|
206
|
+
- spec/unit/iiif/presentation/shared_examples/abstract_resource_only_keys.rb
|
207
|
+
- spec/unit/iiif/presentation/shared_examples/any_type_keys.rb
|
208
|
+
- spec/unit/iiif/presentation/shared_examples/array_only_keys.rb
|
209
|
+
- spec/unit/iiif/presentation/shared_examples/int_only_keys.rb
|
210
|
+
- spec/unit/iiif/presentation/shared_examples/string_only_keys.rb
|
211
|
+
- spec/unit/iiif/service_spec.rb
|
212
|
+
homepage: https://github.com/iiif/osullivan
|
213
|
+
licenses:
|
214
|
+
- Simplified BSD
|
215
|
+
metadata: {}
|
216
|
+
post_install_message:
|
217
|
+
rdoc_options: []
|
218
|
+
require_paths:
|
219
|
+
- lib
|
220
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
221
|
+
requirements:
|
222
|
+
- - ">="
|
223
|
+
- !ruby/object:Gem::Version
|
224
|
+
version: '0'
|
225
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
requirements: []
|
231
|
+
rubyforge_project:
|
232
|
+
rubygems_version: 2.4.6
|
233
|
+
signing_key:
|
234
|
+
specification_version: 4
|
235
|
+
summary: API for working with IIIF Presentation manifests.
|
236
|
+
test_files:
|
237
|
+
- spec/fixtures/manifests/complete_from_spec.json
|
238
|
+
- spec/fixtures/manifests/minimal.json
|
239
|
+
- spec/fixtures/manifests/service_only.json
|
240
|
+
- spec/fixtures/vcr_cassettes/pul_loris_cassette.json
|
241
|
+
- spec/integration/iiif/presentation/image_resource_spec.rb
|
242
|
+
- spec/integration/iiif/service_spec.rb
|
243
|
+
- spec/spec_helper.rb
|
244
|
+
- spec/unit/active_support/ordered_hash_spec.rb
|
245
|
+
- spec/unit/iiif/hash_behaviours_spec.rb
|
246
|
+
- spec/unit/iiif/presentation/abstract_resource_spec.rb
|
247
|
+
- spec/unit/iiif/presentation/annotation_list_spec.rb
|
248
|
+
- spec/unit/iiif/presentation/annotation_spec.rb
|
249
|
+
- spec/unit/iiif/presentation/canvas_spec.rb
|
250
|
+
- spec/unit/iiif/presentation/collection_spec.rb
|
251
|
+
- spec/unit/iiif/presentation/image_resource_spec.rb
|
252
|
+
- spec/unit/iiif/presentation/layer_spec.rb
|
253
|
+
- spec/unit/iiif/presentation/manifest_spec.rb
|
254
|
+
- spec/unit/iiif/presentation/range_spec.rb
|
255
|
+
- spec/unit/iiif/presentation/resource_spec.rb
|
256
|
+
- spec/unit/iiif/presentation/sequence_spec.rb
|
257
|
+
- spec/unit/iiif/presentation/shared_examples/abstract_resource_only_keys.rb
|
258
|
+
- spec/unit/iiif/presentation/shared_examples/any_type_keys.rb
|
259
|
+
- spec/unit/iiif/presentation/shared_examples/array_only_keys.rb
|
260
|
+
- spec/unit/iiif/presentation/shared_examples/int_only_keys.rb
|
261
|
+
- spec/unit/iiif/presentation/shared_examples/string_only_keys.rb
|
262
|
+
- spec/unit/iiif/service_spec.rb
|