assembly-image 1.7.7 → 1.7.8

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.
data/spec/spec_helper.rb CHANGED
@@ -17,6 +17,90 @@ TEST_JP2_INPUT_FILE = File.join(TEST_INPUT_DIR, 'test.jp2')
17
17
  TEST_JP2_OUTPUT_FILE = File.join(TEST_OUTPUT_DIR, 'test.jp2')
18
18
  TEST_DRUID = 'nx288wh8889'
19
19
 
20
+ RSpec.configure do |config|
21
+ # rspec-expectations config goes here. You can use an alternate
22
+ # assertion/expectation library such as wrong or the stdlib/minitest
23
+ # assertions if you prefer.
24
+ config.expect_with :rspec do |expectations|
25
+ # This option will default to `true` in RSpec 4. It makes the `description`
26
+ # and `failure_message` of custom matchers include text for helper methods
27
+ # defined using `chain`, e.g.:
28
+ # be_bigger_than(2).and_smaller_than(4).description
29
+ # # => "be bigger than 2 and smaller than 4"
30
+ # ...rather than:
31
+ # # => "be bigger than 2"
32
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
33
+ end
34
+
35
+ # rspec-mocks config goes here. You can use an alternate test double
36
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
37
+ config.mock_with :rspec do |mocks|
38
+ # Prevents you from mocking or stubbing a method that does not exist on
39
+ # a real object. This is generally recommended, and will default to
40
+ # `true` in RSpec 4.
41
+ mocks.verify_partial_doubles = true
42
+ end
43
+
44
+ # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
45
+ # have no way to turn it off -- the option exists only for backwards
46
+ # compatibility in RSpec 3). It causes shared context metadata to be
47
+ # inherited by the metadata hash of host groups and examples, rather than
48
+ # triggering implicit auto-inclusion in groups with matching metadata.
49
+ config.shared_context_metadata_behavior = :apply_to_host_groups
50
+
51
+ # The settings below are suggested to provide a good initial experience
52
+ # with RSpec, but feel free to customize to your heart's content.
53
+ # This allows you to limit a spec run to individual examples or groups
54
+ # you care about by tagging them with `:focus` metadata. When nothing
55
+ # is tagged with `:focus`, all examples get run. RSpec also provides
56
+ # aliases for `it`, `describe`, and `context` that include `:focus`
57
+ # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
58
+ config.filter_run_when_matching :focus
59
+
60
+ # Allows RSpec to persist some state between runs in order to support
61
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
62
+ # you configure your source control system to ignore this file.
63
+ config.example_status_persistence_file_path = 'spec/examples.txt'
64
+
65
+ # Limits the available syntax to the non-monkey patched syntax that is
66
+ # recommended. For more details, see:
67
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
68
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
69
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
70
+ config.disable_monkey_patching!
71
+
72
+ # This setting enables warnings. It's recommended, but in some cases may
73
+ # be too noisy due to issues in dependencies.
74
+ # config.warnings = true
75
+
76
+ # Many RSpec users commonly either run the entire suite or an individual
77
+ # file, and it's useful to allow more verbose output when running an
78
+ # individual spec file.
79
+ if config.files_to_run.one?
80
+ # Use the documentation formatter for detailed output,
81
+ # unless a formatter has already been configured
82
+ # (e.g. via a command-line flag).
83
+ config.default_formatter = 'doc'
84
+ end
85
+
86
+ # Print the 10 slowest examples and example groups at the
87
+ # end of the spec run, to help surface which specs are running
88
+ # particularly slow.
89
+ # config.profile_examples = 10
90
+
91
+ # Run specs in random order to surface order dependencies. If you find an
92
+ # order dependency and want to debug it, you can fix the order by providing
93
+ # the seed, which is printed after each run.
94
+ # --seed 1234
95
+ config.order = :random
96
+
97
+ # Seed global randomization in this process using the `--seed` CLI option.
98
+ # Setting this allows you to use `--seed` to deterministically reproduce
99
+ # test failures related to randomization by passing the same `--seed` value
100
+ # as the one that triggered the failure.
101
+ Kernel.srand config.seed
102
+ end
103
+
20
104
  # generate a sample image file with a specified profile
21
105
  # rubocop:disable Metrics/AbcSize
22
106
  # rubocop:disable Metrics/CyclomaticComplexity
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assembly-image
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.7
4
+ version: 1.7.8
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:
11
+ autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2020-01-21 00:00:00.000000000 Z
14
+ date: 2022-06-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: assembly-objectfile
@@ -89,6 +89,20 @@ dependencies:
89
89
  - - ">="
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
+ - !ruby/object:Gem::Dependency
93
+ name: rubocop-rspec
94
+ requirement: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
92
106
  - !ruby/object:Gem::Dependency
93
107
  name: simplecov
94
108
  requirement: !ruby/object:Gem::Requirement
@@ -125,11 +139,13 @@ executables: []
125
139
  extensions: []
126
140
  extra_rdoc_files: []
127
141
  files:
142
+ - ".circleci/config.yml"
143
+ - ".github/pull_request_template.md"
128
144
  - ".gitignore"
129
145
  - ".rspec"
130
146
  - ".rubocop.yml"
147
+ - ".rubocop_todo.yml"
131
148
  - ".rvmrc.example"
132
- - ".travis.yml"
133
149
  - Gemfile
134
150
  - LICENSE
135
151
  - README.md
@@ -141,10 +157,12 @@ files:
141
157
  - lib/assembly-image.rb
142
158
  - lib/assembly-image/image.rb
143
159
  - lib/assembly-image/images.rb
160
+ - lib/assembly-image/jp2_creator.rb
144
161
  - lib/assembly-image/version.rb
145
162
  - profiles/AdobeRGB1998.icc
146
163
  - profiles/DotGain20.icc
147
164
  - profiles/sRGBIEC6196621.icc
165
+ - spec/assembly/image/jp2_creator_spec.rb
148
166
  - spec/image_spec.rb
149
167
  - spec/images_spec.rb
150
168
  - spec/spec_helper.rb
@@ -152,8 +170,9 @@ files:
152
170
  - spec/test_data/output/.empty
153
171
  homepage: ''
154
172
  licenses: []
155
- metadata: {}
156
- post_install_message:
173
+ metadata:
174
+ rubygems_mfa_required: 'true'
175
+ post_install_message:
157
176
  rdoc_options: []
158
177
  require_paths:
159
178
  - lib
@@ -168,12 +187,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
187
  - !ruby/object:Gem::Version
169
188
  version: '0'
170
189
  requirements: []
171
- rubygems_version: 3.1.2
172
- signing_key:
190
+ rubygems_version: 3.2.32
191
+ signing_key:
173
192
  specification_version: 4
174
193
  summary: Ruby immplementation of image services needed to prepare objects to be accessioned
175
194
  in SULAIR digital library
176
195
  test_files:
196
+ - spec/assembly/image/jp2_creator_spec.rb
177
197
  - spec/image_spec.rb
178
198
  - spec/images_spec.rb
179
199
  - spec/spec_helper.rb
data/.travis.yml DELETED
@@ -1,37 +0,0 @@
1
- notifications:
2
- email: false
3
-
4
- rvm:
5
- - 2.2.4
6
- - 2.4.3
7
- - 2.5.3
8
-
9
- language: ruby
10
- sudo: false
11
- cache: bundler
12
-
13
- before_install:
14
- - cmake --version
15
- - wget -q http://kakadusoftware.com/wp-content/uploads/2014/06/KDU77_Demo_Apps_for_Linux-x86-64_150710.zip
16
- install:
17
- - cmake -E tar -xf KDU77_Demo_Apps_for_Linux-x86-64_150710.zip
18
- - export LD_LIBRARY_PATH=${PWD}/KDU77_Demo_Apps_for_Linux-x86-64_150710:${LD_LIBRARY_PATH}
19
- - export PATH=${PWD}/KDU77_Demo_Apps_for_Linux-x86-64_150710:${PATH}
20
- - bundle install --jobs=3 --retry=3
21
-
22
- addons:
23
- apt:
24
- packages:
25
- - libimage-exiftool-perl
26
-
27
- env:
28
- global:
29
- - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
30
-
31
- before_script:
32
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
33
- - chmod +x ./cc-test-reporter
34
- - ./cc-test-reporter before-build
35
-
36
- after_script:
37
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT