in-parallel 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96b4326e2eed1c0b8fb2a99ff7c353ea2b78ea05
4
- data.tar.gz: 421617914e2609c3b8705cff7f49c50393d2d600
3
+ metadata.gz: fde05adab05cca1454b0c4f9187cddc062f32fe9
4
+ data.tar.gz: 12ae2280dcfd30cc7875a863c05abeff93e9eade
5
5
  SHA512:
6
- metadata.gz: 707985cd17daa5dcf0de02b5135f1fc596d0b6009f0fc538fe42815d58565cdcf3c9a0db08a955d587a3986bab9c00de4ccff71cd0823c3fe7ee0cc5954bfc70
7
- data.tar.gz: bfc404a413b43ce5c4780c2efa79b0fc056d0586db2e794357cf9dd04588032021be21f1e9bac3c330b3523bf43d01d907db0d30196bf8668bab60e3d28f075b
6
+ metadata.gz: fe93efe91c47632f57062d29f903d88b723a15f4333cf7bcdd7c8802ff7712481c37a52a70f92f736ac10662e2bee393a5e52ca6f9003603babb7c9273a026d5
7
+ data.tar.gz: 37bcdff90122259424d7e2523f9a33cf2bbe56755bfd277802a2a5b386d73aef850b2c07422b5d4286c165bed8208015289db4f51ba4a6a32b534ab425f51203
@@ -1,3 +1,3 @@
1
1
  module InParallel
2
- VERSION = Version = '0.1.7'
2
+ VERSION = Version = '0.1.8'
3
3
  end
data/lib/in_parallel.rb CHANGED
@@ -171,13 +171,13 @@ module InParallel
171
171
  ret_val = nil
172
172
  # Communicate the return value of the method or block
173
173
  read_result, write_result = IO.pipe
174
+ Dir.mkdir('tmp') unless Dir.exists? 'tmp'
174
175
  pid = fork do
175
176
  exit_status = 0
176
177
  trap(:INT) do
177
178
  puts("Warning: Interrupt received in child process; exiting #{Process.pid}")
178
179
  return
179
180
  end
180
- Dir.mkdir('tmp') unless Dir.exists? 'tmp'
181
181
  write_file = File.new("tmp/parallel_process_#{Process.pid}", 'w')
182
182
 
183
183
  # IO buffer is 64kb, which isn't much... if debug logging is turned on,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: in-parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - samwoods1