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 +4 -4
- data/README.md +15 -1
- data/app/models/riiif/image.rb +17 -0
- data/lib/riiif/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f437c07332a02c21a6dee64125a02b1d124bdec
|
4
|
+
data.tar.gz: ac97febcbbfb128653e242a47120cfce675f40a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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')
|
data/app/models/riiif/image.rb
CHANGED
@@ -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
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.
|
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-
|
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.
|
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
|