osullivan 0.0.2

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.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +4 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +4 -0
  5. data/Gemfile +2 -0
  6. data/LICENSE +23 -0
  7. data/README.md +166 -0
  8. data/Rakefile +12 -0
  9. data/VERSION +1 -0
  10. data/lib/active_support/ordered_hash.rb +147 -0
  11. data/lib/iiif/hash_behaviours.rb +150 -0
  12. data/lib/iiif/presentation.rb +25 -0
  13. data/lib/iiif/presentation/abstract_resource.rb +75 -0
  14. data/lib/iiif/presentation/annotation.rb +25 -0
  15. data/lib/iiif/presentation/annotation_list.rb +28 -0
  16. data/lib/iiif/presentation/canvas.rb +45 -0
  17. data/lib/iiif/presentation/collection.rb +29 -0
  18. data/lib/iiif/presentation/image_resource.rb +115 -0
  19. data/lib/iiif/presentation/layer.rb +34 -0
  20. data/lib/iiif/presentation/manifest.rb +39 -0
  21. data/lib/iiif/presentation/range.rb +32 -0
  22. data/lib/iiif/presentation/resource.rb +21 -0
  23. data/lib/iiif/presentation/sequence.rb +35 -0
  24. data/lib/iiif/service.rb +418 -0
  25. data/osullivan.gemspec +27 -0
  26. data/spec/fixtures/manifests/complete_from_spec.json +171 -0
  27. data/spec/fixtures/manifests/minimal.json +40 -0
  28. data/spec/fixtures/manifests/service_only.json +11 -0
  29. data/spec/fixtures/vcr_cassettes/pul_loris_cassette.json +159 -0
  30. data/spec/integration/iiif/presentation/image_resource_spec.rb +123 -0
  31. data/spec/integration/iiif/service_spec.rb +211 -0
  32. data/spec/spec_helper.rb +104 -0
  33. data/spec/unit/active_support/ordered_hash_spec.rb +155 -0
  34. data/spec/unit/iiif/hash_behaviours_spec.rb +569 -0
  35. data/spec/unit/iiif/presentation/abstract_resource_spec.rb +133 -0
  36. data/spec/unit/iiif/presentation/annotation_list_spec.rb +7 -0
  37. data/spec/unit/iiif/presentation/annotation_spec.rb +7 -0
  38. data/spec/unit/iiif/presentation/canvas_spec.rb +40 -0
  39. data/spec/unit/iiif/presentation/collection_spec.rb +54 -0
  40. data/spec/unit/iiif/presentation/image_resource_spec.rb +13 -0
  41. data/spec/unit/iiif/presentation/layer_spec.rb +38 -0
  42. data/spec/unit/iiif/presentation/manifest_spec.rb +89 -0
  43. data/spec/unit/iiif/presentation/range_spec.rb +43 -0
  44. data/spec/unit/iiif/presentation/resource_spec.rb +16 -0
  45. data/spec/unit/iiif/presentation/sequence_spec.rb +110 -0
  46. data/spec/unit/iiif/presentation/shared_examples/abstract_resource_only_keys.rb +43 -0
  47. data/spec/unit/iiif/presentation/shared_examples/any_type_keys.rb +33 -0
  48. data/spec/unit/iiif/presentation/shared_examples/array_only_keys.rb +44 -0
  49. data/spec/unit/iiif/presentation/shared_examples/int_only_keys.rb +49 -0
  50. data/spec/unit/iiif/presentation/shared_examples/string_only_keys.rb +29 -0
  51. data/spec/unit/iiif/service_spec.rb +10 -0
  52. metadata +246 -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
+
@@ -0,0 +1,10 @@
1
+ describe IIIF::Service do
2
+
3
+ describe 'self#get_descendant_class_by_jld_type' do
4
+ it 'gets the right class' do
5
+ klass = described_class.get_descendant_class_by_jld_type('sc:Canvas')
6
+ expect(klass).to be IIIF::Presentation::Canvas
7
+ end
8
+ end
9
+
10
+ end
metadata ADDED
@@ -0,0 +1,246 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: osullivan
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Jon Stroop
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-01-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: vcr
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 2.9.3
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 2.9.3
97
+ - !ruby/object:Gem::Dependency
98
+ name: json
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: activesupport
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '3.2'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '3.2'
125
+ - !ruby/object:Gem::Dependency
126
+ name: faraday
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.9.0
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.9.0
139
+ description: API for working with IIIF Presentation manifests.
140
+ email:
141
+ - jpstroop@gmail.com
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - ".gitignore"
147
+ - ".rspec"
148
+ - ".travis.yml"
149
+ - Gemfile
150
+ - LICENSE
151
+ - README.md
152
+ - Rakefile
153
+ - VERSION
154
+ - lib/active_support/ordered_hash.rb
155
+ - lib/iiif/hash_behaviours.rb
156
+ - lib/iiif/presentation.rb
157
+ - lib/iiif/presentation/abstract_resource.rb
158
+ - lib/iiif/presentation/annotation.rb
159
+ - lib/iiif/presentation/annotation_list.rb
160
+ - lib/iiif/presentation/canvas.rb
161
+ - lib/iiif/presentation/collection.rb
162
+ - lib/iiif/presentation/image_resource.rb
163
+ - lib/iiif/presentation/layer.rb
164
+ - lib/iiif/presentation/manifest.rb
165
+ - lib/iiif/presentation/range.rb
166
+ - lib/iiif/presentation/resource.rb
167
+ - lib/iiif/presentation/sequence.rb
168
+ - lib/iiif/service.rb
169
+ - osullivan.gemspec
170
+ - spec/fixtures/manifests/complete_from_spec.json
171
+ - spec/fixtures/manifests/minimal.json
172
+ - spec/fixtures/manifests/service_only.json
173
+ - spec/fixtures/vcr_cassettes/pul_loris_cassette.json
174
+ - spec/integration/iiif/presentation/image_resource_spec.rb
175
+ - spec/integration/iiif/service_spec.rb
176
+ - spec/spec_helper.rb
177
+ - spec/unit/active_support/ordered_hash_spec.rb
178
+ - spec/unit/iiif/hash_behaviours_spec.rb
179
+ - spec/unit/iiif/presentation/abstract_resource_spec.rb
180
+ - spec/unit/iiif/presentation/annotation_list_spec.rb
181
+ - spec/unit/iiif/presentation/annotation_spec.rb
182
+ - spec/unit/iiif/presentation/canvas_spec.rb
183
+ - spec/unit/iiif/presentation/collection_spec.rb
184
+ - spec/unit/iiif/presentation/image_resource_spec.rb
185
+ - spec/unit/iiif/presentation/layer_spec.rb
186
+ - spec/unit/iiif/presentation/manifest_spec.rb
187
+ - spec/unit/iiif/presentation/range_spec.rb
188
+ - spec/unit/iiif/presentation/resource_spec.rb
189
+ - spec/unit/iiif/presentation/sequence_spec.rb
190
+ - spec/unit/iiif/presentation/shared_examples/abstract_resource_only_keys.rb
191
+ - spec/unit/iiif/presentation/shared_examples/any_type_keys.rb
192
+ - spec/unit/iiif/presentation/shared_examples/array_only_keys.rb
193
+ - spec/unit/iiif/presentation/shared_examples/int_only_keys.rb
194
+ - spec/unit/iiif/presentation/shared_examples/string_only_keys.rb
195
+ - spec/unit/iiif/service_spec.rb
196
+ homepage: https://github.com/jpstroop/osullivan
197
+ licenses:
198
+ - Simplified BSD
199
+ metadata: {}
200
+ post_install_message:
201
+ rdoc_options: []
202
+ require_paths:
203
+ - lib
204
+ required_ruby_version: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ required_rubygems_version: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ requirements: []
215
+ rubyforge_project:
216
+ rubygems_version: 2.4.3
217
+ signing_key:
218
+ specification_version: 4
219
+ summary: API for working with IIIF Presentation manifests.
220
+ test_files:
221
+ - spec/fixtures/manifests/complete_from_spec.json
222
+ - spec/fixtures/manifests/minimal.json
223
+ - spec/fixtures/manifests/service_only.json
224
+ - spec/fixtures/vcr_cassettes/pul_loris_cassette.json
225
+ - spec/integration/iiif/presentation/image_resource_spec.rb
226
+ - spec/integration/iiif/service_spec.rb
227
+ - spec/spec_helper.rb
228
+ - spec/unit/active_support/ordered_hash_spec.rb
229
+ - spec/unit/iiif/hash_behaviours_spec.rb
230
+ - spec/unit/iiif/presentation/abstract_resource_spec.rb
231
+ - spec/unit/iiif/presentation/annotation_list_spec.rb
232
+ - spec/unit/iiif/presentation/annotation_spec.rb
233
+ - spec/unit/iiif/presentation/canvas_spec.rb
234
+ - spec/unit/iiif/presentation/collection_spec.rb
235
+ - spec/unit/iiif/presentation/image_resource_spec.rb
236
+ - spec/unit/iiif/presentation/layer_spec.rb
237
+ - spec/unit/iiif/presentation/manifest_spec.rb
238
+ - spec/unit/iiif/presentation/range_spec.rb
239
+ - spec/unit/iiif/presentation/resource_spec.rb
240
+ - spec/unit/iiif/presentation/sequence_spec.rb
241
+ - spec/unit/iiif/presentation/shared_examples/abstract_resource_only_keys.rb
242
+ - spec/unit/iiif/presentation/shared_examples/any_type_keys.rb
243
+ - spec/unit/iiif/presentation/shared_examples/array_only_keys.rb
244
+ - spec/unit/iiif/presentation/shared_examples/int_only_keys.rb
245
+ - spec/unit/iiif/presentation/shared_examples/string_only_keys.rb
246
+ - spec/unit/iiif/service_spec.rb