riiif 1.4.2 → 1.4.3

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
  SHA1:
3
- metadata.gz: ad367b2b2d10b9b46d5944b0d69a3aaf62fe3cdc
4
- data.tar.gz: 2546fdcfb0322e87f841bd4974b7ff6afbb7772c
3
+ metadata.gz: 9f437c07332a02c21a6dee64125a02b1d124bdec
4
+ data.tar.gz: ac97febcbbfb128653e242a47120cfce675f40a0
5
5
  SHA512:
6
- metadata.gz: cf4a63d5b3f3f81500979374454464cf17daf1b0bd14103a86d4d6e49f38e8aa25cb1f23d5065ce89da0cf5b327c893317b1d33509c760abd1e75965e60c4044
7
- data.tar.gz: b918a8c2af312223d20e20cfbeb3e0b7b07b42e742f3bf88186791ae1c83937ebf84360ebccc27cce174938927c81967e9726b7ccb32f579d144368adeca4231
6
+ metadata.gz: c876a1694e4d26f2bfccb67b1182fb8659410cf740fa0abacb3e796d9ab31f0044bc90bed00e788f6c205752a237eb84bac9f2f6cea42b559157a55c6a9c87f5
7
+ data.tar.gz: 3b5733068a706304b8dd2920fdd34dcf3853a2cef5bc7d9ef5dfcc4ccd568c5b7cb7bdf48f03fa4811331abae4418a5c9aa6d4c562c75ec541834568ac548935
data/README.md CHANGED
@@ -172,7 +172,21 @@ end
172
172
  Riiif::Engine.config.cache_duration_in_days = 30
173
173
  ```
174
174
  #### Special note for Passenger and Apache users
175
- If you are running riiif in Passenger under Apache, you must set `AllowEncodedSlashes NoDecode` in your virtual host definition. For some uses, even with that directive set, the above configuration won't work for you. You may need to explicitly decode the url, like this:
175
+ If you are running riiif in Passenger under Apache, you must set the following in your virtual host definition:
176
+
177
+ ```
178
+ AllowEncodedSlashes NoDecode
179
+ ```
180
+
181
+ You may also need to set the following in your virtual host definition, either at the top level, or within a
182
+ Location block for a specific path. See the [Passenger configuration reference](https://www.phusionpassenger.com/library/config/apache/reference/#passengerallowencodedslasheshttps://www.phusionpassenger.com/library/config/apache/reference/#passengerallowencodedslashes) for more info.
183
+
184
+ ```
185
+ PassengerAllowEncodedSlashes on
186
+ ```
187
+
188
+ An alternative approach to `PassengerAllowEncodedSlashes on` is to explicitly decode the url, like this:
189
+
176
190
  ```ruby
177
191
  require "uri"
178
192
  fs_id = URI.decode(id).sub(/\A([^\/]*)\/.*/, '\1')
@@ -1,4 +1,21 @@
1
1
  require 'digest/md5'
2
+
3
+ ##
4
+ # These explict requires are needed because in some contexts the Rails
5
+ # autoloader can either: unload already loaded classes, or cause a lock while
6
+ # trying to load a needed class.
7
+ require_dependency 'riiif/region/imagemagick/absolute_decoder'
8
+ require_dependency 'riiif/region/imagemagick/full_decoder'
9
+ require_dependency 'riiif/region/imagemagick/percentage_decoder'
10
+ require_dependency 'riiif/region/imagemagick/square_decoder'
11
+
12
+ require_dependency 'riiif/size/imagemagick/absolute_decoder'
13
+ require_dependency 'riiif/size/imagemagick/best_fit_decoder'
14
+ require_dependency 'riiif/size/imagemagick/full_decoder'
15
+ require_dependency 'riiif/size/imagemagick/height_decoder'
16
+ require_dependency 'riiif/size/imagemagick/percent_decoder'
17
+ require_dependency 'riiif/size/imagemagick/width_decoder'
18
+
2
19
  module Riiif
3
20
  class Image
4
21
  class_attribute :file_resolver, :info_service, :authorization_service, :cache
data/lib/riiif/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Riiif
2
- VERSION = '1.4.2'.freeze
2
+ VERSION = '1.4.3'.freeze
3
3
  end
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: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-06 00:00:00.000000000 Z
11
+ date: 2017-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  version: '0'
205
205
  requirements: []
206
206
  rubyforge_project:
207
- rubygems_version: 2.6.12
207
+ rubygems_version: 2.5.2
208
208
  signing_key:
209
209
  specification_version: 4
210
210
  summary: A rails engine that support IIIF requests