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: 99f85b3ef79f2c569645668b1bb55318756c70a5
4
- data.tar.gz: 54414056e0566e567250875a5dca68427c1dff7e
3
+ metadata.gz: 161fa9063aec3b247187e03c374fb0f7356a5a53
4
+ data.tar.gz: 44b7cb182cae000c07f1b082d6408fa6dfeacd10
5
5
  SHA512:
6
- metadata.gz: 5472e66b31c7e6e2020967ab18e63a4960584302b93f0cf42665265522c91407308fb650f6aa243982c4ea7459da1ac67fb80769198a9051b1cdba91448e0269
7
- data.tar.gz: 0e976a850c9822d501301e66a78b68a6f40b3280b22ef8f7af6bd2b58a3018cb40fac78a2fb76d506d3a46bcaf389ec829a8d55c64f4d66a29c529bd1ef9545b
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)
@@ -1,7 +1,7 @@
1
1
  module Spotlight
2
2
  module Resources
3
3
  module Iiif
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
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.0
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-01-28 00:00:00.000000000 Z
12
+ date: 2016-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blacklight-spotlight