spotlight-resources-iiif 0.1.0 → 0.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 161fa9063aec3b247187e03c374fb0f7356a5a53
|
4
|
+
data.tar.gz: 44b7cb182cae000c07f1b082d6408fa6dfeacd10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f1fcfe6b43b7207d1ec79121cff229235f0ff91585cf456b553e007c2cb17e53462990eb085503224d0ed6dcc7cd93d8010336ebc9bb14e0a336c851cf25992
|
7
|
+
data.tar.gz: 8fb693cda9b050a66d06b9afcdcfe3b043ce5052224fceacb7a9ccda3652fa00497c2f7a709e6d1c2bd22909480864aa9ddb373b10e97afd0d279ceaace4b9f9
|
@@ -45,6 +45,13 @@ module Spotlight
|
|
45
45
|
attr_reader :url
|
46
46
|
|
47
47
|
class << self
|
48
|
+
def iiif_response(url)
|
49
|
+
Faraday.get(url).body
|
50
|
+
rescue Faraday::Error::ConnectionFailed, Faraday::TimeoutError => e
|
51
|
+
Rails.logger.warn("HTTP GET for #{url} failed with #{e}")
|
52
|
+
{}.to_json
|
53
|
+
end
|
54
|
+
|
48
55
|
private
|
49
56
|
|
50
57
|
def recursive_manifests(thing, &block)
|
@@ -56,13 +63,6 @@ module Spotlight
|
|
56
63
|
recursive_manifests(collection, &block)
|
57
64
|
end if thing.collections.present?
|
58
65
|
end
|
59
|
-
|
60
|
-
def iiif_response(url)
|
61
|
-
Faraday.get(url).body
|
62
|
-
rescue Faraday::Error::ConnectionFailed, Faraday::TimeoutError => e
|
63
|
-
Rails.logger.warn("HTTP GET for #{url} failed with #{e}")
|
64
|
-
{}.to_json
|
65
|
-
end
|
66
66
|
end
|
67
67
|
|
68
68
|
def create_iiif_manifest(manifest)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spotlight-resources-iiif
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naomi Dushay
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: blacklight-spotlight
|