obf 0.9.8.13 → 0.9.8.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/obf/external.rb +1 -1
- data/lib/obf/pdf.rb +2 -2
- data/lib/obf/utils.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a370cf7909de50dda45b037ee6be7f7df137dac296341e327f9dc2266d6f988
|
4
|
+
data.tar.gz: dc08ca5de1dd70c48c9e7d3ff19670f8e82b7d4823c1277b03809a41b7a505c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 046ee06392c4b516ec1e1d85fb9a08fcd46099d95767564e45081f37928b78098c134432f52d6eaad5385fab30d0f1674911f1e1fdf67874ea919b02afb5a778
|
7
|
+
data.tar.gz: 7f5c28c4cd7aae2cfc7af1da288a8a604d5019c90dc5d3340a7b89d5100ec4107d4005aa03a5a36d1f242a4370aabe8183c2df0d51d6c2345211b8876260a625
|
data/lib/obf/external.rb
CHANGED
@@ -117,7 +117,7 @@ module OBF::External
|
|
117
117
|
end
|
118
118
|
|
119
119
|
if to_include[:images]
|
120
|
-
hydra =
|
120
|
+
hydra = OBF::Utils.hydra
|
121
121
|
grabs = []
|
122
122
|
images.each do |img|
|
123
123
|
if path_hash && path_hash['images'] && path_hash['images'][img['id']]
|
data/lib/obf/pdf.rb
CHANGED
@@ -186,7 +186,7 @@ module OBF::PDF
|
|
186
186
|
|
187
187
|
# Grab all the images per board in parallel
|
188
188
|
OBF::Utils.log " batch-retrieving remote images"
|
189
|
-
hydra =
|
189
|
+
hydra = OBF::Utils.hydra
|
190
190
|
grabs = []
|
191
191
|
obj['buttons'].each do |btn|
|
192
192
|
image = (obj['images_hash'] || {})[btn['image_id']]
|
@@ -204,7 +204,7 @@ module OBF::PDF
|
|
204
204
|
hydra.run
|
205
205
|
threads = []
|
206
206
|
grabs.each do |grab|
|
207
|
-
if grab[:res]
|
207
|
+
if grab[:res] && grab[:res]['data']
|
208
208
|
grab[:image]['raw_data'] = grab[:res]['data']
|
209
209
|
grab[:image]['content_type'] ||= grab[:res]['content_type']
|
210
210
|
grab[:image]['extension'] ||= grab[:res]['extension']
|
data/lib/obf/utils.rb
CHANGED