ory-oathkeeper-client 0.38.23.beta1 → 0.38.24.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/LICENSE +201 -0
  4. data/README.md +5 -5
  5. data/lib/ory-oathkeeper-client/api/api_api.rb +1 -1
  6. data/lib/ory-oathkeeper-client/api_client.rb +1 -1
  7. data/lib/ory-oathkeeper-client/api_error.rb +1 -1
  8. data/lib/ory-oathkeeper-client/configuration.rb +1 -1
  9. data/lib/ory-oathkeeper-client/models/health_not_ready_status.rb +1 -1
  10. data/lib/ory-oathkeeper-client/models/health_status.rb +1 -1
  11. data/lib/ory-oathkeeper-client/models/inline_response500.rb +1 -1
  12. data/lib/ory-oathkeeper-client/models/json_web_key.rb +1 -1
  13. data/lib/ory-oathkeeper-client/models/json_web_key_set.rb +1 -1
  14. data/lib/ory-oathkeeper-client/models/rule.rb +1 -1
  15. data/lib/ory-oathkeeper-client/models/rule_handler.rb +1 -1
  16. data/lib/ory-oathkeeper-client/models/rule_match.rb +1 -1
  17. data/lib/ory-oathkeeper-client/models/upstream.rb +1 -1
  18. data/lib/ory-oathkeeper-client/models/version.rb +1 -1
  19. data/lib/ory-oathkeeper-client/version.rb +2 -2
  20. data/lib/ory-oathkeeper-client.rb +1 -1
  21. data/ory-oathkeeper-client.gemspec +1 -1
  22. data/spec/api/api_api_spec.rb +1 -1
  23. data/spec/api_client_spec.rb +1 -1
  24. data/spec/configuration_spec.rb +1 -1
  25. data/spec/models/health_not_ready_status_spec.rb +1 -1
  26. data/spec/models/health_status_spec.rb +1 -1
  27. data/spec/models/inline_response500_spec.rb +1 -1
  28. data/spec/models/json_web_key_set_spec.rb +1 -1
  29. data/spec/models/json_web_key_spec.rb +1 -1
  30. data/spec/models/rule_handler_spec.rb +1 -1
  31. data/spec/models/rule_match_spec.rb +1 -1
  32. data/spec/models/rule_spec.rb +1 -1
  33. data/spec/models/upstream_spec.rb +1 -1
  34. data/spec/models/version_spec.rb +1 -1
  35. data/spec/spec_helper.rb +1 -1
  36. data/vendor/bundle/ruby/2.5.0/cache/parallel-1.22.1.gem +0 -0
  37. data/vendor/bundle/ruby/2.5.0/cache/rspec-mocks-3.11.1.gem +0 -0
  38. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
  39. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.5/gem_make.out +2 -2
  40. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/jaro_winkler-1.5.4/gem_make.out +2 -2
  41. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.3/gem_make.out +2 -2
  42. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.1/gem_make.out +2 -2
  43. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.1/mkmf.log +1 -1
  44. data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
  45. data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
  46. data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
  47. data/vendor/bundle/ruby/2.5.0/gems/{parallel-1.21.0 → parallel-1.22.1}/MIT-LICENSE.txt +0 -0
  48. data/vendor/bundle/ruby/2.5.0/gems/{parallel-1.21.0 → parallel-1.22.1}/lib/parallel/processor_count.rb +2 -3
  49. data/vendor/bundle/ruby/2.5.0/gems/parallel-1.22.1/lib/parallel/version.rb +4 -0
  50. data/vendor/bundle/ruby/2.5.0/gems/{parallel-1.21.0 → parallel-1.22.1}/lib/parallel.rb +84 -4
  51. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.3/ext/psych/Makefile +2 -2
  52. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/.document +0 -0
  53. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/.yardopts +0 -0
  54. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/Changelog.md +10 -1
  55. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/LICENSE.md +0 -0
  56. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/README.md +0 -0
  57. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/chain.rb +0 -0
  58. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/error_generator.rb +0 -0
  59. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -0
  60. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -0
  61. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/message_chains.rb +0 -0
  62. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/proxy.rb +0 -0
  63. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/recorder.rb +0 -0
  64. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/stub_chain.rb +0 -0
  65. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -0
  66. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/any_instance.rb +0 -0
  67. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/argument_list_matcher.rb +2 -1
  68. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/argument_matchers.rb +0 -0
  69. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/configuration.rb +0 -0
  70. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/error_generator.rb +0 -0
  71. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/example_methods.rb +0 -0
  72. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/instance_method_stasher.rb +0 -0
  73. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/marshal_extension.rb +0 -0
  74. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/matchers/expectation_customization.rb +0 -0
  75. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/matchers/have_received.rb +0 -0
  76. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/matchers/receive.rb +1 -1
  77. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -0
  78. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/matchers/receive_messages.rb +0 -0
  79. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/message_chain.rb +0 -0
  80. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/message_expectation.rb +13 -3
  81. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/method_double.rb +3 -0
  82. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/method_reference.rb +0 -0
  83. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/minitest_integration.rb +0 -0
  84. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/mutate_const.rb +0 -0
  85. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/object_reference.rb +0 -0
  86. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/order_group.rb +0 -0
  87. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/proxy.rb +6 -0
  88. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/space.rb +0 -0
  89. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/standalone.rb +0 -0
  90. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/syntax.rb +0 -0
  91. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/targets.rb +0 -0
  92. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/test_double.rb +0 -0
  93. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/verifying_double.rb +0 -0
  94. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/verifying_message_expectation.rb +0 -0
  95. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/verifying_proxy.rb +0 -0
  96. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks/version.rb +1 -1
  97. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.11.0 → rspec-mocks-3.11.1}/lib/rspec/mocks.rb +0 -0
  98. data/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.1/ext/stringio/Makefile +2 -2
  99. data/vendor/bundle/ruby/2.5.0/specifications/{parallel-1.21.0.gemspec → parallel-1.22.1.gemspec} +4 -4
  100. data/vendor/bundle/ruby/2.5.0/specifications/{rspec-mocks-3.11.0.gemspec → rspec-mocks-3.11.1.gemspec} +5 -5
  101. metadata +57 -56
  102. data/vendor/bundle/ruby/2.5.0/cache/parallel-1.21.0.gem +0 -0
  103. data/vendor/bundle/ruby/2.5.0/cache/rspec-mocks-3.11.0.gem +0 -0
  104. data/vendor/bundle/ruby/2.5.0/gems/parallel-1.21.0/lib/parallel/version.rb +0 -4
@@ -1,5 +1,5 @@
1
1
  current directory: /sdk/clients/oathkeeper/ruby/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler
2
- /usr/bin/ruby2.5 -r ./siteconf20220224-3620-1c1pr12.rb extconf.rb
2
+ /usr/bin/ruby2.5 -r ./siteconf20220406-3650-gh22hp.rb extconf.rb
3
3
  creating Makefile
4
4
 
5
5
  current directory: /sdk/clients/oathkeeper/ruby/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler
@@ -35,4 +35,4 @@ linking shared-object jaro_winkler/jaro_winkler_ext.so
35
35
 
36
36
  current directory: /sdk/clients/oathkeeper/ruby/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler
37
37
  make "DESTDIR=" install
38
- /usr/bin/install -c -m 0755 jaro_winkler_ext.so ./.gem.20220224-3620-1s06239/jaro_winkler
38
+ /usr/bin/install -c -m 0755 jaro_winkler_ext.so ./.gem.20220406-3650-5mj9qn/jaro_winkler
@@ -1,5 +1,5 @@
1
1
  current directory: /sdk/clients/oathkeeper/ruby/vendor/bundle/ruby/2.5.0/gems/psych-4.0.3/ext/psych
2
- /usr/bin/ruby2.5 -r ./siteconf20220224-3620-1t8y71h.rb extconf.rb
2
+ /usr/bin/ruby2.5 -r ./siteconf20220406-3650-16fkl3u.rb extconf.rb
3
3
  checking for yaml.h... no
4
4
  checking for _WIN32... no
5
5
  checking for dlfcn.h... yes
@@ -38,4 +38,4 @@ linking shared-object psych.so
38
38
 
39
39
  current directory: /sdk/clients/oathkeeper/ruby/vendor/bundle/ruby/2.5.0/gems/psych-4.0.3/ext/psych
40
40
  make "DESTDIR=" install
41
- /usr/bin/install -c -m 0755 psych.so ./.gem.20220224-3620-1o05ev8
41
+ /usr/bin/install -c -m 0755 psych.so ./.gem.20220406-3650-k9wcr7
@@ -1,5 +1,5 @@
1
1
  current directory: /sdk/clients/oathkeeper/ruby/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.1/ext/stringio
2
- /usr/bin/ruby2.5 -r ./siteconf20220224-3620-kem0w1.rb extconf.rb
2
+ /usr/bin/ruby2.5 -r ./siteconf20220406-3650-15z1jio.rb extconf.rb
3
3
  checking for rb_io_extract_modeenc() in ruby/io.h... no
4
4
  creating Makefile
5
5
 
@@ -13,4 +13,4 @@ linking shared-object stringio.so
13
13
 
14
14
  current directory: /sdk/clients/oathkeeper/ruby/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.1/ext/stringio
15
15
  make "DESTDIR=" install
16
- /usr/bin/install -c -m 0755 stringio.so ./.gem.20220224-3620-1knq78k
16
+ /usr/bin/install -c -m 0755 stringio.so ./.gem.20220406-3650-ugq80x
@@ -39,7 +39,7 @@ checked program was:
39
39
  /* end */
40
40
 
41
41
  "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/ruby2.5-ADJMZV/ruby2.5-2.5.5=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.5 -lpthread -lgmp -ldl -lcrypt -lm -lc"
42
- /usr/bin/ld: /tmp/ccR6prMC.o: in function `t':
42
+ /usr/bin/ld: /tmp/ccwkXxz7.o: in function `t':
43
43
  /sdk/clients/oathkeeper/ruby/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.1/ext/stringio/conftest.c:16: undefined reference to `rb_io_extract_modeenc'
44
44
  collect2: error: ld returned 1 exit status
45
45
  checked program was:
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
31
  vendorarchdir = $(rubysitearchprefix)/vendor_ruby/$(ruby_version)
32
32
  vendorlibdir = $(vendordir)/$(ruby_version)
33
33
  vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(DESTDIR)./.gem.20220224-3620-lqj1fy
35
- sitelibdir = $(DESTDIR)./.gem.20220224-3620-lqj1fy
34
+ sitearchdir = $(DESTDIR)./.gem.20220406-3650-1b4ulxm
35
+ sitelibdir = $(DESTDIR)./.gem.20220406-3650-1b4ulxm
36
36
  sitedir = $(DESTDIR)/usr/local/lib/site_ruby
37
37
  rubyarchdir = $(rubyarchprefix)/$(ruby_version)
38
38
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
31
  vendorarchdir = $(rubysitearchprefix)/vendor_ruby/$(ruby_version)
32
32
  vendorlibdir = $(vendordir)/$(ruby_version)
33
33
  vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(DESTDIR)./.gem.20220224-3620-151ukjf
35
- sitelibdir = $(DESTDIR)./.gem.20220224-3620-151ukjf
34
+ sitearchdir = $(DESTDIR)./.gem.20220406-3650-12yttyt
35
+ sitelibdir = $(DESTDIR)./.gem.20220406-3650-12yttyt
36
36
  sitedir = $(DESTDIR)/usr/local/lib/site_ruby
37
37
  rubyarchdir = $(rubyarchprefix)/$(ruby_version)
38
38
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
31
  vendorarchdir = $(rubysitearchprefix)/vendor_ruby/$(ruby_version)
32
32
  vendorlibdir = $(vendordir)/$(ruby_version)
33
33
  vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(DESTDIR)./.gem.20220224-3620-1s06239
35
- sitelibdir = $(DESTDIR)./.gem.20220224-3620-1s06239
34
+ sitearchdir = $(DESTDIR)./.gem.20220406-3650-5mj9qn
35
+ sitelibdir = $(DESTDIR)./.gem.20220406-3650-5mj9qn
36
36
  sitedir = $(DESTDIR)/usr/local/lib/site_ruby
37
37
  rubyarchdir = $(rubyarchprefix)/$(ruby_version)
38
38
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -1,11 +1,10 @@
1
1
  # frozen_string_literal: true
2
- require 'etc'
3
-
4
2
  module Parallel
5
3
  # TODO: inline this method into parallel.rb and kill physical_processor_count in next major release
6
4
  module ProcessorCount
7
5
  # Number of processors seen by the OS, used for process scheduling
8
6
  def processor_count
7
+ require 'etc'
9
8
  @processor_count ||= Integer(ENV['PARALLEL_PROCESSOR_COUNT'] || Etc.nprocessors)
10
9
  end
11
10
 
@@ -19,7 +18,7 @@ module Parallel
19
18
  when /linux/
20
19
  cores = {} # unique physical ID / core ID combinations
21
20
  phy = 0
22
- IO.read("/proc/cpuinfo").scan(/^physical id.*|^core id.*/) do |ln|
21
+ File.read("/proc/cpuinfo").scan(/^physical id.*|^core id.*/) do |ln|
23
22
  if ln.start_with?("physical")
24
23
  phy = ln[/\d+/]
25
24
  elsif ln.start_with?("core")
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+ module Parallel
3
+ VERSION = Version = '1.22.1' # rubocop:disable Naming/ConstantName
4
+ end
@@ -264,6 +264,9 @@ module Parallel
264
264
  elsif options[:in_threads]
265
265
  method = :in_threads
266
266
  size = options[method]
267
+ elsif options[:in_ractors]
268
+ method = :in_ractors
269
+ size = options[method]
267
270
  else
268
271
  method = :in_processes
269
272
  if Process.respond_to?(:fork)
@@ -285,6 +288,8 @@ module Parallel
285
288
  work_direct(job_factory, options, &block)
286
289
  elsif method == :in_threads
287
290
  work_in_threads(job_factory, options.merge(count: size), &block)
291
+ elsif method == :in_ractors
292
+ work_in_ractors(job_factory, options.merge(count: size), &block)
288
293
  else
289
294
  work_in_processes(job_factory, options.merge(count: size), &block)
290
295
  end
@@ -382,6 +387,72 @@ module Parallel
382
387
  exception || results
383
388
  end
384
389
 
390
+ def work_in_ractors(job_factory, options)
391
+ exception = nil
392
+ results = []
393
+ results_mutex = Mutex.new # arrays are not thread-safe on jRuby
394
+
395
+ callback = options[:ractor]
396
+ if block_given? || !callback
397
+ raise ArgumentError, "pass the code you want to execute as `ractor: [ClassName, :method_name]`"
398
+ end
399
+
400
+ # build
401
+ ractors = Array.new(options.fetch(:count)) do
402
+ Ractor.new do
403
+ loop do
404
+ got = receive
405
+ (klass, method_name), item, index = got
406
+ break if index == :break
407
+ begin
408
+ Ractor.yield [nil, klass.send(method_name, item), item, index]
409
+ rescue StandardError => e
410
+ Ractor.yield [e, nil, item, index]
411
+ end
412
+ end
413
+ end
414
+ end
415
+
416
+ # start
417
+ ractors.dup.each do |ractor|
418
+ if set = job_factory.next
419
+ item, index = set
420
+ instrument_start item, index, options
421
+ ractor.send [callback, item, index]
422
+ else
423
+ ractor.send([[nil, nil], nil, :break]) # stop the ractor
424
+ ractors.delete ractor
425
+ end
426
+ end
427
+
428
+ # replace with new items
429
+ while set = job_factory.next
430
+ item_next, index_next = set
431
+ done, (exception, result, item, index) = Ractor.select(*ractors)
432
+ if exception
433
+ ractors.delete done
434
+ break
435
+ end
436
+ instrument_finish item, index, result, options
437
+ results_mutex.synchronize { results[index] = (options[:preserve_results] == false ? nil : result) }
438
+
439
+ instrument_start item_next, index_next, options
440
+ done.send([callback, item_next, index_next])
441
+ end
442
+
443
+ # finish
444
+ ractors.each do |ractor|
445
+ (new_exception, result, item, index) = ractor.take
446
+ exception ||= new_exception
447
+ next if new_exception
448
+ instrument_finish item, index, result, options
449
+ results_mutex.synchronize { results[index] = (options[:preserve_results] == false ? nil : result) }
450
+ ractor.send([[nil, nil], nil, :break]) # stop the ractor
451
+ end
452
+
453
+ exception || results
454
+ end
455
+
385
456
  def work_in_processes(job_factory, options, &blk)
386
457
  workers = create_workers(job_factory, options, &blk)
387
458
  results = []
@@ -426,6 +497,7 @@ module Parallel
426
497
  end
427
498
  end
428
499
  end
500
+
429
501
  exception || results
430
502
  end
431
503
 
@@ -521,12 +593,20 @@ module Parallel
521
593
  end
522
594
 
523
595
  def with_instrumentation(item, index, options)
524
- on_start = options[:start]
525
- on_finish = options[:finish]
526
- options[:mutex].synchronize { on_start.call(item, index) } if on_start
596
+ instrument_start(item, index, options)
527
597
  result = yield
528
- options[:mutex].synchronize { on_finish.call(item, index, result) } if on_finish
598
+ instrument_finish(item, index, result, options)
529
599
  result unless options[:preserve_results] == false
530
600
  end
601
+
602
+ def instrument_finish(item, index, result, options)
603
+ return unless on_finish = options[:finish]
604
+ options[:mutex].synchronize { on_finish.call(item, index, result) }
605
+ end
606
+
607
+ def instrument_start(item, index, options)
608
+ return unless on_start = options[:start]
609
+ options[:mutex].synchronize { on_start.call(item, index) }
610
+ end
531
611
  end
532
612
  end
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
31
  vendorarchdir = $(rubysitearchprefix)/vendor_ruby/$(ruby_version)
32
32
  vendorlibdir = $(vendordir)/$(ruby_version)
33
33
  vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(DESTDIR)./.gem.20220224-3620-1o05ev8
35
- sitelibdir = $(DESTDIR)./.gem.20220224-3620-1o05ev8
34
+ sitearchdir = $(DESTDIR)./.gem.20220406-3650-k9wcr7
35
+ sitelibdir = $(DESTDIR)./.gem.20220406-3650-k9wcr7
36
36
  sitedir = $(DESTDIR)/usr/local/lib/site_ruby
37
37
  rubyarchdir = $(rubyarchprefix)/$(ruby_version)
38
38
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -1,5 +1,14 @@
1
1
  ### Development
2
- [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.0...3-11-maintenance)
2
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.1...3-11-maintenance)
3
+
4
+ ### 3.11.1 / 2022-03-31
5
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.11.0...v3.11.1)
6
+
7
+ Bug Fixes:
8
+
9
+ * Add extra `ruby2_keywords` calls to properly designate methods using
10
+ `*args` to pass keyword around, fixes an issue with TruffleRuby.
11
+ (Benoit Daloze, #1464)
3
12
 
4
13
  ### 3.11.0 / 2022-02-09
5
14
  [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.10.3...v3.11.0)
@@ -46,7 +46,7 @@ module RSpec
46
46
  @expected_args = expected_args
47
47
  ensure_expected_args_valid!
48
48
  end
49
- ruby2_keywords :initialize if Module.private_method_defined?(:ruby2_keywords)
49
+ ruby2_keywords :initialize if respond_to?(:ruby2_keywords, true)
50
50
 
51
51
  # @api public
52
52
  # @param [Array] actual_args
@@ -71,6 +71,7 @@ module RSpec
71
71
 
72
72
  Support::FuzzyMatcher.values_match?(expected_args, actual_args)
73
73
  end
74
+ ruby2_keywords :args_match? if respond_to?(:ruby2_keywords, true)
74
75
 
75
76
  # @private
76
77
  # Resolves abstract arg placeholders like `no_args` and `any_args` into
@@ -62,7 +62,7 @@ module RSpec
62
62
  @recorded_customizations << ExpectationCustomization.new(method, args, block)
63
63
  self
64
64
  end
65
- ruby2_keywords(method) if Module.private_method_defined?(:ruby2_keywords)
65
+ ruby2_keywords(method) if respond_to?(:ruby2_keywords, true)
66
66
  end
67
67
 
68
68
  private
@@ -139,9 +139,12 @@ module RSpec
139
139
  # counter.increment
140
140
  # expect(counter.count).to eq(original_count + 1)
141
141
  def and_call_original
142
- wrap_original(__method__) do |original, *args, &block|
143
- original.call(*args, &block)
142
+ block = lambda do |original, *args, &b|
143
+ original.call(*args, &b)
144
144
  end
145
+ block = block.ruby2_keywords if block.respond_to?(:ruby2_keywords)
146
+
147
+ wrap_original(__method__, &block)
145
148
  end
146
149
 
147
150
  # Decorates the stubbed method with the supplied block. The original
@@ -364,7 +367,7 @@ module RSpec
364
367
  @argument_list_matcher = ArgumentListMatcher.new(*args)
365
368
  self
366
369
  end
367
- ruby2_keywords(:with) if Module.private_method_defined?(:ruby2_keywords)
370
+ ruby2_keywords(:with) if respond_to?(:ruby2_keywords, true)
368
371
 
369
372
  # Expect messages to be received in a specific order.
370
373
  #
@@ -461,18 +464,22 @@ module RSpec
461
464
  def matches?(message, *args)
462
465
  @message == message && @argument_list_matcher.args_match?(*args)
463
466
  end
467
+ ruby2_keywords :matches? if respond_to?(:ruby2_keywords, true)
464
468
 
465
469
  def safe_invoke(parent_stub, *args, &block)
466
470
  invoke_incrementing_actual_calls_by(1, false, parent_stub, *args, &block)
467
471
  end
472
+ ruby2_keywords :safe_invoke if respond_to?(:ruby2_keywords, true)
468
473
 
469
474
  def invoke(parent_stub, *args, &block)
470
475
  invoke_incrementing_actual_calls_by(1, true, parent_stub, *args, &block)
471
476
  end
477
+ ruby2_keywords :invoke if respond_to?(:ruby2_keywords, true)
472
478
 
473
479
  def invoke_without_incrementing_received_count(parent_stub, *args, &block)
474
480
  invoke_incrementing_actual_calls_by(0, true, parent_stub, *args, &block)
475
481
  end
482
+ ruby2_keywords :invoke_without_incrementing_received_count if respond_to?(:ruby2_keywords, true)
476
483
 
477
484
  def negative?
478
485
  @expected_received_count == 0 && !@at_least
@@ -621,6 +628,7 @@ module RSpec
621
628
  @actual_received_count += increment
622
629
  end
623
630
  end
631
+ ruby2_keywords :invoke_incrementing_actual_calls_by if respond_to?(:ruby2_keywords, true)
624
632
 
625
633
  def has_been_invoked?
626
634
  @actual_received_count > 0
@@ -755,6 +763,7 @@ module RSpec
755
763
  action.call(*args, &block)
756
764
  end.last
757
765
  end
766
+ ruby2_keywords :call if respond_to?(:ruby2_keywords, true)
758
767
 
759
768
  def present?
760
769
  actions.any?
@@ -800,6 +809,7 @@ module RSpec
800
809
  def call(*args, &block)
801
810
  @block.call(@method, *args, &block)
802
811
  end
812
+ ruby2_keywords :call if respond_to?(:ruby2_keywords, true)
803
813
 
804
814
  private
805
815
 
@@ -63,6 +63,8 @@ module RSpec
63
63
  define_method(method_name) do |*args, &block|
64
64
  method_double.proxy_method_invoked(self, *args, &block)
65
65
  end
66
+ # This can't be `if respond_to?(:ruby2_keywords, true)`,
67
+ # see https://github.com/rspec/rspec-mocks/pull/1385#issuecomment-755340298
66
68
  ruby2_keywords(method_name) if Module.private_method_defined?(:ruby2_keywords)
67
69
  __send__(visibility, method_name)
68
70
  end
@@ -77,6 +79,7 @@ module RSpec
77
79
  def proxy_method_invoked(_obj, *args, &block)
78
80
  @proxy.message_received method_name, *args, &block
79
81
  end
82
+ ruby2_keywords :proxy_method_invoked if respond_to?(:ruby2_keywords, true)
80
83
 
81
84
  # @private
82
85
  def restore_original_method
@@ -230,6 +230,7 @@ module RSpec
230
230
  @object.__send__(:method_missing, message, *args, &block)
231
231
  end
232
232
  end
233
+ ruby2_keywords :message_received if respond_to?(:ruby2_keywords, true)
233
234
 
234
235
  # @private
235
236
  def raise_unexpected_message_error(method_name, args)
@@ -279,12 +280,14 @@ module RSpec
279
280
  expectation.matches?(method_name, *args)
280
281
  end
281
282
  end
283
+ ruby2_keywords :find_matching_expectation if respond_to?(:ruby2_keywords, true)
282
284
 
283
285
  def find_almost_matching_expectation(method_name, *args)
284
286
  find_best_matching_expectation_for(method_name) do |expectation|
285
287
  expectation.matches_name_but_not_args(method_name, *args)
286
288
  end
287
289
  end
290
+ ruby2_keywords :find_almost_matching_expectation if respond_to?(:ruby2_keywords, true)
288
291
 
289
292
  def find_best_matching_expectation_for(method_name)
290
293
  first_match = nil
@@ -301,10 +304,12 @@ module RSpec
301
304
  def find_matching_method_stub(method_name, *args)
302
305
  method_double_for(method_name).stubs.find { |stub| stub.matches?(method_name, *args) }
303
306
  end
307
+ ruby2_keywords :find_matching_method_stub if respond_to?(:ruby2_keywords, true)
304
308
 
305
309
  def find_almost_matching_stub(method_name, *args)
306
310
  method_double_for(method_name).stubs.find { |stub| stub.matches_name_but_not_args(method_name, *args) }
307
311
  end
312
+ ruby2_keywords :find_almost_matching_stub if respond_to?(:ruby2_keywords, true)
308
313
  end
309
314
 
310
315
  # @private
@@ -360,6 +365,7 @@ module RSpec
360
365
  end
361
366
  super
362
367
  end
368
+ ruby2_keywords :message_received if respond_to?(:ruby2_keywords, true)
363
369
 
364
370
  private
365
371
 
@@ -3,7 +3,7 @@ module RSpec
3
3
  # Version information for RSpec mocks.
4
4
  module Version
5
5
  # Version of RSpec mocks currently in use in SemVer format.
6
- STRING = '3.11.0'
6
+ STRING = '3.11.1'
7
7
  end
8
8
  end
9
9
  end
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
31
  vendorarchdir = $(rubysitearchprefix)/vendor_ruby/$(ruby_version)
32
32
  vendorlibdir = $(vendordir)/$(ruby_version)
33
33
  vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(DESTDIR)./.gem.20220224-3620-1knq78k
35
- sitelibdir = $(DESTDIR)./.gem.20220224-3620-1knq78k
34
+ sitearchdir = $(DESTDIR)./.gem.20220406-3650-ugq80x
35
+ sitelibdir = $(DESTDIR)./.gem.20220406-3650-ugq80x
36
36
  sitedir = $(DESTDIR)/usr/local/lib/site_ruby
37
37
  rubyarchdir = $(rubyarchprefix)/$(ruby_version)
38
38
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -1,15 +1,15 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: parallel 1.21.0 ruby lib
2
+ # stub: parallel 1.22.1 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "parallel".freeze
6
- s.version = "1.21.0"
6
+ s.version = "1.22.1"
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.21.0/Readme.md", "source_code_uri" => "https://github.com/grosser/parallel/tree/v1.21.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.22.1/Readme.md", "source_code_uri" => "https://github.com/grosser/parallel/tree/v1.22.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 = "2021-09-13"
12
+ s.date = "2022-03-25"
13
13
  s.email = "michael@grosser.it".freeze
14
14
  s.homepage = "https://github.com/grosser/parallel".freeze
15
15
  s.licenses = ["MIT".freeze]
@@ -1,16 +1,16 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: rspec-mocks 3.11.0 ruby lib
2
+ # stub: rspec-mocks 3.11.1 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "rspec-mocks".freeze
6
- s.version = "3.11.0"
6
+ s.version = "3.11.1"
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/rspec/rspec-mocks/issues", "changelog_uri" => "https://github.com/rspec/rspec-mocks/blob/v3.11.0/Changelog.md", "documentation_uri" => "https://rspec.info/documentation/", "mailing_list_uri" => "https://groups.google.com/forum/#!forum/rspec", "source_code_uri" => "https://github.com/rspec/rspec-mocks" } if s.respond_to? :metadata=
9
+ s.metadata = { "bug_tracker_uri" => "https://github.com/rspec/rspec-mocks/issues", "changelog_uri" => "https://github.com/rspec/rspec-mocks/blob/v3.11.1/Changelog.md", "documentation_uri" => "https://rspec.info/documentation/", "mailing_list_uri" => "https://groups.google.com/forum/#!forum/rspec", "source_code_uri" => "https://github.com/rspec/rspec-mocks" } if s.respond_to? :metadata=
10
10
  s.require_paths = ["lib".freeze]
11
11
  s.authors = ["Steven Baker".freeze, "David Chelimsky".freeze, "Myron Marston".freeze]
12
12
  s.cert_chain = ["-----BEGIN CERTIFICATE-----\nMIIF1TCCA72gAwIBAgIJAPXjfUbCjdXUMA0GCSqGSIb3DQEBBQUAMIGAMQswCQYD\nVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEO\nMAwGA1UECgwFUlNwZWMxEzARBgNVBAMMCnJzcGVjLmluZm8xJTAjBgkqhkiG9w0B\nCQEWFnJzcGVjQGdvb2dsZWdyb3Vwcy5jb20wHhcNMTQxMjIzMDkzNTIyWhcNMjQx\nMjIyMDkzNTIyWjCBgDELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24x\nEDAOBgNVBAcMB1NlYXR0bGUxDjAMBgNVBAoMBVJTcGVjMRMwEQYDVQQDDApyc3Bl\nYy5pbmZvMSUwIwYJKoZIhvcNAQkBFhZyc3BlY0Bnb29nbGVncm91cHMuY29tMIIC\nIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAsSmjgcHaKlD0jizRJowi2bGI\nKMOHnJoExxRNHHxH+3w9kkl95YldvDRVX495b13ZCzwRe0AyqX24wq04tp0G5Z5C\ne/w2pnNK4ol1eECPwQu+YGpepeODlZICL5gwQspe0cDifbBnHx5QySMiPpvx6bC0\ntQTox0ppDIaMhch8IPCwyoE4DQK5bpsdwnLSHTsQjUIb7IM8tUMpd/iKrJgNffwc\n6gC1TmhIlzQoB26nCNh9uK7xZjUM+sGECzvcYuImchUaIgJA/ybrlZS+m/hxzvBo\nmLnn/xNEC6Vz5HG+3TR0Gb0cSUf6XUu2s51Jk/SJi3MhCZp2gs9OUg4EVZNzQVkZ\nefLBjAZG2Mxk14JyB4/Omc+Jk0ajprINCBbUNnxzCJrYDM3J9TVWIwyUGNX/U3MO\ns3tMAT+EVgx/mZMPnBO8EULlyF51MRUp3Wy9Mnw8AYLk30UnMG5AjqgO5JNyFlA7\nXeh3EVdWY3vMB1pkhPwlsenpcmj5gOzrd54lELOVbCGHCf48iSqeflY2Lhe0pvzK\nblXCJBDmtrebvus291rM/dHcbEfK1SVd5Wut/n131iouf6dnNCFskFygDcgBbthC\ngpEMqf80lEmhX59VUsm0Pv6OEo+ZPHBvXPiJA6DShQh9t3YtpwyA8uVDMbT/i32u\n2FUsqZbbJcCmkBrGposCAwEAAaNQME4wHQYDVR0OBBYEFPPvQ5XT0Nvuhi6k+hrW\nVv35J+TeMB8GA1UdIwQYMBaAFPPvQ5XT0Nvuhi6k+hrWVv35J+TeMAwGA1UdEwQF\nMAMBAf8wDQYJKoZIhvcNAQEFBQADggIBAIqbQSWH2aAF537DKwAMB8nMFsoe24MD\ngtuQAyjTtbH+QBE4N2RdQF/sU7Y3PYR7nqdrCsYc3RxyqM5XXi7I3IYdpfe1RuxY\n+pyPzVQsPPDhMlJlCrwJsADnxlpxZlAgxYSLKOan55ihscaAWA90wqRUrf/ZJM36\n8LWCPVn5teIt5aaxZWX68RMxa+AXvpbtJOBwXLkIFk3apD8CX4DhelIdw67DbkUe\nghUd/u62qrnqBTVgditt7OoWIZjzh24/Fda5d0MxZyvLILGOrf5bN4cTbe/q9Cid\nXrik7Upm+mu3y3yQIfrw85xybHq6iNXyYHvCdSrFfCIKrGpd/0CAdmYnJlx59Fk/\nUbD3Eyx4psBSkU+WKO0Uf+3zNI7N/nVeNIwU/Ft+l8l7/K+427656c+ZGWDO0Gt/\nBeEOSTDKP7qQ1T+JvMrBcBQo+i0cnRT10J1aoV90BhxsvWTRizIbugbaqR6Tq3bj\nAkt00cIlNSplL6DenIAKSh5kF7s0tRD0tC3bNkZmNjNGkdoGEcUODEpTB3RHKKiu\ne6k2Jg6m00z5vGFQhOnROG/QaUzMA3A3mFBe1RHFo07xd0pFeoeWL3vF69Gx9Jwp\nZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ\nF3MdtaDehhjC\n-----END CERTIFICATE-----\n".freeze]
13
- s.date = "2022-02-09"
13
+ s.date = "2022-03-31"
14
14
  s.description = "RSpec's 'test double' framework, with support for stubbing and mocking".freeze
15
15
  s.email = "rspec@googlegroups.com".freeze
16
16
  s.homepage = "https://github.com/rspec/rspec-mocks".freeze
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.rdoc_options = ["--charset=UTF-8".freeze]
19
19
  s.required_ruby_version = Gem::Requirement.new(">= 1.8.7".freeze)
20
20
  s.rubygems_version = "2.7.6.2".freeze
21
- s.summary = "rspec-mocks-3.11.0".freeze
21
+ s.summary = "rspec-mocks-3.11.1".freeze
22
22
 
23
23
  s.installed_by_version = "2.7.6.2" if s.respond_to? :installed_by_version
24
24