in-parallel 0.1.2 → 0.1.3

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: c73c6b3c70624e4afbe733cbe691e933f2ee178d
4
- data.tar.gz: 1139cdd892f6242ff9a83cdf722d1df8e5520cc7
3
+ metadata.gz: 58e993aeb43d7857ec9b54e106fa8edc5eaea927
4
+ data.tar.gz: 212e1572691d6abb29010bac6b5c6e50d96d9266
5
5
  SHA512:
6
- metadata.gz: 7efe4eaa24eb74c0a1af3a5ebb7408c14afe26c682d0f0e76d4ef9ab31efd027ef9989c1c3bf73143d129aadafdca8c2ea2a66dccc607ba0651edd1e0d9c1ecb
7
- data.tar.gz: 5008f55eedcc36458011d549d6bb0ad1b87ab5f9126b9dfae00025e0923aff6d0d8a870bf7b5a1e68a53d592cfbcd4c25257c6abd90dc884a6c72d87353b0a00
6
+ metadata.gz: 67292f6cb91c332d2989a2815427258271dc526ab4085e393fe064d70aa15af8a7dceaa71dbc204db0675e3e22180d665686fb89738b469d0ef4db539d3695ff
7
+ data.tar.gz: 82523c788f279d02977d3090cc84ab193d4d5255c7fb02202ba7e43ddaab888d2bd5257dd8645e671eb372d3c3d4a723d2f640bad9add629c9901520d2dbc953
@@ -1,3 +1,3 @@
1
1
  class InParallel
2
- VERSION = Version = '0.1.2'
2
+ VERSION = Version = '0.1.3'
3
3
  end
@@ -5,7 +5,7 @@
5
5
  # }
6
6
  module Enumerable
7
7
  def each_in_parallel(method_sym=nil, &block)
8
- if Process.respond_to?(:fork) && size > 1
8
+ if Process.respond_to?(:fork) && count > 1
9
9
  method_sym ||= "#{caller_locations[0]}"
10
10
  each do |item|
11
11
  out = InParallel._execute_in_parallel(method_sym) {block.call(item)}
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - samwoods1