parallel 1.26.3 → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 404f38d083ffa4ed2163c3018f5243fe487b6154905afa83b59320380bd3629a
4
- data.tar.gz: 832f558729b425fa3e2ad6b9a3d6418c44d0f4a2ecc180a398a28b2301cd5cab
3
+ metadata.gz: 4b172785b4c554ff694b90a15c5314d32dceac1cb7caf8abf313cf8b75621b54
4
+ data.tar.gz: efd61bfc5273f2f105e64391294a636c4d2fceaab650fc6e0346f0764f9dcfa6
5
5
  SHA512:
6
- metadata.gz: 5947502dc01d242a8a1cef0e2133cc3df913107941f5ba5bd82032bda76de6358bc44e62848909a75f2bfa45c867ee099f454c2652555265d734a166c988d144
7
- data.tar.gz: '08f69f6c82041f015dee319ccc42bb0b1e20fc3d58b4e4007c1636ce459a71b0625ebb3ec8c28549562c1ed3f99f4182da41d8741a42eeeb4a96cb51b9bff701'
6
+ metadata.gz: dc0fca1c5760881f31e2c4b229c0bc27d173f070d278f79e6fa9afb3dabae7e6b899fe919409a431506ee45e27a486e2b812250f74ce14ee1e08a62f0a948297
7
+ data.tar.gz: 1ef1b735cfa30ee8b3f92e6d9075752742ae72ee704acbe509e218dd9957715d8776b17b96e6cca2b4d56182e27dd913a8f2f65e67c0a30c7bf50c69c566332c
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Parallel
3
- VERSION = Version = '1.26.3' # rubocop:disable Naming/ConstantName
3
+ VERSION = Version = '1.28.0' # rubocop:disable Naming/ConstantName
4
4
  end
data/lib/parallel.rb CHANGED
@@ -15,6 +15,17 @@ module Parallel
15
15
  super()
16
16
  @value = value
17
17
  end
18
+
19
+ # marshal_dump that is used for ruby exceptions
20
+ # avoid dumping the cause since nobody needs that and it can include undumpable exceptions
21
+ def _dump(_depth)
22
+ Marshal.dump(@value)
23
+ end
24
+
25
+ # marshal_load that is used for ruby exceptions
26
+ def self._load(data)
27
+ new(Marshal.load(data))
28
+ end
18
29
  end
19
30
 
20
31
  class Kill < Break
@@ -255,7 +266,7 @@ module Parallel
255
266
 
256
267
  if options[:in_processes] && options[:in_threads]
257
268
  raise ArgumentError, "Please specify only one of `in_processes` or `in_threads`."
258
- elsif RUBY_PLATFORM =~ (/java/) && !(options[:in_processes])
269
+ elsif RUBY_PLATFORM =~ (/java/) && !options[:in_processes]
259
270
  method = :in_threads
260
271
  size = options[method] || processor_count
261
272
  elsif options[:in_threads]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.3
4
+ version: 1.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-16 00:00:00.000000000 Z
11
+ date: 2026-04-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: michael@grosser.it
@@ -24,8 +24,8 @@ licenses:
24
24
  - MIT
25
25
  metadata:
26
26
  bug_tracker_uri: https://github.com/grosser/parallel/issues
27
- documentation_uri: https://github.com/grosser/parallel/blob/v1.26.3/Readme.md
28
- source_code_uri: https://github.com/grosser/parallel/tree/v1.26.3
27
+ documentation_uri: https://github.com/grosser/parallel/blob/v1.28.0/Readme.md
28
+ source_code_uri: https://github.com/grosser/parallel/tree/v1.28.0
29
29
  wiki_uri: https://github.com/grosser/parallel/wiki
30
30
  post_install_message:
31
31
  rdoc_options: []