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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/obf/external.rb +1 -1
  3. data/lib/obf/pdf.rb +4 -4
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46ac08afef61672a59703da2bc305d08bf293cbbebbe98a1a0b53db0a9344e9d
4
- data.tar.gz: 6234bb16ab6c89a021d0754ad759955a0cb6709a808dd7e357475b45156d3c4b
3
+ metadata.gz: 8a0723ebf0f254247db69f66d48448c89fa5e632aec48e5eb32bfde2a2093eb0
4
+ data.tar.gz: 7f7123c84a8b8b4479cff7ffb2c3cd394bc412497047866f411880212ffad297
5
5
  SHA512:
6
- metadata.gz: 44c9c23805b78858c0018e818bedb6feebb1aebe2acef09518497595e83a3245ff7929de15734a5910a2f6b1458b9526652e38b7680847f5db738ff04fdadd08
7
- data.tar.gz: 1fa32a4e2a6b7ee0a6a86caec469415e3b3552c5233117dc894673d9c1d41f63b8a03b24fd9a8ce5a2bfe2ea02b0aa5842d78bb322aba0b7dfbe856fd1aa4093
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.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.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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: obf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8.11
4
+ version: 0.9.8.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer