cybrid_api_id_ruby 0.118.13 → 0.118.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +5 -5
  4. data/cybrid_api_id_ruby.gemspec +1 -1
  5. data/lib/cybrid_api_id_ruby/api/bank_applications_idp_api.rb +1 -1
  6. data/lib/cybrid_api_id_ruby/api/customer_tokens_idp_api.rb +1 -1
  7. data/lib/cybrid_api_id_ruby/api/organization_applications_idp_api.rb +1 -1
  8. data/lib/cybrid_api_id_ruby/api/users_idp_api.rb +1 -1
  9. data/lib/cybrid_api_id_ruby/api_client.rb +1 -1
  10. data/lib/cybrid_api_id_ruby/api_error.rb +1 -1
  11. data/lib/cybrid_api_id_ruby/configuration.rb +1 -1
  12. data/lib/cybrid_api_id_ruby/models/application_idp_model.rb +1 -1
  13. data/lib/cybrid_api_id_ruby/models/application_list_idp_model.rb +1 -1
  14. data/lib/cybrid_api_id_ruby/models/application_with_secret_all_of_idp_model.rb +1 -1
  15. data/lib/cybrid_api_id_ruby/models/application_with_secret_idp_model.rb +1 -1
  16. data/lib/cybrid_api_id_ruby/models/customer_token_idp_model.rb +1 -1
  17. data/lib/cybrid_api_id_ruby/models/error_response_idp_model.rb +1 -1
  18. data/lib/cybrid_api_id_ruby/models/post_bank_application_idp_model.rb +1 -1
  19. data/lib/cybrid_api_id_ruby/models/post_customer_token_idp_model.rb +1 -1
  20. data/lib/cybrid_api_id_ruby/models/post_organization_application_idp_model.rb +1 -1
  21. data/lib/cybrid_api_id_ruby/models/post_user_idp_model.rb +1 -1
  22. data/lib/cybrid_api_id_ruby/models/user_idp_model.rb +1 -1
  23. data/lib/cybrid_api_id_ruby/models/user_list_idp_model.rb +1 -1
  24. data/lib/cybrid_api_id_ruby/version.rb +2 -2
  25. data/lib/cybrid_api_id_ruby.rb +1 -1
  26. data/spec/api/bank_applications_idp_api_spec.rb +1 -1
  27. data/spec/api/customer_tokens_idp_api_spec.rb +1 -1
  28. data/spec/api/organization_applications_idp_api_spec.rb +1 -1
  29. data/spec/api/users_idp_api_spec.rb +1 -1
  30. data/spec/api_client_spec.rb +1 -1
  31. data/spec/configuration_spec.rb +1 -1
  32. data/spec/models/application_idp_model_spec.rb +1 -1
  33. data/spec/models/application_list_idp_model_spec.rb +1 -1
  34. data/spec/models/application_with_secret_all_of_idp_model_spec.rb +1 -1
  35. data/spec/models/application_with_secret_idp_model_spec.rb +1 -1
  36. data/spec/models/customer_token_idp_model_spec.rb +1 -1
  37. data/spec/models/error_response_idp_model_spec.rb +1 -1
  38. data/spec/models/post_bank_application_idp_model_spec.rb +1 -1
  39. data/spec/models/post_customer_token_idp_model_spec.rb +1 -1
  40. data/spec/models/post_organization_application_idp_model_spec.rb +1 -1
  41. data/spec/models/post_user_idp_model_spec.rb +1 -1
  42. data/spec/models/user_idp_model_spec.rb +1 -1
  43. data/spec/models/user_list_idp_model_spec.rb +1 -1
  44. data/spec/spec_helper.rb +1 -1
  45. data/vendor/bundle/ruby/3.2.0/cache/parallel-1.25.1.gem +0 -0
  46. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +5 -5
  47. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  48. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.2/gem_make.out +5 -5
  49. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.0/gem_make.out +5 -5
  50. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.1.0/gem_make.out +5 -5
  51. data/vendor/bundle/ruby/3.2.0/gems/parallel-1.25.1/lib/parallel/version.rb +4 -0
  52. data/vendor/bundle/ruby/3.2.0/gems/{parallel-1.24.0 → parallel-1.25.1}/lib/parallel.rb +39 -16
  53. data/vendor/bundle/ruby/3.2.0/specifications/{parallel-1.24.0.gemspec → parallel-1.25.1.gemspec} +5 -5
  54. metadata +7 -7
  55. data/vendor/bundle/ruby/3.2.0/cache/parallel-1.24.0.gem +0 -0
  56. data/vendor/bundle/ruby/3.2.0/gems/parallel-1.24.0/lib/parallel/version.rb +0 -4
  57. /data/vendor/bundle/ruby/3.2.0/gems/{parallel-1.24.0 → parallel-1.25.1}/MIT-LICENSE.txt +0 -0
@@ -3,24 +3,24 @@ current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendo
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse
6
- make DESTDIR\= sitearchdir\=./.gem.20240607-3702-3xjsb6 sitelibdir\=./.gem.20240607-3702-3xjsb6 clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20240610-3698-zicl1z sitelibdir\=./.gem.20240610-3698-zicl1z clean
7
7
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse'
8
8
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse'
9
9
 
10
10
  current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse
11
- make DESTDIR\= sitearchdir\=./.gem.20240607-3702-3xjsb6 sitelibdir\=./.gem.20240607-3702-3xjsb6
11
+ make DESTDIR\= sitearchdir\=./.gem.20240610-3698-zicl1z sitelibdir\=./.gem.20240610-3698-zicl1z
12
12
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse'
13
13
  compiling cparse.c
14
14
  linking shared-object racc/cparse.so
15
15
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse'
16
16
 
17
17
  current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse
18
- make DESTDIR\= sitearchdir\=./.gem.20240607-3702-3xjsb6 sitelibdir\=./.gem.20240607-3702-3xjsb6 install
18
+ make DESTDIR\= sitearchdir\=./.gem.20240610-3698-zicl1z sitelibdir\=./.gem.20240610-3698-zicl1z install
19
19
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse'
20
- /usr/bin/install -c -m 0755 cparse.so ./.gem.20240607-3702-3xjsb6/racc
20
+ /usr/bin/install -c -m 0755 cparse.so ./.gem.20240610-3698-zicl1z/racc
21
21
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse'
22
22
 
23
23
  current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse
24
- make DESTDIR\= sitearchdir\=./.gem.20240607-3702-3xjsb6 sitelibdir\=./.gem.20240607-3702-3xjsb6 clean
24
+ make DESTDIR\= sitearchdir\=./.gem.20240610-3698-zicl1z sitelibdir\=./.gem.20240610-3698-zicl1z clean
25
25
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse'
26
26
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/ext/racc/cparse'
@@ -3,24 +3,24 @@ current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendo
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
6
- make DESTDIR\= sitearchdir\=./.gem.20240607-3702-c92cad sitelibdir\=./.gem.20240607-3702-c92cad clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20240610-3698-nvufm7 sitelibdir\=./.gem.20240610-3698-nvufm7 clean
7
7
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
8
8
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
9
9
 
10
10
  current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
11
- make DESTDIR\= sitearchdir\=./.gem.20240607-3702-c92cad sitelibdir\=./.gem.20240607-3702-c92cad
11
+ make DESTDIR\= sitearchdir\=./.gem.20240610-3698-nvufm7 sitelibdir\=./.gem.20240610-3698-nvufm7
12
12
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
13
13
  compiling stringio.c
14
14
  linking shared-object stringio.so
15
15
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
16
16
 
17
17
  current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
18
- make DESTDIR\= sitearchdir\=./.gem.20240607-3702-c92cad sitelibdir\=./.gem.20240607-3702-c92cad install
18
+ make DESTDIR\= sitearchdir\=./.gem.20240610-3698-nvufm7 sitelibdir\=./.gem.20240610-3698-nvufm7 install
19
19
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
20
- /usr/bin/install -c -m 0755 stringio.so ./.gem.20240607-3702-c92cad
20
+ /usr/bin/install -c -m 0755 stringio.so ./.gem.20240610-3698-nvufm7
21
21
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
22
22
 
23
23
  current directory: /home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
24
- make DESTDIR\= sitearchdir\=./.gem.20240607-3702-c92cad sitelibdir\=./.gem.20240607-3702-c92cad clean
24
+ make DESTDIR\= sitearchdir\=./.gem.20240610-3698-nvufm7 sitelibdir\=./.gem.20240610-3698-nvufm7 clean
25
25
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
26
26
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-idp/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+ module Parallel
3
+ VERSION = Version = '1.25.1' # rubocop:disable Naming/ConstantName
4
+ end
@@ -24,7 +24,7 @@ module Parallel
24
24
  attr_reader :backtrace
25
25
 
26
26
  def initialize(original)
27
- super "#{original.class}: #{original.message}"
27
+ super("#{original.class}: #{original.message}")
28
28
  @backtrace = original.backtrace
29
29
  end
30
30
  end
@@ -300,12 +300,12 @@ module Parallel
300
300
  map(array, options.merge(with_index: true), &block)
301
301
  end
302
302
 
303
- def flat_map(*args, &block)
304
- map(*args, &block).flatten(1)
303
+ def flat_map(...)
304
+ map(...).flatten(1)
305
305
  end
306
306
 
307
- def filter_map(*args, &block)
308
- map(*args, &block).compact
307
+ def filter_map(...)
308
+ map(...).compact
309
309
  end
310
310
 
311
311
  # Number of physical processor cores on the current system.
@@ -328,11 +328,7 @@ module Parallel
328
328
  end
329
329
  cores.count
330
330
  when /mswin|mingw/
331
- require 'win32ole'
332
- result_set = WIN32OLE.connect("winmgmts://").ExecQuery(
333
- "select NumberOfCores from Win32_Processor"
334
- )
335
- result_set.to_enum.collect(&:NumberOfCores).reduce(:+)
331
+ physical_processor_count_windows
336
332
  else
337
333
  processor_count
338
334
  end
@@ -358,8 +354,35 @@ module Parallel
358
354
 
359
355
  private
360
356
 
357
+ def physical_processor_count_windows
358
+ # Get-CimInstance introduced in PowerShell 3 or earlier: https://learn.microsoft.com/en-us/previous-versions/powershell/module/cimcmdlets/get-ciminstance?view=powershell-3.0
359
+ result = run(
360
+ 'powershell -command "Get-CimInstance -ClassName Win32_Processor -Property NumberOfCores ' \
361
+ '| Select-Object -Property NumberOfCores"'
362
+ )
363
+ if !result || $?.exitstatus != 0
364
+ # fallback to deprecated wmic for older systems
365
+ result = run("wmic cpu get NumberOfCores")
366
+ end
367
+ if !result || $?.exitstatus != 0
368
+ # Bail out if both commands returned something unexpected
369
+ warn "guessing pyhsical processor count"
370
+ processor_count
371
+ else
372
+ # powershell: "\nNumberOfCores\n-------------\n 4\n\n\n"
373
+ # wmic: "NumberOfCores \n\n4 \n\n\n\n"
374
+ result.scan(/\d+/).map(&:to_i).reduce(:+)
375
+ end
376
+ end
377
+
378
+ def run(command)
379
+ IO.popen(command, &:read)
380
+ rescue Errno::ENOENT
381
+ # Ignore
382
+ end
383
+
361
384
  def add_progress_bar!(job_factory, options)
362
- if progress_options = options[:progress]
385
+ if (progress_options = options[:progress])
363
386
  raise "Progressbar can only be used with array like items" if job_factory.size == Float::INFINITY
364
387
  require 'ruby-progressbar'
365
388
 
@@ -388,7 +411,7 @@ module Parallel
388
411
  results = []
389
412
  exception = nil
390
413
  begin
391
- while set = job_factory.next
414
+ while (set = job_factory.next)
392
415
  item, index = set
393
416
  results << with_instrumentation(item, index, options) do
394
417
  call_with_index(item, index, options, &block)
@@ -411,7 +434,7 @@ module Parallel
411
434
  in_threads(options) do |worker_num|
412
435
  self.worker_number = worker_num
413
436
  # as long as there are more jobs, work on one of them
414
- while !exception && set = job_factory.next
437
+ while !exception && (set = job_factory.next)
415
438
  begin
416
439
  item, index = set
417
440
  result = with_instrumentation item, index, options do
@@ -455,7 +478,7 @@ module Parallel
455
478
 
456
479
  # start
457
480
  ractors.dup.each do |ractor|
458
- if set = job_factory.next
481
+ if (set = job_factory.next)
459
482
  item, index = set
460
483
  instrument_start item, index, options
461
484
  ractor.send [callback, item, index]
@@ -466,7 +489,7 @@ module Parallel
466
489
  end
467
490
 
468
491
  # replace with new items
469
- while set = job_factory.next
492
+ while (set = job_factory.next)
470
493
  item_next, index_next = set
471
494
  done, (exception, result, item, index) = Ractor.select(*ractors)
472
495
  if exception
@@ -669,7 +692,7 @@ module Parallel
669
692
  end
670
693
 
671
694
  def instrument_start(item, index, options)
672
- return unless on_start = options[:start]
695
+ return unless (on_start = options[:start])
673
696
  options[:mutex].synchronize { on_start.call(item, index) }
674
697
  end
675
698
  end
@@ -1,19 +1,19 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: parallel 1.24.0 ruby lib
2
+ # stub: parallel 1.25.1 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "parallel".freeze
6
- s.version = "1.24.0".freeze
6
+ s.version = "1.25.1".freeze
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
- s.metadata = { "bug_tracker_uri" => "https://github.com/grosser/parallel/issues", "documentation_uri" => "https://github.com/grosser/parallel/blob/v1.24.0/Readme.md", "source_code_uri" => "https://github.com/grosser/parallel/tree/v1.24.0", "wiki_uri" => "https://github.com/grosser/parallel/wiki" } if s.respond_to? :metadata=
9
+ s.metadata = { "bug_tracker_uri" => "https://github.com/grosser/parallel/issues", "documentation_uri" => "https://github.com/grosser/parallel/blob/v1.25.1/Readme.md", "source_code_uri" => "https://github.com/grosser/parallel/tree/v1.25.1", "wiki_uri" => "https://github.com/grosser/parallel/wiki" } if s.respond_to? :metadata=
10
10
  s.require_paths = ["lib".freeze]
11
11
  s.authors = ["Michael Grosser".freeze]
12
- s.date = "2023-12-16"
12
+ s.date = "2024-06-08"
13
13
  s.email = "michael@grosser.it".freeze
14
14
  s.homepage = "https://github.com/grosser/parallel".freeze
15
15
  s.licenses = ["MIT".freeze]
16
- s.required_ruby_version = Gem::Requirement.new(">= 2.5".freeze)
16
+ s.required_ruby_version = Gem::Requirement.new(">= 2.7".freeze)
17
17
  s.rubygems_version = "3.4.21".freeze
18
18
  s.summary = "Run any kind of code in parallel processes".freeze
19
19
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cybrid_api_id_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.118.13
4
+ version: 0.118.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cybrid
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-07 00:00:00.000000000 Z
11
+ date: 2024-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -138,7 +138,7 @@ files:
138
138
  - vendor/bundle/ruby/3.2.0/cache/ffi-1.17.0-x86_64-linux-gnu.gem
139
139
  - vendor/bundle/ruby/3.2.0/cache/jaro_winkler-1.5.6.gem
140
140
  - vendor/bundle/ruby/3.2.0/cache/method_source-1.1.0.gem
141
- - vendor/bundle/ruby/3.2.0/cache/parallel-1.24.0.gem
141
+ - vendor/bundle/ruby/3.2.0/cache/parallel-1.25.1.gem
142
142
  - vendor/bundle/ruby/3.2.0/cache/parser-3.3.2.0.gem
143
143
  - vendor/bundle/ruby/3.2.0/cache/pry-0.14.2.gem
144
144
  - vendor/bundle/ruby/3.2.0/cache/pry-byebug-3.10.1.gem
@@ -709,9 +709,9 @@ files:
709
709
  - vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/spec/method_source/code_helpers_spec.rb
710
710
  - vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/spec/method_source_spec.rb
711
711
  - vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/spec/spec_helper.rb
712
- - vendor/bundle/ruby/3.2.0/gems/parallel-1.24.0/MIT-LICENSE.txt
713
- - vendor/bundle/ruby/3.2.0/gems/parallel-1.24.0/lib/parallel.rb
714
- - vendor/bundle/ruby/3.2.0/gems/parallel-1.24.0/lib/parallel/version.rb
712
+ - vendor/bundle/ruby/3.2.0/gems/parallel-1.25.1/MIT-LICENSE.txt
713
+ - vendor/bundle/ruby/3.2.0/gems/parallel-1.25.1/lib/parallel.rb
714
+ - vendor/bundle/ruby/3.2.0/gems/parallel-1.25.1/lib/parallel/version.rb
715
715
  - vendor/bundle/ruby/3.2.0/gems/parser-3.3.2.0/LICENSE.txt
716
716
  - vendor/bundle/ruby/3.2.0/gems/parser-3.3.2.0/bin/ruby-parse
717
717
  - vendor/bundle/ruby/3.2.0/gems/parser-3.3.2.0/bin/ruby-rewrite
@@ -2135,7 +2135,7 @@ files:
2135
2135
  - vendor/bundle/ruby/3.2.0/specifications/ffi-1.17.0-x86_64-linux-gnu.gemspec
2136
2136
  - vendor/bundle/ruby/3.2.0/specifications/jaro_winkler-1.5.6.gemspec
2137
2137
  - vendor/bundle/ruby/3.2.0/specifications/method_source-1.1.0.gemspec
2138
- - vendor/bundle/ruby/3.2.0/specifications/parallel-1.24.0.gemspec
2138
+ - vendor/bundle/ruby/3.2.0/specifications/parallel-1.25.1.gemspec
2139
2139
  - vendor/bundle/ruby/3.2.0/specifications/parser-3.3.2.0.gemspec
2140
2140
  - vendor/bundle/ruby/3.2.0/specifications/pry-0.14.2.gemspec
2141
2141
  - vendor/bundle/ruby/3.2.0/specifications/pry-byebug-3.10.1.gemspec
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
- module Parallel
3
- VERSION = Version = '1.24.0' # rubocop:disable Naming/ConstantName
4
- end