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 +4 -4
- data/in_parallel/version.rb +1 -1
- data/lib/{array.rb → enumerable.rb} +2 -2
- data/lib/in_parallel.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 727d8d9b9bba7b35600ceb413fa49cc67051863d
|
4
|
+
data.tar.gz: 05ef1dd733547320a4cf270fea067114ace9d2b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68a7d78e8c45443a419279684e819f01fc3167cd77f6e7a7cdb2cdf5880700eadc353c460ec4d94350e5d3b104a3dffa7d9bc44f56b3eafebe89dbd775f91568
|
7
|
+
data.tar.gz: 4eca6ca978053f9a08c3e0ed9d66b3e851543cbdae48fff7e9c13547633e386d97faba0f463d098f996fa287fa3bf425dcdfce05775c3ba9074d35cb9df34297
|
data/in_parallel/version.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
# Monkey patching
|
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
|
-
|
6
|
+
module Enumerable
|
7
7
|
def each_in_parallel(&block)
|
8
8
|
if Process.respond_to?(:fork)
|
9
9
|
method_sym = "#{caller_locations[0]}"
|
data/lib/in_parallel.rb
CHANGED
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.
|
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/
|
64
|
+
- lib/enumerable.rb
|
65
65
|
- lib/in_parallel.rb
|
66
66
|
homepage: https://github.com/samwoods1/in-parallel
|
67
67
|
licenses:
|