parallel 0.9.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -2
- data/lib/parallel.rb +3 -3
- data/lib/parallel/version.rb +1 -1
- metadata +13 -12
- metadata.gz.sig +1 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fed36bc015bffa9185fe7e1250c4f01ce9a040c9
|
4
|
+
data.tar.gz: fa259b0ae9b9e6ed4aff042a6a202e64fc8f816f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5af6e47fcf2fcb5aa0ec30cac16d8e842cd211fdabdd0b7473f5a858dc83edef7c2352c35fdb4f12a27f833d7b22a66f2787b5a7fbf99cafd3edc00078cb97f
|
7
|
+
data.tar.gz: 1984ae2a689d842d9fe330f79cb33908af8d632ac65307ac4acfc442d9517f528b71d0000b052d5f6c7a957404b39c0deb29d56efd87f4428dd789811bff8a77
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
xR
|
1
|
+
|�Z��'���qm��Jߔ,�t^OC\�w�
|
data/lib/parallel.rb
CHANGED
@@ -221,7 +221,7 @@ module Parallel
|
|
221
221
|
loop do
|
222
222
|
break if exception
|
223
223
|
|
224
|
-
index = Thread.exclusive{ current+=1 }
|
224
|
+
index = Thread.exclusive { current += 1 }
|
225
225
|
break if index >= items.size
|
226
226
|
|
227
227
|
with_instrumentation items[index], index, options do
|
@@ -394,9 +394,9 @@ module Parallel
|
|
394
394
|
on_start = options[:start]
|
395
395
|
on_finish = options[:finish]
|
396
396
|
on_start.call(item, index) if on_start
|
397
|
-
yield
|
397
|
+
result = yield
|
398
398
|
ensure
|
399
|
-
on_finish.call(item, index) if on_finish
|
399
|
+
on_finish.call(item, index, result) if on_finish
|
400
400
|
end
|
401
401
|
end
|
402
402
|
end
|
data/lib/parallel/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
@@ -10,9 +10,9 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
13
|
+
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MRAwDgYDVQQDDAdtaWNo
|
14
14
|
YWVsMRcwFQYKCZImiZPyLGQBGRYHZ3Jvc3NlcjESMBAGCgmSJomT8ixkARkWAml0
|
15
|
-
|
15
|
+
MB4XDTE0MDIwNDIwMjk0MVoXDTE1MDIwNDIwMjk0MVowPzEQMA4GA1UEAwwHbWlj
|
16
16
|
aGFlbDEXMBUGCgmSJomT8ixkARkWB2dyb3NzZXIxEjAQBgoJkiaJk/IsZAEZFgJp
|
17
17
|
dDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMorXo/hgbUq97+kII9H
|
18
18
|
MsQcLdC/7wQ1ZP2OshVHPkeP0qH8MBHGg6eYisOX2ubNagF9YTCZWnhrdKrwpLOO
|
@@ -20,16 +20,17 @@ cert_chain:
|
|
20
20
|
6vHvcIHdzvc/OUkICttLbH+1qb6rsHUceqh+JrH4GrsJ5H4hAfIdyS2XMK7YRKbh
|
21
21
|
h+IBu6dFWJJByzFsYmV1PDXln3UBmgAt65cmCu4qPfThioCGDzbSJrGDGLmw/pFX
|
22
22
|
FPpVCm1zgYSb1v6Qnf3cgXa2f2wYGm17+zAVyIDpwryFru9yF/jJxE38z/DRsd9R
|
23
|
-
/
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
23
|
+
/88CAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFLIj
|
24
|
+
Z1x7SnjGGHK+MiVZkFjjS/iMMB0GA1UdEQQWMBSBEm1pY2hhZWxAZ3Jvc3Nlci5p
|
25
|
+
dDAdBgNVHRIEFjAUgRJtaWNoYWVsQGdyb3NzZXIuaXQwDQYJKoZIhvcNAQEFBQAD
|
26
|
+
ggEBAExBcUWfGuamYn+IddOA0Ws8jUKwB14RXoZRDrTiTAlMm3Bkg2OKyxS3uJXa
|
27
|
+
6Z+LwFiZwVYk62yHXqNzEJycQk4SEmY+xDWLj0p7X6qEeU4QZKwR1TwJ5z3PTrZ6
|
28
|
+
irJgM3q7NIBRvmTzRaAghWcQn+Eyr5YLOfMksjVBMUMnzh5/ZDgq53LphgJbGwvz
|
29
|
+
ScJAgfNclLHnjk9q1mT1s0e1FPWbiAL3siBIR5HpH8qtSEiivTf2ntciebOqS93f
|
30
|
+
F5etKHZg0j3eHO31/i2HnswY04lqGImUu6aM5EnijFTB7PPW2KwKKM4+kKDYFdlw
|
31
|
+
/0WV1Ng2/Y6qsHwmqGg2VlYj2h4=
|
31
32
|
-----END CERTIFICATE-----
|
32
|
-
date: 2014-
|
33
|
+
date: 2014-03-21 00:00:00.000000000 Z
|
33
34
|
dependencies: []
|
34
35
|
description:
|
35
36
|
email: michael@grosser.it
|
metadata.gz.sig
CHANGED
@@ -1,3 +1 @@
|
|
1
|
-
|
2
|
-
%[���Y�mA�n0c)h/
|
3
|
-
�7��r]bb��<K����&qpрh<�����tmӦ>
|
1
|
+
�\\j� c�$�^4�?���^��F)�Ʈ��^�o�U�=���(��TM�D�,���Omrvq�%� 3�%���!g)�� �6�ݿ��_֥��U�����vn��$ݧm��7�A弤��P�eU&yݚ7�m�N�K�I ]6��.IP�~���b���MG�]��2��;�D��l�R�%Ȧ�H瘲vA�nj��9�*�~N�n|�!��Xi�(�Q9AI[gbS(F��@ �+[�>w&\�l��E��bj��C�
|