cotcube-helpers 0.1.5 → 0.1.5.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
  SHA256:
3
- metadata.gz: 22fa00c18900f6c955d12685727b76560b6a426007d644f489f585d5f1488649
4
- data.tar.gz: ffa3ca8962565929835410d50a60fb878ee782db074bcb7392139acf5bd946b9
3
+ metadata.gz: e3d088e43fd870ff67a238501fd680f1c5688c7108bc90ace92e01cd8c33627b
4
+ data.tar.gz: 72b07a1f0e502a29e9cb818d62a8d398fe5e094efade358300eab4578b64ceae
5
5
  SHA512:
6
- metadata.gz: 48f5a7982b6ab4bc14cc123dbe49b12ad7e2aa5a664696244f808bb1293b31721315a9ceb098a6b8c57e0f8da6d7940d3becc6296c4184adf53f6ee3faf44d8c
7
- data.tar.gz: 3d640f4fac8b7e2a84985bf00f09a3a34862b1bebf78fac2f03326a72133ca32e4d1f710ead8995ebbb1e50a0f8a24ad3f70b1fc5dc593b9d2e30ab864ad6ebc
6
+ metadata.gz: 7b92ec6b178328bd6944f61828848d1d1c4aa164e9a3680054345189503d237a809ea082441eeab476ff693eeebdf5bf27bec300b3606af589598da946ce1c0a
7
+ data.tar.gz: 00d63e82c5ed3cfcc9986f4ec3222e2282a692ed0ad54602cb4e212b9285d8c51182d9c87a4e8b9672d2f305409b6f01d27437b73aa40df6872a35e4ea962b8e
@@ -1,3 +1,6 @@
1
+ ## 0.1.5.1 (January 02, 2021)
2
+ - Hotfixing parallelize
3
+
1
4
  ## 0.1.5 (January 02, 2021)
2
5
  - applied new datetime helper to Range#to_time_intervals
3
6
  - added new DateTime extension, containing 'to_seconds_since_sunday_morning'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.5.1
@@ -7,9 +7,9 @@ module Cotcube
7
7
  def parallelize(ary, processes: 1, threads: 1, progress: '', &block)
8
8
  chunks = []
9
9
  if [0, 1].include? processes
10
- result = Parallel.map(ary, in_threads: threads) { |u, &in_thread| in_thread.call(u) }
11
- elsif [0, 1].include?(threads)
12
- result = Parallel.map(ary, in_processes: processes) { |u, &in_process| in_process.call(u) }
10
+ result = Parallel.map(ary, in_threads: threads, &block)
11
+ elsif [0, 1].include? threads
12
+ result = Parallel.map(ary, in_processes: processes, &block)
13
13
  else
14
14
  ary.each_slice(threads) { |chunk| chunks << chunk }
15
15
  result = if progress == ''
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cotcube-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin L. Tischendorf