riiif 2.4.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5d2036dfb026731136b7eba93e3ede1943246aeac921a6db93cc76c6a1cfa8f
4
- data.tar.gz: fd36f9c29b4beffb389259f3c1d66650f6f2b9963f0c243cfb6f0140736b72e7
3
+ metadata.gz: d88fa024e853f81b2c6a4fb9a722357d45537e1e6c235aafb165e1dc5fc0f017
4
+ data.tar.gz: 775234812041bad9fbf9340540799baf9e6740e9cd11d43eca5c51eead07ef28
5
5
  SHA512:
6
- metadata.gz: 25e4d827a9033f80d3a803c3b47891b703bfc27dbff125b464b3a0096f6900c8f90eeb42e59bd80e7c59c79d2fe75e000adb69932489840899b52cea8aeba1c2
7
- data.tar.gz: f226dd80245c3f7aebd8923980ef54d31faa3abf4829fc530ad297991642b1235c346c219dbb2bbbeaf6936d6e4979bca976b977f2271a01b8a6b2369dfccf5e
6
+ metadata.gz: eed458967ef79c6f0458fdb9ca6a07ad9442bd487d5dc29f6b8b828649aa37317410b7bd210de93ebc1438990179b2c33b3af196396ed2eebbdd28249416e29d
7
+ data.tar.gz: cd607c37c612833ab41b90e5beba46891421f8e44e93d0a1c609542dbe857786871926c1ebb44652a44725df9658517c87ee58a80d3d91c5de43b96376d37b85
@@ -18,13 +18,17 @@ jobs:
18
18
  runs-on: ubuntu-latest
19
19
  strategy:
20
20
  matrix:
21
- ruby: ['2.7', '3.0']
22
- rails: ['6.1.4.6', '7.0.2.2']
21
+ ruby: ['3.1', '3.2']
22
+ rails: ['7.0.8']
23
23
  include:
24
24
  - ruby: '2.7'
25
25
  rails: '5.2.3'
26
26
  - ruby: '2.7'
27
- rails: '6.0.0'
27
+ rails: '6.0.6.1'
28
+ - ruby: '3.0'
29
+ rails: '6.0.6.1'
30
+ - ruby: '3.1'
31
+ rails: '6.1.7.6'
28
32
  steps:
29
33
  - uses: actions/checkout@v2
30
34
  - name: Set up Ruby
data/README.md CHANGED
@@ -1,9 +1,7 @@
1
1
  # Riiif
2
2
  [![Gem Version](https://badge.fury.io/rb/riiif.png)](http://badge.fury.io/rb/riiif)
3
- [![Coverage Status](https://coveralls.io/repos/github/curationexperts/riiif/badge.svg?branch=master)](https://coveralls.io/github/curationexperts/riiif?branch=master)
4
3
 
5
-
6
- A Ruby IIIF image server as a rails engine. Note that RIIIF is meant for development convenience and will not scale to the needs of most production-level applications.
4
+ A Ruby IIIF image server as a rails engine.
7
5
 
8
6
  ## Installation
9
7
 
@@ -3,7 +3,7 @@ module Riiif
3
3
  before_action :link_header, only: [:show, :info]
4
4
 
5
5
  rescue_from IIIF::Image::InvalidAttributeError do
6
- head 400
6
+ head :bad_request
7
7
  end
8
8
 
9
9
  def show
@@ -33,9 +33,6 @@ module Riiif
33
33
  @file ||= file_resolver.find(id)
34
34
  end
35
35
 
36
- alias image file
37
- deprecation_deprecate image: 'Use Image#file instead. This will be removed in riiif 2.0'
38
-
39
36
  ##
40
37
  # @param [ActiveSupport::HashWithIndifferentAccess] args
41
38
  # @return [String] the image data
@@ -5,6 +5,7 @@ module Riiif
5
5
  attr_accessor :pathroot, :imagetype, :akubraconfig
6
6
 
7
7
  def initialize(pr = '/yourfedora/data/datastreamStore/', ir = 'jp2', ac = [[0, 2], [2, 2], [4, 1]])
8
+ super()
8
9
  @pathroot = pr
9
10
  @imagetype = ir
10
11
  @akubraconfig = ac
@@ -11,7 +11,7 @@ module Riiif
11
11
 
12
12
  def extract
13
13
  height, width, format, channels = Riiif::CommandRunner.execute(
14
- "#{external_command} -format '%h %w %m %[channels]' #{@path}[0]"
14
+ "#{external_command} -format '%h %w %m %[channels]' '#{@path}[0]'"
15
15
  ).split(' ')
16
16
 
17
17
  {
@@ -65,7 +65,7 @@ module Riiif
65
65
  end
66
66
 
67
67
  def input
68
- " #{path}#{layer_spec}"
68
+ " '#{path}#{layer_spec}'"
69
69
  end
70
70
 
71
71
  # In cases where the input file has an alpha_channel but the transformation
data/lib/riiif/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Riiif
2
- VERSION = '2.4.0'.freeze
2
+ VERSION = '2.5.0'.freeze
3
3
  end
data/riiif.gemspec CHANGED
@@ -7,10 +7,10 @@ Gem::Specification.new do |spec|
7
7
  spec.name = 'riiif'
8
8
  spec.version = Riiif::VERSION
9
9
  spec.authors = ['Justin Coyne']
10
- spec.email = ['administrator@curationexperts.com']
10
+ spec.email = ['jcoyne85@stanford.edu']
11
11
  spec.description = 'A IIIF image server'
12
- spec.summary = 'A rails engine that support IIIF requests'
13
- spec.homepage = 'https://github.com/curationexperts/riiif'
12
+ spec.summary = 'A Rails engine that support IIIF requests'
13
+ spec.homepage = 'https://github.com/sul-dlss/riiif'
14
14
  spec.license = 'APACHE2'
15
15
 
16
16
  spec.files = `git ls-files|grep -v spec/samples`.split($INPUT_RECORD_SEPARATOR)
@@ -27,6 +27,6 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency 'engine_cart', '~> 2.0'
28
28
  spec.add_development_dependency 'rspec-rails'
29
29
  spec.add_development_dependency 'sqlite3'
30
- spec.add_development_dependency 'bixby', '~> 3.0'
31
- spec.add_development_dependency 'coveralls'
30
+ spec.add_development_dependency 'bixby', '~> 5.0'
31
+ spec.add_development_dependency 'simplecov'
32
32
  end
data/spec/spec_helper.rb CHANGED
@@ -1,11 +1,5 @@
1
- require 'coveralls'
2
1
  require 'simplecov'
3
2
 
4
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
5
- SimpleCov::Formatter::HTMLFormatter,
6
- Coveralls::SimpleCov::Formatter
7
- ])
8
-
9
3
  SimpleCov.start('rails')
10
4
 
11
5
  require 'engine_cart'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riiif
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-28 00:00:00.000000000 Z
11
+ date: 2024-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -134,16 +134,16 @@ dependencies:
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '3.0'
137
+ version: '5.0'
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '3.0'
144
+ version: '5.0'
145
145
  - !ruby/object:Gem::Dependency
146
- name: coveralls
146
+ name: simplecov
147
147
  requirement: !ruby/object:Gem::Requirement
148
148
  requirements:
149
149
  - - ">="
@@ -158,7 +158,7 @@ dependencies:
158
158
  version: '0'
159
159
  description: A IIIF image server
160
160
  email:
161
- - administrator@curationexperts.com
161
+ - jcoyne85@stanford.edu
162
162
  executables: []
163
163
  extensions: []
164
164
  extra_rdoc_files: []
@@ -214,7 +214,7 @@ files:
214
214
  - spec/test_app_templates/Gemfile.extra
215
215
  - spec/test_app_templates/lib/generators/test_app_generator.rb
216
216
  - spec/transformers/riiif/kakadu_transformer_spec.rb
217
- homepage: https://github.com/curationexperts/riiif
217
+ homepage: https://github.com/sul-dlss/riiif
218
218
  licenses:
219
219
  - APACHE2
220
220
  metadata: {}
@@ -233,10 +233,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  requirements: []
236
- rubygems_version: 3.2.32
236
+ rubygems_version: 3.4.20
237
237
  signing_key:
238
238
  specification_version: 4
239
- summary: A rails engine that support IIIF requests
239
+ summary: A Rails engine that support IIIF requests
240
240
  test_files:
241
241
  - spec/controllers/riiif/images_controller_spec.rb
242
242
  - spec/models/riiif/akubra_system_file_resolver_spec.rb