lib/nistbib/nist_bibliography.rb in nistbib-0.1.8 vs lib/nistbib/nist_bibliography.rb in nistbib-0.1.9

- old
+ new

@@ -114,10 +114,10 @@ end { years: missed_years } end def fetch_pages(s, n) - workers = WorkersPool.new n + workers = RelatonBib::WorkersPool.new n workers.worker { |w| { i: w[:i], hit: w[:hit].fetch } } s.each_with_index { |hit, i| workers << { i: i, hit: hit } } workers.end workers.result.sort { |x, y| x[:i] <=> y[:i] }.map { |x| x[:hit] } end