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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10ae41bc42e4077103a8999f19ddcd6aca506690
4
- data.tar.gz: 6eb5df58b696e04343ff18b71b471073adeca9b1
3
+ metadata.gz: fed36bc015bffa9185fe7e1250c4f01ce9a040c9
4
+ data.tar.gz: fa259b0ae9b9e6ed4aff042a6a202e64fc8f816f
5
5
  SHA512:
6
- metadata.gz: 33c14f039f882d0c008b02142057ed272b1a0588ca512889ca5336b9887a5f402fb0a4579ec5aa03b46fc427dc57880b1d62f358775812a09ef2a11c2a769b9f
7
- data.tar.gz: b3990275434d77e4f6bad098ffeda2ae8d201ec4518f2e946573024f636f6214bb79e144a1ee3c7120922c278a733d38eb626b3b190d74624e95e76a11e78362
6
+ metadata.gz: b5af6e47fcf2fcb5aa0ec30cac16d8e842cd211fdabdd0b7473f5a858dc83edef7c2352c35fdb4f12a27f833d7b22a66f2787b5a7fbf99cafd3edc00078cb97f
7
+ data.tar.gz: 1984ae2a689d842d9fe330f79cb33908af8d632ac65307ac4acfc442d9517f528b71d0000b052d5f6c7a957404b39c0deb29d56efd87f4428dd789811bff8a77
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1 @@
1
- !Ӆ�م�����>��d���� ���ɤKZ
2
- xR
1
+ |�Z��'���qm��Jߔ,�t^OC\�w�
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Parallel
2
- VERSION = Version = '0.9.2'
2
+ VERSION = Version = '1.0.0'
3
3
  end
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.9.2
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
- MIIDMjCCAhqgAwIBAgIBADANBgkqhkiG9w0BAQUFADA/MRAwDgYDVQQDDAdtaWNo
13
+ MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MRAwDgYDVQQDDAdtaWNo
14
14
  YWVsMRcwFQYKCZImiZPyLGQBGRYHZ3Jvc3NlcjESMBAGCgmSJomT8ixkARkWAml0
15
- MB4XDTEzMDIwMzE4MTMxMVoXDTE0MDIwMzE4MTMxMVowPzEQMA4GA1UEAwwHbWlj
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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31
+ /0WV1Ng2/Y6qsHwmqGg2VlYj2h4=
31
32
  -----END CERTIFICATE-----
32
- date: 2014-01-13 00:00:00.000000000 Z
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
- U�P�´Z}�<�Pا6 &��3��l�0�&S ���0f,]cwu򲼌��3�������\!�Bp�ÍBuAi���߃�M9^
2
- %[���Y�mA�n0c)h/
3
- �7��r]bb��<K����&qpрh<�����tmӦ>
1
+ �\\j� c�$�^4�?���^��F)�Ʈ��^�o�U�=���(��TMD�,���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�*�~Nn|�!��Xi(Q9AI[gbS(F��@ �+[�>w&\�l��E��bj��C