obf 0.9.8.11 → 0.9.8.12
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 +4 -4
- 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: 8a0723ebf0f254247db69f66d48448c89fa5e632aec48e5eb32bfde2a2093eb0
|
4
|
+
data.tar.gz: 7f7123c84a8b8b4479cff7ffb2c3cd394bc412497047866f411880212ffad297
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3b4b8b8272b7411ba3a8a10880c4d8ee37836f4910b6a7564d288468bbd85e7677886310e75fa16f957dec86d5c2ce24a0f3bc0c90ddec598a26123e75e65d6
|
7
|
+
data.tar.gz: c83e702ac2d1da505984dd7b0551eea8f1fdf78b808a37869194b664cc32f1cb32e5f5d2f0474beaba797734e2458e33786eb1d4feed105371d0da0fbd298fed
|
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 = Typhoeus::Hydra.
|
120
|
+
hydra = Typhoeus::Hydra.new(max_concurrency: 10)
|
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 = Typhoeus::Hydra.
|
189
|
+
hydra = Typhoeus::Hydra.new(max_concurrency: 10)
|
190
190
|
grabs = []
|
191
191
|
obj['buttons'].each do |btn|
|
192
192
|
image = (obj['images_hash'] || {})[btn['image_id']]
|
@@ -368,12 +368,12 @@ module OBF::PDF
|
|
368
368
|
return dest_path
|
369
369
|
end
|
370
370
|
|
371
|
-
def self.from_external(content, dest_path)
|
371
|
+
def self.from_external(content, dest_path, opts={})
|
372
372
|
tmp_path = OBF::Utils.temp_path("stash")
|
373
373
|
if content['boards']
|
374
|
-
from_obz(OBF::OBZ.from_external(content, tmp_path), dest_path)
|
374
|
+
from_obz(OBF::OBZ.from_external(content, tmp_path, opts), dest_path, opts)
|
375
375
|
else
|
376
|
-
from_obf(OBF::OBF.from_external(content, tmp_path), dest_path)
|
376
|
+
from_obf(OBF::OBF.from_external(content, tmp_path), dest_path, nil, opts)
|
377
377
|
end
|
378
378
|
File.unlink(tmp_path) if File.exist?(tmp_path)
|
379
379
|
dest_path
|