iiif-image-api 0.1.0 → 0.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
- SHA1:
3
- metadata.gz: 5c8f029c01847ecbf72fc2e65c4d6b0de29f3e67
4
- data.tar.gz: 04e19f19e9252cd3c71eff33c0b5626755bded43
2
+ SHA256:
3
+ metadata.gz: fbcd28975f4e98410303a005f0ef5c7f615d52e5e9f9925186bc9099e9c57844
4
+ data.tar.gz: 0a0d7e86298bafd5bbae1399c77a315ba8f56182736dfcca758a3266166354df
5
5
  SHA512:
6
- metadata.gz: 6ff387d913f52efbf71df10da96df64fe2432ccee9e75ebadce5fba7f0d934e358e446591792fc95128ee05844d919d0c65ecd5a5df6c08d8c1924a47afdbea7
7
- data.tar.gz: afcbc9ab302c93e722b41fd610dbef2972776181c40beeecd5f7043dd6cd7e256e6fecace800ba5fd9757c636b5efae9e8fdece2055530e3991de65d5ca9f339
6
+ metadata.gz: 8a5a75a91f98e1c1cb4396738e3a589b93e43d778e6116e28ddb691c6ece0b0a25e49b414e169d6ce38bdd66fffbcb7936cd20a72cefd29b419e82f4cf122ffa
7
+ data.tar.gz: e817dd066e0495066741e0b1eac5758f49c1f77ace83e7189ea85ae27861735c622c23dd69e32acac5807417dbc49d8627c74cd3e692fd73c92d047d71417cf5
data/.travis.yml CHANGED
@@ -1,4 +1,11 @@
1
- language: ruby
1
+ notifications:
2
+ email: false
3
+
2
4
  rvm:
3
- - 2.2.1
4
- before_install: gem install bundler -v 1.10.4
5
+ - 2.6.3
6
+
7
+ sudo: false
8
+ language: ruby
9
+
10
+ cache:
11
+ bundler: true
data/README.md CHANGED
@@ -1,4 +1,8 @@
1
- # IIIF
1
+ # Ruby IIIF Image API
2
+
3
+ [![Build Status](https://travis-ci.org/samvera-labs/iiif-image-api.svg?branch=master)](https://travis-ci.org/samvera-labs/iiif-image-api)
4
+ [![Coverage Status](https://coveralls.io/repos/github/samvera-labs/iiif-image-api/badge.svg?branch=master)](https://coveralls.io/github/samvera-labs/iiif-image-api?branch=master)
5
+ [![Gem Version](https://badge.fury.io/rb/iiif-image-api.svg)](https://badge.fury.io/rb/iiif-image-api)
2
6
 
3
7
  ## Installation
4
8
 
@@ -24,5 +28,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
24
28
 
25
29
  ## Contributing
26
30
 
27
- Bug reports and pull requests are welcome on GitHub at https://github.com/cbeer/iiif.
31
+ If you're working on a PR for this project, create a feature branch off of `main`.
32
+
33
+ This repository follows the [Samvera Community Code of Conduct](https://samvera.atlassian.net/wiki/spaces/samvera/pages/405212316/Code+of+Conduct) and [language recommendations](https://github.com/samvera/maintenance/blob/master/templates/CONTRIBUTING.md#language). Please ***do not*** create a branch called `master` for this repository or as part of your pull request; the branch will either need to be removed or renamed before it can be considered for inclusion in the code base and history of this repository.
28
34
 
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/samvera-labs/iiif.
@@ -1,5 +1,6 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'iiif/image/version'
5
6
 
@@ -11,16 +12,17 @@ Gem::Specification.new do |spec|
11
12
 
12
13
  spec.summary = %(Ruby APIs for working with IIIF)
13
14
  spec.description = %(Ruby APIs for working with IIIF)
14
- spec.homepage = 'https://github.com/jcoyne/iiif-image-api'
15
+ spec.homepage = 'https://github.com/samvera-labs/iiif-image-api'
15
16
 
16
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
18
  spec.bindir = 'exe'
18
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
20
  spec.require_paths = ['lib']
20
21
 
21
- spec.add_dependency 'activesupport', '<= 6'
22
+ spec.add_dependency 'activesupport'
22
23
 
23
- spec.add_development_dependency 'bundler', "~> 1.10"
24
- spec.add_development_dependency 'rake', "~> 10.0"
24
+ spec.add_development_dependency 'bundler'
25
+ spec.add_development_dependency 'coveralls'
26
+ spec.add_development_dependency 'rake'
25
27
  spec.add_development_dependency 'rspec'
26
28
  end
@@ -3,7 +3,8 @@
3
3
  module IIIF::Image
4
4
  # Decodes the URL parameters into a Transformation object
5
5
  class OptionDecoder
6
- OUTPUT_FORMATS = %w(jpg png).freeze
6
+ OUTPUT_FORMATS = %w(webp jpg png).freeze
7
+ QUALITY_OPTIONS = %w(bitonal gray grey default color)
7
8
 
8
9
  # a helper method for instantiating the OptionDecoder
9
10
  # @param [ActiveSupport::HashWithIndifferentAccess] options
@@ -27,7 +28,7 @@ module IIIF::Image
27
28
  end
28
29
 
29
30
  def decode_quality(quality)
30
- return quality if %w(bitonal grey default color).include?(quality)
31
+ return quality if QUALITY_OPTIONS.include?(quality)
31
32
  return 'default' if quality.nil?
32
33
  raise InvalidAttributeError, "Unsupported quality: #{quality}"
33
34
  end
@@ -1,5 +1,5 @@
1
1
  module IIIF
2
2
  module Image
3
- VERSION = '0.1.0'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,57 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iiif-image-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-26 00:00:00.000000000 Z
11
+ date: 2024-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "<="
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '6'
19
+ version: '0'
20
20
  type: :runtime
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: '6'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.10'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.10'
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: coveralls
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'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - "~>"
59
+ - - ">="
46
60
  - !ruby/object:Gem::Version
47
- version: '10.0'
61
+ version: '0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - "~>"
66
+ - - ">="
53
67
  - !ruby/object:Gem::Version
54
- version: '10.0'
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rspec
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -103,10 +117,10 @@ files:
103
117
  - lib/iiif/image/size/percent.rb
104
118
  - lib/iiif/image/size/width.rb
105
119
  - lib/iiif/image/version.rb
106
- homepage: https://github.com/jcoyne/iiif-image-api
120
+ homepage: https://github.com/samvera-labs/iiif-image-api
107
121
  licenses: []
108
122
  metadata: {}
109
- post_install_message:
123
+ post_install_message:
110
124
  rdoc_options: []
111
125
  require_paths:
112
126
  - lib
@@ -121,9 +135,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
135
  - !ruby/object:Gem::Version
122
136
  version: '0'
123
137
  requirements: []
124
- rubyforge_project:
125
- rubygems_version: 2.6.13
126
- signing_key:
138
+ rubygems_version: 3.5.21
139
+ signing_key:
127
140
  specification_version: 4
128
141
  summary: Ruby APIs for working with IIIF
129
142
  test_files: []