ory-client 0.0.1.alpha139 → 0.0.1.alpha142

Sign up to get free protection for your applications and to get access to all the features.
Files changed (281) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +5 -5
  4. data/docs/UiNodeImageAttributes.md +2 -2
  5. data/lib/ory-client/api/metadata_api.rb +1 -1
  6. data/lib/ory-client/api/v0alpha2_api.rb +1 -1
  7. data/lib/ory-client/api_client.rb +1 -1
  8. data/lib/ory-client/api_error.rb +1 -1
  9. data/lib/ory-client/configuration.rb +1 -1
  10. data/lib/ory-client/models/active_project.rb +1 -1
  11. data/lib/ory-client/models/admin_create_identity_body.rb +1 -1
  12. data/lib/ory-client/models/admin_create_identity_import_credentials_oidc.rb +1 -1
  13. data/lib/ory-client/models/admin_create_identity_import_credentials_oidc_config.rb +1 -1
  14. data/lib/ory-client/models/admin_create_identity_import_credentials_oidc_provider.rb +1 -1
  15. data/lib/ory-client/models/admin_create_identity_import_credentials_password.rb +1 -1
  16. data/lib/ory-client/models/admin_create_identity_import_credentials_password_config.rb +1 -1
  17. data/lib/ory-client/models/admin_create_self_service_recovery_link_body.rb +1 -1
  18. data/lib/ory-client/models/admin_identity_import_credentials.rb +1 -1
  19. data/lib/ory-client/models/admin_update_identity_body.rb +1 -1
  20. data/lib/ory-client/models/api_token.rb +1 -1
  21. data/lib/ory-client/models/authenticator_assurance_level.rb +1 -1
  22. data/lib/ory-client/models/cloud_account.rb +1 -1
  23. data/lib/ory-client/models/cname_settings.rb +1 -1
  24. data/lib/ory-client/models/create_custom_hostname_body.rb +1 -1
  25. data/lib/ory-client/models/create_project_body.rb +1 -1
  26. data/lib/ory-client/models/create_subscription_payload.rb +1 -1
  27. data/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb +1 -1
  28. data/lib/ory-client/models/generic_error.rb +1 -1
  29. data/lib/ory-client/models/generic_error_content.rb +1 -1
  30. data/lib/ory-client/models/health_not_ready_status.rb +1 -1
  31. data/lib/ory-client/models/health_status.rb +1 -1
  32. data/lib/ory-client/models/identity.rb +1 -1
  33. data/lib/ory-client/models/identity_credentials.rb +1 -1
  34. data/lib/ory-client/models/identity_credentials_oidc.rb +1 -1
  35. data/lib/ory-client/models/identity_credentials_oidc_provider.rb +1 -1
  36. data/lib/ory-client/models/identity_credentials_password.rb +1 -1
  37. data/lib/ory-client/models/identity_credentials_type.rb +1 -1
  38. data/lib/ory-client/models/identity_schema.rb +1 -1
  39. data/lib/ory-client/models/identity_schema_location.rb +1 -1
  40. data/lib/ory-client/models/identity_schema_preset.rb +1 -1
  41. data/lib/ory-client/models/identity_schema_validation_result.rb +1 -1
  42. data/lib/ory-client/models/identity_state.rb +1 -1
  43. data/lib/ory-client/models/inline_response200.rb +1 -1
  44. data/lib/ory-client/models/inline_response2001.rb +1 -1
  45. data/lib/ory-client/models/inline_response503.rb +1 -1
  46. data/lib/ory-client/models/invite_payload.rb +1 -1
  47. data/lib/ory-client/models/is_owner_for_project_by_slug.rb +1 -1
  48. data/lib/ory-client/models/is_owner_for_project_by_slug_payload.rb +1 -1
  49. data/lib/ory-client/models/json_error.rb +1 -1
  50. data/lib/ory-client/models/json_patch.rb +1 -1
  51. data/lib/ory-client/models/needs_privileged_session_error.rb +1 -1
  52. data/lib/ory-client/models/normalized_project.rb +1 -1
  53. data/lib/ory-client/models/normalized_project_revision.rb +1 -1
  54. data/lib/ory-client/models/normalized_project_revision_hook.rb +1 -1
  55. data/lib/ory-client/models/normalized_project_revision_identity_schema.rb +1 -1
  56. data/lib/ory-client/models/normalized_project_revision_third_party_provider.rb +1 -1
  57. data/lib/ory-client/models/null_plan.rb +1 -1
  58. data/lib/ory-client/models/pagination.rb +1 -1
  59. data/lib/ory-client/models/project.rb +1 -1
  60. data/lib/ory-client/models/project_host.rb +1 -1
  61. data/lib/ory-client/models/project_invite.rb +1 -1
  62. data/lib/ory-client/models/project_metadata.rb +1 -1
  63. data/lib/ory-client/models/project_service_identity.rb +1 -1
  64. data/lib/ory-client/models/project_services.rb +1 -1
  65. data/lib/ory-client/models/project_slug.rb +1 -1
  66. data/lib/ory-client/models/provision_mock_subscription_payload.rb +1 -1
  67. data/lib/ory-client/models/quota_project_member_seats.rb +1 -1
  68. data/lib/ory-client/models/recovery_address.rb +1 -1
  69. data/lib/ory-client/models/revoked_sessions.rb +1 -1
  70. data/lib/ory-client/models/schema_patch.rb +1 -1
  71. data/lib/ory-client/models/self_service_browser_location_change_required_error.rb +1 -1
  72. data/lib/ory-client/models/self_service_error.rb +1 -1
  73. data/lib/ory-client/models/self_service_flow_expired_error.rb +1 -1
  74. data/lib/ory-client/models/self_service_login_flow.rb +1 -1
  75. data/lib/ory-client/models/self_service_logout_url.rb +1 -1
  76. data/lib/ory-client/models/self_service_recovery_flow.rb +1 -1
  77. data/lib/ory-client/models/self_service_recovery_flow_state.rb +1 -1
  78. data/lib/ory-client/models/self_service_recovery_link.rb +1 -1
  79. data/lib/ory-client/models/self_service_registration_flow.rb +1 -1
  80. data/lib/ory-client/models/self_service_settings_flow.rb +1 -1
  81. data/lib/ory-client/models/self_service_settings_flow_state.rb +1 -1
  82. data/lib/ory-client/models/self_service_verification_flow.rb +1 -1
  83. data/lib/ory-client/models/self_service_verification_flow_state.rb +1 -1
  84. data/lib/ory-client/models/session.rb +1 -1
  85. data/lib/ory-client/models/session_authentication_method.rb +1 -1
  86. data/lib/ory-client/models/session_device.rb +1 -1
  87. data/lib/ory-client/models/settings_profile_form_config.rb +1 -1
  88. data/lib/ory-client/models/stripe_customer_response.rb +1 -1
  89. data/lib/ory-client/models/submit_self_service_flow_with_web_authn_registration_method.rb +1 -1
  90. data/lib/ory-client/models/submit_self_service_login_flow_body.rb +1 -1
  91. data/lib/ory-client/models/submit_self_service_login_flow_with_lookup_secret_method_body.rb +1 -1
  92. data/lib/ory-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +1 -1
  93. data/lib/ory-client/models/submit_self_service_login_flow_with_password_method_body.rb +1 -1
  94. data/lib/ory-client/models/submit_self_service_login_flow_with_totp_method_body.rb +1 -1
  95. data/lib/ory-client/models/submit_self_service_login_flow_with_web_authn_method_body.rb +1 -1
  96. data/lib/ory-client/models/submit_self_service_logout_flow_without_browser_body.rb +1 -1
  97. data/lib/ory-client/models/submit_self_service_recovery_flow_body.rb +1 -1
  98. data/lib/ory-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +1 -1
  99. data/lib/ory-client/models/submit_self_service_registration_flow_body.rb +1 -1
  100. data/lib/ory-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +1 -1
  101. data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method_body.rb +1 -1
  102. data/lib/ory-client/models/submit_self_service_registration_flow_with_web_authn_method_body.rb +1 -1
  103. data/lib/ory-client/models/submit_self_service_settings_flow_body.rb +1 -1
  104. data/lib/ory-client/models/submit_self_service_settings_flow_with_lookup_method_body.rb +1 -1
  105. data/lib/ory-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +1 -1
  106. data/lib/ory-client/models/submit_self_service_settings_flow_with_password_method_body.rb +1 -1
  107. data/lib/ory-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +1 -1
  108. data/lib/ory-client/models/submit_self_service_settings_flow_with_totp_method_body.rb +1 -1
  109. data/lib/ory-client/models/submit_self_service_settings_flow_with_web_authn_method_body.rb +1 -1
  110. data/lib/ory-client/models/submit_self_service_verification_flow_body.rb +1 -1
  111. data/lib/ory-client/models/submit_self_service_verification_flow_with_link_method_body.rb +1 -1
  112. data/lib/ory-client/models/subscription.rb +1 -1
  113. data/lib/ory-client/models/successful_project_update.rb +1 -1
  114. data/lib/ory-client/models/successful_self_service_login_without_browser.rb +1 -1
  115. data/lib/ory-client/models/successful_self_service_registration_without_browser.rb +1 -1
  116. data/lib/ory-client/models/ui_container.rb +1 -1
  117. data/lib/ory-client/models/ui_node.rb +1 -1
  118. data/lib/ory-client/models/ui_node_anchor_attributes.rb +1 -1
  119. data/lib/ory-client/models/ui_node_attributes.rb +1 -1
  120. data/lib/ory-client/models/ui_node_image_attributes.rb +11 -1
  121. data/lib/ory-client/models/ui_node_input_attributes.rb +1 -1
  122. data/lib/ory-client/models/ui_node_meta.rb +1 -1
  123. data/lib/ory-client/models/ui_node_script_attributes.rb +1 -1
  124. data/lib/ory-client/models/ui_node_text_attributes.rb +1 -1
  125. data/lib/ory-client/models/ui_text.rb +1 -1
  126. data/lib/ory-client/models/update_custom_hostname_body.rb +1 -1
  127. data/lib/ory-client/models/update_project.rb +1 -1
  128. data/lib/ory-client/models/update_subscription_payload.rb +1 -1
  129. data/lib/ory-client/models/verifiable_identity_address.rb +1 -1
  130. data/lib/ory-client/models/version.rb +1 -1
  131. data/lib/ory-client/models/warning.rb +1 -1
  132. data/lib/ory-client/version.rb +2 -2
  133. data/lib/ory-client.rb +1 -1
  134. data/ory-client.gemspec +1 -1
  135. data/spec/api/metadata_api_spec.rb +1 -1
  136. data/spec/api/v0alpha2_api_spec.rb +1 -1
  137. data/spec/api_client_spec.rb +1 -1
  138. data/spec/configuration_spec.rb +1 -1
  139. data/spec/models/active_project_spec.rb +1 -1
  140. data/spec/models/admin_create_identity_body_spec.rb +1 -1
  141. data/spec/models/admin_create_identity_import_credentials_oidc_config_spec.rb +1 -1
  142. data/spec/models/admin_create_identity_import_credentials_oidc_provider_spec.rb +1 -1
  143. data/spec/models/admin_create_identity_import_credentials_oidc_spec.rb +1 -1
  144. data/spec/models/admin_create_identity_import_credentials_password_config_spec.rb +1 -1
  145. data/spec/models/admin_create_identity_import_credentials_password_spec.rb +1 -1
  146. data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +1 -1
  147. data/spec/models/admin_identity_import_credentials_spec.rb +1 -1
  148. data/spec/models/admin_update_identity_body_spec.rb +1 -1
  149. data/spec/models/api_token_spec.rb +1 -1
  150. data/spec/models/authenticator_assurance_level_spec.rb +1 -1
  151. data/spec/models/cloud_account_spec.rb +1 -1
  152. data/spec/models/cname_settings_spec.rb +1 -1
  153. data/spec/models/create_custom_hostname_body_spec.rb +1 -1
  154. data/spec/models/create_project_body_spec.rb +1 -1
  155. data/spec/models/create_subscription_payload_spec.rb +1 -1
  156. data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +1 -1
  157. data/spec/models/generic_error_content_spec.rb +1 -1
  158. data/spec/models/generic_error_spec.rb +1 -1
  159. data/spec/models/health_not_ready_status_spec.rb +1 -1
  160. data/spec/models/health_status_spec.rb +1 -1
  161. data/spec/models/identity_credentials_oidc_provider_spec.rb +1 -1
  162. data/spec/models/identity_credentials_oidc_spec.rb +1 -1
  163. data/spec/models/identity_credentials_password_spec.rb +1 -1
  164. data/spec/models/identity_credentials_spec.rb +1 -1
  165. data/spec/models/identity_credentials_type_spec.rb +1 -1
  166. data/spec/models/identity_schema_location_spec.rb +1 -1
  167. data/spec/models/identity_schema_preset_spec.rb +1 -1
  168. data/spec/models/identity_schema_spec.rb +1 -1
  169. data/spec/models/identity_schema_validation_result_spec.rb +1 -1
  170. data/spec/models/identity_spec.rb +1 -1
  171. data/spec/models/identity_state_spec.rb +1 -1
  172. data/spec/models/inline_response2001_spec.rb +1 -1
  173. data/spec/models/inline_response200_spec.rb +1 -1
  174. data/spec/models/inline_response503_spec.rb +1 -1
  175. data/spec/models/invite_payload_spec.rb +1 -1
  176. data/spec/models/is_owner_for_project_by_slug_payload_spec.rb +1 -1
  177. data/spec/models/is_owner_for_project_by_slug_spec.rb +1 -1
  178. data/spec/models/json_error_spec.rb +1 -1
  179. data/spec/models/json_patch_spec.rb +1 -1
  180. data/spec/models/needs_privileged_session_error_spec.rb +1 -1
  181. data/spec/models/normalized_project_revision_hook_spec.rb +1 -1
  182. data/spec/models/normalized_project_revision_identity_schema_spec.rb +1 -1
  183. data/spec/models/normalized_project_revision_spec.rb +1 -1
  184. data/spec/models/normalized_project_revision_third_party_provider_spec.rb +1 -1
  185. data/spec/models/normalized_project_spec.rb +1 -1
  186. data/spec/models/null_plan_spec.rb +1 -1
  187. data/spec/models/pagination_spec.rb +1 -1
  188. data/spec/models/project_host_spec.rb +1 -1
  189. data/spec/models/project_invite_spec.rb +1 -1
  190. data/spec/models/project_metadata_spec.rb +1 -1
  191. data/spec/models/project_service_identity_spec.rb +1 -1
  192. data/spec/models/project_services_spec.rb +1 -1
  193. data/spec/models/project_slug_spec.rb +1 -1
  194. data/spec/models/project_spec.rb +1 -1
  195. data/spec/models/provision_mock_subscription_payload_spec.rb +1 -1
  196. data/spec/models/quota_project_member_seats_spec.rb +1 -1
  197. data/spec/models/recovery_address_spec.rb +1 -1
  198. data/spec/models/revoked_sessions_spec.rb +1 -1
  199. data/spec/models/schema_patch_spec.rb +1 -1
  200. data/spec/models/self_service_browser_location_change_required_error_spec.rb +1 -1
  201. data/spec/models/self_service_error_spec.rb +1 -1
  202. data/spec/models/self_service_flow_expired_error_spec.rb +1 -1
  203. data/spec/models/self_service_login_flow_spec.rb +1 -1
  204. data/spec/models/self_service_logout_url_spec.rb +1 -1
  205. data/spec/models/self_service_recovery_flow_spec.rb +1 -1
  206. data/spec/models/self_service_recovery_flow_state_spec.rb +1 -1
  207. data/spec/models/self_service_recovery_link_spec.rb +1 -1
  208. data/spec/models/self_service_registration_flow_spec.rb +1 -1
  209. data/spec/models/self_service_settings_flow_spec.rb +1 -1
  210. data/spec/models/self_service_settings_flow_state_spec.rb +1 -1
  211. data/spec/models/self_service_verification_flow_spec.rb +1 -1
  212. data/spec/models/self_service_verification_flow_state_spec.rb +1 -1
  213. data/spec/models/session_authentication_method_spec.rb +1 -1
  214. data/spec/models/session_device_spec.rb +1 -1
  215. data/spec/models/session_spec.rb +1 -1
  216. data/spec/models/settings_profile_form_config_spec.rb +1 -1
  217. data/spec/models/stripe_customer_response_spec.rb +1 -1
  218. data/spec/models/submit_self_service_flow_with_web_authn_registration_method_spec.rb +1 -1
  219. data/spec/models/submit_self_service_login_flow_body_spec.rb +1 -1
  220. data/spec/models/submit_self_service_login_flow_with_lookup_secret_method_body_spec.rb +1 -1
  221. data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +1 -1
  222. data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +1 -1
  223. data/spec/models/submit_self_service_login_flow_with_totp_method_body_spec.rb +1 -1
  224. data/spec/models/submit_self_service_login_flow_with_web_authn_method_body_spec.rb +1 -1
  225. data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +1 -1
  226. data/spec/models/submit_self_service_recovery_flow_body_spec.rb +1 -1
  227. data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +1 -1
  228. data/spec/models/submit_self_service_registration_flow_body_spec.rb +1 -1
  229. data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +1 -1
  230. data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +1 -1
  231. data/spec/models/submit_self_service_registration_flow_with_web_authn_method_body_spec.rb +1 -1
  232. data/spec/models/submit_self_service_settings_flow_body_spec.rb +1 -1
  233. data/spec/models/submit_self_service_settings_flow_with_lookup_method_body_spec.rb +1 -1
  234. data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +1 -1
  235. data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +1 -1
  236. data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +1 -1
  237. data/spec/models/submit_self_service_settings_flow_with_totp_method_body_spec.rb +1 -1
  238. data/spec/models/submit_self_service_settings_flow_with_web_authn_method_body_spec.rb +1 -1
  239. data/spec/models/submit_self_service_verification_flow_body_spec.rb +1 -1
  240. data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +1 -1
  241. data/spec/models/subscription_spec.rb +1 -1
  242. data/spec/models/successful_project_update_spec.rb +1 -1
  243. data/spec/models/successful_self_service_login_without_browser_spec.rb +1 -1
  244. data/spec/models/successful_self_service_registration_without_browser_spec.rb +1 -1
  245. data/spec/models/ui_container_spec.rb +1 -1
  246. data/spec/models/ui_node_anchor_attributes_spec.rb +1 -1
  247. data/spec/models/ui_node_attributes_spec.rb +1 -1
  248. data/spec/models/ui_node_image_attributes_spec.rb +1 -1
  249. data/spec/models/ui_node_input_attributes_spec.rb +1 -1
  250. data/spec/models/ui_node_meta_spec.rb +1 -1
  251. data/spec/models/ui_node_script_attributes_spec.rb +1 -1
  252. data/spec/models/ui_node_spec.rb +1 -1
  253. data/spec/models/ui_node_text_attributes_spec.rb +1 -1
  254. data/spec/models/ui_text_spec.rb +1 -1
  255. data/spec/models/update_custom_hostname_body_spec.rb +1 -1
  256. data/spec/models/update_project_spec.rb +1 -1
  257. data/spec/models/update_subscription_payload_spec.rb +1 -1
  258. data/spec/models/verifiable_identity_address_spec.rb +1 -1
  259. data/spec/models/version_spec.rb +1 -1
  260. data/spec/models/warning_spec.rb +1 -1
  261. data/spec/spec_helper.rb +1 -1
  262. data/vendor/bundle/ruby/2.5.0/cache/parallel-1.22.0.gem +0 -0
  263. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
  264. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.5/gem_make.out +2 -2
  265. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/jaro_winkler-1.5.4/gem_make.out +2 -2
  266. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.3/gem_make.out +2 -2
  267. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.1/gem_make.out +2 -2
  268. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.1/mkmf.log +1 -1
  269. data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
  270. data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
  271. data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
  272. data/vendor/bundle/ruby/2.5.0/gems/{parallel-1.21.0 → parallel-1.22.0}/MIT-LICENSE.txt +0 -0
  273. data/vendor/bundle/ruby/2.5.0/gems/{parallel-1.21.0 → parallel-1.22.0}/lib/parallel/processor_count.rb +1 -1
  274. data/vendor/bundle/ruby/2.5.0/gems/parallel-1.22.0/lib/parallel/version.rb +4 -0
  275. data/vendor/bundle/ruby/2.5.0/gems/{parallel-1.21.0 → parallel-1.22.0}/lib/parallel.rb +84 -4
  276. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.3/ext/psych/Makefile +2 -2
  277. data/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.1/ext/stringio/Makefile +2 -2
  278. data/vendor/bundle/ruby/2.5.0/specifications/{parallel-1.21.0.gemspec → parallel-1.22.0.gemspec} +4 -4
  279. metadata +8 -8
  280. data/vendor/bundle/ruby/2.5.0/cache/parallel-1.21.0.gem +0 -0
  281. data/vendor/bundle/ruby/2.5.0/gems/parallel-1.21.0/lib/parallel/version.rb +0 -4
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
data/spec/spec_helper.rb CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.139
6
+ The version of the OpenAPI document: v0.0.1-alpha.142
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.4.0
@@ -1,5 +1,5 @@
1
1
  current directory: /sdk/clients/client/ruby/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug
2
- /usr/bin/ruby2.5 -r ./siteconf20220320-3772-2ku1ab.rb extconf.rb
2
+ /usr/bin/ruby2.5 -r ./siteconf20220321-3764-1dldpmv.rb extconf.rb
3
3
  creating Makefile
4
4
 
5
5
  current directory: /sdk/clients/client/ruby/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug
@@ -16,4 +16,4 @@ linking shared-object byebug/byebug.so
16
16
 
17
17
  current directory: /sdk/clients/client/ruby/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug
18
18
  make "DESTDIR=" install
19
- /usr/bin/install -c -m 0755 byebug.so ./.gem.20220320-3772-ptgtmm/byebug
19
+ /usr/bin/install -c -m 0755 byebug.so ./.gem.20220321-3764-1ucgzvd/byebug
@@ -1,5 +1,5 @@
1
1
  current directory: /sdk/clients/client/ruby/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/ext/ffi_c
2
- /usr/bin/ruby2.5 -r ./siteconf20220320-3772-4n6p6q.rb extconf.rb
2
+ /usr/bin/ruby2.5 -r ./siteconf20220321-3764-1i61jey.rb extconf.rb
3
3
  /usr/lib/ruby/2.5.0/mkmf.rb:1554: warning: Insecure world writable dir /go/bin in PATH, mode 040777
4
4
  checking for ffi_prep_closure_loc() in -lffi... yes
5
5
  checking for ffi_prep_cif_var()... yes
@@ -41,4 +41,4 @@ linking shared-object ffi_c.so
41
41
 
42
42
  current directory: /sdk/clients/client/ruby/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/ext/ffi_c
43
43
  make "DESTDIR=" install
44
- /usr/bin/install -c -m 0755 ffi_c.so ./.gem.20220320-3772-1r2jipp
44
+ /usr/bin/install -c -m 0755 ffi_c.so ./.gem.20220321-3764-ah87xj
@@ -1,5 +1,5 @@
1
1
  current directory: /sdk/clients/client/ruby/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler
2
- /usr/bin/ruby2.5 -r ./siteconf20220320-3772-bqyjfm.rb extconf.rb
2
+ /usr/bin/ruby2.5 -r ./siteconf20220321-3764-6l654a.rb extconf.rb
3
3
  creating Makefile
4
4
 
5
5
  current directory: /sdk/clients/client/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/client/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.20220320-3772-tg1lj7/jaro_winkler
38
+ /usr/bin/install -c -m 0755 jaro_winkler_ext.so ./.gem.20220321-3764-17hj5e/jaro_winkler
@@ -1,5 +1,5 @@
1
1
  current directory: /sdk/clients/client/ruby/vendor/bundle/ruby/2.5.0/gems/psych-4.0.3/ext/psych
2
- /usr/bin/ruby2.5 -r ./siteconf20220320-3772-bix228.rb extconf.rb
2
+ /usr/bin/ruby2.5 -r ./siteconf20220321-3764-1ui91c3.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/client/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.20220320-3772-12s27eq
41
+ /usr/bin/install -c -m 0755 psych.so ./.gem.20220321-3764-1bn8xv6
@@ -1,5 +1,5 @@
1
1
  current directory: /sdk/clients/client/ruby/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.1/ext/stringio
2
- /usr/bin/ruby2.5 -r ./siteconf20220320-3772-10c6xtx.rb extconf.rb
2
+ /usr/bin/ruby2.5 -r ./siteconf20220321-3764-1mi0f6l.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/client/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.20220320-3772-146iq94
16
+ /usr/bin/install -c -m 0755 stringio.so ./.gem.20220321-3764-1ulo2s3
@@ -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/ccLlfVZh.o: in function `t':
42
+ /usr/bin/ld: /tmp/ccHR9yIe.o: in function `t':
43
43
  /sdk/clients/client/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.20220320-3772-ptgtmm
35
- sitelibdir = $(DESTDIR)./.gem.20220320-3772-ptgtmm
34
+ sitearchdir = $(DESTDIR)./.gem.20220321-3764-1ucgzvd
35
+ sitelibdir = $(DESTDIR)./.gem.20220321-3764-1ucgzvd
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.20220320-3772-1r2jipp
35
- sitelibdir = $(DESTDIR)./.gem.20220320-3772-1r2jipp
34
+ sitearchdir = $(DESTDIR)./.gem.20220321-3764-ah87xj
35
+ sitelibdir = $(DESTDIR)./.gem.20220321-3764-ah87xj
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.20220320-3772-tg1lj7
35
- sitelibdir = $(DESTDIR)./.gem.20220320-3772-tg1lj7
34
+ sitearchdir = $(DESTDIR)./.gem.20220321-3764-17hj5e
35
+ sitelibdir = $(DESTDIR)./.gem.20220321-3764-17hj5e
36
36
  sitedir = $(DESTDIR)/usr/local/lib/site_ruby
37
37
  rubyarchdir = $(rubyarchprefix)/$(ruby_version)
38
38
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -19,7 +19,7 @@ module Parallel
19
19
  when /linux/
20
20
  cores = {} # unique physical ID / core ID combinations
21
21
  phy = 0
22
- IO.read("/proc/cpuinfo").scan(/^physical id.*|^core id.*/) do |ln|
22
+ File.read("/proc/cpuinfo").scan(/^physical id.*|^core id.*/) do |ln|
23
23
  if ln.start_with?("physical")
24
24
  phy = ln[/\d+/]
25
25
  elsif ln.start_with?("core")
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+ module Parallel
3
+ VERSION = Version = '1.22.0' # 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.20220320-3772-12s27eq
35
- sitelibdir = $(DESTDIR)./.gem.20220320-3772-12s27eq
34
+ sitearchdir = $(DESTDIR)./.gem.20220321-3764-1bn8xv6
35
+ sitelibdir = $(DESTDIR)./.gem.20220321-3764-1bn8xv6
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.20220320-3772-146iq94
35
- sitelibdir = $(DESTDIR)./.gem.20220320-3772-146iq94
34
+ sitearchdir = $(DESTDIR)./.gem.20220321-3764-1ulo2s3
35
+ sitelibdir = $(DESTDIR)./.gem.20220321-3764-1ulo2s3
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.0 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.0"
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.0/Readme.md", "source_code_uri" => "https://github.com/grosser/parallel/tree/v1.22.0", "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-21"
13
13
  s.email = "michael@grosser.it".freeze
14
14
  s.homepage = "https://github.com/grosser/parallel".freeze
15
15
  s.licenses = ["MIT".freeze]