assembly-objectfile 2.2.0 → 2.3.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 +2 -1
- data/.rubocop.yml +270 -9
- data/.rubocop_todo.yml +2 -2
- data/Gemfile +1 -1
- data/Gemfile.lock +115 -67
- data/README.md +3 -10
- data/Rakefile +2 -8
- data/assembly-objectfile.gemspec +3 -1
- data/bin/console +8 -2
- data/lib/assembly/object_file/version.rb +1 -1
- data/lib/assembly/object_file.rb +1 -1
- data/lib/assembly-objectfile.rb +2 -1
- data/spec/assembly/object_file_spec.rb +1 -2
- data/spec/spec_helper.rb +8 -2
- metadata +44 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c5a9152cc9b64c7aa8343405dd59d3d42a58457eafe82d5fcae1bc13441612ed
|
|
4
|
+
data.tar.gz: 967c65af573321741eb4692e680978b81085367746038b671f14ae995019beba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0ade2b997275d3b4b1c4ba61b587325635c0bba208b6cca9fd506f61a0650ad60010a312e6c8f00049077f1cdb2ea36e0b6106da00d5ffc8b23ea508ac56ca94
|
|
7
|
+
data.tar.gz: e091969f83af7aa72fcf47e85302f11ac0a15870b90ddd18aab7dae84b16bdf4e9d4cbf9a2bcc34795abe0956046181e22c61c4dd2cbc294a34291dd3cda87fc
|
data/.circleci/config.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
version: 2.1
|
|
2
2
|
orbs:
|
|
3
|
-
ruby-rails: sul-dlss/ruby-rails@4.
|
|
3
|
+
ruby-rails: sul-dlss/ruby-rails@4.12.0
|
|
4
4
|
workflows:
|
|
5
5
|
build:
|
|
6
6
|
jobs:
|
|
@@ -8,6 +8,7 @@ workflows:
|
|
|
8
8
|
name: lint
|
|
9
9
|
- ruby-rails/test-gem:
|
|
10
10
|
name: test
|
|
11
|
+
context: dlss
|
|
11
12
|
before-test:
|
|
12
13
|
- run:
|
|
13
14
|
name: Install exiftool
|
data/.rubocop.yml
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
require:
|
|
1
|
+
require:
|
|
2
|
+
- rubocop-capybara
|
|
3
|
+
- rubocop-factory_bot
|
|
4
|
+
- rubocop-rspec
|
|
5
|
+
- rubocop-rspec_rails
|
|
2
6
|
|
|
3
7
|
inherit_from: .rubocop_todo.yml
|
|
4
8
|
|
|
@@ -28,9 +32,10 @@ Naming/FileName:
|
|
|
28
32
|
Exclude:
|
|
29
33
|
- 'lib/assembly-objectfile.rb'
|
|
30
34
|
|
|
31
|
-
Naming/
|
|
32
|
-
|
|
33
|
-
-
|
|
35
|
+
Naming/PredicatePrefix:
|
|
36
|
+
ForbiddenPrefixes:
|
|
37
|
+
- has_
|
|
38
|
+
- have_
|
|
34
39
|
|
|
35
40
|
Metrics/BlockLength:
|
|
36
41
|
Exclude:
|
|
@@ -182,9 +187,9 @@ RSpec/IdenticalEqualityAssertion: # new in 2.4
|
|
|
182
187
|
Enabled: true
|
|
183
188
|
RSpec/SubjectDeclaration: # new in 2.5
|
|
184
189
|
Enabled: true
|
|
185
|
-
|
|
190
|
+
FactoryBot/SyntaxMethods: # new in 2.7
|
|
186
191
|
Enabled: true
|
|
187
|
-
|
|
192
|
+
RSpecRails/AvoidSetupHook: # new in 2.4
|
|
188
193
|
Enabled: true
|
|
189
194
|
|
|
190
195
|
Lint/RefinementImportMethods: # new in 1.27
|
|
@@ -216,9 +221,9 @@ Lint/ConstantOverwrittenInRescue: # new in 1.31
|
|
|
216
221
|
Enabled: true
|
|
217
222
|
Lint/NonAtomicFileOperation: # new in 1.31
|
|
218
223
|
Enabled: true
|
|
219
|
-
RSpec/
|
|
224
|
+
Capybara/RSpec/SpecificMatcher: # new in 2.12
|
|
220
225
|
Enabled: true
|
|
221
|
-
|
|
226
|
+
RSpecRails/HaveHttpStatus: # new in 2.12
|
|
222
227
|
Enabled: true
|
|
223
228
|
|
|
224
229
|
Lint/RequireRangeParentheses: # new in 1.32
|
|
@@ -231,5 +236,261 @@ RSpec/ClassCheck: # new in 2.13
|
|
|
231
236
|
Enabled: true
|
|
232
237
|
RSpec/NoExpectationExample: # new in 2.13
|
|
233
238
|
Enabled: true
|
|
234
|
-
|
|
239
|
+
Capybara/SpecificFinders: # new in 2.13
|
|
240
|
+
Enabled: true
|
|
241
|
+
|
|
242
|
+
Gemspec/DevelopmentDependencies: # new in 1.44
|
|
243
|
+
Enabled: true
|
|
244
|
+
Lint/DuplicateMagicComment: # new in 1.37
|
|
245
|
+
Enabled: true
|
|
246
|
+
Lint/DuplicateMatchPattern: # new in 1.50
|
|
247
|
+
Enabled: true
|
|
248
|
+
Lint/UselessRescue: # new in 1.43
|
|
249
|
+
Enabled: true
|
|
250
|
+
Metrics/CollectionLiteralLength: # new in 1.47
|
|
251
|
+
Enabled: true
|
|
252
|
+
Style/ArrayIntersect: # new in 1.40
|
|
253
|
+
Enabled: true
|
|
254
|
+
Style/ComparableClamp: # new in 1.44
|
|
255
|
+
Enabled: true
|
|
256
|
+
Style/ConcatArrayLiterals: # new in 1.41
|
|
257
|
+
Enabled: true
|
|
258
|
+
Style/DataInheritance: # new in 1.49
|
|
259
|
+
Enabled: true
|
|
260
|
+
Style/DirEmpty: # new in 1.48
|
|
261
|
+
Enabled: true
|
|
262
|
+
Style/ExactRegexpMatch: # new in 1.51
|
|
263
|
+
Enabled: true
|
|
264
|
+
Style/FileEmpty: # new in 1.48
|
|
265
|
+
Enabled: true
|
|
266
|
+
Style/MapToSet: # new in 1.42
|
|
267
|
+
Enabled: true
|
|
268
|
+
Style/MinMaxComparison: # new in 1.42
|
|
269
|
+
Enabled: true
|
|
270
|
+
Style/OperatorMethodCall: # new in 1.37
|
|
271
|
+
Enabled: true
|
|
272
|
+
Style/RedundantArrayConstructor: # new in 1.52
|
|
273
|
+
Enabled: true
|
|
274
|
+
Style/RedundantConstantBase: # new in 1.40
|
|
275
|
+
Enabled: true
|
|
276
|
+
Style/RedundantDoubleSplatHashBraces: # new in 1.41
|
|
277
|
+
Enabled: true
|
|
278
|
+
Style/RedundantEach: # new in 1.38
|
|
279
|
+
Enabled: true
|
|
280
|
+
Style/RedundantFilterChain: # new in 1.52
|
|
281
|
+
Enabled: true
|
|
282
|
+
Style/RedundantHeredocDelimiterQuotes: # new in 1.45
|
|
283
|
+
Enabled: true
|
|
284
|
+
Style/RedundantLineContinuation: # new in 1.49
|
|
285
|
+
Enabled: true
|
|
286
|
+
Style/RedundantRegexpConstructor: # new in 1.52
|
|
287
|
+
Enabled: true
|
|
288
|
+
Style/RedundantStringEscape: # new in 1.37
|
|
289
|
+
Enabled: true
|
|
290
|
+
Capybara/RSpec/MatchStyle: # new in 2.17
|
|
291
|
+
Enabled: true
|
|
292
|
+
Capybara/RSpec/NegationMatcher: # new in 2.14
|
|
293
|
+
Enabled: true
|
|
294
|
+
Capybara/SpecificActions: # new in 2.14
|
|
295
|
+
Enabled: true
|
|
296
|
+
FactoryBot/AssociationStyle: # new in 2.23
|
|
297
|
+
Enabled: true
|
|
298
|
+
FactoryBot/ConsistentParenthesesStyle: # new in 2.14
|
|
299
|
+
Enabled: true
|
|
300
|
+
FactoryBot/FactoryAssociationWithStrategy: # new in 2.23
|
|
301
|
+
Enabled: true
|
|
302
|
+
FactoryBot/FactoryNameStyle: # new in 2.16
|
|
303
|
+
Enabled: true
|
|
304
|
+
FactoryBot/RedundantFactoryOption: # new in 2.23
|
|
305
|
+
Enabled: true
|
|
306
|
+
RSpec/BeEmpty: # new in 2.20
|
|
307
|
+
Enabled: true
|
|
308
|
+
RSpec/ContainExactly: # new in 2.19
|
|
309
|
+
Enabled: true
|
|
310
|
+
RSpec/DuplicatedMetadata: # new in 2.16
|
|
311
|
+
Enabled: true
|
|
312
|
+
RSpec/IndexedLet: # new in 2.20
|
|
313
|
+
Enabled: true
|
|
314
|
+
RSpec/MatchArray: # new in 2.19
|
|
315
|
+
Enabled: true
|
|
316
|
+
RSpec/PendingWithoutReason: # new in 2.16
|
|
317
|
+
Enabled: true
|
|
318
|
+
RSpec/RedundantAround: # new in 2.19
|
|
319
|
+
Enabled: true
|
|
320
|
+
RSpec/SkipBlockInsideExample: # new in 2.19
|
|
321
|
+
Enabled: true
|
|
322
|
+
RSpec/SortMetadata: # new in 2.14
|
|
323
|
+
Enabled: true
|
|
324
|
+
RSpecRails/InferredSpecType: # new in 2.14
|
|
325
|
+
Enabled: true
|
|
326
|
+
RSpecRails/MinitestAssertions: # new in 2.17
|
|
327
|
+
Enabled: true
|
|
328
|
+
RSpecRails/TravelAround: # new in 2.19
|
|
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
|
|
235
496
|
Enabled: true
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on
|
|
3
|
+
# on 2023-06-20 05:49:59 UTC using RuboCop version 1.52.1.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
# Offense count: 1
|
|
10
10
|
# Configuration parameters: CountComments, CountAsOne.
|
|
11
11
|
Metrics/ClassLength:
|
|
12
|
-
Max:
|
|
12
|
+
Max: 114
|
data/Gemfile
CHANGED
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.3.0)
|
|
5
5
|
activesupport (>= 5.2.0)
|
|
6
6
|
mime-types (> 3)
|
|
7
7
|
mini_exiftool
|
|
@@ -9,95 +9,143 @@ PATH
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: http://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
activesupport (
|
|
13
|
-
|
|
12
|
+
activesupport (8.1.3)
|
|
13
|
+
base64
|
|
14
|
+
bigdecimal
|
|
15
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
16
|
+
connection_pool (>= 2.2.5)
|
|
17
|
+
drb
|
|
14
18
|
i18n (>= 1.6, < 2)
|
|
19
|
+
json
|
|
20
|
+
logger (>= 1.4.2)
|
|
15
21
|
minitest (>= 5.1)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
securerandom (>= 0.3)
|
|
23
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
24
|
+
uri (>= 0.13.1)
|
|
25
|
+
ast (2.4.3)
|
|
26
|
+
base64 (0.3.0)
|
|
27
|
+
bigdecimal (4.1.2)
|
|
28
|
+
concurrent-ruby (1.3.8)
|
|
29
|
+
connection_pool (3.0.2)
|
|
30
|
+
debug (1.11.1)
|
|
31
|
+
irb (~> 1.10)
|
|
32
|
+
reline (>= 0.3.8)
|
|
33
|
+
diff-lcs (1.6.2)
|
|
34
|
+
drb (2.2.3)
|
|
35
|
+
erb (6.0.6)
|
|
36
|
+
i18n (1.15.2)
|
|
24
37
|
concurrent-ruby (~> 1.0)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
38
|
+
io-console (0.8.2)
|
|
39
|
+
irb (1.18.0)
|
|
40
|
+
pp (>= 0.6.0)
|
|
41
|
+
prism (>= 1.3.0)
|
|
42
|
+
rdoc (>= 4.0.0)
|
|
43
|
+
reline (>= 0.4.2)
|
|
44
|
+
json (2.21.1)
|
|
45
|
+
language_server-protocol (3.17.0.6)
|
|
46
|
+
lint_roller (1.1.0)
|
|
47
|
+
logger (1.7.0)
|
|
48
|
+
mime-types (3.7.0)
|
|
49
|
+
logger
|
|
50
|
+
mime-types-data (~> 3.2025, >= 3.2025.0507)
|
|
51
|
+
mime-types-data (3.2026.0701)
|
|
52
|
+
mini_exiftool (2.14.0)
|
|
53
|
+
ostruct (>= 0.6.0)
|
|
54
|
+
pstore (>= 0.1.3)
|
|
55
|
+
minitest (6.0.6)
|
|
56
|
+
drb (~> 2.0)
|
|
57
|
+
prism (~> 1.5)
|
|
58
|
+
ostruct (0.6.3)
|
|
59
|
+
parallel (2.1.0)
|
|
60
|
+
parser (3.3.12.0)
|
|
34
61
|
ast (~> 2.4.1)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
62
|
+
racc
|
|
63
|
+
pp (0.6.4)
|
|
64
|
+
prettyprint
|
|
65
|
+
prettyprint (0.2.0)
|
|
66
|
+
prism (1.9.0)
|
|
67
|
+
pstore (0.2.1)
|
|
68
|
+
racc (1.8.1)
|
|
41
69
|
rainbow (3.1.1)
|
|
42
|
-
rake (13.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
70
|
+
rake (13.4.2)
|
|
71
|
+
rbs (4.1.0)
|
|
72
|
+
logger
|
|
73
|
+
prism (>= 1.6.0)
|
|
74
|
+
tsort
|
|
75
|
+
rdoc (8.0.0)
|
|
76
|
+
erb
|
|
77
|
+
prism (>= 1.6.0)
|
|
78
|
+
rbs (>= 4.0.0)
|
|
79
|
+
tsort
|
|
80
|
+
regexp_parser (2.12.0)
|
|
81
|
+
reline (0.6.3)
|
|
82
|
+
io-console (~> 0.5)
|
|
83
|
+
rspec (3.13.2)
|
|
84
|
+
rspec-core (~> 3.13.0)
|
|
85
|
+
rspec-expectations (~> 3.13.0)
|
|
86
|
+
rspec-mocks (~> 3.13.0)
|
|
87
|
+
rspec-core (3.13.6)
|
|
88
|
+
rspec-support (~> 3.13.0)
|
|
89
|
+
rspec-expectations (3.13.5)
|
|
52
90
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
53
|
-
rspec-support (~> 3.
|
|
54
|
-
rspec-mocks (3.
|
|
91
|
+
rspec-support (~> 3.13.0)
|
|
92
|
+
rspec-mocks (3.13.8)
|
|
55
93
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
56
|
-
rspec-support (~> 3.
|
|
57
|
-
rspec-support (3.
|
|
58
|
-
rubocop (1.
|
|
94
|
+
rspec-support (~> 3.13.0)
|
|
95
|
+
rspec-support (3.13.7)
|
|
96
|
+
rubocop (1.88.2)
|
|
59
97
|
json (~> 2.3)
|
|
60
|
-
|
|
61
|
-
|
|
98
|
+
language_server-protocol (~> 3.17.0.2)
|
|
99
|
+
lint_roller (~> 1.1.0)
|
|
100
|
+
parallel (>= 1.10)
|
|
101
|
+
parser (>= 3.3.0.2)
|
|
62
102
|
rainbow (>= 2.2.2, < 4.0)
|
|
63
|
-
regexp_parser (>=
|
|
64
|
-
|
|
65
|
-
rubocop-ast (>= 1.28.0, < 2.0)
|
|
103
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
104
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
66
105
|
ruby-progressbar (~> 1.7)
|
|
67
|
-
unicode-display_width (>= 2.4.0, <
|
|
68
|
-
rubocop-ast (1.
|
|
69
|
-
parser (>= 3.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
rubocop (~> 1.
|
|
74
|
-
rubocop-
|
|
75
|
-
|
|
76
|
-
rubocop
|
|
77
|
-
|
|
106
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
107
|
+
rubocop-ast (1.50.0)
|
|
108
|
+
parser (>= 3.3.7.2)
|
|
109
|
+
prism (~> 1.7)
|
|
110
|
+
rubocop-capybara (3.0.0)
|
|
111
|
+
lint_roller (~> 1.1)
|
|
112
|
+
rubocop (~> 1.81)
|
|
113
|
+
rubocop-factory_bot (2.28.0)
|
|
114
|
+
lint_roller (~> 1.1)
|
|
115
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
116
|
+
rubocop-rspec (3.10.2)
|
|
117
|
+
lint_roller (~> 1.1)
|
|
118
|
+
regexp_parser (>= 2.0)
|
|
119
|
+
rubocop (~> 1.86, >= 1.86.2)
|
|
120
|
+
rubocop-rspec_rails (2.32.0)
|
|
121
|
+
lint_roller (~> 1.1)
|
|
122
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
123
|
+
rubocop-rspec (~> 3.5)
|
|
78
124
|
ruby-progressbar (1.13.0)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
simplecov_json_formatter (~> 0.1)
|
|
83
|
-
simplecov-html (0.12.3)
|
|
84
|
-
simplecov_json_formatter (0.1.4)
|
|
125
|
+
securerandom (0.4.1)
|
|
126
|
+
simplecov (1.0.3)
|
|
127
|
+
tsort (0.2.0)
|
|
85
128
|
tzinfo (2.0.6)
|
|
86
129
|
concurrent-ruby (~> 1.0)
|
|
87
|
-
unicode-display_width (2.
|
|
130
|
+
unicode-display_width (3.2.0)
|
|
131
|
+
unicode-emoji (~> 4.1)
|
|
132
|
+
unicode-emoji (4.2.0)
|
|
133
|
+
uri (1.1.1)
|
|
88
134
|
|
|
89
135
|
PLATFORMS
|
|
90
136
|
ruby
|
|
91
137
|
|
|
92
138
|
DEPENDENCIES
|
|
93
139
|
assembly-objectfile!
|
|
94
|
-
|
|
95
|
-
pry-byebug
|
|
140
|
+
debug
|
|
96
141
|
rake
|
|
97
142
|
rspec (~> 3.0)
|
|
98
143
|
rubocop (~> 1.25)
|
|
144
|
+
rubocop-capybara
|
|
145
|
+
rubocop-factory_bot
|
|
99
146
|
rubocop-rspec
|
|
147
|
+
rubocop-rspec_rails
|
|
100
148
|
simplecov
|
|
101
149
|
|
|
102
150
|
BUNDLED WITH
|
|
103
|
-
|
|
151
|
+
4.0.17
|
data/README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
[](https://circleci.com/gh/sul-dlss/assembly-objectfile/tree/main)
|
|
2
|
-
[](https://codeclimate.com/github/sul-dlss/assembly-objectfile/maintainability)
|
|
2
|
+
[](https://codecov.io/github/sul-dlss/assembly-objectfile)
|
|
4
3
|
[](https://badge.fury.io/rb/assembly-objectfile)
|
|
5
4
|
|
|
6
5
|
# Assembly-ObjectFile Gem
|
|
@@ -34,14 +33,8 @@ rake release
|
|
|
34
33
|
|
|
35
34
|
1. Exiftool
|
|
36
35
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
tar -xf Image-ExifTool-#.##.tar.gz
|
|
41
|
-
cd Image-ExifTool-#.##
|
|
42
|
-
perl Makefile.PL
|
|
43
|
-
make test
|
|
44
|
-
sudo make install
|
|
36
|
+
Ubuntu/Debian:
|
|
37
|
+
sudo apt install libimage-exiftool-perl
|
|
45
38
|
|
|
46
39
|
Mac users:
|
|
47
40
|
brew install exiftool
|
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/assembly-objectfile.gemspec
CHANGED
|
@@ -27,10 +27,12 @@ Gem::Specification.new do |s|
|
|
|
27
27
|
s.add_dependency 'mime-types', '> 3'
|
|
28
28
|
s.add_dependency 'mini_exiftool'
|
|
29
29
|
|
|
30
|
-
s.add_development_dependency 'pry-byebug'
|
|
31
30
|
s.add_development_dependency 'rake'
|
|
32
31
|
s.add_development_dependency 'rspec', '~> 3.0'
|
|
33
32
|
s.add_development_dependency 'rubocop', '~> 1.25'
|
|
33
|
+
s.add_development_dependency 'rubocop-capybara'
|
|
34
|
+
s.add_development_dependency 'rubocop-factory_bot'
|
|
34
35
|
s.add_development_dependency 'rubocop-rspec'
|
|
36
|
+
s.add_development_dependency 'rubocop-rspec_rails'
|
|
35
37
|
s.add_development_dependency 'simplecov'
|
|
36
38
|
end
|
data/bin/console
CHANGED
data/lib/assembly/object_file.rb
CHANGED
|
@@ -152,7 +152,7 @@ module Assembly
|
|
|
152
152
|
|
|
153
153
|
# @return [Boolean] file exists and is not a directory
|
|
154
154
|
def file_exists?
|
|
155
|
-
@file_exists ||=
|
|
155
|
+
@file_exists ||= File.exist?(path) && !File.directory?(path)
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
private
|
data/lib/assembly-objectfile.rb
CHANGED
|
@@ -125,8 +125,7 @@ describe Assembly::ObjectFile do
|
|
|
125
125
|
|
|
126
126
|
context 'with targa file' do
|
|
127
127
|
before do
|
|
128
|
-
allow(object_file).to
|
|
129
|
-
allow(object_file).to receive(:file_mimetype).and_return('image/x-tga')
|
|
128
|
+
allow(object_file).to receive_messages(exif_mimetype: nil, file_mimetype: 'image/x-tga')
|
|
130
129
|
end
|
|
131
130
|
|
|
132
131
|
let(:object_file) { described_class.new(jp2_fixture_file) }
|
data/spec/spec_helper.rb
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require 'simplecov'
|
|
4
|
-
SimpleCov.start
|
|
4
|
+
SimpleCov.start do
|
|
5
|
+
if ENV['CI']
|
|
6
|
+
require 'simplecov_json_formatter'
|
|
7
|
+
|
|
8
|
+
formatter SimpleCov::Formatter::JSONFormatter
|
|
9
|
+
end
|
|
10
|
+
end
|
|
5
11
|
|
|
6
12
|
require File.expand_path("#{File.dirname(__FILE__)}/../config/boot")
|
|
7
|
-
require '
|
|
13
|
+
require 'debug'
|
|
8
14
|
|
|
9
15
|
RSpec.configure do |config|
|
|
10
16
|
# Enable flags like --only-failures and --next-failure
|
metadata
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: assembly-objectfile
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Mangiafico
|
|
8
8
|
- Renzo Sanchez-Silva
|
|
9
9
|
- Monty Hindman
|
|
10
10
|
- Tony Calavano
|
|
11
|
-
autorequire:
|
|
12
11
|
bindir: exe
|
|
13
12
|
cert_chain: []
|
|
14
|
-
date:
|
|
13
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
15
14
|
dependencies:
|
|
16
15
|
- !ruby/object:Gem::Dependency
|
|
17
16
|
name: activesupport
|
|
@@ -56,7 +55,7 @@ dependencies:
|
|
|
56
55
|
- !ruby/object:Gem::Version
|
|
57
56
|
version: '0'
|
|
58
57
|
- !ruby/object:Gem::Dependency
|
|
59
|
-
name:
|
|
58
|
+
name: rake
|
|
60
59
|
requirement: !ruby/object:Gem::Requirement
|
|
61
60
|
requirements:
|
|
62
61
|
- - ">="
|
|
@@ -70,7 +69,35 @@ dependencies:
|
|
|
70
69
|
- !ruby/object:Gem::Version
|
|
71
70
|
version: '0'
|
|
72
71
|
- !ruby/object:Gem::Dependency
|
|
73
|
-
name:
|
|
72
|
+
name: rspec
|
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
|
74
|
+
requirements:
|
|
75
|
+
- - "~>"
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: '3.0'
|
|
78
|
+
type: :development
|
|
79
|
+
prerelease: false
|
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
81
|
+
requirements:
|
|
82
|
+
- - "~>"
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
version: '3.0'
|
|
85
|
+
- !ruby/object:Gem::Dependency
|
|
86
|
+
name: rubocop
|
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
|
88
|
+
requirements:
|
|
89
|
+
- - "~>"
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: '1.25'
|
|
92
|
+
type: :development
|
|
93
|
+
prerelease: false
|
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
95
|
+
requirements:
|
|
96
|
+
- - "~>"
|
|
97
|
+
- !ruby/object:Gem::Version
|
|
98
|
+
version: '1.25'
|
|
99
|
+
- !ruby/object:Gem::Dependency
|
|
100
|
+
name: rubocop-capybara
|
|
74
101
|
requirement: !ruby/object:Gem::Requirement
|
|
75
102
|
requirements:
|
|
76
103
|
- - ">="
|
|
@@ -84,35 +111,35 @@ dependencies:
|
|
|
84
111
|
- !ruby/object:Gem::Version
|
|
85
112
|
version: '0'
|
|
86
113
|
- !ruby/object:Gem::Dependency
|
|
87
|
-
name:
|
|
114
|
+
name: rubocop-factory_bot
|
|
88
115
|
requirement: !ruby/object:Gem::Requirement
|
|
89
116
|
requirements:
|
|
90
|
-
- - "
|
|
117
|
+
- - ">="
|
|
91
118
|
- !ruby/object:Gem::Version
|
|
92
|
-
version: '
|
|
119
|
+
version: '0'
|
|
93
120
|
type: :development
|
|
94
121
|
prerelease: false
|
|
95
122
|
version_requirements: !ruby/object:Gem::Requirement
|
|
96
123
|
requirements:
|
|
97
|
-
- - "
|
|
124
|
+
- - ">="
|
|
98
125
|
- !ruby/object:Gem::Version
|
|
99
|
-
version: '
|
|
126
|
+
version: '0'
|
|
100
127
|
- !ruby/object:Gem::Dependency
|
|
101
|
-
name: rubocop
|
|
128
|
+
name: rubocop-rspec
|
|
102
129
|
requirement: !ruby/object:Gem::Requirement
|
|
103
130
|
requirements:
|
|
104
|
-
- - "
|
|
131
|
+
- - ">="
|
|
105
132
|
- !ruby/object:Gem::Version
|
|
106
|
-
version: '
|
|
133
|
+
version: '0'
|
|
107
134
|
type: :development
|
|
108
135
|
prerelease: false
|
|
109
136
|
version_requirements: !ruby/object:Gem::Requirement
|
|
110
137
|
requirements:
|
|
111
|
-
- - "
|
|
138
|
+
- - ">="
|
|
112
139
|
- !ruby/object:Gem::Version
|
|
113
|
-
version: '
|
|
140
|
+
version: '0'
|
|
114
141
|
- !ruby/object:Gem::Dependency
|
|
115
|
-
name: rubocop-
|
|
142
|
+
name: rubocop-rspec_rails
|
|
116
143
|
requirement: !ruby/object:Gem::Requirement
|
|
117
144
|
requirements:
|
|
118
145
|
- - ">="
|
|
@@ -185,7 +212,6 @@ licenses:
|
|
|
185
212
|
- ALv2
|
|
186
213
|
metadata:
|
|
187
214
|
rubygems_mfa_required: 'true'
|
|
188
|
-
post_install_message:
|
|
189
215
|
rdoc_options: []
|
|
190
216
|
require_paths:
|
|
191
217
|
- lib
|
|
@@ -200,8 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
200
226
|
- !ruby/object:Gem::Version
|
|
201
227
|
version: '0'
|
|
202
228
|
requirements: []
|
|
203
|
-
rubygems_version:
|
|
204
|
-
signing_key:
|
|
229
|
+
rubygems_version: 4.0.15
|
|
205
230
|
specification_version: 4
|
|
206
231
|
summary: Ruby implementation of file services needed to prepare objects to be accessioned
|
|
207
232
|
into the Stanford Digital Repository
|