iiif-image-api 0.2.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
2
  SHA256:
3
- metadata.gz: 86aad7f6e82da59e025df67606c8e8d8c44038a1d38ec1337f18de518644b015
4
- data.tar.gz: 392e59aaec66eab0f72d6073ca38e45efaff5e60431d925281df3c7991237e2c
3
+ metadata.gz: fbcd28975f4e98410303a005f0ef5c7f615d52e5e9f9925186bc9099e9c57844
4
+ data.tar.gz: 0a0d7e86298bafd5bbae1399c77a315ba8f56182736dfcca758a3266166354df
5
5
  SHA512:
6
- metadata.gz: f7448b786ba72b6447bb943170c8edb6f987943606b82e9e1f344eeb3e0c207ee9ea599da95c08b709065830f75ae49ce0c22ba4f0db8cbf0634cf7ac98f2b18
7
- data.tar.gz: 1fc67b227ee78845936ab0a578735d633bb612caedeea506b204e1e40d96336dd35d07cc83a69d45124fd5d20ba66be35b5ac866560c1a118f8b2f2d6549c9da
6
+ metadata.gz: 8a5a75a91f98e1c1cb4396738e3a589b93e43d778e6116e28ddb691c6ece0b0a25e49b414e169d6ce38bdd66fffbcb7936cd20a72cefd29b419e82f4cf122ffa
7
+ data.tar.gz: e817dd066e0495066741e0b1eac5758f49c1f77ace83e7189ea85ae27861735c622c23dd69e32acac5807417dbc49d8627c74cd3e692fd73c92d047d71417cf5
data/README.md CHANGED
@@ -28,4 +28,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
28
28
 
29
29
  ## Contributing
30
30
 
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.
34
+
31
35
  Bug reports and pull requests are welcome on GitHub at https://github.com/samvera-labs/iiif.
@@ -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.2.0'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iiif-image-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.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: 2020-03-31 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
@@ -120,7 +120,7 @@ files:
120
120
  homepage: https://github.com/samvera-labs/iiif-image-api
121
121
  licenses: []
122
122
  metadata: {}
123
- post_install_message:
123
+ post_install_message:
124
124
  rdoc_options: []
125
125
  require_paths:
126
126
  - lib
@@ -135,8 +135,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  requirements: []
138
- rubygems_version: 3.1.2
139
- signing_key:
138
+ rubygems_version: 3.5.21
139
+ signing_key:
140
140
  specification_version: 4
141
141
  summary: Ruby APIs for working with IIIF
142
142
  test_files: []