assembly-objectfile 2.2.1 → 2.4.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/.circleci/config.yml +1 -1
- data/.rubocop.yml +171 -4
- data/Gemfile.lock +42 -45
- data/Rakefile +2 -8
- data/bin/console +8 -2
- data/lib/assembly/object_file/version.rb +1 -1
- data/lib/assembly-objectfile.rb +5 -1
- data/spec/assembly/object_file_spec.rb +22 -0
- data/spec/fixtures/input/arc_metadata.tif.xml +2153 -0
- data/spec/fixtures/input/index_map.geojson +9 -0
- data/spec/fixtures/input/tif_overview.tif.ovr +0 -0
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 573f33db1e5eaf184ce40a88c40c0f194d5bceb3b7f4c4064e457c25b90e50f6
|
|
4
|
+
data.tar.gz: 82d86665fee350c6e21be0336cb6551373dde51ac60d1f14e4574e14663a00d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ccd8fdca0e0dc2faf6186be255140cd52d7dc0f0f159e79dbbd9057a1916bd136940f0165d570f1ea7fd1b0b1103053535cd998621248b2ef5b792f9ad7c6ab7
|
|
7
|
+
data.tar.gz: 659a0abed78f1583c8ad8e5f9227634946e0129f8dc6991a9336cb83542f7029bd1579b6159693772be616aa23b66661180a50102e8b9038031cec882e8f06e1
|
data/.circleci/config.yml
CHANGED
data/.rubocop.yml
CHANGED
|
@@ -32,7 +32,7 @@ Naming/FileName:
|
|
|
32
32
|
Exclude:
|
|
33
33
|
- 'lib/assembly-objectfile.rb'
|
|
34
34
|
|
|
35
|
-
Naming/
|
|
35
|
+
Naming/PredicatePrefix:
|
|
36
36
|
ForbiddenPrefixes:
|
|
37
37
|
- has_
|
|
38
38
|
- have_
|
|
@@ -221,7 +221,7 @@ Lint/ConstantOverwrittenInRescue: # new in 1.31
|
|
|
221
221
|
Enabled: true
|
|
222
222
|
Lint/NonAtomicFileOperation: # new in 1.31
|
|
223
223
|
Enabled: true
|
|
224
|
-
Capybara/SpecificMatcher: # new in 2.12
|
|
224
|
+
Capybara/RSpec/SpecificMatcher: # new in 2.12
|
|
225
225
|
Enabled: true
|
|
226
226
|
RSpecRails/HaveHttpStatus: # new in 2.12
|
|
227
227
|
Enabled: true
|
|
@@ -287,9 +287,9 @@ Style/RedundantRegexpConstructor: # new in 1.52
|
|
|
287
287
|
Enabled: true
|
|
288
288
|
Style/RedundantStringEscape: # new in 1.37
|
|
289
289
|
Enabled: true
|
|
290
|
-
Capybara/MatchStyle: # new in 2.17
|
|
290
|
+
Capybara/RSpec/MatchStyle: # new in 2.17
|
|
291
291
|
Enabled: true
|
|
292
|
-
Capybara/NegationMatcher: # new in 2.14
|
|
292
|
+
Capybara/RSpec/NegationMatcher: # new in 2.14
|
|
293
293
|
Enabled: true
|
|
294
294
|
Capybara/SpecificActions: # new in 2.14
|
|
295
295
|
Enabled: true
|
|
@@ -327,3 +327,170 @@ RSpecRails/MinitestAssertions: # new in 2.17
|
|
|
327
327
|
Enabled: true
|
|
328
328
|
RSpecRails/TravelAround: # new in 2.19
|
|
329
329
|
Enabled: true
|
|
330
|
+
|
|
331
|
+
Gemspec/AddRuntimeDependency: # new in 1.65
|
|
332
|
+
Enabled: true
|
|
333
|
+
Gemspec/AttributeAssignment: # new in 1.77
|
|
334
|
+
Enabled: true
|
|
335
|
+
Layout/EmptyLinesAfterModuleInclusion: # new in 1.79
|
|
336
|
+
Enabled: true
|
|
337
|
+
Lint/ArrayLiteralInRegexp: # new in 1.71
|
|
338
|
+
Enabled: true
|
|
339
|
+
Lint/ConstantReassignment: # new in 1.70
|
|
340
|
+
Enabled: true
|
|
341
|
+
Lint/CopDirectiveSyntax: # new in 1.72
|
|
342
|
+
Enabled: true
|
|
343
|
+
Lint/DataDefineOverride: # new in 1.85
|
|
344
|
+
Enabled: true
|
|
345
|
+
Lint/DuplicateSetElement: # new in 1.67
|
|
346
|
+
Enabled: true
|
|
347
|
+
Lint/HashNewWithKeywordArgumentsAsDefault: # new in 1.69
|
|
348
|
+
Enabled: true
|
|
349
|
+
Lint/ItWithoutArgumentsInBlock: # new in 1.59
|
|
350
|
+
Enabled: true
|
|
351
|
+
Lint/LiteralAssignmentInCondition: # new in 1.58
|
|
352
|
+
Enabled: true
|
|
353
|
+
Lint/MixedCaseRange: # new in 1.53
|
|
354
|
+
Enabled: true
|
|
355
|
+
Lint/NumericOperationWithConstantResult: # new in 1.69
|
|
356
|
+
Enabled: true
|
|
357
|
+
Lint/RedundantRegexpQuantifiers: # new in 1.53
|
|
358
|
+
Enabled: true
|
|
359
|
+
Lint/RedundantTypeConversion: # new in 1.72
|
|
360
|
+
Enabled: true
|
|
361
|
+
Lint/SharedMutableDefault: # new in 1.70
|
|
362
|
+
Enabled: true
|
|
363
|
+
Lint/SuppressedExceptionInNumberConversion: # new in 1.72
|
|
364
|
+
Enabled: true
|
|
365
|
+
Lint/UnescapedBracketInRegexp: # new in 1.68
|
|
366
|
+
Enabled: true
|
|
367
|
+
Lint/UnreachablePatternBranch: # new in 1.85
|
|
368
|
+
Enabled: true
|
|
369
|
+
Lint/UselessConstantScoping: # new in 1.72
|
|
370
|
+
Enabled: true
|
|
371
|
+
Lint/UselessDefaultValueArgument: # new in 1.76
|
|
372
|
+
Enabled: true
|
|
373
|
+
Lint/UselessDefined: # new in 1.69
|
|
374
|
+
Enabled: true
|
|
375
|
+
Lint/UselessNumericOperation: # new in 1.66
|
|
376
|
+
Enabled: true
|
|
377
|
+
Lint/UselessOr: # new in 1.76
|
|
378
|
+
Enabled: true
|
|
379
|
+
Naming/PredicateMethod: # new in 1.76
|
|
380
|
+
Enabled: true
|
|
381
|
+
Style/AmbiguousEndlessMethodDefinition: # new in 1.68
|
|
382
|
+
Enabled: true
|
|
383
|
+
Style/ArrayIntersectWithSingleElement: # new in 1.81
|
|
384
|
+
Enabled: true
|
|
385
|
+
Style/BitwisePredicate: # new in 1.68
|
|
386
|
+
Enabled: true
|
|
387
|
+
Style/CollectionQuerying: # new in 1.77
|
|
388
|
+
Enabled: true
|
|
389
|
+
Style/CombinableDefined: # new in 1.68
|
|
390
|
+
Enabled: true
|
|
391
|
+
Style/ComparableBetween: # new in 1.74
|
|
392
|
+
Enabled: true
|
|
393
|
+
Style/DigChain: # new in 1.69
|
|
394
|
+
Enabled: true
|
|
395
|
+
Style/EmptyClassDefinition: # new in 1.84
|
|
396
|
+
Enabled: true
|
|
397
|
+
Style/EmptyStringInsideInterpolation: # new in 1.76
|
|
398
|
+
Enabled: true
|
|
399
|
+
Style/FileNull: # new in 1.69
|
|
400
|
+
Enabled: true
|
|
401
|
+
Style/FileOpen: # new in 1.85
|
|
402
|
+
Enabled: true
|
|
403
|
+
Style/FileTouch: # new in 1.69
|
|
404
|
+
Enabled: true
|
|
405
|
+
Style/HashFetchChain: # new in 1.75
|
|
406
|
+
Enabled: true
|
|
407
|
+
Style/HashSlice: # new in 1.71
|
|
408
|
+
Enabled: true
|
|
409
|
+
Style/ItAssignment: # new in 1.70
|
|
410
|
+
Enabled: true
|
|
411
|
+
Style/ItBlockParameter: # new in 1.75
|
|
412
|
+
Enabled: true
|
|
413
|
+
Style/KeywordArgumentsMerging: # new in 1.68
|
|
414
|
+
Enabled: true
|
|
415
|
+
Style/MapIntoArray: # new in 1.63
|
|
416
|
+
Enabled: true
|
|
417
|
+
Style/MapJoin: # new in 1.85
|
|
418
|
+
Enabled: true
|
|
419
|
+
Style/ModuleMemberExistenceCheck: # new in 1.82
|
|
420
|
+
Enabled: true
|
|
421
|
+
Style/NegativeArrayIndex: # new in 1.84
|
|
422
|
+
Enabled: true
|
|
423
|
+
Style/OneClassPerFile: # new in 1.85
|
|
424
|
+
Enabled: true
|
|
425
|
+
Style/PartitionInsteadOfDoubleSelect: # new in 1.85
|
|
426
|
+
Enabled: true
|
|
427
|
+
Style/PredicateWithKind: # new in 1.85
|
|
428
|
+
Enabled: true
|
|
429
|
+
Style/ReduceToHash: # new in 1.85
|
|
430
|
+
Enabled: true
|
|
431
|
+
Style/RedundantArrayFlatten: # new in 1.76
|
|
432
|
+
Enabled: true
|
|
433
|
+
Style/RedundantCurrentDirectoryInPath: # new in 1.53
|
|
434
|
+
Enabled: true
|
|
435
|
+
Style/RedundantFormat: # new in 1.72
|
|
436
|
+
Enabled: true
|
|
437
|
+
Style/RedundantInterpolationUnfreeze: # new in 1.66
|
|
438
|
+
Enabled: true
|
|
439
|
+
Style/RedundantMinMaxBy: # new in 1.85
|
|
440
|
+
Enabled: true
|
|
441
|
+
Style/RedundantRegexpArgument: # new in 1.53
|
|
442
|
+
Enabled: true
|
|
443
|
+
Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
|
|
444
|
+
Enabled: true
|
|
445
|
+
Style/ReverseFind: # new in 1.84
|
|
446
|
+
Enabled: true
|
|
447
|
+
Style/SafeNavigationChainLength: # new in 1.68
|
|
448
|
+
Enabled: true
|
|
449
|
+
Style/SelectByKind: # new in 1.85
|
|
450
|
+
Enabled: true
|
|
451
|
+
Style/SelectByRange: # new in 1.85
|
|
452
|
+
Enabled: true
|
|
453
|
+
Style/SendWithLiteralMethodName: # new in 1.64
|
|
454
|
+
Enabled: true
|
|
455
|
+
Style/SingleLineDoEndBlock: # new in 1.57
|
|
456
|
+
Enabled: true
|
|
457
|
+
Style/SuperArguments: # new in 1.64
|
|
458
|
+
Enabled: true
|
|
459
|
+
Style/SuperWithArgsParentheses: # new in 1.58
|
|
460
|
+
Enabled: true
|
|
461
|
+
Style/TallyMethod: # new in 1.85
|
|
462
|
+
Enabled: true
|
|
463
|
+
Style/YAMLFileRead: # new in 1.53
|
|
464
|
+
Enabled: true
|
|
465
|
+
Capybara/AssertStyle: # new in 2.23
|
|
466
|
+
Enabled: true
|
|
467
|
+
Capybara/FindAllFirst: # new in 2.22
|
|
468
|
+
Enabled: true
|
|
469
|
+
Capybara/RedundantWithinFind: # new in 2.20
|
|
470
|
+
Enabled: true
|
|
471
|
+
Capybara/RSpec/CurrentPathExpectation: # new in 1.18
|
|
472
|
+
Enabled: true
|
|
473
|
+
Capybara/RSpec/HaveContent: # new in 2.23
|
|
474
|
+
Enabled: true
|
|
475
|
+
Capybara/RSpec/HaveSelector: # new in 2.19
|
|
476
|
+
Enabled: true
|
|
477
|
+
Capybara/RSpec/NegationMatcherAfterVisit: # new in 2.22
|
|
478
|
+
Enabled: true
|
|
479
|
+
Capybara/RSpec/PredicateMatcher: # new in 2.19
|
|
480
|
+
Enabled: true
|
|
481
|
+
Capybara/RSpec/VisibilityMatcher: # new in 1.39
|
|
482
|
+
Enabled: true
|
|
483
|
+
FactoryBot/ExcessiveCreateList: # new in 2.25
|
|
484
|
+
Enabled: true
|
|
485
|
+
FactoryBot/IdSequence: # new in 2.24
|
|
486
|
+
Enabled: true
|
|
487
|
+
RSpec/IncludeExamples: # new in 3.6
|
|
488
|
+
Enabled: true
|
|
489
|
+
RSpec/LeakyLocalVariable: # new in 3.8
|
|
490
|
+
Enabled: true
|
|
491
|
+
RSpec/Output: # new in 3.9
|
|
492
|
+
Enabled: true
|
|
493
|
+
RSpecRails/HttpStatusNameConsistency: # new in 2.32
|
|
494
|
+
Enabled: true
|
|
495
|
+
RSpecRails/NegationBeValid: # new in 2.23
|
|
496
|
+
Enabled: true
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
assembly-objectfile (2.
|
|
4
|
+
assembly-objectfile (2.4.0)
|
|
5
5
|
activesupport (>= 5.2.0)
|
|
6
6
|
mime-types (> 3)
|
|
7
7
|
mini_exiftool
|
|
@@ -9,7 +9,7 @@ PATH
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: http://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
activesupport (8.1.1)
|
|
12
|
+
activesupport (8.1.3.1)
|
|
13
13
|
base64
|
|
14
14
|
bigdecimal
|
|
15
15
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
@@ -24,59 +24,61 @@ GEM
|
|
|
24
24
|
uri (>= 0.13.1)
|
|
25
25
|
ast (2.4.3)
|
|
26
26
|
base64 (0.3.0)
|
|
27
|
-
bigdecimal (4.
|
|
28
|
-
concurrent-ruby (1.3.
|
|
27
|
+
bigdecimal (4.1.2)
|
|
28
|
+
concurrent-ruby (1.3.8)
|
|
29
29
|
connection_pool (3.0.2)
|
|
30
|
-
date (3.5.1)
|
|
31
30
|
debug (1.11.1)
|
|
32
31
|
irb (~> 1.10)
|
|
33
32
|
reline (>= 0.3.8)
|
|
34
33
|
diff-lcs (1.6.2)
|
|
35
|
-
docile (1.4.1)
|
|
36
34
|
drb (2.2.3)
|
|
37
|
-
erb (6.0.
|
|
38
|
-
i18n (1.
|
|
35
|
+
erb (6.0.7)
|
|
36
|
+
i18n (1.15.2)
|
|
39
37
|
concurrent-ruby (~> 1.0)
|
|
40
|
-
io-console (0.
|
|
41
|
-
irb (1.
|
|
38
|
+
io-console (0.9.2)
|
|
39
|
+
irb (1.18.0)
|
|
42
40
|
pp (>= 0.6.0)
|
|
41
|
+
prism (>= 1.3.0)
|
|
43
42
|
rdoc (>= 4.0.0)
|
|
44
43
|
reline (>= 0.4.2)
|
|
45
|
-
json (2.
|
|
46
|
-
language_server-protocol (3.17.0.
|
|
44
|
+
json (2.21.2)
|
|
45
|
+
language_server-protocol (3.17.0.6)
|
|
47
46
|
lint_roller (1.1.0)
|
|
48
47
|
logger (1.7.0)
|
|
49
48
|
mime-types (3.7.0)
|
|
50
49
|
logger
|
|
51
50
|
mime-types-data (~> 3.2025, >= 3.2025.0507)
|
|
52
|
-
mime-types-data (3.
|
|
51
|
+
mime-types-data (3.2026.0701)
|
|
53
52
|
mini_exiftool (2.14.0)
|
|
54
53
|
ostruct (>= 0.6.0)
|
|
55
54
|
pstore (>= 0.1.3)
|
|
56
|
-
minitest (6.0.
|
|
55
|
+
minitest (6.0.6)
|
|
56
|
+
drb (~> 2.0)
|
|
57
57
|
prism (~> 1.5)
|
|
58
58
|
ostruct (0.6.3)
|
|
59
|
-
parallel (1.
|
|
60
|
-
parser (3.3.
|
|
59
|
+
parallel (2.1.0)
|
|
60
|
+
parser (3.3.12.0)
|
|
61
61
|
ast (~> 2.4.1)
|
|
62
62
|
racc
|
|
63
|
-
pp (0.6.
|
|
63
|
+
pp (0.6.4)
|
|
64
64
|
prettyprint
|
|
65
65
|
prettyprint (0.2.0)
|
|
66
|
-
prism (1.
|
|
67
|
-
pstore (0.2.
|
|
68
|
-
psych (5.3.1)
|
|
69
|
-
date
|
|
70
|
-
stringio
|
|
66
|
+
prism (1.9.0)
|
|
67
|
+
pstore (0.2.1)
|
|
71
68
|
racc (1.8.1)
|
|
72
69
|
rainbow (3.1.1)
|
|
73
|
-
rake (13.
|
|
74
|
-
|
|
70
|
+
rake (13.4.2)
|
|
71
|
+
rbs (4.1.3)
|
|
72
|
+
logger
|
|
73
|
+
prism (>= 1.6.0)
|
|
74
|
+
tsort
|
|
75
|
+
rdoc (8.0.0)
|
|
75
76
|
erb
|
|
76
|
-
|
|
77
|
+
prism (>= 1.6.0)
|
|
78
|
+
rbs (>= 4.0.0)
|
|
77
79
|
tsort
|
|
78
|
-
regexp_parser (2.
|
|
79
|
-
reline (0.
|
|
80
|
+
regexp_parser (2.12.0)
|
|
81
|
+
reline (0.7.0)
|
|
80
82
|
io-console (~> 0.5)
|
|
81
83
|
rspec (3.13.2)
|
|
82
84
|
rspec-core (~> 3.13.0)
|
|
@@ -87,46 +89,41 @@ GEM
|
|
|
87
89
|
rspec-expectations (3.13.5)
|
|
88
90
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
89
91
|
rspec-support (~> 3.13.0)
|
|
90
|
-
rspec-mocks (3.13.
|
|
92
|
+
rspec-mocks (3.13.8)
|
|
91
93
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
92
94
|
rspec-support (~> 3.13.0)
|
|
93
|
-
rspec-support (3.13.
|
|
94
|
-
rubocop (1.
|
|
95
|
+
rspec-support (3.13.7)
|
|
96
|
+
rubocop (1.89.0)
|
|
95
97
|
json (~> 2.3)
|
|
96
98
|
language_server-protocol (~> 3.17.0.2)
|
|
97
99
|
lint_roller (~> 1.1.0)
|
|
98
|
-
parallel (
|
|
100
|
+
parallel (>= 1.10)
|
|
99
101
|
parser (>= 3.3.0.2)
|
|
100
102
|
rainbow (>= 2.2.2, < 4.0)
|
|
101
103
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
102
|
-
rubocop-ast (>= 1.
|
|
104
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
103
105
|
ruby-progressbar (~> 1.7)
|
|
104
106
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
105
|
-
rubocop-ast (1.
|
|
107
|
+
rubocop-ast (1.50.0)
|
|
106
108
|
parser (>= 3.3.7.2)
|
|
107
109
|
prism (~> 1.7)
|
|
108
|
-
rubocop-capybara (
|
|
110
|
+
rubocop-capybara (3.0.0)
|
|
109
111
|
lint_roller (~> 1.1)
|
|
110
|
-
rubocop (~> 1.
|
|
112
|
+
rubocop (~> 1.81)
|
|
111
113
|
rubocop-factory_bot (2.28.0)
|
|
112
114
|
lint_roller (~> 1.1)
|
|
113
115
|
rubocop (~> 1.72, >= 1.72.1)
|
|
114
|
-
rubocop-rspec (3.
|
|
116
|
+
rubocop-rspec (3.10.2)
|
|
115
117
|
lint_roller (~> 1.1)
|
|
116
|
-
|
|
118
|
+
regexp_parser (>= 2.0)
|
|
119
|
+
rubocop (~> 1.86, >= 1.86.2)
|
|
117
120
|
rubocop-rspec_rails (2.32.0)
|
|
118
121
|
lint_roller (~> 1.1)
|
|
119
122
|
rubocop (~> 1.72, >= 1.72.1)
|
|
120
123
|
rubocop-rspec (~> 3.5)
|
|
121
124
|
ruby-progressbar (1.13.0)
|
|
122
125
|
securerandom (0.4.1)
|
|
123
|
-
simplecov (0.
|
|
124
|
-
docile (~> 1.1)
|
|
125
|
-
simplecov-html (~> 0.11)
|
|
126
|
-
simplecov_json_formatter (~> 0.1)
|
|
127
|
-
simplecov-html (0.13.2)
|
|
128
|
-
simplecov_json_formatter (0.1.4)
|
|
129
|
-
stringio (3.2.0)
|
|
126
|
+
simplecov (1.0.3)
|
|
130
127
|
tsort (0.2.0)
|
|
131
128
|
tzinfo (2.0.6)
|
|
132
129
|
concurrent-ruby (~> 1.0)
|
|
@@ -151,4 +148,4 @@ DEPENDENCIES
|
|
|
151
148
|
simplecov
|
|
152
149
|
|
|
153
150
|
BUNDLED WITH
|
|
154
|
-
4.0.
|
|
151
|
+
4.0.18
|
data/Rakefile
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'bundler/
|
|
4
|
-
|
|
5
|
-
desc 'Run console with irb (default), pry, etc.'
|
|
6
|
-
task :console, :irb do |_t, args|
|
|
7
|
-
irb = args[:irb].nil? ? 'irb' : args[:irb]
|
|
8
|
-
sh irb, '-r', "#{File.dirname(__FILE__)}/config/boot.rb"
|
|
9
|
-
end
|
|
10
|
-
|
|
3
|
+
require 'bundler/setup' # Set up gems listed in the Gemfile.
|
|
11
4
|
require 'rspec/core/rake_task'
|
|
5
|
+
require 'bundler/gem_tasks'
|
|
12
6
|
|
|
13
7
|
desc 'Run specs'
|
|
14
8
|
RSpec::Core::RakeTask.new(:spec)
|
data/bin/console
CHANGED
data/lib/assembly-objectfile.rb
CHANGED
|
@@ -19,7 +19,11 @@ module Assembly
|
|
|
19
19
|
# e.g. for any .json file, you will always get `application/json`
|
|
20
20
|
OVERRIDE_MIMETYPES = {
|
|
21
21
|
'.json': 'application/json',
|
|
22
|
-
'.
|
|
22
|
+
'.xml': 'application/xml',
|
|
23
|
+
'.vtt': 'text/vtt',
|
|
24
|
+
'.shp': 'application/vnd.shp',
|
|
25
|
+
'.geojson': 'application/geo+json',
|
|
26
|
+
'.ovr': 'application/octet-stream'
|
|
23
27
|
}.freeze
|
|
24
28
|
end
|
|
25
29
|
|
|
@@ -248,6 +248,20 @@ describe Assembly::ObjectFile do
|
|
|
248
248
|
end
|
|
249
249
|
end
|
|
250
250
|
|
|
251
|
+
context 'with tif overview file' do
|
|
252
|
+
it 'application/octet-stream' do
|
|
253
|
+
object_file = described_class.new(File.join(fixture_input_dir, 'tif_overview.tif.ovr'))
|
|
254
|
+
expect(object_file.mimetype).to eq('application/octet-stream')
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
context 'with ESRI XML metadata for a tif' do
|
|
259
|
+
it 'application/xml' do
|
|
260
|
+
object_file = described_class.new(File.join(fixture_input_dir, 'arc_metadata.tif.xml'))
|
|
261
|
+
expect(object_file.mimetype).to eq('application/xml')
|
|
262
|
+
end
|
|
263
|
+
end
|
|
264
|
+
|
|
251
265
|
context 'with .jp2 file' do
|
|
252
266
|
it 'image/jp2' do
|
|
253
267
|
object_file = described_class.new(jp2_fixture_file)
|
|
@@ -311,6 +325,14 @@ describe Assembly::ObjectFile do
|
|
|
311
325
|
end
|
|
312
326
|
end
|
|
313
327
|
|
|
328
|
+
context 'when .geojson file' do
|
|
329
|
+
it 'uses the manual mapping to set the correct mimetype of application/geo+json for a .geojson file' do
|
|
330
|
+
geojson_fixture_file = File.join(fixture_input_dir, 'index_map.geojson')
|
|
331
|
+
object_file = described_class.new(geojson_fixture_file)
|
|
332
|
+
expect(object_file.mimetype).to eq('application/geo+json')
|
|
333
|
+
end
|
|
334
|
+
end
|
|
335
|
+
|
|
314
336
|
context 'when .vtt file' do
|
|
315
337
|
it 'uses the manual mapping to set the correct mimetype of text/vtt for a .vtt file' do
|
|
316
338
|
object_file = described_class.new(vtt_fixture_file)
|