assembly-objectfile 2.1.3 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -1
- data/.gitignore +1 -2
- data/.rubocop.yml +34 -41
- data/Gemfile.lock +41 -35
- data/lib/assembly/object_file/version.rb +1 -1
- data/lib/assembly/object_file.rb +5 -7
- data/lib/assembly-objectfile.rb +2 -1
- data/spec/assembly/object_file_spec.rb +86 -51
- data/spec/fixtures/input/test.vtt +1504 -0
- data/spec/spec_helper.rb +9 -17
- metadata +16 -15
- /data/spec/{test_data → fixtures}/empty.txt +0 -0
- /data/spec/{test_data → fixtures}/input/.empty +0 -0
- /data/spec/{test_data → fixtures}/input/file_with_no_exif.xml +0 -0
- /data/spec/{test_data → fixtures}/input/res1_image1.tif +0 -0
- /data/spec/{test_data → fixtures}/input/res1_textfile.txt +0 -0
- /data/spec/{test_data → fixtures}/input/res1_transcript.pdf +0 -0
- /data/spec/{test_data → fixtures}/input/someobject.obj +0 -0
- /data/spec/{test_data → fixtures}/input/someobject.ply +0 -0
- /data/spec/{test_data → fixtures}/input/test.jp2 +0 -0
- /data/spec/{test_data → fixtures}/input/test.json +0 -0
- /data/spec/{test_data → fixtures}/input/test.tif +0 -0
- /data/spec/{test_data → fixtures}/input/test_no_color_profile.tif +0 -0
data/spec/spec_helper.rb
CHANGED
@@ -7,23 +7,15 @@ require File.expand_path("#{File.dirname(__FILE__)}/../config/boot")
|
|
7
7
|
require 'pry-byebug'
|
8
8
|
|
9
9
|
RSpec.configure do |config|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
PATH_TO_GEM = File.expand_path("#{File.dirname(__FILE__)}/..")
|
14
|
-
TEST_INPUT_DIR = File.join(PATH_TO_GEM, 'spec', 'test_data', 'input')
|
15
|
-
TEST_TIF_INPUT_FILE = File.join(TEST_INPUT_DIR, 'test.tif')
|
16
|
-
TEST_JP2_INPUT_FILE = File.join(TEST_INPUT_DIR, 'test.jp2')
|
17
|
-
|
18
|
-
TEST_TIFF_NO_COLOR_FILE = File.join(TEST_INPUT_DIR, 'test_no_color_profile.tif')
|
10
|
+
# Enable flags like --only-failures and --next-failure
|
11
|
+
config.example_status_persistence_file_path = ".rspec_status"
|
19
12
|
|
20
|
-
|
21
|
-
|
22
|
-
|
13
|
+
config.expect_with :rspec do |c|
|
14
|
+
c.syntax = :expect
|
15
|
+
end
|
23
16
|
|
24
|
-
|
17
|
+
config.default_formatter = 'doc' if config.files_to_run.one?
|
25
18
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
TEST_PLY_FILE = File.join(TEST_INPUT_DIR, 'someobject.ply')
|
19
|
+
config.order = 'random'
|
20
|
+
Kernel.srand config.seed
|
21
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: assembly-objectfile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Mangiafico
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2023-05-17 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|
@@ -166,19 +166,20 @@ files:
|
|
166
166
|
- lib/assembly/object_file.rb
|
167
167
|
- lib/assembly/object_file/version.rb
|
168
168
|
- spec/assembly/object_file_spec.rb
|
169
|
+
- spec/fixtures/empty.txt
|
170
|
+
- spec/fixtures/input/.empty
|
171
|
+
- spec/fixtures/input/file_with_no_exif.xml
|
172
|
+
- spec/fixtures/input/res1_image1.tif
|
173
|
+
- spec/fixtures/input/res1_textfile.txt
|
174
|
+
- spec/fixtures/input/res1_transcript.pdf
|
175
|
+
- spec/fixtures/input/someobject.obj
|
176
|
+
- spec/fixtures/input/someobject.ply
|
177
|
+
- spec/fixtures/input/test.jp2
|
178
|
+
- spec/fixtures/input/test.json
|
179
|
+
- spec/fixtures/input/test.tif
|
180
|
+
- spec/fixtures/input/test.vtt
|
181
|
+
- spec/fixtures/input/test_no_color_profile.tif
|
169
182
|
- spec/spec_helper.rb
|
170
|
-
- spec/test_data/empty.txt
|
171
|
-
- spec/test_data/input/.empty
|
172
|
-
- spec/test_data/input/file_with_no_exif.xml
|
173
|
-
- spec/test_data/input/res1_image1.tif
|
174
|
-
- spec/test_data/input/res1_textfile.txt
|
175
|
-
- spec/test_data/input/res1_transcript.pdf
|
176
|
-
- spec/test_data/input/someobject.obj
|
177
|
-
- spec/test_data/input/someobject.ply
|
178
|
-
- spec/test_data/input/test.jp2
|
179
|
-
- spec/test_data/input/test.json
|
180
|
-
- spec/test_data/input/test.tif
|
181
|
-
- spec/test_data/input/test_no_color_profile.tif
|
182
183
|
homepage: https://github.com/sul-dlss/assembly-objectfile
|
183
184
|
licenses:
|
184
185
|
- ALv2
|
@@ -199,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
200
|
- !ruby/object:Gem::Version
|
200
201
|
version: '0'
|
201
202
|
requirements: []
|
202
|
-
rubygems_version: 3.
|
203
|
+
rubygems_version: 3.4.6
|
203
204
|
signing_key:
|
204
205
|
specification_version: 4
|
205
206
|
summary: Ruby implementation of file services needed to prepare objects to be accessioned
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|