hydra-derivatives 3.5.0 → 3.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +56 -23
  3. data/Gemfile +3 -2
  4. data/README.md +16 -5
  5. data/Rakefile +1 -1
  6. data/VERSION +1 -1
  7. data/hydra-derivatives.gemspec +9 -6
  8. data/lib/hydra/derivatives/config.rb +1 -1
  9. data/lib/hydra/derivatives/processors/document.rb +4 -1
  10. data/lib/hydra/derivatives/processors/full_text.rb +5 -3
  11. data/lib/hydra/derivatives/processors/image.rb +4 -2
  12. data/solr/config/xslt/example.xsl +1 -1
  13. data/solr/config/xslt/luke.xsl +1 -1
  14. metadata +134 -94
  15. data/spec/fixtures/FlashPix.ppt +0 -0
  16. data/spec/fixtures/adobe1998.tif +0 -0
  17. data/spec/fixtures/countdown.avi +0 -0
  18. data/spec/fixtures/jpeg2k_config.yml +0 -20
  19. data/spec/fixtures/piano_note.wav +0 -0
  20. data/spec/fixtures/sample.rtf +0 -68
  21. data/spec/fixtures/test.dng +0 -0
  22. data/spec/fixtures/test.doc +0 -0
  23. data/spec/fixtures/test.docx +0 -0
  24. data/spec/fixtures/test.pdf +0 -0
  25. data/spec/fixtures/test.pptx +0 -0
  26. data/spec/fixtures/test.tif +0 -0
  27. data/spec/fixtures/test.xls +0 -0
  28. data/spec/fixtures/test.xlsx +0 -0
  29. data/spec/fixtures/world.png +0 -0
  30. data/spec/processors/active_encode_spec.rb +0 -132
  31. data/spec/processors/document_spec.rb +0 -41
  32. data/spec/processors/full_text_spec.rb +0 -127
  33. data/spec/processors/image_spec.rb +0 -124
  34. data/spec/processors/jpeg2k_spec.rb +0 -82
  35. data/spec/processors/processor_spec.rb +0 -53
  36. data/spec/processors/shell_based_processor_spec.rb +0 -28
  37. data/spec/processors/video_spec.rb +0 -59
  38. data/spec/runners/active_encode_derivatives_spec.rb +0 -38
  39. data/spec/runners/runner_spec.rb +0 -9
  40. data/spec/services/audio_derivatives_spec.rb +0 -78
  41. data/spec/services/persist_basic_contained_output_file_service_spec.rb +0 -42
  42. data/spec/services/persist_external_file_output_file_service_spec.rb +0 -26
  43. data/spec/services/persist_output_file_service_spec.rb +0 -47
  44. data/spec/services/remote_source_file_spec.rb +0 -33
  45. data/spec/services/retrieve_source_file_service_spec.rb +0 -60
  46. data/spec/services/tempfile_service_spec.rb +0 -54
  47. data/spec/spec_helper.rb +0 -40
  48. data/spec/units/audio_encoder_spec.rb +0 -34
  49. data/spec/units/config_spec.rb +0 -50
  50. data/spec/units/derivatives_spec.rb +0 -70
  51. data/spec/units/io_decorator_spec.rb +0 -45
  52. data/spec/units/logger_spec.rb +0 -27
  53. data/spec/units/transcoding_spec.rb +0 -354
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60d19f9f569bcbc802b64a375b73be6e019d62f9b2c6a9a0e6b35dbd2fcfe58a
4
- data.tar.gz: 88f0cabb0114f725c9f8473cd793b6eb2fc274e575e6ae59bceeb50498551025
3
+ metadata.gz: f166ed40726101e7aa7fb31658fae5fb49ba0f7ccfffb1cf6483db8f42bdb4b4
4
+ data.tar.gz: 35adb95884a58ac12e2e4dce006c1052d9adab7e4e96db5afdfd642c86c04fc1
5
5
  SHA512:
6
- metadata.gz: 44611dab7f3cd84daf842d95953ed4ad8e2a3899e615c155848458620f1a066bf667f034c13e91c600614f6aadffc352d9dcd595bdfff7b96eefa76af7ccb33e
7
- data.tar.gz: f47fef855a22d55db4c4088dbdddf1fb999b8427d0aa255f7510cf2581509ad0ce3239d08059b77bd00a91620054dcba6a50cc10c3e45114fe5fc37cc014856f
6
+ metadata.gz: 88b362ab8c8bc24afa2c6bf393f94b5d5219490b342e25ca0e94e49d26d4f633245115bb37bff976b66c02a5ccaa0f4bc5dd58242fd2615cdd281687a6c70a50
7
+ data.tar.gz: 7a12d4807489a306dc6667baedb51b4e56c492e7f2a4b15887f44af84e0de37fcb0511ebf1335608ac35983719382a73c3cda9545879e4f4199454e8465c7a28
data/.circleci/config.yml CHANGED
@@ -1,43 +1,60 @@
1
1
  version: 2.1
2
2
  orbs:
3
- samvera: samvera/circleci-orb@0
3
+ samvera: samvera/circleci-orb@1.0
4
4
  jobs:
5
5
  bundle_lint_test:
6
6
  parameters:
7
7
  ruby_version:
8
8
  type: string
9
- project:
10
- type: string
11
9
  bundler_version:
12
10
  type: string
13
- default: 2.0.1
11
+ default: 2.3.10
14
12
  executor:
15
13
  name: 'samvera/ruby_fcrepo_solr'
16
14
  ruby_version: << parameters.ruby_version >>
15
+ solr_version: 7-slim
17
16
  steps:
18
17
  - samvera/cached_checkout
19
18
  - run:
20
19
  name: Install dependencies
21
20
  command: |
22
21
  sudo apt-get update
23
- sudo apt-get install ghostscript ufraw-batch libpng-dev imagemagick ffmpeg libreoffice
22
+ sudo apt-get install ghostscript libpng-dev imagemagick ffmpeg libreoffice dcraw
23
+ - restore_cache:
24
+ name: Restore Kakadu Cache
25
+ keys:
26
+ - kakadu-cache-v1
24
27
  - run:
25
- name: Install Kakadu
28
+ name: Download Kakadu
26
29
  command: |
27
- if [ ! -d "kakadu" ]; then
28
- mkdir ~/downloads
29
- wget http://kakadusoftware.com/wp-content/uploads/2014/06/KDU77_Demo_Apps_for_Linux-x86-64_150710.zip -O ~/downloads/kakadu.zip
30
- unzip ~/downloads/kakadu.zip
31
- mv KDU77_Demo_Apps_for_Linux-x86-64_150710 kakadu
30
+ if [ ! -f ~/downloads/kakadu.zip ]; then
31
+ mkdir -p ~/downloads
32
+ wget http://kakadusoftware.com/wp-content/uploads/KDU805_Demo_Apps_for_Linux-x86-64_200602.zip -O ~/downloads/kakadu.zip
32
33
  fi
34
+ - save_cache:
35
+ name: Save Kakadu Cache
36
+ key: kakadu-cache-v1
37
+ paths:
38
+ - ~/downloads/kakadu.zip
39
+ - run:
40
+ name: Install Kakadu
41
+ command: |
42
+ unzip ~/downloads/kakadu.zip
43
+ mv KDU805_Demo_Apps_for_Linux-x86-64_200602 kakadu
33
44
  sudo cp kakadu/*.so /usr/lib
34
45
  sudo cp kakadu/* /usr/bin
46
+ kdu_compress -version
47
+ - run:
48
+ name: Modify ImageMagick security policy
49
+ command: sudo sed -i 's/policy domain="coder" rights="none" pattern="PDF"/policy domain="coder" rights="read|write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml
50
+ - run:
51
+ name: Modify ImageMagick delegate for raw files
52
+ command: sudo sed -i 's/decode="dng:decode" command=".*"\/>$/decode="dng:decode" command="\&quot\;dcraw\&quot\; -c -q 3 -H 5 -w \&quot\;\%i\&quot\; \| \&quot\;convert\&quot\; - \&quot\;\%u\.png\&quot\;"\/>/' /etc/ImageMagick-6/delegates.xml
35
53
 
36
- - samvera/bundle_for_gem:
54
+ - samvera/bundle:
37
55
  ruby_version: << parameters.ruby_version >>
38
56
  bundler_version: << parameters.bundler_version >>
39
- project: << parameters.project >>
40
- cache_version: '2'
57
+ cache_version: "2"
41
58
 
42
59
  - samvera/install_solr_core
43
60
 
@@ -49,14 +66,30 @@ workflows:
49
66
  ci:
50
67
  jobs:
51
68
  - bundle_lint_test:
52
- name: ruby2-4-6
53
- ruby_version: 2.4.6
54
- project: hydra-derivatives
69
+ name: ruby2-7
70
+ ruby_version: 2.7.5
71
+ - bundle_lint_test:
72
+ name: ruby2-6
73
+ ruby_version: 2.6.9
74
+ - bundle_lint_test:
75
+ name: ruby2-5
76
+ ruby_version: 2.5.9
77
+
78
+ nightly:
79
+ triggers:
80
+ - schedule:
81
+ cron: "0 0 * * *"
82
+ filters:
83
+ branches:
84
+ only:
85
+ - main
86
+ jobs:
87
+ - bundle_lint_test:
88
+ name: ruby2-7
89
+ ruby_version: 2.7.5
55
90
  - bundle_lint_test:
56
- name: ruby2-5-5
57
- ruby_version: 2.5.5
58
- project: hydra-derivatives
91
+ name: ruby2-6
92
+ ruby_version: 2.6.9
59
93
  - bundle_lint_test:
60
- name: ruby2-6-3
61
- ruby_version: 2.6.3
62
- project: hydra-derivatives
94
+ name: ruby2-5
95
+ ruby_version: 2.5.9
data/Gemfile CHANGED
@@ -3,11 +3,12 @@ source 'https://rubygems.org'
3
3
  # Please see hydra-derivatives.gemspec for dependency information.
4
4
  gemspec
5
5
 
6
+ gem 'sprockets', '~> 3.7'
7
+
6
8
  group :development, :test do
7
- gem 'byebug' unless ENV['TRAVIS']
8
9
  gem 'coveralls'
10
+ gem 'rspec_junit_formatter'
9
11
  gem 'rubocop', '~> 0.52.0', require: false
10
12
  gem 'rubocop-rspec', require: false
11
13
  gem 'simplecov'
12
- gem 'rspec_junit_formatter'
13
14
  end
data/README.md CHANGED
@@ -9,7 +9,7 @@ Docs:
9
9
  [![Contribution Guidelines](http://img.shields.io/badge/CONTRIBUTING-Guidelines-blue.svg)](./CONTRIBUTING.md)
10
10
  [![Apache 2.0 License](http://img.shields.io/badge/APACHE2-license-blue.svg)](./LICENSE.txt)
11
11
 
12
- Jump In: [![Slack Status](http://slack.samvera.org/badge.svg)](http://slack.samvera.org/)
12
+ [Join us on slack!](http://slack.samvera.org/)
13
13
 
14
14
  # What is hydra-derivatives?
15
15
 
@@ -165,7 +165,7 @@ Just add `gem 'hydra-derivatives'` to your Gemfile.
165
165
  * [GhostScript](https://www.ghostscript.com/)
166
166
  * [ImageMagick](http://www.imagemagick.org/)
167
167
  * Kakadu's [kdu_compress](http://www.kakadusoftware.com/) (optional)
168
- * [ufraw](http://ufraw.sourceforge.net/)
168
+ * [ufraw](http://ufraw.sourceforge.net/) or [dcraw](https://dechifro.org/dcraw/)
169
169
 
170
170
  To enable LibreOffice, FFMpeg, ImageMagick, FITS support, and kdu_compress support, make sure they are on your path. Most people will put that in their .bash_profile or somewhere similar.
171
171
 
@@ -195,6 +195,11 @@ MAGICK_TEMPDIR
195
195
  ```
196
196
  YMMV as to where setting them will take effect in your app; the application's web server's vhost directives are a location known to work with an Apache web server set up.
197
197
 
198
+ ImageMagick by default disables reading and writing of PDFs due to a [vulnerability in ghostscript](https://www.kb.cert.org/vuls/id/332928/). Make sure to install a fixed version of ghostscript and modify ImageMagick's security policy to allow reading and writing PDFs:
199
+ ```
200
+ sudo sed -i 's/policy domain="coder" rights="none" pattern="PDF"/policy domain="coder" rights="read|write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml
201
+ ```
202
+
198
203
  ## JPEG2k Directives
199
204
 
200
205
  Unlike the other processors, the `Jpeg2kImage` processor does not generally accept arguments that directly (or nearly so) translate to the arguments you would give to the corresponding command line utility.
@@ -205,7 +210,7 @@ Instead, each directive may contain these arguments:
205
210
  * `:to_srgb` (Boolean) : If `true` and the image is a color image it will map the source image color profile to sRGB. Default: `true`
206
211
  * `:resize` (String) : Geometry; the same syntax as the `Hydra::Derivatives::Image` processor
207
212
  * `:recipe` :
208
- - If a Symbol the recipe will be read from the `Hydra::Derivatives.kdu_compress_recipes` hash. You can override this, or a couple of samples are supplied. The symbol in the config file should be the name in the model + `_{quality}`, e.g. `recipe: :default` will look `:default_color` or `:default_grey` in the hash.
213
+ - If a Symbol the recipe will be read from the `Hydra::Derivatives.kdu_compress_recipes` hash. You can override this, or a couple of samples are supplied. The symbol in the config file should be the name in the model + `_{quality}`, e.g. `recipe: :default` will look `:default_color` or `:default_gray` in the hash.
209
214
  - If a String the recipe in the string will be used. You may include anything the command line utility will accept except `-i` or `-o`. See `$ kdu_compress -usage` in your shell.
210
215
  - If no `:recipe` is provided the processor will examine the image and make a best guess, but you can set a few basic options (the remainder of this list). Note that these are ignored if you provided a recipe via either of the first two methods described.
211
216
  * `:levels` (Integer) : The number of decomposition levels. The default is the number of times the long dimension can be divided by two, down to 96, e.g. a 7200 pixel image would have 6 levels (3600, 1800, 900, 450, 225, 112)
@@ -220,13 +225,19 @@ Instead, each directive may contain these arguments:
220
225
  * [ImageMagick](https://www.imagemagick.org)
221
226
  * On a mac, do `brew install imagemagick`
222
227
  * [LibreOffice](https://www.libreoffice.org/)
223
- * * On a mac, do `brew cask install libreoffice`
228
+ * * On a mac, do `brew install libreoffice --cask`
224
229
  * [Kakadu](http://kakadusoftware.com/)
225
230
  * On a mac, extract the file and run the pkg installer therein (don't get distracted by the files called kdu_show)
226
231
  * [Ghostscript](https://www.ghostscript.com/)
227
232
  * On a mac, `brew install ghostscript`
228
233
  * ufraw
229
234
  * On a mac, `brew install ufraw`
235
+ * dcraw (ufraw alternative)
236
+ * On a mac, `brew install dcraw`
237
+ * You will need to modify ImageMagick's delegate for dng files in order to use dcraw.
238
+ * First find where the deletegates.xml file is located: `identify -list delegate | grep Path`
239
+ * Edit the delegates.xml file by replacing the dng:decode delegate line with the following:
240
+ ```<delegate decode="dng:decode" command="&quot;dcraw&quot; -c -q 3 -H 5 -w &quot;%i&quot; | &quot;convert&quot; - &quot;%u.png&quot;"/>```
230
241
  * libvpx
231
242
  * On a mac, `brew install libvpx`
232
243
  * ffmpeg
@@ -249,4 +260,4 @@ If you don't want to run the whole suite all at once like CI, do the following:
249
260
  This software has been developed by and is brought to you by the Samvera community. Learn more at the
250
261
  [Samvera website](http://samvera.org/).
251
262
 
252
- ![Samvera Logo](https://wiki.duraspace.org/download/thumbnails/87459292/samvera-fall-font2-200w.png?version=1&modificationDate=1498550535816&api=v2)
263
+ ![Samvera Logo](https://samvera.org/wp-content/uploads/2017/06/samvera-logo-tm.svg)
data/Rakefile CHANGED
@@ -20,7 +20,7 @@ namespace :derivatives do
20
20
  end
21
21
 
22
22
  RSpec::Core::RakeTask.new(:rspec) do |task|
23
- task.rspec_opts = "--tag ~requires_kdu_compress" if ENV['TRAVIS']
23
+ task.rspec_opts = "--tag ~requires_kdu_compress" if ENV['CI']
24
24
  end
25
25
 
26
26
  desc 'Start up Solr & Fedora and run tests'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.5.0
1
+ 3.7.0
@@ -10,21 +10,24 @@ Gem::Specification.new do |spec|
10
10
  spec.license = "APACHE2"
11
11
  spec.homepage = "https://github.com/projecthydra/hydra-derivatives"
12
12
 
13
- spec.files = `git ls-files`.split($/)
13
+ spec.files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR).select { |f| File.dirname(f) !~ %r{\A"?spec|test|features\/?} }
14
14
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
15
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
16
15
  spec.require_paths = ["lib"]
17
16
 
18
- spec.add_development_dependency 'bundler', '~> 2.0'
17
+ spec.add_development_dependency 'bundler', '~> 2.1'
19
18
  spec.add_development_dependency 'fcrepo_wrapper', '~> 0.2'
19
+ spec.add_development_dependency 'pry-byebug'
20
+ spec.add_development_dependency 'rails', '> 5.1', '< 7.0'
20
21
  spec.add_development_dependency 'rake', '~> 10.1'
21
22
  spec.add_development_dependency 'rspec', '~> 3.1'
22
23
  spec.add_development_dependency "solr_wrapper", "~> 2.0"
23
24
 
24
- spec.add_dependency 'active-fedora', '>= 11.3.1', '< 14'
25
+ spec.add_dependency 'active-fedora', '>= 11.5.6',
26
+ '!= 12.0.0', '!= 12.0.1', '!= 12.0.2', '!= 12.0.3', '!= 12.1.0', '!= 12.1.1', '!= 12.2.0', '!= 12.2.1',
27
+ '!= 13.0.0', '!= 13.1.0', '!= 13.1.1', '!= 13.1.2', '!= 13.1.3', '!= 13.2.0', '!= 13.2.1'
25
28
  spec.add_dependency 'active_encode', '~>0.1'
26
- spec.add_dependency 'activesupport', '>= 4.0', '< 6'
27
- spec.add_dependency 'addressable', '~>2.5'
29
+ spec.add_dependency 'activesupport', '>= 4.0', '< 7'
30
+ spec.add_dependency 'addressable', '~> 2.5'
28
31
  spec.add_dependency 'deprecation'
29
32
  spec.add_dependency 'mime-types', '> 2.0', '< 4.0'
30
33
  spec.add_dependency 'mini_magick', '>= 3.2', '< 5'
@@ -57,7 +57,7 @@ module Hydra
57
57
  ORGgen_plt=yes
58
58
  ORGtparts=R
59
59
  "Stiles={1024,1024}" ).gsub(/\s+/, " ").strip,
60
- default_grey: %(-rate 2.4,1.48331273,.91673033,.56657224,.35016049,.21641118,.13374944,.08266171
60
+ default_gray: %(-rate 2.4,1.48331273,.91673033,.56657224,.35016049,.21641118,.13374944,.08266171
61
61
  -jp2_space sLUM
62
62
  -double_buffering 10
63
63
  -num_threads 4
@@ -1,3 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ # An abstract class for asyncronous jobs that convert office documents using soffice
1
4
  module Hydra::Derivatives::Processors
2
5
  class Document < Processor
3
6
  include ShellBasedProcessor
@@ -23,7 +26,7 @@ module Hydra::Derivatives::Processors
23
26
  if directives.fetch(:format) == "jpg"
24
27
  Hydra::Derivatives::Processors::Image.new(converted_file, directives).process
25
28
  else
26
- output_file_service.call(File.read(converted_file), directives)
29
+ output_file_service.call(File.open(converted_file, 'rb'), directives)
27
30
  end
28
31
  end
29
32
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Hydra::Derivatives::Processors
2
4
  # Extract the full text from the content using Solr's extract handler
3
5
  class FullText < Processor
@@ -24,6 +26,7 @@ module Hydra::Derivatives::Processors
24
26
  def fetch
25
27
  resp = http_request
26
28
  raise "Solr Extract service was unsuccessful. '#{uri}' returned code #{resp.code} for #{source_path}\n#{resp.body}" unless resp.code == '200'
29
+
27
30
  file_content.rewind if file_content.respond_to?(:rewind)
28
31
  resp.body.force_encoding(resp.type_params['charset']) if resp.type_params['charset']
29
32
  resp.body
@@ -32,9 +35,8 @@ module Hydra::Derivatives::Processors
32
35
  # Send the request to the extract service
33
36
  # @return [Net::HttpResponse] the result of calling the extract service
34
37
  def http_request
35
- Net::HTTP.start(uri.host, uri.port) do |http|
38
+ Net::HTTP.start(uri.host, uri.port, use_ssl: check_for_ssl) do |http|
36
39
  req = Net::HTTP::Post.new(uri.request_uri, request_headers)
37
- req.use_ssl = true if check_for_ssl
38
40
  req.basic_auth uri.user, uri.password unless uri.password.nil?
39
41
  req.body = file_content
40
42
  http.request req
@@ -42,7 +44,7 @@ module Hydra::Derivatives::Processors
42
44
  end
43
45
 
44
46
  def file_content
45
- @content ||= File.open(source_path).read
47
+ @file_content ||= File.open(source_path).read
46
48
  end
47
49
 
48
50
  # @return [Hash] the request headers to send to the Solr extract service
@@ -21,8 +21,10 @@ module Hydra::Derivatives::Processors
21
21
  def create_resized_image
22
22
  create_image do |xfrm|
23
23
  if size
24
- xfrm.flatten
25
- xfrm.resize(size)
24
+ xfrm.combine_options do |i|
25
+ i.flatten
26
+ i.resize(size)
27
+ end
26
28
  end
27
29
  end
28
30
  end
@@ -124,7 +124,7 @@
124
124
  td { vertical-align: top; }
125
125
  ul { margin: 0px; margin-left: 1em; padding: 0px; }
126
126
  .note { font-size:80%; }
127
- .doc { margin-top: 1em; border-top: solid grey 1px; }
127
+ .doc { margin-top: 1em; border-top: solid gray 1px; }
128
128
  .exp { display: none; font-family: monospace; white-space: pre; }
129
129
  </style>
130
130
  </xsl:template>
@@ -326,7 +326,7 @@
326
326
  <style type="text/css">
327
327
  <![CDATA[
328
328
  td.name {font-style: italic; font-size:80%; }
329
- .doc { margin: 0.5em; border: solid grey 1px; }
329
+ .doc { margin: 0.5em; border: solid gray 1px; }
330
330
  .exp { display: none; font-family: monospace; white-space: pre; }
331
331
  div.histogram { background: none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;}
332
332
  table.histogram { width: auto; vertical-align: bottom; }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-derivatives
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-21 00:00:00.000000000 Z
11
+ date: 2022-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '2.1'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fcrepo_wrapper
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +38,40 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry-byebug
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: rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">"
60
+ - !ruby/object:Gem::Version
61
+ version: '5.1'
62
+ - - "<"
63
+ - !ruby/object:Gem::Version
64
+ version: '7.0'
65
+ type: :development
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">"
70
+ - !ruby/object:Gem::Version
71
+ version: '5.1'
72
+ - - "<"
73
+ - !ruby/object:Gem::Version
74
+ version: '7.0'
41
75
  - !ruby/object:Gem::Dependency
42
76
  name: rake
43
77
  requirement: !ruby/object:Gem::Requirement
@@ -86,20 +120,104 @@ dependencies:
86
120
  requirements:
87
121
  - - ">="
88
122
  - !ruby/object:Gem::Version
89
- version: 11.3.1
90
- - - "<"
123
+ version: 11.5.6
124
+ - - "!="
125
+ - !ruby/object:Gem::Version
126
+ version: 12.0.0
127
+ - - "!="
128
+ - !ruby/object:Gem::Version
129
+ version: 12.0.1
130
+ - - "!="
131
+ - !ruby/object:Gem::Version
132
+ version: 12.0.2
133
+ - - "!="
134
+ - !ruby/object:Gem::Version
135
+ version: 12.0.3
136
+ - - "!="
137
+ - !ruby/object:Gem::Version
138
+ version: 12.1.0
139
+ - - "!="
140
+ - !ruby/object:Gem::Version
141
+ version: 12.1.1
142
+ - - "!="
143
+ - !ruby/object:Gem::Version
144
+ version: 12.2.0
145
+ - - "!="
146
+ - !ruby/object:Gem::Version
147
+ version: 12.2.1
148
+ - - "!="
149
+ - !ruby/object:Gem::Version
150
+ version: 13.0.0
151
+ - - "!="
152
+ - !ruby/object:Gem::Version
153
+ version: 13.1.0
154
+ - - "!="
155
+ - !ruby/object:Gem::Version
156
+ version: 13.1.1
157
+ - - "!="
158
+ - !ruby/object:Gem::Version
159
+ version: 13.1.2
160
+ - - "!="
161
+ - !ruby/object:Gem::Version
162
+ version: 13.1.3
163
+ - - "!="
164
+ - !ruby/object:Gem::Version
165
+ version: 13.2.0
166
+ - - "!="
91
167
  - !ruby/object:Gem::Version
92
- version: '14'
168
+ version: 13.2.1
93
169
  type: :runtime
94
170
  prerelease: false
95
171
  version_requirements: !ruby/object:Gem::Requirement
96
172
  requirements:
97
173
  - - ">="
98
174
  - !ruby/object:Gem::Version
99
- version: 11.3.1
100
- - - "<"
175
+ version: 11.5.6
176
+ - - "!="
177
+ - !ruby/object:Gem::Version
178
+ version: 12.0.0
179
+ - - "!="
180
+ - !ruby/object:Gem::Version
181
+ version: 12.0.1
182
+ - - "!="
183
+ - !ruby/object:Gem::Version
184
+ version: 12.0.2
185
+ - - "!="
186
+ - !ruby/object:Gem::Version
187
+ version: 12.0.3
188
+ - - "!="
189
+ - !ruby/object:Gem::Version
190
+ version: 12.1.0
191
+ - - "!="
192
+ - !ruby/object:Gem::Version
193
+ version: 12.1.1
194
+ - - "!="
195
+ - !ruby/object:Gem::Version
196
+ version: 12.2.0
197
+ - - "!="
198
+ - !ruby/object:Gem::Version
199
+ version: 12.2.1
200
+ - - "!="
201
+ - !ruby/object:Gem::Version
202
+ version: 13.0.0
203
+ - - "!="
204
+ - !ruby/object:Gem::Version
205
+ version: 13.1.0
206
+ - - "!="
207
+ - !ruby/object:Gem::Version
208
+ version: 13.1.1
209
+ - - "!="
210
+ - !ruby/object:Gem::Version
211
+ version: 13.1.2
212
+ - - "!="
213
+ - !ruby/object:Gem::Version
214
+ version: 13.1.3
215
+ - - "!="
216
+ - !ruby/object:Gem::Version
217
+ version: 13.2.0
218
+ - - "!="
101
219
  - !ruby/object:Gem::Version
102
- version: '14'
220
+ version: 13.2.1
103
221
  - !ruby/object:Gem::Dependency
104
222
  name: active_encode
105
223
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +241,7 @@ dependencies:
123
241
  version: '4.0'
124
242
  - - "<"
125
243
  - !ruby/object:Gem::Version
126
- version: '6'
244
+ version: '7'
127
245
  type: :runtime
128
246
  prerelease: false
129
247
  version_requirements: !ruby/object:Gem::Requirement
@@ -133,7 +251,7 @@ dependencies:
133
251
  version: '4.0'
134
252
  - - "<"
135
253
  - !ruby/object:Gem::Version
136
- version: '6'
254
+ version: '7'
137
255
  - !ruby/object:Gem::Dependency
138
256
  name: addressable
139
257
  requirement: !ruby/object:Gem::Requirement
@@ -285,50 +403,11 @@ files:
285
403
  - solr/config/xslt/example_atom.xsl
286
404
  - solr/config/xslt/example_rss.xsl
287
405
  - solr/config/xslt/luke.xsl
288
- - spec/fixtures/FlashPix.ppt
289
- - spec/fixtures/adobe1998.tif
290
- - spec/fixtures/countdown.avi
291
- - spec/fixtures/jpeg2k_config.yml
292
- - spec/fixtures/piano_note.wav
293
- - spec/fixtures/sample.rtf
294
- - spec/fixtures/test.dng
295
- - spec/fixtures/test.doc
296
- - spec/fixtures/test.docx
297
- - spec/fixtures/test.pdf
298
- - spec/fixtures/test.pptx
299
- - spec/fixtures/test.tif
300
- - spec/fixtures/test.xls
301
- - spec/fixtures/test.xlsx
302
- - spec/fixtures/world.png
303
- - spec/processors/active_encode_spec.rb
304
- - spec/processors/document_spec.rb
305
- - spec/processors/full_text_spec.rb
306
- - spec/processors/image_spec.rb
307
- - spec/processors/jpeg2k_spec.rb
308
- - spec/processors/processor_spec.rb
309
- - spec/processors/shell_based_processor_spec.rb
310
- - spec/processors/video_spec.rb
311
- - spec/runners/active_encode_derivatives_spec.rb
312
- - spec/runners/runner_spec.rb
313
- - spec/services/audio_derivatives_spec.rb
314
- - spec/services/persist_basic_contained_output_file_service_spec.rb
315
- - spec/services/persist_external_file_output_file_service_spec.rb
316
- - spec/services/persist_output_file_service_spec.rb
317
- - spec/services/remote_source_file_spec.rb
318
- - spec/services/retrieve_source_file_service_spec.rb
319
- - spec/services/tempfile_service_spec.rb
320
- - spec/spec_helper.rb
321
- - spec/units/audio_encoder_spec.rb
322
- - spec/units/config_spec.rb
323
- - spec/units/derivatives_spec.rb
324
- - spec/units/io_decorator_spec.rb
325
- - spec/units/logger_spec.rb
326
- - spec/units/transcoding_spec.rb
327
406
  homepage: https://github.com/projecthydra/hydra-derivatives
328
407
  licenses:
329
408
  - APACHE2
330
409
  metadata: {}
331
- post_install_message:
410
+ post_install_message:
332
411
  rdoc_options: []
333
412
  require_paths:
334
413
  - lib
@@ -344,46 +423,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
344
423
  version: '0'
345
424
  requirements: []
346
425
  rubygems_version: 3.0.3
347
- signing_key:
426
+ signing_key:
348
427
  specification_version: 4
349
428
  summary: Derivative generation plugin for hydra
350
- test_files:
351
- - spec/fixtures/FlashPix.ppt
352
- - spec/fixtures/adobe1998.tif
353
- - spec/fixtures/countdown.avi
354
- - spec/fixtures/jpeg2k_config.yml
355
- - spec/fixtures/piano_note.wav
356
- - spec/fixtures/sample.rtf
357
- - spec/fixtures/test.dng
358
- - spec/fixtures/test.doc
359
- - spec/fixtures/test.docx
360
- - spec/fixtures/test.pdf
361
- - spec/fixtures/test.pptx
362
- - spec/fixtures/test.tif
363
- - spec/fixtures/test.xls
364
- - spec/fixtures/test.xlsx
365
- - spec/fixtures/world.png
366
- - spec/processors/active_encode_spec.rb
367
- - spec/processors/document_spec.rb
368
- - spec/processors/full_text_spec.rb
369
- - spec/processors/image_spec.rb
370
- - spec/processors/jpeg2k_spec.rb
371
- - spec/processors/processor_spec.rb
372
- - spec/processors/shell_based_processor_spec.rb
373
- - spec/processors/video_spec.rb
374
- - spec/runners/active_encode_derivatives_spec.rb
375
- - spec/runners/runner_spec.rb
376
- - spec/services/audio_derivatives_spec.rb
377
- - spec/services/persist_basic_contained_output_file_service_spec.rb
378
- - spec/services/persist_external_file_output_file_service_spec.rb
379
- - spec/services/persist_output_file_service_spec.rb
380
- - spec/services/remote_source_file_spec.rb
381
- - spec/services/retrieve_source_file_service_spec.rb
382
- - spec/services/tempfile_service_spec.rb
383
- - spec/spec_helper.rb
384
- - spec/units/audio_encoder_spec.rb
385
- - spec/units/config_spec.rb
386
- - spec/units/derivatives_spec.rb
387
- - spec/units/io_decorator_spec.rb
388
- - spec/units/logger_spec.rb
389
- - spec/units/transcoding_spec.rb
429
+ test_files: []
Binary file
Binary file
Binary file