in-parallel 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: d30dddb3a9591ec7118dbc42ca412a65e9ded1b4
4
- data.tar.gz: be2ccd64a8b5f06620c17182ea136613505f2695
3
+ metadata.gz: 727d8d9b9bba7b35600ceb413fa49cc67051863d
4
+ data.tar.gz: 05ef1dd733547320a4cf270fea067114ace9d2b3
5
5
  SHA512:
6
- metadata.gz: c1f74ba5e5b9545b236f6b456472c7f56c0e44972392ab14b60ef7aa5ba188558fc2c2e57be96e828309db894f775c77ce59123071f0aa0c1d3541617f887201
7
- data.tar.gz: 313546515a040e5636fccb15729b4e192f6f76fa078ceb4ac09de47784d28c1b610047764058bddcb5b2a391d019ee6557f6c53f98f21f7e084f1ff0b8692511
6
+ metadata.gz: 68a7d78e8c45443a419279684e819f01fc3167cd77f6e7a7cdb2cdf5880700eadc353c460ec4d94350e5d3b104a3dffa7d9bc44f56b3eafebe89dbd775f91568
7
+ data.tar.gz: 4eca6ca978053f9a08c3e0ed9d66b3e851543cbdae48fff7e9c13547633e386d97faba0f463d098f996fa287fa3bf425dcdfce05775c3ba9074d35cb9df34297
@@ -1,3 +1,3 @@
1
1
  module InParallel
2
- VERSION = Version = '0.1.0'
2
+ VERSION = Version = '0.1.1'
3
3
  end
@@ -1,9 +1,9 @@
1
- # Monkey patching Array to make it easy to do any .each in parallel
1
+ # Monkey patching Enumerable to make it easy to do any .each in parallel
2
2
  # Example - Will run puppet agent -t on each agent in parallel:
3
3
  # agents.each_in_parallel { |agent|
4
4
  # on agent, 'puppet agent -t'
5
5
  # }
6
- class Array
6
+ module Enumerable
7
7
  def each_in_parallel(&block)
8
8
  if Process.respond_to?(:fork)
9
9
  method_sym = "#{caller_locations[0]}"
@@ -1,4 +1,4 @@
1
- require_relative 'array'
1
+ require_relative 'enumerable'
2
2
 
3
3
  class InParallel
4
4
  @@supported = Process.respond_to?(:fork)
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - samwoods1
@@ -61,7 +61,7 @@ files:
61
61
  - Rakefile
62
62
  - in_parallel.gemspec
63
63
  - in_parallel/version.rb
64
- - lib/array.rb
64
+ - lib/enumerable.rb
65
65
  - lib/in_parallel.rb
66
66
  homepage: https://github.com/samwoods1/in-parallel
67
67
  licenses: