riiif 2.2.0 → 2.3.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: b79bb6c8082dc7033167055a4f335122b60ac337c0eaf9b3b49a1b9119741edb
4
- data.tar.gz: 32ef6a3ecfb7b3cec38e3ffe5189f499bc002fdaf06b0307face66f5ee8ad239
3
+ metadata.gz: aef3da010f8f0debef74aab318475a9563005c3904544ee159567b904e51c610
4
+ data.tar.gz: 53c1e7c6ffcd6f9b345fae4f4bb295059e8ff280c449e4e3eec1959e9ae36126
5
5
  SHA512:
6
- metadata.gz: 2e1f6cbb5ac851d0e6b86d27af6d68643dc4c3ab7da1eb0e61d884634bb2e9d8c56679becb1c98ccda2c4c119cf7926c0416386c1b91b0489eb88c4a106a63c5
7
- data.tar.gz: 0f5ac5d03dc707c2a14b5a720a393192611adec04ab40407b7ce3e7c49e0ea0ccb0df9d0607d7da4f7689a2d69f67c358e60a26150afd661e7522a0049fb323b
6
+ metadata.gz: 3326d9199c7bf9f3e3b51da13d8a1cd9abd4c5b8633f451c92e17c57eea39698c5bdc2d5192d71bfd00ab8d721076377e18bb60241e93bb9d8a6dbb01fb941d9
7
+ data.tar.gz: 700b1ee4398a39f444593ddc01067784448007df22a4e4a87df06bacc886a466f3d7de5694bccd4d77fda3aab9835e672c66d376b5b6bfca7bb302d41be839d4
@@ -12,28 +12,6 @@ module Riiif
12
12
  @tempfile = tempfile # ensures that the tempfile will stick around until this file is garbage collected.
13
13
  end
14
14
 
15
- def self.read(stream, ext)
16
- create(ext) do |f|
17
- while chunk = stream.read(8192)
18
- f.write(chunk)
19
- end
20
- end
21
- end
22
- deprecation_deprecate read: 'Riiif::File.read is deprecated and will be removed in version 2.0'
23
-
24
- # Yields a tempfile to the provided block
25
- # @return [Riiif::File] a file backed by the Tempfile
26
- def self.create(ext = nil, _validate = true, &block)
27
- tempfile = Tempfile.new(['mini_magick', ext.to_s.downcase])
28
- tempfile.binmode
29
- block.call(tempfile)
30
- tempfile.close
31
- image = new(tempfile.path, tempfile)
32
- ensure
33
- tempfile.close if tempfile
34
- end
35
- deprecation_deprecate create: 'Riiif::File.create is deprecated and will be removed in version 2.0'
36
-
37
15
  # @param [Transformation] transformation
38
16
  # @param [ImageInformation] image_info
39
17
  # @return [String] the processed image data
@@ -4,19 +4,9 @@ module Riiif
4
4
  attr_accessor :base_path
5
5
 
6
6
  def initialize(base_path: nil)
7
- @base_path = base_path || default_base_path
7
+ @base_path = base_path
8
8
  end
9
9
 
10
- def default_base_path
11
- Deprecation.warn(self, 'Initializing a file resolver without setting the base path ' \
12
- 'is deprecated and will be removed in Riiif 2.0', caller(2))
13
- @root ||= ::File.expand_path(::File.join(::File.dirname(__FILE__), '../..'))
14
- ::File.join(@root, 'spec/samples')
15
- end
16
-
17
- attr_reader :root
18
- deprecation_deprecate :root
19
-
20
10
  def find(id)
21
11
  Riiif::File.new(path(id))
22
12
  end
@@ -1,3 +1,3 @@
1
1
  module Riiif
2
- VERSION = '2.2.0'.freeze
2
+ VERSION = '2.3.0'.freeze
3
3
  end
@@ -20,7 +20,8 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_dependency 'railties', '>= 4.2', '<7'
22
22
  spec.add_dependency 'deprecation', '>= 1.0.0'
23
- spec.add_dependency 'iiif-image-api', '~> 0.1.0'
23
+ spec.add_dependency 'iiif-image-api', '>= 0.1.0'
24
+
24
25
  spec.add_development_dependency 'bundler'
25
26
  spec.add_development_dependency 'rake'
26
27
  spec.add_development_dependency 'engine_cart', '~> 2.0'
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.2.0
4
+ version: 2.3.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: 2019-11-01 00:00:00.000000000 Z
11
+ date: 2020-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -48,14 +48,14 @@ dependencies:
48
48
  name: iiif-image-api
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: 0.1.0
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: 0.1.0
61
61
  - !ruby/object:Gem::Dependency
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  requirements: []
236
- rubygems_version: 3.0.3
236
+ rubygems_version: 3.1.2
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: A rails engine that support IIIF requests