parallel 1.26.2 → 1.27.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: c07164b3539800c522450fc924698e6cf1b81b70f7d9d60af4610336eba30dbd
4
- data.tar.gz: f88c4de5c97837809bc5c120da1ada9a30b06131bff9fab60e5de42c0c0f7747
3
+ metadata.gz: a657608c1d396b6c563f8905778d64d24c4ae6bb010e716e60a45ccc4a71295e
4
+ data.tar.gz: eb26d89f92521fed38f1bdf99f6374a2cca2e3f4c1557a7f3f92ed81d396ffb7
5
5
  SHA512:
6
- metadata.gz: 6ae2b910a41386edcace4a457a23fb2db78bd724634063cdc81e600c07342d7bff03415d5829fb7639834c7353edeb2b1c46f6a95e758f8634cf1f510c5ec117
7
- data.tar.gz: e8c800d89d83c15ef86a2bac9bc1bb7875df1466a208b357a792ddb786d9f2758a7b2a4c75b071f18f1f1f39b1eda9ddaccf11f3a929d296b5c13677276dee11
6
+ metadata.gz: d7accf7f9b3d74e1e76f7b89db8f9040d23876e8373a6d6fa9b31e927b9ca4ce8b13330ffd888871795c79d6e3bbe7b17aa787789146ffed67f46c21fa9af3ad
7
+ data.tar.gz: ead77e379ad1c18641ca8d0457214af393beeee60fe4e5558c69d601f6f269628ce2830b6a35a7fe66e461b88fbebad33dd9bb8b767324030294e2a8f7164d8d
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Parallel
3
- VERSION = Version = '1.26.2' # rubocop:disable Naming/ConstantName
3
+ VERSION = Version = '1.27.0' # rubocop:disable Naming/ConstantName
4
4
  end
data/lib/parallel.rb CHANGED
@@ -255,7 +255,7 @@ module Parallel
255
255
 
256
256
  if options[:in_processes] && options[:in_threads]
257
257
  raise ArgumentError, "Please specify only one of `in_processes` or `in_threads`."
258
- elsif RUBY_PLATFORM =~ (/java/) && !(options[:in_processes])
258
+ elsif RUBY_PLATFORM =~ (/java/) && !options[:in_processes]
259
259
  method = :in_threads
260
260
  size = options[method] || processor_count
261
261
  elsif options[:in_threads]
@@ -697,9 +697,10 @@ module Parallel
697
697
  end
698
698
 
699
699
  def available_processor_count
700
+ gem 'concurrent-ruby', '>= 1.3.4'
700
701
  require 'concurrent-ruby'
701
702
  Concurrent.available_processor_count.floor
702
- rescue LoadError, NoMethodError
703
+ rescue LoadError
703
704
  require 'etc'
704
705
  Etc.nprocessors
705
706
  end
metadata CHANGED
@@ -1,16 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.2
4
+ version: 1.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-08-11 00:00:00.000000000 Z
10
+ date: 2025-04-14 00:00:00.000000000 Z
12
11
  dependencies: []
13
- description:
14
12
  email: michael@grosser.it
15
13
  executables: []
16
14
  extensions: []
@@ -24,10 +22,9 @@ licenses:
24
22
  - MIT
25
23
  metadata:
26
24
  bug_tracker_uri: https://github.com/grosser/parallel/issues
27
- documentation_uri: https://github.com/grosser/parallel/blob/v1.26.2/Readme.md
28
- source_code_uri: https://github.com/grosser/parallel/tree/v1.26.2
25
+ documentation_uri: https://github.com/grosser/parallel/blob/v1.27.0/Readme.md
26
+ source_code_uri: https://github.com/grosser/parallel/tree/v1.27.0
29
27
  wiki_uri: https://github.com/grosser/parallel/wiki
30
- post_install_message:
31
28
  rdoc_options: []
32
29
  require_paths:
33
30
  - lib
@@ -42,8 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
42
39
  - !ruby/object:Gem::Version
43
40
  version: '0'
44
41
  requirements: []
45
- rubygems_version: 3.4.10
46
- signing_key:
42
+ rubygems_version: 3.6.2
47
43
  specification_version: 4
48
44
  summary: Run any kind of code in parallel processes
49
45
  test_files: []