shopify_api 4.13.0 → 12.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (698) hide show
  1. checksums.yaml +5 -5
  2. data/.github/CODEOWNERS +1 -0
  3. data/.github/ISSUE_TEMPLATE.md +35 -0
  4. data/.github/dependabot.yml +20 -0
  5. data/.github/pull_request_template.md +20 -0
  6. data/.github/workflows/build.yml +42 -0
  7. data/.github/workflows/cla.yml +22 -0
  8. data/.github/workflows/close-waiting-for-response-issues.yml +20 -0
  9. data/.github/workflows/remove-labels-on-activity.yml +16 -0
  10. data/.github/workflows/stale.yml +32 -0
  11. data/.rubocop.yml +56 -5
  12. data/BREAKING_CHANGES_FOR_OLDER_VERSIONS.md +110 -0
  13. data/CHANGELOG.md +568 -0
  14. data/CONTRIBUTING.md +4 -3
  15. data/Gemfile +9 -2
  16. data/Gemfile.lock +159 -0
  17. data/LICENSE +2 -2
  18. data/README.md +86 -218
  19. data/RELEASING.md +19 -0
  20. data/Rakefile +16 -32
  21. data/SECURITY.md +59 -0
  22. data/bin/tapioca +29 -0
  23. data/dev.yml +32 -0
  24. data/docs/README.md +13 -0
  25. data/docs/getting_started.md +53 -0
  26. data/docs/issues.md +39 -0
  27. data/docs/usage/graphql.md +115 -0
  28. data/docs/usage/graphql_storefront.md +42 -0
  29. data/docs/usage/oauth.md +105 -0
  30. data/docs/usage/rest.md +137 -0
  31. data/docs/usage/session_storage.md +46 -0
  32. data/docs/usage/webhooks.md +98 -0
  33. data/lib/shopify_api/admin_versions.rb +19 -0
  34. data/lib/shopify_api/auth/associated_user.rb +36 -0
  35. data/lib/shopify_api/auth/auth_scopes.rb +75 -0
  36. data/lib/shopify_api/auth/file_session_storage.rb +72 -0
  37. data/lib/shopify_api/auth/jwt_payload.rb +83 -0
  38. data/lib/shopify_api/auth/oauth/auth_query.rb +47 -0
  39. data/lib/shopify_api/auth/oauth/session_cookie.rb +28 -0
  40. data/lib/shopify_api/auth/oauth.rb +138 -0
  41. data/lib/shopify_api/auth/session.rb +119 -0
  42. data/lib/shopify_api/auth/session_storage.rb +30 -0
  43. data/lib/shopify_api/auth.rb +26 -0
  44. data/lib/shopify_api/clients/graphql/admin.rb +15 -0
  45. data/lib/shopify_api/clients/graphql/client.rb +40 -0
  46. data/lib/shopify_api/clients/graphql/storefront.rb +35 -0
  47. data/lib/shopify_api/clients/http_client.rb +100 -0
  48. data/lib/shopify_api/clients/http_request.rb +35 -0
  49. data/lib/shopify_api/clients/http_response.rb +66 -0
  50. data/lib/shopify_api/clients/rest/admin.rb +118 -0
  51. data/lib/shopify_api/context.rb +166 -0
  52. data/lib/shopify_api/errors/context_not_setup_error.rb +9 -0
  53. data/lib/shopify_api/errors/cookie_not_found_error.rb +9 -0
  54. data/lib/shopify_api/errors/http_response_error.rb +19 -0
  55. data/lib/shopify_api/errors/invalid_graphql_request_error.rb +9 -0
  56. data/lib/shopify_api/errors/invalid_http_request_error.rb +9 -0
  57. data/lib/shopify_api/errors/invalid_jwt_token_error.rb +9 -0
  58. data/lib/shopify_api/errors/invalid_oauth_error.rb +9 -0
  59. data/lib/shopify_api/errors/invalid_webhook_error.rb +9 -0
  60. data/lib/shopify_api/errors/invalid_webhook_registration_error.rb +9 -0
  61. data/lib/shopify_api/errors/max_http_retries_exceeded_error.rb +9 -0
  62. data/lib/shopify_api/errors/missing_jwt_token_error.rb +9 -0
  63. data/lib/shopify_api/errors/missing_required_argument_error.rb +9 -0
  64. data/lib/shopify_api/errors/no_active_session_error.rb +9 -0
  65. data/lib/shopify_api/errors/no_session_cookie_error.rb +9 -0
  66. data/lib/shopify_api/errors/no_webhook_handler.rb +9 -0
  67. data/lib/shopify_api/errors/private_app_error.rb +9 -0
  68. data/lib/shopify_api/errors/request_access_token_error.rb +9 -0
  69. data/lib/shopify_api/errors/session_not_found_error.rb +9 -0
  70. data/lib/shopify_api/errors/session_storage_error.rb +9 -0
  71. data/lib/shopify_api/errors/unsupported_oauth_error.rb +9 -0
  72. data/lib/shopify_api/errors/unsupported_version_error.rb +9 -0
  73. data/lib/shopify_api/errors/webhook_registration_error.rb +9 -0
  74. data/lib/shopify_api/inflector.rb +17 -0
  75. data/lib/shopify_api/rest/base.rb +387 -0
  76. data/lib/shopify_api/rest/base_errors.rb +32 -0
  77. data/lib/shopify_api/rest/resources/2022_01/abandoned_checkout.rb +190 -0
  78. data/lib/shopify_api/rest/resources/2022_01/access_scope.rb +58 -0
  79. data/lib/shopify_api/rest/resources/2022_01/android_pay_key.rb +77 -0
  80. data/lib/shopify_api/rest/resources/2022_01/apple_pay_certificate.rb +105 -0
  81. data/lib/shopify_api/rest/resources/2022_01/application_charge.rb +104 -0
  82. data/lib/shopify_api/rest/resources/2022_01/application_credit.rb +87 -0
  83. data/lib/shopify_api/rest/resources/2022_01/article.rb +265 -0
  84. data/lib/shopify_api/rest/resources/2022_01/asset.rb +118 -0
  85. data/lib/shopify_api/rest/resources/2022_01/assigned_fulfillment_order.rb +79 -0
  86. data/lib/shopify_api/rest/resources/2022_01/balance.rb +50 -0
  87. data/lib/shopify_api/rest/resources/2022_01/blog.rb +162 -0
  88. data/lib/shopify_api/rest/resources/2022_01/cancellation_request.rb +83 -0
  89. data/lib/shopify_api/rest/resources/2022_01/carrier_service.rb +116 -0
  90. data/lib/shopify_api/rest/resources/2022_01/checkout.rb +209 -0
  91. data/lib/shopify_api/rest/resources/2022_01/collect.rb +142 -0
  92. data/lib/shopify_api/rest/resources/2022_01/collection.rb +110 -0
  93. data/lib/shopify_api/rest/resources/2022_01/collection_listing.rb +155 -0
  94. data/lib/shopify_api/rest/resources/2022_01/comment.rb +283 -0
  95. data/lib/shopify_api/rest/resources/2022_01/country.rb +137 -0
  96. data/lib/shopify_api/rest/resources/2022_01/currency.rb +57 -0
  97. data/lib/shopify_api/rest/resources/2022_01/custom_collection.rb +187 -0
  98. data/lib/shopify_api/rest/resources/2022_01/customer.rb +318 -0
  99. data/lib/shopify_api/rest/resources/2022_01/customer_address.rb +201 -0
  100. data/lib/shopify_api/rest/resources/2022_01/customer_saved_search.rb +169 -0
  101. data/lib/shopify_api/rest/resources/2022_01/deprecated_api_call.rb +57 -0
  102. data/lib/shopify_api/rest/resources/2022_01/discount_code.rb +219 -0
  103. data/lib/shopify_api/rest/resources/2022_01/dispute.rb +111 -0
  104. data/lib/shopify_api/rest/resources/2022_01/draft_order.rb +275 -0
  105. data/lib/shopify_api/rest/resources/2022_01/event.rb +148 -0
  106. data/lib/shopify_api/rest/resources/2022_01/fulfillment.rb +268 -0
  107. data/lib/shopify_api/rest/resources/2022_01/fulfillment_event.rb +166 -0
  108. data/lib/shopify_api/rest/resources/2022_01/fulfillment_order.rb +281 -0
  109. data/lib/shopify_api/rest/resources/2022_01/fulfillment_request.rb +87 -0
  110. data/lib/shopify_api/rest/resources/2022_01/fulfillment_service.rb +130 -0
  111. data/lib/shopify_api/rest/resources/2022_01/gift_card.rb +215 -0
  112. data/lib/shopify_api/rest/resources/2022_01/gift_card_adjustment.rb +118 -0
  113. data/lib/shopify_api/rest/resources/2022_01/image.rb +157 -0
  114. data/lib/shopify_api/rest/resources/2022_01/inventory_item.rb +108 -0
  115. data/lib/shopify_api/rest/resources/2022_01/inventory_level.rb +179 -0
  116. data/lib/shopify_api/rest/resources/2022_01/location.rb +167 -0
  117. data/lib/shopify_api/rest/resources/2022_01/locations_for_move.rb +56 -0
  118. data/lib/shopify_api/rest/resources/2022_01/marketing_event.rb +209 -0
  119. data/lib/shopify_api/rest/resources/2022_01/metafield.rb +349 -0
  120. data/lib/shopify_api/rest/resources/2022_01/mobile_platform_application.rb +110 -0
  121. data/lib/shopify_api/rest/resources/2022_01/order.rb +473 -0
  122. data/lib/shopify_api/rest/resources/2022_01/order_risk.rb +135 -0
  123. data/lib/shopify_api/rest/resources/2022_01/page.rb +194 -0
  124. data/lib/shopify_api/rest/resources/2022_01/payment.rb +140 -0
  125. data/lib/shopify_api/rest/resources/2022_01/payment_gateway.rb +143 -0
  126. data/lib/shopify_api/rest/resources/2022_01/payment_transaction.rb +107 -0
  127. data/lib/shopify_api/rest/resources/2022_01/payout.rb +97 -0
  128. data/lib/shopify_api/rest/resources/2022_01/policy.rb +69 -0
  129. data/lib/shopify_api/rest/resources/2022_01/price_rule.rb +223 -0
  130. data/lib/shopify_api/rest/resources/2022_01/product.rb +223 -0
  131. data/lib/shopify_api/rest/resources/2022_01/product_listing.rb +196 -0
  132. data/lib/shopify_api/rest/resources/2022_01/product_resource_feedback.rb +88 -0
  133. data/lib/shopify_api/rest/resources/2022_01/province.rb +132 -0
  134. data/lib/shopify_api/rest/resources/2022_01/recurring_application_charge.rb +167 -0
  135. data/lib/shopify_api/rest/resources/2022_01/redirect.rb +139 -0
  136. data/lib/shopify_api/rest/resources/2022_01/refund.rb +151 -0
  137. data/lib/shopify_api/rest/resources/2022_01/report.rb +121 -0
  138. data/lib/shopify_api/rest/resources/2022_01/resource_feedback.rb +73 -0
  139. data/lib/shopify_api/rest/resources/2022_01/script_tag.rb +155 -0
  140. data/lib/shopify_api/rest/resources/2022_01/shipping_zone.rb +83 -0
  141. data/lib/shopify_api/rest/resources/2022_01/shop.rb +218 -0
  142. data/lib/shopify_api/rest/resources/2022_01/smart_collection.rb +216 -0
  143. data/lib/shopify_api/rest/resources/2022_01/storefront_access_token.rb +87 -0
  144. data/lib/shopify_api/rest/resources/2022_01/tender_transaction.rb +93 -0
  145. data/lib/shopify_api/rest/resources/2022_01/theme.rb +120 -0
  146. data/lib/shopify_api/rest/resources/2022_01/transaction.rb +181 -0
  147. data/lib/shopify_api/rest/resources/2022_01/usage_charge.rb +97 -0
  148. data/lib/shopify_api/rest/resources/2022_01/user.rb +138 -0
  149. data/lib/shopify_api/rest/resources/2022_01/variant.rb +212 -0
  150. data/lib/shopify_api/rest/resources/2022_01/webhook.rb +168 -0
  151. data/lib/shopify_api/rest/resources/2022_04/abandoned_checkout.rb +190 -0
  152. data/lib/shopify_api/rest/resources/2022_04/access_scope.rb +58 -0
  153. data/lib/shopify_api/rest/resources/2022_04/android_pay_key.rb +77 -0
  154. data/lib/shopify_api/rest/resources/2022_04/apple_pay_certificate.rb +105 -0
  155. data/lib/shopify_api/rest/resources/2022_04/application_charge.rb +104 -0
  156. data/lib/shopify_api/rest/resources/2022_04/application_credit.rb +87 -0
  157. data/lib/shopify_api/rest/resources/2022_04/article.rb +265 -0
  158. data/lib/shopify_api/rest/resources/2022_04/asset.rb +118 -0
  159. data/lib/shopify_api/rest/resources/2022_04/assigned_fulfillment_order.rb +79 -0
  160. data/lib/shopify_api/rest/resources/2022_04/balance.rb +50 -0
  161. data/lib/shopify_api/rest/resources/2022_04/blog.rb +162 -0
  162. data/lib/shopify_api/rest/resources/2022_04/cancellation_request.rb +83 -0
  163. data/lib/shopify_api/rest/resources/2022_04/carrier_service.rb +116 -0
  164. data/lib/shopify_api/rest/resources/2022_04/checkout.rb +209 -0
  165. data/lib/shopify_api/rest/resources/2022_04/collect.rb +142 -0
  166. data/lib/shopify_api/rest/resources/2022_04/collection.rb +110 -0
  167. data/lib/shopify_api/rest/resources/2022_04/collection_listing.rb +155 -0
  168. data/lib/shopify_api/rest/resources/2022_04/comment.rb +283 -0
  169. data/lib/shopify_api/rest/resources/2022_04/country.rb +137 -0
  170. data/lib/shopify_api/rest/resources/2022_04/currency.rb +57 -0
  171. data/lib/shopify_api/rest/resources/2022_04/custom_collection.rb +187 -0
  172. data/lib/shopify_api/rest/resources/2022_04/customer.rb +321 -0
  173. data/lib/shopify_api/rest/resources/2022_04/customer_address.rb +201 -0
  174. data/lib/shopify_api/rest/resources/2022_04/customer_saved_search.rb +169 -0
  175. data/lib/shopify_api/rest/resources/2022_04/deprecated_api_call.rb +57 -0
  176. data/lib/shopify_api/rest/resources/2022_04/discount_code.rb +219 -0
  177. data/lib/shopify_api/rest/resources/2022_04/dispute.rb +111 -0
  178. data/lib/shopify_api/rest/resources/2022_04/draft_order.rb +275 -0
  179. data/lib/shopify_api/rest/resources/2022_04/event.rb +148 -0
  180. data/lib/shopify_api/rest/resources/2022_04/fulfillment.rb +268 -0
  181. data/lib/shopify_api/rest/resources/2022_04/fulfillment_event.rb +166 -0
  182. data/lib/shopify_api/rest/resources/2022_04/fulfillment_order.rb +284 -0
  183. data/lib/shopify_api/rest/resources/2022_04/fulfillment_request.rb +87 -0
  184. data/lib/shopify_api/rest/resources/2022_04/fulfillment_service.rb +130 -0
  185. data/lib/shopify_api/rest/resources/2022_04/gift_card.rb +215 -0
  186. data/lib/shopify_api/rest/resources/2022_04/gift_card_adjustment.rb +118 -0
  187. data/lib/shopify_api/rest/resources/2022_04/image.rb +157 -0
  188. data/lib/shopify_api/rest/resources/2022_04/inventory_item.rb +108 -0
  189. data/lib/shopify_api/rest/resources/2022_04/inventory_level.rb +179 -0
  190. data/lib/shopify_api/rest/resources/2022_04/location.rb +167 -0
  191. data/lib/shopify_api/rest/resources/2022_04/locations_for_move.rb +56 -0
  192. data/lib/shopify_api/rest/resources/2022_04/marketing_event.rb +209 -0
  193. data/lib/shopify_api/rest/resources/2022_04/metafield.rb +342 -0
  194. data/lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb +110 -0
  195. data/lib/shopify_api/rest/resources/2022_04/order.rb +473 -0
  196. data/lib/shopify_api/rest/resources/2022_04/order_risk.rb +135 -0
  197. data/lib/shopify_api/rest/resources/2022_04/page.rb +194 -0
  198. data/lib/shopify_api/rest/resources/2022_04/payment.rb +140 -0
  199. data/lib/shopify_api/rest/resources/2022_04/payment_gateway.rb +143 -0
  200. data/lib/shopify_api/rest/resources/2022_04/payment_transaction.rb +107 -0
  201. data/lib/shopify_api/rest/resources/2022_04/payout.rb +97 -0
  202. data/lib/shopify_api/rest/resources/2022_04/policy.rb +69 -0
  203. data/lib/shopify_api/rest/resources/2022_04/price_rule.rb +223 -0
  204. data/lib/shopify_api/rest/resources/2022_04/product.rb +223 -0
  205. data/lib/shopify_api/rest/resources/2022_04/product_listing.rb +196 -0
  206. data/lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb +88 -0
  207. data/lib/shopify_api/rest/resources/2022_04/province.rb +132 -0
  208. data/lib/shopify_api/rest/resources/2022_04/recurring_application_charge.rb +167 -0
  209. data/lib/shopify_api/rest/resources/2022_04/redirect.rb +139 -0
  210. data/lib/shopify_api/rest/resources/2022_04/refund.rb +151 -0
  211. data/lib/shopify_api/rest/resources/2022_04/report.rb +121 -0
  212. data/lib/shopify_api/rest/resources/2022_04/resource_feedback.rb +73 -0
  213. data/lib/shopify_api/rest/resources/2022_04/script_tag.rb +155 -0
  214. data/lib/shopify_api/rest/resources/2022_04/shipping_zone.rb +83 -0
  215. data/lib/shopify_api/rest/resources/2022_04/shop.rb +218 -0
  216. data/lib/shopify_api/rest/resources/2022_04/smart_collection.rb +216 -0
  217. data/lib/shopify_api/rest/resources/2022_04/storefront_access_token.rb +87 -0
  218. data/lib/shopify_api/rest/resources/2022_04/tender_transaction.rb +93 -0
  219. data/lib/shopify_api/rest/resources/2022_04/theme.rb +120 -0
  220. data/lib/shopify_api/rest/resources/2022_04/transaction.rb +181 -0
  221. data/lib/shopify_api/rest/resources/2022_04/usage_charge.rb +97 -0
  222. data/lib/shopify_api/rest/resources/2022_04/user.rb +138 -0
  223. data/lib/shopify_api/rest/resources/2022_04/variant.rb +212 -0
  224. data/lib/shopify_api/rest/resources/2022_04/webhook.rb +168 -0
  225. data/lib/shopify_api/rest/resources/2022_07/abandoned_checkout.rb +190 -0
  226. data/lib/shopify_api/rest/resources/2022_07/access_scope.rb +58 -0
  227. data/lib/shopify_api/rest/resources/2022_07/android_pay_key.rb +77 -0
  228. data/lib/shopify_api/rest/resources/2022_07/apple_pay_certificate.rb +105 -0
  229. data/lib/shopify_api/rest/resources/2022_07/application_charge.rb +104 -0
  230. data/lib/shopify_api/rest/resources/2022_07/application_credit.rb +87 -0
  231. data/lib/shopify_api/rest/resources/2022_07/article.rb +265 -0
  232. data/lib/shopify_api/rest/resources/2022_07/asset.rb +118 -0
  233. data/lib/shopify_api/rest/resources/2022_07/assigned_fulfillment_order.rb +79 -0
  234. data/lib/shopify_api/rest/resources/2022_07/balance.rb +50 -0
  235. data/lib/shopify_api/rest/resources/2022_07/blog.rb +162 -0
  236. data/lib/shopify_api/rest/resources/2022_07/cancellation_request.rb +83 -0
  237. data/lib/shopify_api/rest/resources/2022_07/carrier_service.rb +113 -0
  238. data/lib/shopify_api/rest/resources/2022_07/checkout.rb +209 -0
  239. data/lib/shopify_api/rest/resources/2022_07/collect.rb +142 -0
  240. data/lib/shopify_api/rest/resources/2022_07/collection.rb +110 -0
  241. data/lib/shopify_api/rest/resources/2022_07/collection_listing.rb +155 -0
  242. data/lib/shopify_api/rest/resources/2022_07/comment.rb +283 -0
  243. data/lib/shopify_api/rest/resources/2022_07/country.rb +137 -0
  244. data/lib/shopify_api/rest/resources/2022_07/currency.rb +57 -0
  245. data/lib/shopify_api/rest/resources/2022_07/custom_collection.rb +187 -0
  246. data/lib/shopify_api/rest/resources/2022_07/customer.rb +321 -0
  247. data/lib/shopify_api/rest/resources/2022_07/customer_address.rb +201 -0
  248. data/lib/shopify_api/rest/resources/2022_07/customer_saved_search.rb +169 -0
  249. data/lib/shopify_api/rest/resources/2022_07/deprecated_api_call.rb +57 -0
  250. data/lib/shopify_api/rest/resources/2022_07/discount_code.rb +219 -0
  251. data/lib/shopify_api/rest/resources/2022_07/dispute.rb +111 -0
  252. data/lib/shopify_api/rest/resources/2022_07/dispute_evidence.rb +117 -0
  253. data/lib/shopify_api/rest/resources/2022_07/dispute_file_upload.rb +81 -0
  254. data/lib/shopify_api/rest/resources/2022_07/draft_order.rb +275 -0
  255. data/lib/shopify_api/rest/resources/2022_07/event.rb +148 -0
  256. data/lib/shopify_api/rest/resources/2022_07/fulfillment.rb +221 -0
  257. data/lib/shopify_api/rest/resources/2022_07/fulfillment_event.rb +166 -0
  258. data/lib/shopify_api/rest/resources/2022_07/fulfillment_order.rb +310 -0
  259. data/lib/shopify_api/rest/resources/2022_07/fulfillment_request.rb +87 -0
  260. data/lib/shopify_api/rest/resources/2022_07/fulfillment_service.rb +130 -0
  261. data/lib/shopify_api/rest/resources/2022_07/gift_card.rb +215 -0
  262. data/lib/shopify_api/rest/resources/2022_07/gift_card_adjustment.rb +118 -0
  263. data/lib/shopify_api/rest/resources/2022_07/image.rb +157 -0
  264. data/lib/shopify_api/rest/resources/2022_07/inventory_item.rb +108 -0
  265. data/lib/shopify_api/rest/resources/2022_07/inventory_level.rb +179 -0
  266. data/lib/shopify_api/rest/resources/2022_07/location.rb +167 -0
  267. data/lib/shopify_api/rest/resources/2022_07/locations_for_move.rb +56 -0
  268. data/lib/shopify_api/rest/resources/2022_07/marketing_event.rb +209 -0
  269. data/lib/shopify_api/rest/resources/2022_07/metafield.rb +342 -0
  270. data/lib/shopify_api/rest/resources/2022_07/mobile_platform_application.rb +110 -0
  271. data/lib/shopify_api/rest/resources/2022_07/order.rb +473 -0
  272. data/lib/shopify_api/rest/resources/2022_07/order_risk.rb +135 -0
  273. data/lib/shopify_api/rest/resources/2022_07/page.rb +194 -0
  274. data/lib/shopify_api/rest/resources/2022_07/payment.rb +140 -0
  275. data/lib/shopify_api/rest/resources/2022_07/payment_gateway.rb +143 -0
  276. data/lib/shopify_api/rest/resources/2022_07/payment_transaction.rb +107 -0
  277. data/lib/shopify_api/rest/resources/2022_07/payout.rb +97 -0
  278. data/lib/shopify_api/rest/resources/2022_07/policy.rb +69 -0
  279. data/lib/shopify_api/rest/resources/2022_07/price_rule.rb +223 -0
  280. data/lib/shopify_api/rest/resources/2022_07/product.rb +223 -0
  281. data/lib/shopify_api/rest/resources/2022_07/product_listing.rb +196 -0
  282. data/lib/shopify_api/rest/resources/2022_07/product_resource_feedback.rb +88 -0
  283. data/lib/shopify_api/rest/resources/2022_07/province.rb +132 -0
  284. data/lib/shopify_api/rest/resources/2022_07/recurring_application_charge.rb +167 -0
  285. data/lib/shopify_api/rest/resources/2022_07/redirect.rb +139 -0
  286. data/lib/shopify_api/rest/resources/2022_07/refund.rb +151 -0
  287. data/lib/shopify_api/rest/resources/2022_07/report.rb +121 -0
  288. data/lib/shopify_api/rest/resources/2022_07/resource_feedback.rb +73 -0
  289. data/lib/shopify_api/rest/resources/2022_07/script_tag.rb +155 -0
  290. data/lib/shopify_api/rest/resources/2022_07/shipping_zone.rb +83 -0
  291. data/lib/shopify_api/rest/resources/2022_07/shop.rb +218 -0
  292. data/lib/shopify_api/rest/resources/2022_07/smart_collection.rb +216 -0
  293. data/lib/shopify_api/rest/resources/2022_07/storefront_access_token.rb +87 -0
  294. data/lib/shopify_api/rest/resources/2022_07/tender_transaction.rb +93 -0
  295. data/lib/shopify_api/rest/resources/2022_07/theme.rb +120 -0
  296. data/lib/shopify_api/rest/resources/2022_07/transaction.rb +181 -0
  297. data/lib/shopify_api/rest/resources/2022_07/usage_charge.rb +97 -0
  298. data/lib/shopify_api/rest/resources/2022_07/user.rb +138 -0
  299. data/lib/shopify_api/rest/resources/2022_07/variant.rb +212 -0
  300. data/lib/shopify_api/rest/resources/2022_07/webhook.rb +168 -0
  301. data/lib/shopify_api/rest/resources/2022_10/abandoned_checkout.rb +190 -0
  302. data/lib/shopify_api/rest/resources/2022_10/access_scope.rb +58 -0
  303. data/lib/shopify_api/rest/resources/2022_10/android_pay_key.rb +77 -0
  304. data/lib/shopify_api/rest/resources/2022_10/apple_pay_certificate.rb +105 -0
  305. data/lib/shopify_api/rest/resources/2022_10/application_charge.rb +104 -0
  306. data/lib/shopify_api/rest/resources/2022_10/application_credit.rb +87 -0
  307. data/lib/shopify_api/rest/resources/2022_10/article.rb +265 -0
  308. data/lib/shopify_api/rest/resources/2022_10/asset.rb +118 -0
  309. data/lib/shopify_api/rest/resources/2022_10/assigned_fulfillment_order.rb +79 -0
  310. data/lib/shopify_api/rest/resources/2022_10/balance.rb +50 -0
  311. data/lib/shopify_api/rest/resources/2022_10/blog.rb +162 -0
  312. data/lib/shopify_api/rest/resources/2022_10/cancellation_request.rb +83 -0
  313. data/lib/shopify_api/rest/resources/2022_10/carrier_service.rb +113 -0
  314. data/lib/shopify_api/rest/resources/2022_10/checkout.rb +209 -0
  315. data/lib/shopify_api/rest/resources/2022_10/collect.rb +142 -0
  316. data/lib/shopify_api/rest/resources/2022_10/collection.rb +110 -0
  317. data/lib/shopify_api/rest/resources/2022_10/collection_listing.rb +155 -0
  318. data/lib/shopify_api/rest/resources/2022_10/comment.rb +283 -0
  319. data/lib/shopify_api/rest/resources/2022_10/country.rb +137 -0
  320. data/lib/shopify_api/rest/resources/2022_10/currency.rb +57 -0
  321. data/lib/shopify_api/rest/resources/2022_10/custom_collection.rb +187 -0
  322. data/lib/shopify_api/rest/resources/2022_10/customer.rb +321 -0
  323. data/lib/shopify_api/rest/resources/2022_10/customer_address.rb +201 -0
  324. data/lib/shopify_api/rest/resources/2022_10/customer_saved_search.rb +169 -0
  325. data/lib/shopify_api/rest/resources/2022_10/deprecated_api_call.rb +57 -0
  326. data/lib/shopify_api/rest/resources/2022_10/discount_code.rb +219 -0
  327. data/lib/shopify_api/rest/resources/2022_10/dispute.rb +111 -0
  328. data/lib/shopify_api/rest/resources/2022_10/dispute_evidence.rb +117 -0
  329. data/lib/shopify_api/rest/resources/2022_10/dispute_file_upload.rb +81 -0
  330. data/lib/shopify_api/rest/resources/2022_10/draft_order.rb +275 -0
  331. data/lib/shopify_api/rest/resources/2022_10/event.rb +148 -0
  332. data/lib/shopify_api/rest/resources/2022_10/fulfillment.rb +221 -0
  333. data/lib/shopify_api/rest/resources/2022_10/fulfillment_event.rb +166 -0
  334. data/lib/shopify_api/rest/resources/2022_10/fulfillment_order.rb +310 -0
  335. data/lib/shopify_api/rest/resources/2022_10/fulfillment_request.rb +87 -0
  336. data/lib/shopify_api/rest/resources/2022_10/fulfillment_service.rb +130 -0
  337. data/lib/shopify_api/rest/resources/2022_10/gift_card.rb +215 -0
  338. data/lib/shopify_api/rest/resources/2022_10/gift_card_adjustment.rb +118 -0
  339. data/lib/shopify_api/rest/resources/2022_10/image.rb +157 -0
  340. data/lib/shopify_api/rest/resources/2022_10/inventory_item.rb +108 -0
  341. data/lib/shopify_api/rest/resources/2022_10/inventory_level.rb +179 -0
  342. data/lib/shopify_api/rest/resources/2022_10/location.rb +167 -0
  343. data/lib/shopify_api/rest/resources/2022_10/locations_for_move.rb +56 -0
  344. data/lib/shopify_api/rest/resources/2022_10/marketing_event.rb +209 -0
  345. data/lib/shopify_api/rest/resources/2022_10/metafield.rb +342 -0
  346. data/lib/shopify_api/rest/resources/2022_10/mobile_platform_application.rb +110 -0
  347. data/lib/shopify_api/rest/resources/2022_10/order.rb +476 -0
  348. data/lib/shopify_api/rest/resources/2022_10/order_risk.rb +135 -0
  349. data/lib/shopify_api/rest/resources/2022_10/page.rb +194 -0
  350. data/lib/shopify_api/rest/resources/2022_10/payment.rb +140 -0
  351. data/lib/shopify_api/rest/resources/2022_10/payment_gateway.rb +143 -0
  352. data/lib/shopify_api/rest/resources/2022_10/payment_transaction.rb +107 -0
  353. data/lib/shopify_api/rest/resources/2022_10/payout.rb +97 -0
  354. data/lib/shopify_api/rest/resources/2022_10/policy.rb +69 -0
  355. data/lib/shopify_api/rest/resources/2022_10/price_rule.rb +223 -0
  356. data/lib/shopify_api/rest/resources/2022_10/product.rb +223 -0
  357. data/lib/shopify_api/rest/resources/2022_10/product_listing.rb +196 -0
  358. data/lib/shopify_api/rest/resources/2022_10/product_resource_feedback.rb +88 -0
  359. data/lib/shopify_api/rest/resources/2022_10/province.rb +132 -0
  360. data/lib/shopify_api/rest/resources/2022_10/recurring_application_charge.rb +167 -0
  361. data/lib/shopify_api/rest/resources/2022_10/redirect.rb +139 -0
  362. data/lib/shopify_api/rest/resources/2022_10/refund.rb +151 -0
  363. data/lib/shopify_api/rest/resources/2022_10/report.rb +121 -0
  364. data/lib/shopify_api/rest/resources/2022_10/resource_feedback.rb +73 -0
  365. data/lib/shopify_api/rest/resources/2022_10/script_tag.rb +155 -0
  366. data/lib/shopify_api/rest/resources/2022_10/shipping_zone.rb +83 -0
  367. data/lib/shopify_api/rest/resources/2022_10/shop.rb +221 -0
  368. data/lib/shopify_api/rest/resources/2022_10/smart_collection.rb +216 -0
  369. data/lib/shopify_api/rest/resources/2022_10/storefront_access_token.rb +87 -0
  370. data/lib/shopify_api/rest/resources/2022_10/tender_transaction.rb +93 -0
  371. data/lib/shopify_api/rest/resources/2022_10/theme.rb +120 -0
  372. data/lib/shopify_api/rest/resources/2022_10/transaction.rb +181 -0
  373. data/lib/shopify_api/rest/resources/2022_10/usage_charge.rb +97 -0
  374. data/lib/shopify_api/rest/resources/2022_10/user.rb +138 -0
  375. data/lib/shopify_api/rest/resources/2022_10/variant.rb +212 -0
  376. data/lib/shopify_api/rest/resources/2022_10/webhook.rb +168 -0
  377. data/lib/shopify_api/utils/graphql_proxy.rb +52 -0
  378. data/lib/shopify_api/utils/hmac_validator.rb +44 -0
  379. data/lib/shopify_api/utils/http_utils.rb +17 -0
  380. data/lib/shopify_api/utils/session_utils.rb +135 -0
  381. data/lib/shopify_api/utils/verifiable_query.rb +18 -0
  382. data/lib/shopify_api/version.rb +4 -1
  383. data/lib/shopify_api/webhooks/handler.rb +15 -0
  384. data/lib/shopify_api/webhooks/register_result.rb +14 -0
  385. data/lib/shopify_api/webhooks/registration.rb +73 -0
  386. data/lib/shopify_api/webhooks/registrations/event_bridge.rb +61 -0
  387. data/lib/shopify_api/webhooks/registrations/http.rb +72 -0
  388. data/lib/shopify_api/webhooks/registrations/pub_sub.rb +65 -0
  389. data/lib/shopify_api/webhooks/registry.rb +215 -0
  390. data/lib/shopify_api/webhooks/request.rb +56 -0
  391. data/lib/shopify_api.rb +19 -26
  392. data/service.yml +1 -0
  393. data/shipit.rubygems.yml +1 -1
  394. data/shopify_api.gemspec +36 -19
  395. data/sorbet/config +3 -0
  396. data/sorbet/rbi/gems/activesupport@7.0.1.rbi +654 -0
  397. data/sorbet/rbi/gems/addressable@2.8.0.rbi +290 -0
  398. data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
  399. data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
  400. data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +2401 -0
  401. data/sorbet/rbi/gems/crack@0.4.5.rbi +57 -0
  402. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +185 -0
  403. data/sorbet/rbi/gems/fakefs@1.4.1.rbi +571 -0
  404. data/sorbet/rbi/gems/hash_diff@1.0.0.rbi +47 -0
  405. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +82 -0
  406. data/sorbet/rbi/gems/httparty@0.20.0.rbi +573 -0
  407. data/sorbet/rbi/gems/i18n@1.8.11.rbi +25 -0
  408. data/sorbet/rbi/gems/jwt@2.3.0.rbi +437 -0
  409. data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
  410. data/sorbet/rbi/gems/mime-types-data@3.2022.0105.rbi +73 -0
  411. data/sorbet/rbi/gems/mime-types@3.4.1.rbi +295 -0
  412. data/sorbet/rbi/gems/minitest@5.15.0.rbi +541 -0
  413. data/sorbet/rbi/gems/mocha@1.13.0.rbi +986 -0
  414. data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +36 -0
  415. data/sorbet/rbi/gems/oj@3.13.11.rbi +274 -0
  416. data/sorbet/rbi/gems/openssl@3.0.0.rbi +581 -0
  417. data/sorbet/rbi/gems/parallel@1.21.0.rbi +113 -0
  418. data/sorbet/rbi/gems/parser@3.1.0.0.rbi +1741 -0
  419. data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
  420. data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +145 -0
  421. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +157 -0
  422. data/sorbet/rbi/gems/rake@13.0.6.rbi +814 -0
  423. data/sorbet/rbi/gems/rbi@0.0.11.rbi +1646 -0
  424. data/sorbet/rbi/gems/regexp_parser@2.2.0.rbi +1130 -0
  425. data/sorbet/rbi/gems/rexml@3.2.5.rbi +709 -0
  426. data/sorbet/rbi/gems/rubocop-ast@1.15.1.rbi +1921 -0
  427. data/sorbet/rbi/gems/rubocop-shopify@2.4.0.rbi +8 -0
  428. data/sorbet/rbi/gems/rubocop-sorbet@0.6.5.rbi +295 -0
  429. data/sorbet/rbi/gems/rubocop@1.25.1.rbi +13507 -0
  430. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
  431. data/sorbet/rbi/gems/securerandom@0.1.1.rbi +10 -0
  432. data/sorbet/rbi/gems/spoom@1.1.8.rbi +1252 -0
  433. data/sorbet/rbi/gems/tapioca@0.6.3.rbi +1238 -0
  434. data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
  435. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +858 -0
  436. data/sorbet/rbi/gems/unicode-display_width@2.1.0.rbi +26 -0
  437. data/sorbet/rbi/gems/unparser@0.6.3.rbi +1816 -0
  438. data/sorbet/rbi/gems/webmock@3.14.0.rbi +683 -0
  439. data/sorbet/rbi/gems/webrick@1.7.0.rbi +601 -0
  440. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +199 -0
  441. data/sorbet/rbi/gems/yard@0.9.27.rbi +4145 -0
  442. data/sorbet/rbi/gems/zeitwerk@2.5.4.rbi +200 -0
  443. data/sorbet/rbi/shims/fakefs.rbi +1 -0
  444. data/sorbet/rbi/shims/openssl.rb +3 -0
  445. data/sorbet/rbi/todo.rbi +8 -0
  446. data/sorbet/tapioca/config.yml +4 -0
  447. data/sorbet/tapioca/require.rb +20 -0
  448. metadata +603 -280
  449. data/.document +0 -5
  450. data/.gitignore +0 -10
  451. data/.travis.yml +0 -32
  452. data/CHANGELOG +0 -310
  453. data/CONTRIBUTORS +0 -3
  454. data/Gemfile_ar30 +0 -6
  455. data/Gemfile_ar31 +0 -6
  456. data/Gemfile_ar32 +0 -6
  457. data/Gemfile_ar40 +0 -6
  458. data/Gemfile_ar_master +0 -6
  459. data/RELEASING +0 -16
  460. data/bin/shopify +0 -3
  461. data/lib/active_resource/base_ext.rb +0 -21
  462. data/lib/active_resource/connection_ext.rb +0 -10
  463. data/lib/active_resource/detailed_log_subscriber.rb +0 -19
  464. data/lib/active_resource/disable_prefix_check.rb +0 -36
  465. data/lib/active_resource/json_errors.rb +0 -31
  466. data/lib/active_resource/to_query.rb +0 -10
  467. data/lib/shopify_api/connection.rb +0 -33
  468. data/lib/shopify_api/countable.rb +0 -14
  469. data/lib/shopify_api/events.rb +0 -7
  470. data/lib/shopify_api/json_format.rb +0 -18
  471. data/lib/shopify_api/limits.rb +0 -76
  472. data/lib/shopify_api/metafields.rb +0 -20
  473. data/lib/shopify_api/resources/access_scope.rb +0 -5
  474. data/lib/shopify_api/resources/access_token.rb +0 -8
  475. data/lib/shopify_api/resources/address.rb +0 -4
  476. data/lib/shopify_api/resources/announcement.rb +0 -4
  477. data/lib/shopify_api/resources/api_permission.rb +0 -9
  478. data/lib/shopify_api/resources/application_charge.rb +0 -15
  479. data/lib/shopify_api/resources/application_credit.rb +0 -4
  480. data/lib/shopify_api/resources/article.rb +0 -21
  481. data/lib/shopify_api/resources/asset.rb +0 -96
  482. data/lib/shopify_api/resources/base.rb +0 -89
  483. data/lib/shopify_api/resources/billing_address.rb +0 -4
  484. data/lib/shopify_api/resources/blog.rb +0 -10
  485. data/lib/shopify_api/resources/carrier_service.rb +0 -4
  486. data/lib/shopify_api/resources/cart.rb +0 -4
  487. data/lib/shopify_api/resources/checkout.rb +0 -4
  488. data/lib/shopify_api/resources/collect.rb +0 -5
  489. data/lib/shopify_api/resources/collection_listing.rb +0 -9
  490. data/lib/shopify_api/resources/comment.rb +0 -9
  491. data/lib/shopify_api/resources/country.rb +0 -4
  492. data/lib/shopify_api/resources/custom_collection.rb +0 -19
  493. data/lib/shopify_api/resources/customer.rb +0 -29
  494. data/lib/shopify_api/resources/customer_group.rb +0 -5
  495. data/lib/shopify_api/resources/customer_invite.rb +0 -4
  496. data/lib/shopify_api/resources/customer_saved_search.rb +0 -9
  497. data/lib/shopify_api/resources/discount_code.rb +0 -9
  498. data/lib/shopify_api/resources/draft_order.rb +0 -14
  499. data/lib/shopify_api/resources/draft_order_invoice.rb +0 -4
  500. data/lib/shopify_api/resources/event.rb +0 -7
  501. data/lib/shopify_api/resources/fulfillment.rb +0 -13
  502. data/lib/shopify_api/resources/fulfillment_event.rb +0 -15
  503. data/lib/shopify_api/resources/fulfillment_request.rb +0 -15
  504. data/lib/shopify_api/resources/fulfillment_service.rb +0 -4
  505. data/lib/shopify_api/resources/gift_card.rb +0 -7
  506. data/lib/shopify_api/resources/graphql.rb +0 -22
  507. data/lib/shopify_api/resources/image.rb +0 -16
  508. data/lib/shopify_api/resources/inventory_item.rb +0 -6
  509. data/lib/shopify_api/resources/inventory_level.rb +0 -55
  510. data/lib/shopify_api/resources/line_item.rb +0 -14
  511. data/lib/shopify_api/resources/location.rb +0 -8
  512. data/lib/shopify_api/resources/marketing_event.rb +0 -8
  513. data/lib/shopify_api/resources/metafield.rb +0 -12
  514. data/lib/shopify_api/resources/note_attribute.rb +0 -4
  515. data/lib/shopify_api/resources/o_auth.rb +0 -17
  516. data/lib/shopify_api/resources/option.rb +0 -4
  517. data/lib/shopify_api/resources/order.rb +0 -29
  518. data/lib/shopify_api/resources/order_risk.rb +0 -8
  519. data/lib/shopify_api/resources/page.rb +0 -6
  520. data/lib/shopify_api/resources/payment_details.rb +0 -4
  521. data/lib/shopify_api/resources/ping/conversation.rb +0 -18
  522. data/lib/shopify_api/resources/ping/message.rb +0 -9
  523. data/lib/shopify_api/resources/ping.rb +0 -3
  524. data/lib/shopify_api/resources/policy.rb +0 -7
  525. data/lib/shopify_api/resources/price_rule.rb +0 -8
  526. data/lib/shopify_api/resources/product.rb +0 -33
  527. data/lib/shopify_api/resources/product_listing.rb +0 -9
  528. data/lib/shopify_api/resources/province.rb +0 -5
  529. data/lib/shopify_api/resources/receipt.rb +0 -4
  530. data/lib/shopify_api/resources/recurring_application_charge.rb +0 -31
  531. data/lib/shopify_api/resources/redirect.rb +0 -4
  532. data/lib/shopify_api/resources/refund.rb +0 -13
  533. data/lib/shopify_api/resources/report.rb +0 -4
  534. data/lib/shopify_api/resources/resource_feedback.rb +0 -19
  535. data/lib/shopify_api/resources/rule.rb +0 -4
  536. data/lib/shopify_api/resources/script_tag.rb +0 -4
  537. data/lib/shopify_api/resources/shipping_address.rb +0 -4
  538. data/lib/shopify_api/resources/shipping_line.rb +0 -4
  539. data/lib/shopify_api/resources/shipping_zone.rb +0 -4
  540. data/lib/shopify_api/resources/shop.rb +0 -23
  541. data/lib/shopify_api/resources/smart_collection.rb +0 -15
  542. data/lib/shopify_api/resources/storefront_access_token.rb +0 -4
  543. data/lib/shopify_api/resources/tax_line.rb +0 -4
  544. data/lib/shopify_api/resources/tax_service.rb +0 -4
  545. data/lib/shopify_api/resources/theme.rb +0 -4
  546. data/lib/shopify_api/resources/transaction.rb +0 -5
  547. data/lib/shopify_api/resources/usage_charge.rb +0 -5
  548. data/lib/shopify_api/resources/user.rb +0 -4
  549. data/lib/shopify_api/resources/variant.rb +0 -8
  550. data/lib/shopify_api/resources/webhook.rb +0 -4
  551. data/lib/shopify_api/resources.rb +0 -2
  552. data/lib/shopify_api/session.rb +0 -144
  553. data/test/access_token_test.rb +0 -19
  554. data/test/active_resource/json_errors_test.rb +0 -19
  555. data/test/api_permission_test.rb +0 -9
  556. data/test/application_charge_test.rb +0 -79
  557. data/test/application_credit_test.rb +0 -35
  558. data/test/article_test.rb +0 -73
  559. data/test/asset_test.rb +0 -18
  560. data/test/base_test.rb +0 -125
  561. data/test/blog_test.rb +0 -8
  562. data/test/carrier_service_test.rb +0 -17
  563. data/test/cart_test.rb +0 -13
  564. data/test/checkouts_test.rb +0 -9
  565. data/test/collect_test.rb +0 -9
  566. data/test/collection_listing_test.rb +0 -41
  567. data/test/countable_test.rb +0 -13
  568. data/test/custom_collection_test.rb +0 -9
  569. data/test/customer_saved_search_test.rb +0 -27
  570. data/test/customer_test.rb +0 -50
  571. data/test/detailed_log_subscriber_test.rb +0 -49
  572. data/test/discount_code_test.rb +0 -53
  573. data/test/draft_order_test.rb +0 -151
  574. data/test/fixtures/access_token_delegate.json +0 -4
  575. data/test/fixtures/application_charge.json +0 -16
  576. data/test/fixtures/application_charges.json +0 -57
  577. data/test/fixtures/application_credit.json +0 -12
  578. data/test/fixtures/application_credits.json +0 -24
  579. data/test/fixtures/article.json +0 -15
  580. data/test/fixtures/articles.json +0 -39
  581. data/test/fixtures/asset.json +0 -9
  582. data/test/fixtures/assets.json +0 -136
  583. data/test/fixtures/authors.json +0 -1
  584. data/test/fixtures/blog.json +0 -13
  585. data/test/fixtures/blogs.json +0 -13
  586. data/test/fixtures/carrier_service.json +0 -9
  587. data/test/fixtures/carts.json +0 -43
  588. data/test/fixtures/checkouts.json +0 -186
  589. data/test/fixtures/collect.json +0 -12
  590. data/test/fixtures/collection_listing.json +0 -11
  591. data/test/fixtures/collection_listing_product_ids.json +0 -1
  592. data/test/fixtures/collection_listings.json +0 -13
  593. data/test/fixtures/custom_collection.json +0 -17
  594. data/test/fixtures/customer_invite.json +0 -9
  595. data/test/fixtures/customer_saved_search.json +0 -9
  596. data/test/fixtures/customer_saved_search_customers.json +0 -60
  597. data/test/fixtures/customers.json +0 -59
  598. data/test/fixtures/customers_account_activation_url.json +0 -3
  599. data/test/fixtures/customers_search.json +0 -60
  600. data/test/fixtures/discount_code.json +0 -10
  601. data/test/fixtures/discount_codes.json +0 -12
  602. data/test/fixtures/draft_order.json +0 -159
  603. data/test/fixtures/draft_order_completed.json +0 -159
  604. data/test/fixtures/draft_order_invoice.json +0 -9
  605. data/test/fixtures/draft_orders.json +0 -161
  606. data/test/fixtures/engagement.json +0 -15
  607. data/test/fixtures/events.json +0 -31
  608. data/test/fixtures/fulfillment.json +0 -49
  609. data/test/fixtures/fulfillment_event.json +0 -12
  610. data/test/fixtures/fulfillment_request.json +0 -28
  611. data/test/fixtures/fulfillment_service.json +0 -10
  612. data/test/fixtures/gift_card.json +0 -20
  613. data/test/fixtures/gift_card_disabled.json +0 -20
  614. data/test/fixtures/image.json +0 -10
  615. data/test/fixtures/images.json +0 -20
  616. data/test/fixtures/inventory_level.json +0 -7
  617. data/test/fixtures/inventory_levels.json +0 -24
  618. data/test/fixtures/marketing_event.json +0 -28
  619. data/test/fixtures/marketing_events.json +0 -54
  620. data/test/fixtures/metafield.json +0 -12
  621. data/test/fixtures/metafields.json +0 -34
  622. data/test/fixtures/o_auth_revoke.json +0 -5
  623. data/test/fixtures/order.json +0 -297
  624. data/test/fixtures/order_risk.json +0 -14
  625. data/test/fixtures/order_risks.json +0 -28
  626. data/test/fixtures/order_with_properties.json +0 -373
  627. data/test/fixtures/orders.json +0 -299
  628. data/test/fixtures/ping/conversation.json +0 -1
  629. data/test/fixtures/ping/message.json +0 -1
  630. data/test/fixtures/policies.json +0 -8
  631. data/test/fixtures/price_rule.json +0 -27
  632. data/test/fixtures/price_rules.json +0 -28
  633. data/test/fixtures/product.json +0 -116
  634. data/test/fixtures/product_listing.json +0 -86
  635. data/test/fixtures/product_listing_product_ids.json +0 -1
  636. data/test/fixtures/product_listings.json +0 -174
  637. data/test/fixtures/recurring_application_charge.json +0 -22
  638. data/test/fixtures/recurring_application_charge_adjustment.json +0 -5
  639. data/test/fixtures/recurring_application_charges.json +0 -106
  640. data/test/fixtures/redirect.json +0 -7
  641. data/test/fixtures/refund.json +0 -112
  642. data/test/fixtures/report.json +0 -9
  643. data/test/fixtures/reports.json +0 -11
  644. data/test/fixtures/script_tag.json +0 -10
  645. data/test/fixtures/script_tags.json +0 -18
  646. data/test/fixtures/shipping_zones.json +0 -315
  647. data/test/fixtures/shop.json +0 -26
  648. data/test/fixtures/smart_collection.json +0 -21
  649. data/test/fixtures/storefront_access_token.json +0 -9
  650. data/test/fixtures/storefront_access_tokens.json +0 -18
  651. data/test/fixtures/tags.json +0 -1
  652. data/test/fixtures/tax_service.json +0 -9
  653. data/test/fixtures/transaction.json +0 -29
  654. data/test/fixtures/usage_charge.json +0 -11
  655. data/test/fixtures/usage_charges.json +0 -23
  656. data/test/fixtures/user.json +0 -21
  657. data/test/fixtures/users.json +0 -42
  658. data/test/fixtures/variant.json +0 -23
  659. data/test/fixtures/variants.json +0 -88
  660. data/test/fixtures/webhook.json +0 -10
  661. data/test/fixtures/webhooks.json +0 -18
  662. data/test/fulfillment_event_test.rb +0 -69
  663. data/test/fulfillment_request_test.rb +0 -33
  664. data/test/fulfillment_service_test.rb +0 -17
  665. data/test/fulfillment_test.rb +0 -61
  666. data/test/gift_card_test.rb +0 -22
  667. data/test/image_test.rb +0 -39
  668. data/test/inventory_level_test.rb +0 -59
  669. data/test/limits_test.rb +0 -38
  670. data/test/location_test.rb +0 -14
  671. data/test/marketing_event_test.rb +0 -68
  672. data/test/metafield_test.rb +0 -46
  673. data/test/o_auth_test.rb +0 -8
  674. data/test/order_risk_test.rb +0 -46
  675. data/test/order_test.rb +0 -59
  676. data/test/ping/conversation_test.rb +0 -39
  677. data/test/policy_test.rb +0 -19
  678. data/test/price_rule_test.rb +0 -65
  679. data/test/product_listing_test.rb +0 -40
  680. data/test/product_test.rb +0 -50
  681. data/test/recurring_application_charge_test.rb +0 -149
  682. data/test/redirect_test.rb +0 -9
  683. data/test/refund_test.rb +0 -32
  684. data/test/report_test.rb +0 -35
  685. data/test/resource_feedback_test.rb +0 -42
  686. data/test/script_tag_test.rb +0 -30
  687. data/test/session_test.rb +0 -250
  688. data/test/shipping_zone_test.rb +0 -10
  689. data/test/shop_test.rb +0 -68
  690. data/test/smart_collection_test.rb +0 -10
  691. data/test/storefront_access_token_test.rb +0 -32
  692. data/test/tax_service_test.rb +0 -8
  693. data/test/test_helper.rb +0 -97
  694. data/test/transaction_test.rb +0 -17
  695. data/test/usage_charge_test.rb +0 -21
  696. data/test/user_test.rb +0 -17
  697. data/test/variant_test.rb +0 -46
  698. data/test/webhook_test.rb +0 -21
@@ -0,0 +1,2401 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `concurrent-ruby` gem.
5
+ # Please instead update this file by running `bin/tapioca gem concurrent-ruby`.
6
+
7
+ module Concurrent
8
+ extend ::Concurrent::Utility::EngineDetector
9
+ extend ::Concurrent::Utility::NativeExtensionLoader
10
+ extend ::Logger::Severity
11
+ extend ::Concurrent::Concern::Logging
12
+ extend ::Concurrent::Concern::Deprecation
13
+
14
+ private
15
+
16
+ def abort_transaction; end
17
+ def atomically; end
18
+ def call_dataflow(method, executor, *inputs, &block); end
19
+ def dataflow(*inputs, &block); end
20
+ def dataflow!(*inputs, &block); end
21
+ def dataflow_with(executor, *inputs, &block); end
22
+ def dataflow_with!(executor, *inputs, &block); end
23
+ def leave_transaction; end
24
+ def monotonic_time; end
25
+
26
+ class << self
27
+ def abort_transaction; end
28
+ def atomically; end
29
+ def call_dataflow(method, executor, *inputs, &block); end
30
+ def create_simple_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
31
+ def create_stdlib_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
32
+ def dataflow(*inputs, &block); end
33
+ def dataflow!(*inputs, &block); end
34
+ def dataflow_with(executor, *inputs, &block); end
35
+ def dataflow_with!(executor, *inputs, &block); end
36
+ def disable_at_exit_handlers!; end
37
+ def executor(executor_identifier); end
38
+ def global_fast_executor; end
39
+ def global_immediate_executor; end
40
+ def global_io_executor; end
41
+ def global_logger; end
42
+ def global_logger=(value); end
43
+ def global_timer_set; end
44
+ def leave_transaction; end
45
+ def monotonic_time; end
46
+ def new_fast_executor(opts = T.unsafe(nil)); end
47
+ def new_io_executor(opts = T.unsafe(nil)); end
48
+ def physical_processor_count; end
49
+ def processor_count; end
50
+ def processor_counter; end
51
+ def use_simple_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
52
+ def use_stdlib_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
53
+ end
54
+ end
55
+
56
+ class Concurrent::AbstractExchanger < ::Concurrent::Synchronization::Object
57
+ def initialize; end
58
+
59
+ def exchange(value, timeout = T.unsafe(nil)); end
60
+ def exchange!(value, timeout = T.unsafe(nil)); end
61
+ def try_exchange(value, timeout = T.unsafe(nil)); end
62
+
63
+ private
64
+
65
+ def do_exchange(value, timeout); end
66
+ end
67
+
68
+ Concurrent::AbstractExchanger::CANCEL = T.let(T.unsafe(nil), Object)
69
+
70
+ class Concurrent::AbstractExecutorService < ::Concurrent::Synchronization::LockableObject
71
+ include ::Logger::Severity
72
+ include ::Concurrent::Concern::Logging
73
+ include ::Concurrent::ExecutorService
74
+ include ::Concurrent::Concern::Deprecation
75
+
76
+ def initialize(opts = T.unsafe(nil), &block); end
77
+
78
+ def auto_terminate=(value); end
79
+ def auto_terminate?; end
80
+ def fallback_policy; end
81
+ def kill; end
82
+ def name; end
83
+ def running?; end
84
+ def shutdown; end
85
+ def shutdown?; end
86
+ def shuttingdown?; end
87
+ def to_s; end
88
+ def wait_for_termination(timeout = T.unsafe(nil)); end
89
+
90
+ private
91
+
92
+ def handle_fallback(*args); end
93
+ def ns_auto_terminate?; end
94
+ def ns_execute(*args, &task); end
95
+ def ns_kill_execution; end
96
+ def ns_shutdown_execution; end
97
+ end
98
+
99
+ Concurrent::AbstractExecutorService::FALLBACK_POLICIES = T.let(T.unsafe(nil), Array)
100
+
101
+ class Concurrent::AbstractThreadLocalVar
102
+ def initialize(default = T.unsafe(nil), &default_block); end
103
+
104
+ def bind(value, &block); end
105
+ def value; end
106
+ def value=(value); end
107
+
108
+ protected
109
+
110
+ def allocate_storage; end
111
+ def default; end
112
+ end
113
+
114
+ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject
115
+ include ::Concurrent::Concern::Observable
116
+
117
+ def initialize(initial, opts = T.unsafe(nil)); end
118
+
119
+ def <<(action); end
120
+ def await; end
121
+ def await_for(timeout); end
122
+ def await_for!(timeout); end
123
+ def deref; end
124
+ def error; end
125
+ def error_mode; end
126
+ def failed?; end
127
+ def post(*args, &action); end
128
+ def reason; end
129
+ def restart(new_value, opts = T.unsafe(nil)); end
130
+ def send(*args, &action); end
131
+ def send!(*args, &action); end
132
+ def send_off(*args, &action); end
133
+ def send_off!(*args, &action); end
134
+ def send_via(executor, *args, &action); end
135
+ def send_via!(executor, *args, &action); end
136
+ def stopped?; end
137
+ def value; end
138
+ def wait(timeout = T.unsafe(nil)); end
139
+
140
+ private
141
+
142
+ def enqueue_action_job(action, args, executor); end
143
+ def enqueue_await_job(latch); end
144
+ def execute_next_job; end
145
+ def handle_error(error); end
146
+ def ns_enqueue_job(job, index = T.unsafe(nil)); end
147
+ def ns_find_last_job_for_thread; end
148
+ def ns_initialize(initial, opts); end
149
+ def ns_post_next_job; end
150
+ def ns_validate(value); end
151
+
152
+ class << self
153
+ def await(*agents); end
154
+ def await_for(timeout, *agents); end
155
+ def await_for!(timeout, *agents); end
156
+ end
157
+ end
158
+
159
+ Concurrent::Agent::AWAIT_ACTION = T.let(T.unsafe(nil), Proc)
160
+ Concurrent::Agent::AWAIT_FLAG = T.let(T.unsafe(nil), Object)
161
+ Concurrent::Agent::DEFAULT_ERROR_HANDLER = T.let(T.unsafe(nil), Proc)
162
+ Concurrent::Agent::DEFAULT_VALIDATOR = T.let(T.unsafe(nil), Proc)
163
+ Concurrent::Agent::ERROR_MODES = T.let(T.unsafe(nil), Array)
164
+
165
+ class Concurrent::Agent::Error < ::StandardError
166
+ def initialize(message = T.unsafe(nil)); end
167
+ end
168
+
169
+ class Concurrent::Agent::Job < ::Struct
170
+ def action; end
171
+ def action=(_); end
172
+ def args; end
173
+ def args=(_); end
174
+ def caller; end
175
+ def caller=(_); end
176
+ def executor; end
177
+ def executor=(_); end
178
+
179
+ class << self
180
+ def [](*_arg0); end
181
+ def inspect; end
182
+ def members; end
183
+ def new(*_arg0); end
184
+ end
185
+ end
186
+
187
+ class Concurrent::Agent::ValidationError < ::Concurrent::Agent::Error
188
+ def initialize(message = T.unsafe(nil)); end
189
+ end
190
+
191
+ class Concurrent::Array < ::Array; end
192
+ Concurrent::ArrayImplementation = Array
193
+
194
+ module Concurrent::Async
195
+ mixes_in_class_methods ::Concurrent::Async::ClassMethods
196
+
197
+ def async; end
198
+ def await; end
199
+ def call; end
200
+ def cast; end
201
+ def init_synchronization; end
202
+
203
+ class << self
204
+ def included(base); end
205
+ def validate_argc(obj, method, *args); end
206
+ end
207
+ end
208
+
209
+ class Concurrent::Async::AsyncDelegator < ::Concurrent::Synchronization::LockableObject
210
+ def initialize(delegate); end
211
+
212
+ def method_missing(method, *args, &block); end
213
+ def perform; end
214
+ def reset_if_forked; end
215
+
216
+ private
217
+
218
+ def respond_to_missing?(method, include_private = T.unsafe(nil)); end
219
+ end
220
+
221
+ class Concurrent::Async::AwaitDelegator
222
+ def initialize(delegate); end
223
+
224
+ def method_missing(method, *args, &block); end
225
+
226
+ private
227
+
228
+ def respond_to_missing?(method, include_private = T.unsafe(nil)); end
229
+ end
230
+
231
+ module Concurrent::Async::ClassMethods
232
+ def new(*args, &block); end
233
+ end
234
+
235
+ class Concurrent::Atom < ::Concurrent::Synchronization::Object
236
+ include ::Concurrent::Concern::Observable
237
+
238
+ def initialize(value, opts = T.unsafe(nil)); end
239
+
240
+ def __initialize_atomic_fields__; end
241
+ def compare_and_set(old_value, new_value); end
242
+ def deref; end
243
+ def reset(new_value); end
244
+ def swap(*args); end
245
+ def value; end
246
+
247
+ private
248
+
249
+ def compare_and_set_value(expected, value); end
250
+ def swap_value(value); end
251
+ def update_value(&block); end
252
+ def valid?(new_value); end
253
+ def value=(value); end
254
+
255
+ class << self
256
+ def new(*args, &block); end
257
+ end
258
+ end
259
+
260
+ class Concurrent::AtomicBoolean < ::Concurrent::MutexAtomicBoolean
261
+ def inspect; end
262
+ def to_s; end
263
+ end
264
+
265
+ Concurrent::AtomicBooleanImplementation = Concurrent::MutexAtomicBoolean
266
+
267
+ module Concurrent::AtomicDirectUpdate
268
+ def try_update; end
269
+ def try_update!; end
270
+ def update; end
271
+ end
272
+
273
+ class Concurrent::AtomicFixnum < ::Concurrent::MutexAtomicFixnum
274
+ def inspect; end
275
+ def to_s; end
276
+ end
277
+
278
+ Concurrent::AtomicFixnumImplementation = Concurrent::MutexAtomicFixnum
279
+
280
+ class Concurrent::AtomicMarkableReference < ::Concurrent::Synchronization::Object
281
+ def initialize(value = T.unsafe(nil), mark = T.unsafe(nil)); end
282
+
283
+ def __initialize_atomic_fields__; end
284
+ def compare_and_set(expected_val, new_val, expected_mark, new_mark); end
285
+ def compare_and_swap(expected_val, new_val, expected_mark, new_mark); end
286
+ def get; end
287
+ def mark; end
288
+ def marked?; end
289
+ def set(new_val, new_mark); end
290
+ def try_update; end
291
+ def try_update!; end
292
+ def update; end
293
+ def value; end
294
+
295
+ private
296
+
297
+ def compare_and_set_reference(expected, value); end
298
+ def immutable_array(*args); end
299
+ def reference; end
300
+ def reference=(value); end
301
+ def swap_reference(value); end
302
+ def update_reference(&block); end
303
+
304
+ class << self
305
+ def new(*args, &block); end
306
+ end
307
+ end
308
+
309
+ module Concurrent::AtomicNumericCompareAndSetWrapper
310
+ def compare_and_set(old_value, new_value); end
311
+ end
312
+
313
+ class Concurrent::AtomicReference < ::Concurrent::MutexAtomicReference
314
+ def inspect; end
315
+ def to_s; end
316
+ end
317
+
318
+ Concurrent::AtomicReferenceImplementation = Concurrent::MutexAtomicReference
319
+
320
+ class Concurrent::CRubySet < ::Set
321
+ def initialize(*args, &block); end
322
+
323
+ def &(*args); end
324
+ def +(*args); end
325
+ def -(*args); end
326
+ def <(*args); end
327
+ def <<(*args); end
328
+ def <=(*args); end
329
+ def ==(*args); end
330
+ def ===(*args); end
331
+ def >(*args); end
332
+ def >=(*args); end
333
+ def ^(*args); end
334
+ def add(*args); end
335
+ def add?(*args); end
336
+ def classify(*args); end
337
+ def clear(*args); end
338
+ def collect!(*args); end
339
+ def compare_by_identity(*args); end
340
+ def compare_by_identity?(*args); end
341
+ def delete(*args); end
342
+ def delete?(*args); end
343
+ def delete_if(*args); end
344
+ def difference(*args); end
345
+ def disjoint?(*args); end
346
+ def divide(*args); end
347
+ def each(*args); end
348
+ def empty?(*args); end
349
+ def eql?(*args); end
350
+ def filter!(*args); end
351
+ def flatten(*args); end
352
+ def flatten!(*args); end
353
+ def flatten_merge(*args); end
354
+ def freeze(*args); end
355
+ def hash(*args); end
356
+ def include?(*args); end
357
+ def inspect(*args); end
358
+ def intersect?(*args); end
359
+ def intersection(*args); end
360
+ def keep_if(*args); end
361
+ def length(*args); end
362
+ def map!(*args); end
363
+ def member?(*args); end
364
+ def merge(*args); end
365
+ def pretty_print(*args); end
366
+ def pretty_print_cycle(*args); end
367
+ def proper_subset?(*args); end
368
+ def proper_superset?(*args); end
369
+ def reject!(*args); end
370
+ def replace(*args); end
371
+ def reset(*args); end
372
+ def select!(*args); end
373
+ def size(*args); end
374
+ def subset?(*args); end
375
+ def subtract(*args); end
376
+ def superset?(*args); end
377
+ def to_a(*args); end
378
+ def to_s(*args); end
379
+ def to_set(*args); end
380
+ def union(*args); end
381
+ def |(*args); end
382
+
383
+ private
384
+
385
+ def initialize_copy(other); end
386
+ end
387
+
388
+ class Concurrent::CachedThreadPool < ::Concurrent::ThreadPoolExecutor
389
+ def initialize(opts = T.unsafe(nil)); end
390
+
391
+ private
392
+
393
+ def ns_initialize(opts); end
394
+ end
395
+
396
+ class Concurrent::CancelledOperationError < ::Concurrent::Error; end
397
+ module Concurrent::Collection; end
398
+
399
+ class Concurrent::Collection::CopyOnNotifyObserverSet < ::Concurrent::Synchronization::LockableObject
400
+ def initialize; end
401
+
402
+ def add_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end
403
+ def count_observers; end
404
+ def delete_observer(observer); end
405
+ def delete_observers; end
406
+ def notify_and_delete_observers(*args, &block); end
407
+ def notify_observers(*args, &block); end
408
+
409
+ protected
410
+
411
+ def ns_initialize; end
412
+
413
+ private
414
+
415
+ def duplicate_and_clear_observers; end
416
+ def duplicate_observers; end
417
+ def notify_to(observers, *args); end
418
+ end
419
+
420
+ class Concurrent::Collection::CopyOnWriteObserverSet < ::Concurrent::Synchronization::LockableObject
421
+ def initialize; end
422
+
423
+ def add_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end
424
+ def count_observers; end
425
+ def delete_observer(observer); end
426
+ def delete_observers; end
427
+ def notify_and_delete_observers(*args, &block); end
428
+ def notify_observers(*args, &block); end
429
+
430
+ protected
431
+
432
+ def ns_initialize; end
433
+
434
+ private
435
+
436
+ def clear_observers_and_return_old; end
437
+ def notify_to(observers, *args); end
438
+ def observers; end
439
+ def observers=(new_set); end
440
+ end
441
+
442
+ Concurrent::Collection::MapImplementation = Concurrent::Collection::MriMapBackend
443
+
444
+ class Concurrent::Collection::MriMapBackend < ::Concurrent::Collection::NonConcurrentMapBackend
445
+ def initialize(options = T.unsafe(nil)); end
446
+
447
+ def []=(key, value); end
448
+ def clear; end
449
+ def compute(key); end
450
+ def compute_if_absent(key); end
451
+ def compute_if_present(key); end
452
+ def delete(key); end
453
+ def delete_pair(key, value); end
454
+ def get_and_set(key, value); end
455
+ def merge_pair(key, value); end
456
+ def replace_if_exists(key, new_value); end
457
+ def replace_pair(key, old_value, new_value); end
458
+ end
459
+
460
+ class Concurrent::Collection::NonConcurrentMapBackend
461
+ def initialize(options = T.unsafe(nil)); end
462
+
463
+ def [](key); end
464
+ def []=(key, value); end
465
+ def clear; end
466
+ def compute(key); end
467
+ def compute_if_absent(key); end
468
+ def compute_if_present(key); end
469
+ def delete(key); end
470
+ def delete_pair(key, value); end
471
+ def each_pair; end
472
+ def get_and_set(key, value); end
473
+ def get_or_default(key, default_value); end
474
+ def key?(key); end
475
+ def merge_pair(key, value); end
476
+ def replace_if_exists(key, new_value); end
477
+ def replace_pair(key, old_value, new_value); end
478
+ def size; end
479
+
480
+ private
481
+
482
+ def _get(key); end
483
+ def _set(key, value); end
484
+ def dupped_backend; end
485
+ def initialize_copy(other); end
486
+ def pair?(key, expected_value); end
487
+ def store_computed_value(key, new_value); end
488
+ end
489
+
490
+ class Concurrent::Collection::NonConcurrentPriorityQueue < ::Concurrent::Collection::RubyNonConcurrentPriorityQueue
491
+ def <<(item); end
492
+ def deq; end
493
+ def enq(item); end
494
+ def has_priority?(item); end
495
+ def shift; end
496
+ def size; end
497
+ end
498
+
499
+ Concurrent::Collection::NonConcurrentPriorityQueueImplementation = Concurrent::Collection::RubyNonConcurrentPriorityQueue
500
+
501
+ class Concurrent::Collection::RubyNonConcurrentPriorityQueue
502
+ def initialize(opts = T.unsafe(nil)); end
503
+
504
+ def <<(item); end
505
+ def clear; end
506
+ def delete(item); end
507
+ def deq; end
508
+ def empty?; end
509
+ def enq(item); end
510
+ def has_priority?(item); end
511
+ def include?(item); end
512
+ def length; end
513
+ def peek; end
514
+ def pop; end
515
+ def push(item); end
516
+ def shift; end
517
+ def size; end
518
+
519
+ private
520
+
521
+ def ordered?(x, y); end
522
+ def sink(k); end
523
+ def swap(x, y); end
524
+ def swim(k); end
525
+
526
+ class << self
527
+ def from_list(list, opts = T.unsafe(nil)); end
528
+ end
529
+ end
530
+
531
+ module Concurrent::Concern; end
532
+
533
+ module Concurrent::Concern::Deprecation
534
+ include ::Logger::Severity
535
+ include ::Concurrent::Concern::Logging
536
+ extend ::Logger::Severity
537
+ extend ::Concurrent::Concern::Logging
538
+ extend ::Concurrent::Concern::Deprecation
539
+
540
+ def deprecated(message, strip = T.unsafe(nil)); end
541
+ def deprecated_method(old_name, new_name); end
542
+ end
543
+
544
+ module Concurrent::Concern::Dereferenceable
545
+ def deref; end
546
+ def value; end
547
+
548
+ protected
549
+
550
+ def apply_deref_options(value); end
551
+ def ns_set_deref_options(opts); end
552
+ def set_deref_options(opts = T.unsafe(nil)); end
553
+ def value=(value); end
554
+ end
555
+
556
+ module Concurrent::Concern::Logging
557
+ include ::Logger::Severity
558
+
559
+ def log(level, progname, message = T.unsafe(nil), &block); end
560
+ end
561
+
562
+ module Concurrent::Concern::Obligation
563
+ include ::Concurrent::Concern::Dereferenceable
564
+
565
+ def complete?; end
566
+ def exception(*args); end
567
+ def fulfilled?; end
568
+ def incomplete?; end
569
+ def no_error!(timeout = T.unsafe(nil)); end
570
+ def pending?; end
571
+ def realized?; end
572
+ def reason; end
573
+ def rejected?; end
574
+ def state; end
575
+ def unscheduled?; end
576
+ def value(timeout = T.unsafe(nil)); end
577
+ def value!(timeout = T.unsafe(nil)); end
578
+ def wait(timeout = T.unsafe(nil)); end
579
+ def wait!(timeout = T.unsafe(nil)); end
580
+
581
+ protected
582
+
583
+ def compare_and_set_state(next_state, *expected_current); end
584
+ def event; end
585
+ def get_arguments_from(opts = T.unsafe(nil)); end
586
+ def if_state(*expected_states); end
587
+ def init_obligation; end
588
+ def ns_check_state?(expected); end
589
+ def ns_set_state(value); end
590
+ def set_state(success, value, reason); end
591
+ def state=(value); end
592
+ end
593
+
594
+ module Concurrent::Concern::Observable
595
+ def add_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end
596
+ def count_observers; end
597
+ def delete_observer(observer); end
598
+ def delete_observers; end
599
+ def with_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end
600
+
601
+ protected
602
+
603
+ def observers; end
604
+ def observers=(_arg0); end
605
+ end
606
+
607
+ class Concurrent::ConcurrentUpdateError < ::ThreadError; end
608
+ Concurrent::ConcurrentUpdateError::CONC_UP_ERR_BACKTRACE = T.let(T.unsafe(nil), Array)
609
+ class Concurrent::ConfigurationError < ::Concurrent::Error; end
610
+ class Concurrent::CountDownLatch < ::Concurrent::MutexCountDownLatch; end
611
+ Concurrent::CountDownLatchImplementation = Concurrent::MutexCountDownLatch
612
+
613
+ class Concurrent::CyclicBarrier < ::Concurrent::Synchronization::LockableObject
614
+ def initialize(parties, &block); end
615
+
616
+ def broken?; end
617
+ def number_waiting; end
618
+ def parties; end
619
+ def reset; end
620
+ def wait(timeout = T.unsafe(nil)); end
621
+
622
+ protected
623
+
624
+ def ns_generation_done(generation, status, continue = T.unsafe(nil)); end
625
+ def ns_initialize(parties, &block); end
626
+ def ns_next_generation; end
627
+ end
628
+
629
+ class Concurrent::CyclicBarrier::Generation < ::Struct
630
+ def status; end
631
+ def status=(_); end
632
+
633
+ class << self
634
+ def [](*_arg0); end
635
+ def inspect; end
636
+ def members; end
637
+ def new(*_arg0); end
638
+ end
639
+ end
640
+
641
+ class Concurrent::Delay < ::Concurrent::Synchronization::LockableObject
642
+ include ::Concurrent::Concern::Dereferenceable
643
+ include ::Concurrent::Concern::Obligation
644
+
645
+ def initialize(opts = T.unsafe(nil), &block); end
646
+
647
+ def reconfigure(&block); end
648
+ def value(timeout = T.unsafe(nil)); end
649
+ def value!(timeout = T.unsafe(nil)); end
650
+ def wait(timeout = T.unsafe(nil)); end
651
+
652
+ protected
653
+
654
+ def ns_initialize(opts, &block); end
655
+
656
+ private
657
+
658
+ def execute_task_once; end
659
+ end
660
+
661
+ class Concurrent::DependencyCounter
662
+ def initialize(count, &block); end
663
+
664
+ def update(time, value, reason); end
665
+ end
666
+
667
+ class Concurrent::Error < ::StandardError; end
668
+
669
+ class Concurrent::Event < ::Concurrent::Synchronization::LockableObject
670
+ def initialize; end
671
+
672
+ def reset; end
673
+ def set; end
674
+ def set?; end
675
+ def try?; end
676
+ def wait(timeout = T.unsafe(nil)); end
677
+
678
+ protected
679
+
680
+ def ns_initialize; end
681
+ def ns_set; end
682
+ end
683
+
684
+ class Concurrent::Exchanger < ::Concurrent::RubyExchanger; end
685
+ Concurrent::ExchangerImplementation = Concurrent::RubyExchanger
686
+
687
+ module Concurrent::ExecutorService
688
+ include ::Logger::Severity
689
+ include ::Concurrent::Concern::Logging
690
+
691
+ def <<(task); end
692
+ def can_overflow?; end
693
+ def post(*args, &task); end
694
+ def serialized?; end
695
+ end
696
+
697
+ class Concurrent::FixedThreadPool < ::Concurrent::ThreadPoolExecutor
698
+ def initialize(num_threads, opts = T.unsafe(nil)); end
699
+ end
700
+
701
+ class Concurrent::Future < ::Concurrent::IVar
702
+ def initialize(opts = T.unsafe(nil), &block); end
703
+
704
+ def cancel; end
705
+ def cancelled?; end
706
+ def execute; end
707
+ def set(value = T.unsafe(nil), &block); end
708
+ def wait_or_cancel(timeout); end
709
+
710
+ protected
711
+
712
+ def ns_initialize(value, opts); end
713
+
714
+ class << self
715
+ def execute(opts = T.unsafe(nil), &block); end
716
+ end
717
+ end
718
+
719
+ Concurrent::GLOBAL_FAST_EXECUTOR = T.let(T.unsafe(nil), Concurrent::Delay)
720
+ Concurrent::GLOBAL_IMMEDIATE_EXECUTOR = T.let(T.unsafe(nil), Concurrent::ImmediateExecutor)
721
+ Concurrent::GLOBAL_IO_EXECUTOR = T.let(T.unsafe(nil), Concurrent::Delay)
722
+ Concurrent::GLOBAL_LOGGER = T.let(T.unsafe(nil), Concurrent::AtomicReference)
723
+ Concurrent::GLOBAL_MONOTONIC_CLOCK = T.let(T.unsafe(nil), T.untyped)
724
+ Concurrent::GLOBAL_TIMER_SET = T.let(T.unsafe(nil), Concurrent::Delay)
725
+ class Concurrent::Hash < ::Hash; end
726
+ Concurrent::HashImplementation = Hash
727
+
728
+ class Concurrent::IVar < ::Concurrent::Synchronization::LockableObject
729
+ include ::Concurrent::Concern::Dereferenceable
730
+ include ::Concurrent::Concern::Obligation
731
+ include ::Concurrent::Concern::Observable
732
+
733
+ def initialize(value = T.unsafe(nil), opts = T.unsafe(nil), &block); end
734
+
735
+ def add_observer(observer = T.unsafe(nil), func = T.unsafe(nil), &block); end
736
+ def fail(reason = T.unsafe(nil)); end
737
+ def set(value = T.unsafe(nil)); end
738
+ def try_set(value = T.unsafe(nil), &block); end
739
+
740
+ protected
741
+
742
+ def check_for_block_or_value!(block_given, value); end
743
+ def complete(success, value, reason); end
744
+ def complete_without_notification(success, value, reason); end
745
+ def notify_observers(value, reason); end
746
+ def ns_complete_without_notification(success, value, reason); end
747
+ def ns_initialize(value, opts); end
748
+ def safe_execute(task, args = T.unsafe(nil)); end
749
+ end
750
+
751
+ class Concurrent::IllegalOperationError < ::Concurrent::Error; end
752
+
753
+ class Concurrent::ImmediateExecutor < ::Concurrent::AbstractExecutorService
754
+ include ::Concurrent::SerialExecutorService
755
+
756
+ def initialize; end
757
+
758
+ def <<(task); end
759
+ def kill; end
760
+ def post(*args, &task); end
761
+ def running?; end
762
+ def shutdown; end
763
+ def shutdown?; end
764
+ def shuttingdown?; end
765
+ def wait_for_termination(timeout = T.unsafe(nil)); end
766
+ end
767
+
768
+ class Concurrent::ImmutabilityError < ::Concurrent::Error; end
769
+
770
+ module Concurrent::ImmutableStruct
771
+ include ::Concurrent::Synchronization::AbstractStruct
772
+
773
+ def ==(other); end
774
+ def [](member); end
775
+ def each(&block); end
776
+ def each_pair(&block); end
777
+ def inspect; end
778
+ def merge(other, &block); end
779
+ def select(&block); end
780
+ def to_a; end
781
+ def to_h; end
782
+ def to_s; end
783
+ def values; end
784
+ def values_at(*indexes); end
785
+
786
+ private
787
+
788
+ def initialize_copy(original); end
789
+
790
+ class << self
791
+ def included(base); end
792
+ def new(*args, &block); end
793
+ end
794
+ end
795
+
796
+ Concurrent::ImmutableStruct::FACTORY = T.let(T.unsafe(nil), T.untyped)
797
+
798
+ class Concurrent::IndirectImmediateExecutor < ::Concurrent::ImmediateExecutor
799
+ def initialize; end
800
+
801
+ def post(*args, &task); end
802
+ end
803
+
804
+ class Concurrent::InitializationError < ::Concurrent::Error; end
805
+ class Concurrent::LifecycleError < ::Concurrent::Error; end
806
+
807
+ class Concurrent::LockFreeStack < ::Concurrent::Synchronization::Object
808
+ include ::Enumerable
809
+
810
+ def initialize(head = T.unsafe(nil)); end
811
+
812
+ def __initialize_atomic_fields__; end
813
+ def clear; end
814
+ def clear_each(&block); end
815
+ def clear_if(head); end
816
+ def compare_and_clear(head); end
817
+ def compare_and_pop(head); end
818
+ def compare_and_push(head, value); end
819
+ def each(head = T.unsafe(nil)); end
820
+ def empty?(head = T.unsafe(nil)); end
821
+ def inspect; end
822
+ def peek; end
823
+ def pop; end
824
+ def push(value); end
825
+ def replace_if(head, new_head); end
826
+ def to_s; end
827
+
828
+ private
829
+
830
+ def compare_and_set_head(expected, value); end
831
+ def head; end
832
+ def head=(value); end
833
+ def swap_head(value); end
834
+ def update_head(&block); end
835
+
836
+ class << self
837
+ def new(*args, &block); end
838
+ def of1(value); end
839
+ def of2(value1, value2); end
840
+ end
841
+ end
842
+
843
+ Concurrent::LockFreeStack::EMPTY = T.let(T.unsafe(nil), Concurrent::LockFreeStack::Node)
844
+
845
+ class Concurrent::LockFreeStack::Node
846
+ def initialize(value, next_node); end
847
+
848
+ def next_node; end
849
+ def value; end
850
+ def value=(_arg0); end
851
+
852
+ class << self
853
+ def [](*_arg0); end
854
+ end
855
+ end
856
+
857
+ class Concurrent::MVar < ::Concurrent::Synchronization::Object
858
+ include ::Concurrent::Concern::Dereferenceable
859
+
860
+ def initialize(value = T.unsafe(nil), opts = T.unsafe(nil)); end
861
+
862
+ def borrow(timeout = T.unsafe(nil)); end
863
+ def empty?; end
864
+ def full?; end
865
+ def modify(timeout = T.unsafe(nil)); end
866
+ def modify!; end
867
+ def put(value, timeout = T.unsafe(nil)); end
868
+ def set!(value); end
869
+ def take(timeout = T.unsafe(nil)); end
870
+ def try_put!(value); end
871
+ def try_take!; end
872
+
873
+ protected
874
+
875
+ def synchronize(&block); end
876
+
877
+ private
878
+
879
+ def unlocked_empty?; end
880
+ def unlocked_full?; end
881
+ def wait_for_empty(timeout); end
882
+ def wait_for_full(timeout); end
883
+ def wait_while(condition, timeout); end
884
+
885
+ class << self
886
+ def new(*args, &block); end
887
+ end
888
+ end
889
+
890
+ Concurrent::MVar::EMPTY = T.let(T.unsafe(nil), Object)
891
+ Concurrent::MVar::TIMEOUT = T.let(T.unsafe(nil), Object)
892
+
893
+ class Concurrent::Map < ::Concurrent::Collection::MriMapBackend
894
+ def initialize(options = T.unsafe(nil), &block); end
895
+
896
+ def [](key); end
897
+ def []=(key, value); end
898
+ def each; end
899
+ def each_key; end
900
+ def each_pair; end
901
+ def each_value; end
902
+ def empty?; end
903
+ def fetch(key, default_value = T.unsafe(nil)); end
904
+ def fetch_or_store(key, default_value = T.unsafe(nil)); end
905
+ def get(key); end
906
+ def inspect; end
907
+ def key(value); end
908
+ def keys; end
909
+ def marshal_dump; end
910
+ def marshal_load(hash); end
911
+ def put(key, value); end
912
+ def put_if_absent(key, value); end
913
+ def value?(value); end
914
+ def values; end
915
+
916
+ private
917
+
918
+ def initialize_copy(other); end
919
+ def populate_from(hash); end
920
+ def raise_fetch_no_key; end
921
+ def validate_options_hash!(options); end
922
+ end
923
+
924
+ class Concurrent::MaxRestartFrequencyError < ::Concurrent::Error; end
925
+
926
+ class Concurrent::Maybe < ::Concurrent::Synchronization::Object
927
+ include ::Comparable
928
+
929
+ def initialize(just, nothing); end
930
+
931
+ def <=>(other); end
932
+ def fulfilled?; end
933
+ def just; end
934
+ def just?; end
935
+ def nothing; end
936
+ def nothing?; end
937
+ def or(other); end
938
+ def reason; end
939
+ def rejected?; end
940
+ def value; end
941
+
942
+ class << self
943
+ def from(*args); end
944
+ def just(value); end
945
+ def nothing(error = T.unsafe(nil)); end
946
+
947
+ private
948
+
949
+ def new(*args, &block); end
950
+ end
951
+ end
952
+
953
+ Concurrent::Maybe::NONE = T.let(T.unsafe(nil), Object)
954
+
955
+ class Concurrent::MultipleAssignmentError < ::Concurrent::Error
956
+ def initialize(message = T.unsafe(nil), inspection_data = T.unsafe(nil)); end
957
+
958
+ def inspect; end
959
+ def inspection_data; end
960
+ end
961
+
962
+ class Concurrent::MultipleErrors < ::Concurrent::Error
963
+ def initialize(errors, message = T.unsafe(nil)); end
964
+
965
+ def errors; end
966
+ end
967
+
968
+ module Concurrent::MutableStruct
969
+ include ::Concurrent::Synchronization::AbstractStruct
970
+
971
+ def ==(other); end
972
+ def [](member); end
973
+ def []=(member, value); end
974
+ def each(&block); end
975
+ def each_pair(&block); end
976
+ def inspect; end
977
+ def merge(other, &block); end
978
+ def select(&block); end
979
+ def to_a; end
980
+ def to_h; end
981
+ def to_s; end
982
+ def values; end
983
+ def values_at(*indexes); end
984
+
985
+ private
986
+
987
+ def initialize_copy(original); end
988
+
989
+ class << self
990
+ def new(*args, &block); end
991
+ end
992
+ end
993
+
994
+ Concurrent::MutableStruct::FACTORY = T.let(T.unsafe(nil), T.untyped)
995
+
996
+ class Concurrent::MutexAtomicBoolean < ::Concurrent::Synchronization::LockableObject
997
+ def initialize(initial = T.unsafe(nil)); end
998
+
999
+ def false?; end
1000
+ def make_false; end
1001
+ def make_true; end
1002
+ def true?; end
1003
+ def value; end
1004
+ def value=(value); end
1005
+
1006
+ protected
1007
+
1008
+ def ns_initialize(initial); end
1009
+
1010
+ private
1011
+
1012
+ def ns_make_value(value); end
1013
+ end
1014
+
1015
+ class Concurrent::MutexAtomicFixnum < ::Concurrent::Synchronization::LockableObject
1016
+ def initialize(initial = T.unsafe(nil)); end
1017
+
1018
+ def compare_and_set(expect, update); end
1019
+ def decrement(delta = T.unsafe(nil)); end
1020
+ def down(delta = T.unsafe(nil)); end
1021
+ def increment(delta = T.unsafe(nil)); end
1022
+ def up(delta = T.unsafe(nil)); end
1023
+ def update; end
1024
+ def value; end
1025
+ def value=(value); end
1026
+
1027
+ protected
1028
+
1029
+ def ns_initialize(initial); end
1030
+
1031
+ private
1032
+
1033
+ def ns_set(value); end
1034
+ end
1035
+
1036
+ class Concurrent::MutexAtomicReference < ::Concurrent::Synchronization::LockableObject
1037
+ include ::Concurrent::AtomicDirectUpdate
1038
+ include ::Concurrent::AtomicNumericCompareAndSetWrapper
1039
+
1040
+ def initialize(value = T.unsafe(nil)); end
1041
+
1042
+ def _compare_and_set(old_value, new_value); end
1043
+ def compare_and_swap(old_value, new_value); end
1044
+ def get; end
1045
+ def get_and_set(new_value); end
1046
+ def set(new_value); end
1047
+ def swap(new_value); end
1048
+ def value; end
1049
+ def value=(new_value); end
1050
+
1051
+ protected
1052
+
1053
+ def ns_initialize(value); end
1054
+ end
1055
+
1056
+ class Concurrent::MutexCountDownLatch < ::Concurrent::Synchronization::LockableObject
1057
+ def initialize(count = T.unsafe(nil)); end
1058
+
1059
+ def count; end
1060
+ def count_down; end
1061
+ def wait(timeout = T.unsafe(nil)); end
1062
+
1063
+ protected
1064
+
1065
+ def ns_initialize(count); end
1066
+ end
1067
+
1068
+ class Concurrent::MutexSemaphore < ::Concurrent::Synchronization::LockableObject
1069
+ def initialize(count); end
1070
+
1071
+ def acquire(permits = T.unsafe(nil)); end
1072
+ def available_permits; end
1073
+ def drain_permits; end
1074
+ def reduce_permits(reduction); end
1075
+ def release(permits = T.unsafe(nil)); end
1076
+ def try_acquire(permits = T.unsafe(nil), timeout = T.unsafe(nil)); end
1077
+
1078
+ protected
1079
+
1080
+ def ns_initialize(count); end
1081
+
1082
+ private
1083
+
1084
+ def try_acquire_now(permits); end
1085
+ def try_acquire_timed(permits, timeout); end
1086
+ end
1087
+
1088
+ Concurrent::NULL = T.let(T.unsafe(nil), Object)
1089
+ Concurrent::NULL_LOGGER = T.let(T.unsafe(nil), Proc)
1090
+
1091
+ module Concurrent::Options
1092
+ class << self
1093
+ def executor(executor_identifier); end
1094
+ def executor_from_options(opts = T.unsafe(nil)); end
1095
+ end
1096
+ end
1097
+
1098
+ class Concurrent::Promise < ::Concurrent::IVar
1099
+ def initialize(opts = T.unsafe(nil), &block); end
1100
+
1101
+ def catch(&block); end
1102
+ def execute; end
1103
+ def fail(reason = T.unsafe(nil)); end
1104
+ def flat_map(&block); end
1105
+ def on_error(&block); end
1106
+ def on_success(&block); end
1107
+ def rescue(&block); end
1108
+ def set(value = T.unsafe(nil), &block); end
1109
+ def then(*args, &block); end
1110
+ def zip(*others); end
1111
+
1112
+ protected
1113
+
1114
+ def complete(success, value, reason); end
1115
+ def notify_child(child); end
1116
+ def ns_initialize(value, opts); end
1117
+ def on_fulfill(result); end
1118
+ def on_reject(reason); end
1119
+ def realize(task); end
1120
+ def root?; end
1121
+ def set_pending; end
1122
+ def set_state!(success, value, reason); end
1123
+ def synchronized_set_state!(success, value, reason); end
1124
+
1125
+ class << self
1126
+ def aggregate(method, *promises); end
1127
+ def all?(*promises); end
1128
+ def any?(*promises); end
1129
+ def execute(opts = T.unsafe(nil), &block); end
1130
+ def fulfill(value, opts = T.unsafe(nil)); end
1131
+ def reject(reason, opts = T.unsafe(nil)); end
1132
+ def zip(*promises); end
1133
+ end
1134
+ end
1135
+
1136
+ class Concurrent::PromiseExecutionError < ::StandardError; end
1137
+
1138
+ module Concurrent::Promises
1139
+ extend ::Concurrent::Promises::FactoryMethods::Configuration
1140
+ extend ::Concurrent::Promises::FactoryMethods
1141
+ end
1142
+
1143
+ class Concurrent::Promises::AbstractAnyPromise < ::Concurrent::Promises::BlockedPromise; end
1144
+
1145
+ class Concurrent::Promises::AbstractEventFuture < ::Concurrent::Synchronization::Object
1146
+ include ::Concurrent::Promises::InternalStates
1147
+
1148
+ def initialize(promise, default_executor); end
1149
+
1150
+ def __initialize_atomic_fields__; end
1151
+ def add_callback_clear_delayed_node(node); end
1152
+ def add_callback_notify_blocked(promise, index); end
1153
+ def blocks; end
1154
+ def callbacks; end
1155
+ def chain(*args, &task); end
1156
+ def chain_on(executor, *args, &task); end
1157
+ def chain_resolvable(resolvable); end
1158
+ def default_executor; end
1159
+ def inspect; end
1160
+ def internal_state; end
1161
+ def on_resolution(*args, &callback); end
1162
+ def on_resolution!(*args, &callback); end
1163
+ def on_resolution_using(executor, *args, &callback); end
1164
+ def pending?; end
1165
+ def promise; end
1166
+ def resolve_with(state, raise_on_reassign = T.unsafe(nil), reserved = T.unsafe(nil)); end
1167
+ def resolved?; end
1168
+ def state; end
1169
+ def tangle(resolvable); end
1170
+ def to_s; end
1171
+ def touch; end
1172
+ def touched?; end
1173
+ def wait(timeout = T.unsafe(nil)); end
1174
+ def waiting_threads; end
1175
+ def with_default_executor(executor); end
1176
+ def with_hidden_resolvable; end
1177
+
1178
+ private
1179
+
1180
+ def add_callback(method, *args); end
1181
+ def async_callback_on_resolution(state, executor, args, callback); end
1182
+ def call_callback(method, state, args); end
1183
+ def call_callbacks(state); end
1184
+ def callback_clear_delayed_node(state, node); end
1185
+ def callback_notify_blocked(state, promise, index); end
1186
+ def compare_and_set_internal_state(expected, value); end
1187
+ def internal_state=(value); end
1188
+ def swap_internal_state(value); end
1189
+ def update_internal_state(&block); end
1190
+ def wait_until_resolved(timeout); end
1191
+ def with_async(executor, *args, &block); end
1192
+
1193
+ class << self
1194
+ def new(*args, &block); end
1195
+ end
1196
+ end
1197
+
1198
+ class Concurrent::Promises::AbstractFlatPromise < ::Concurrent::Promises::BlockedPromise
1199
+ def initialize(delayed_because, blockers_count, event_or_future); end
1200
+
1201
+ def touch; end
1202
+
1203
+ private
1204
+
1205
+ def add_delayed_of(future); end
1206
+ def on_resolvable(resolved_future, index); end
1207
+ def resolvable?(countdown, future, index); end
1208
+ def touched?; end
1209
+ end
1210
+
1211
+ class Concurrent::Promises::AbstractPromise < ::Concurrent::Synchronization::Object
1212
+ include ::Concurrent::Promises::InternalStates
1213
+
1214
+ def initialize(future); end
1215
+
1216
+ def default_executor; end
1217
+ def delayed_because; end
1218
+ def event; end
1219
+ def future; end
1220
+ def inspect; end
1221
+ def state; end
1222
+ def to_s; end
1223
+ def touch; end
1224
+
1225
+ private
1226
+
1227
+ def evaluate_to(*args, block); end
1228
+ def resolve_with(new_state, raise_on_reassign = T.unsafe(nil)); end
1229
+
1230
+ class << self
1231
+ def new(*args, &block); end
1232
+ end
1233
+ end
1234
+
1235
+ class Concurrent::Promises::AnyFulfilledFuturePromise < ::Concurrent::Promises::AnyResolvedFuturePromise
1236
+ private
1237
+
1238
+ def resolvable?(countdown, future, index); end
1239
+ end
1240
+
1241
+ class Concurrent::Promises::AnyResolvedEventPromise < ::Concurrent::Promises::AbstractAnyPromise
1242
+ def initialize(delayed, blockers_count, default_executor); end
1243
+
1244
+ private
1245
+
1246
+ def on_resolvable(resolved_future, index); end
1247
+ def resolvable?(countdown, future, index); end
1248
+ end
1249
+
1250
+ class Concurrent::Promises::AnyResolvedFuturePromise < ::Concurrent::Promises::AbstractAnyPromise
1251
+ def initialize(delayed, blockers_count, default_executor); end
1252
+
1253
+ private
1254
+
1255
+ def on_resolvable(resolved_future, index); end
1256
+ def resolvable?(countdown, future, index); end
1257
+ end
1258
+
1259
+ class Concurrent::Promises::BlockedPromise < ::Concurrent::Promises::InnerPromise
1260
+ def initialize(delayed, blockers_count, future); end
1261
+
1262
+ def blocked_by; end
1263
+ def delayed_because; end
1264
+ def on_blocker_resolution(future, index); end
1265
+ def touch; end
1266
+
1267
+ private
1268
+
1269
+ def clear_and_propagate_touch(stack_or_element = T.unsafe(nil)); end
1270
+ def on_resolvable(resolved_future, index); end
1271
+ def process_on_blocker_resolution(future, index); end
1272
+ def resolvable?(countdown, future, index); end
1273
+
1274
+ class << self
1275
+ def add_delayed(delayed1, delayed2); end
1276
+ def new_blocked_by(blockers, *args, &block); end
1277
+ def new_blocked_by1(blocker, *args, &block); end
1278
+ def new_blocked_by2(blocker1, blocker2, *args, &block); end
1279
+ end
1280
+ end
1281
+
1282
+ class Concurrent::Promises::BlockedTaskPromise < ::Concurrent::Promises::BlockedPromise
1283
+ def initialize(delayed, blockers_count, default_executor, executor, args, &task); end
1284
+
1285
+ def executor; end
1286
+ end
1287
+
1288
+ class Concurrent::Promises::ChainPromise < ::Concurrent::Promises::BlockedTaskPromise
1289
+ private
1290
+
1291
+ def on_resolvable(resolved_future, index); end
1292
+ end
1293
+
1294
+ class Concurrent::Promises::DelayPromise < ::Concurrent::Promises::InnerPromise
1295
+ def initialize(default_executor); end
1296
+
1297
+ def delayed_because; end
1298
+ def touch; end
1299
+ end
1300
+
1301
+ class Concurrent::Promises::Event < ::Concurrent::Promises::AbstractEventFuture
1302
+ def &(other); end
1303
+ def any(event_or_future); end
1304
+ def delay; end
1305
+ def schedule(intended_time); end
1306
+ def then(*args, &task); end
1307
+ def to_event; end
1308
+ def to_future; end
1309
+ def with_default_executor(executor); end
1310
+ def zip(other); end
1311
+ def |(event_or_future); end
1312
+
1313
+ private
1314
+
1315
+ def callback_on_resolution(state, args, callback); end
1316
+ def rejected_resolution(raise_on_reassign, state); end
1317
+ end
1318
+
1319
+ class Concurrent::Promises::EventWrapperPromise < ::Concurrent::Promises::BlockedPromise
1320
+ def initialize(delayed, blockers_count, default_executor); end
1321
+
1322
+ private
1323
+
1324
+ def on_resolvable(resolved_future, index); end
1325
+ end
1326
+
1327
+ module Concurrent::Promises::FactoryMethods
1328
+ include ::Concurrent::Promises::FactoryMethods::Configuration
1329
+ extend ::Concurrent::ReInclude
1330
+ extend ::Concurrent::Promises::FactoryMethods
1331
+ extend ::Concurrent::Promises::FactoryMethods::Configuration
1332
+
1333
+ def any(*futures_and_or_events); end
1334
+ def any_event(*futures_and_or_events); end
1335
+ def any_event_on(default_executor, *futures_and_or_events); end
1336
+ def any_fulfilled_future(*futures_and_or_events); end
1337
+ def any_fulfilled_future_on(default_executor, *futures_and_or_events); end
1338
+ def any_resolved_future(*futures_and_or_events); end
1339
+ def any_resolved_future_on(default_executor, *futures_and_or_events); end
1340
+ def delay(*args, &task); end
1341
+ def delay_on(default_executor, *args, &task); end
1342
+ def fulfilled_future(value, default_executor = T.unsafe(nil)); end
1343
+ def future(*args, &task); end
1344
+ def future_on(default_executor, *args, &task); end
1345
+ def make_future(argument = T.unsafe(nil), default_executor = T.unsafe(nil)); end
1346
+ def rejected_future(reason, default_executor = T.unsafe(nil)); end
1347
+ def resolvable_event; end
1348
+ def resolvable_event_on(default_executor = T.unsafe(nil)); end
1349
+ def resolvable_future; end
1350
+ def resolvable_future_on(default_executor = T.unsafe(nil)); end
1351
+ def resolved_event(default_executor = T.unsafe(nil)); end
1352
+ def resolved_future(fulfilled, value, reason, default_executor = T.unsafe(nil)); end
1353
+ def schedule(intended_time, *args, &task); end
1354
+ def schedule_on(default_executor, intended_time, *args, &task); end
1355
+ def zip(*futures_and_or_events); end
1356
+ def zip_events(*futures_and_or_events); end
1357
+ def zip_events_on(default_executor, *futures_and_or_events); end
1358
+ def zip_futures(*futures_and_or_events); end
1359
+ def zip_futures_on(default_executor, *futures_and_or_events); end
1360
+ end
1361
+
1362
+ module Concurrent::Promises::FactoryMethods::Configuration
1363
+ def default_executor; end
1364
+ end
1365
+
1366
+ class Concurrent::Promises::FlatEventPromise < ::Concurrent::Promises::AbstractFlatPromise
1367
+ def initialize(delayed, blockers_count, default_executor); end
1368
+
1369
+ private
1370
+
1371
+ def process_on_blocker_resolution(future, index); end
1372
+ end
1373
+
1374
+ class Concurrent::Promises::FlatFuturePromise < ::Concurrent::Promises::AbstractFlatPromise
1375
+ def initialize(delayed, blockers_count, levels, default_executor); end
1376
+
1377
+ private
1378
+
1379
+ def process_on_blocker_resolution(future, index); end
1380
+ end
1381
+
1382
+ class Concurrent::Promises::Future < ::Concurrent::Promises::AbstractEventFuture
1383
+ def &(other); end
1384
+ def any(event_or_future); end
1385
+ def apply(args, block); end
1386
+ def delay; end
1387
+ def exception(*args); end
1388
+ def flat(level = T.unsafe(nil)); end
1389
+ def flat_event; end
1390
+ def flat_future(level = T.unsafe(nil)); end
1391
+ def fulfilled?; end
1392
+ def inspect; end
1393
+ def on_fulfillment(*args, &callback); end
1394
+ def on_fulfillment!(*args, &callback); end
1395
+ def on_fulfillment_using(executor, *args, &callback); end
1396
+ def on_rejection(*args, &callback); end
1397
+ def on_rejection!(*args, &callback); end
1398
+ def on_rejection_using(executor, *args, &callback); end
1399
+ def reason(timeout = T.unsafe(nil), timeout_value = T.unsafe(nil)); end
1400
+ def rejected?; end
1401
+ def rescue(*args, &task); end
1402
+ def rescue_on(executor, *args, &task); end
1403
+ def result(timeout = T.unsafe(nil)); end
1404
+ def run(run_test = T.unsafe(nil)); end
1405
+ def schedule(intended_time); end
1406
+ def then(*args, &task); end
1407
+ def then_on(executor, *args, &task); end
1408
+ def to_event; end
1409
+ def to_future; end
1410
+ def to_s; end
1411
+ def value(timeout = T.unsafe(nil), timeout_value = T.unsafe(nil)); end
1412
+ def value!(timeout = T.unsafe(nil), timeout_value = T.unsafe(nil)); end
1413
+ def wait!(timeout = T.unsafe(nil)); end
1414
+ def with_default_executor(executor); end
1415
+ def zip(other); end
1416
+ def |(event_or_future); end
1417
+
1418
+ private
1419
+
1420
+ def async_callback_on_fulfillment(state, executor, args, callback); end
1421
+ def async_callback_on_rejection(state, executor, args, callback); end
1422
+ def callback_on_fulfillment(state, args, callback); end
1423
+ def callback_on_rejection(state, args, callback); end
1424
+ def callback_on_resolution(state, args, callback); end
1425
+ def rejected_resolution(raise_on_reassign, state); end
1426
+ def run_test(v); end
1427
+ def wait_until_resolved!(timeout = T.unsafe(nil)); end
1428
+ end
1429
+
1430
+ class Concurrent::Promises::FutureWrapperPromise < ::Concurrent::Promises::BlockedPromise
1431
+ def initialize(delayed, blockers_count, default_executor); end
1432
+
1433
+ private
1434
+
1435
+ def on_resolvable(resolved_future, index); end
1436
+ end
1437
+
1438
+ class Concurrent::Promises::ImmediateEventPromise < ::Concurrent::Promises::InnerPromise
1439
+ def initialize(default_executor); end
1440
+ end
1441
+
1442
+ class Concurrent::Promises::ImmediateFuturePromise < ::Concurrent::Promises::InnerPromise
1443
+ def initialize(default_executor, fulfilled, value, reason); end
1444
+ end
1445
+
1446
+ class Concurrent::Promises::InnerPromise < ::Concurrent::Promises::AbstractPromise; end
1447
+ module Concurrent::Promises::InternalStates; end
1448
+
1449
+ class Concurrent::Promises::InternalStates::Fulfilled < ::Concurrent::Promises::InternalStates::ResolvedWithResult
1450
+ def initialize(value); end
1451
+
1452
+ def apply(args, block); end
1453
+ def fulfilled?; end
1454
+ def reason; end
1455
+ def to_sym; end
1456
+ def value; end
1457
+ end
1458
+
1459
+ class Concurrent::Promises::InternalStates::FulfilledArray < ::Concurrent::Promises::InternalStates::Fulfilled
1460
+ def apply(args, block); end
1461
+ end
1462
+
1463
+ Concurrent::Promises::InternalStates::PENDING = T.let(T.unsafe(nil), Concurrent::Promises::InternalStates::Pending)
1464
+
1465
+ class Concurrent::Promises::InternalStates::PartiallyRejected < ::Concurrent::Promises::InternalStates::ResolvedWithResult
1466
+ def initialize(value, reason); end
1467
+
1468
+ def apply(args, block); end
1469
+ def fulfilled?; end
1470
+ def reason; end
1471
+ def to_sym; end
1472
+ def value; end
1473
+ end
1474
+
1475
+ class Concurrent::Promises::InternalStates::Pending < ::Concurrent::Promises::InternalStates::State
1476
+ def resolved?; end
1477
+ def to_sym; end
1478
+ end
1479
+
1480
+ Concurrent::Promises::InternalStates::RESERVED = T.let(T.unsafe(nil), Concurrent::Promises::InternalStates::Reserved)
1481
+ Concurrent::Promises::InternalStates::RESOLVED = T.let(T.unsafe(nil), Concurrent::Promises::InternalStates::Fulfilled)
1482
+
1483
+ class Concurrent::Promises::InternalStates::Rejected < ::Concurrent::Promises::InternalStates::ResolvedWithResult
1484
+ def initialize(reason); end
1485
+
1486
+ def apply(args, block); end
1487
+ def fulfilled?; end
1488
+ def reason; end
1489
+ def to_sym; end
1490
+ def value; end
1491
+ end
1492
+
1493
+ class Concurrent::Promises::InternalStates::Reserved < ::Concurrent::Promises::InternalStates::Pending; end
1494
+
1495
+ class Concurrent::Promises::InternalStates::ResolvedWithResult < ::Concurrent::Promises::InternalStates::State
1496
+ def apply; end
1497
+ def fulfilled?; end
1498
+ def reason; end
1499
+ def resolved?; end
1500
+ def result; end
1501
+ def to_sym; end
1502
+ def value; end
1503
+ end
1504
+
1505
+ class Concurrent::Promises::InternalStates::State
1506
+ def resolved?; end
1507
+ def to_sym; end
1508
+ end
1509
+
1510
+ class Concurrent::Promises::RescuePromise < ::Concurrent::Promises::BlockedTaskPromise
1511
+ def initialize(delayed, blockers_count, default_executor, executor, args, &task); end
1512
+
1513
+ private
1514
+
1515
+ def on_resolvable(resolved_future, index); end
1516
+ end
1517
+
1518
+ module Concurrent::Promises::Resolvable
1519
+ include ::Concurrent::Promises::InternalStates
1520
+ end
1521
+
1522
+ class Concurrent::Promises::ResolvableEvent < ::Concurrent::Promises::Event
1523
+ include ::Concurrent::Promises::Resolvable
1524
+
1525
+ def resolve(raise_on_reassign = T.unsafe(nil), reserved = T.unsafe(nil)); end
1526
+ def wait(timeout = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end
1527
+ def with_hidden_resolvable; end
1528
+ end
1529
+
1530
+ class Concurrent::Promises::ResolvableEventPromise < ::Concurrent::Promises::AbstractPromise
1531
+ def initialize(default_executor); end
1532
+ end
1533
+
1534
+ class Concurrent::Promises::ResolvableFuture < ::Concurrent::Promises::Future
1535
+ include ::Concurrent::Promises::Resolvable
1536
+
1537
+ def evaluate_to(*args, &block); end
1538
+ def evaluate_to!(*args, &block); end
1539
+ def fulfill(value, raise_on_reassign = T.unsafe(nil), reserved = T.unsafe(nil)); end
1540
+ def reason(timeout = T.unsafe(nil), timeout_value = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end
1541
+ def reject(reason, raise_on_reassign = T.unsafe(nil), reserved = T.unsafe(nil)); end
1542
+ def resolve(fulfilled = T.unsafe(nil), value = T.unsafe(nil), reason = T.unsafe(nil), raise_on_reassign = T.unsafe(nil), reserved = T.unsafe(nil)); end
1543
+ def result(timeout = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end
1544
+ def value(timeout = T.unsafe(nil), timeout_value = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end
1545
+ def value!(timeout = T.unsafe(nil), timeout_value = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end
1546
+ def wait(timeout = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end
1547
+ def wait!(timeout = T.unsafe(nil), resolve_on_timeout = T.unsafe(nil)); end
1548
+ def with_hidden_resolvable; end
1549
+ end
1550
+
1551
+ class Concurrent::Promises::ResolvableFuturePromise < ::Concurrent::Promises::AbstractPromise
1552
+ def initialize(default_executor); end
1553
+ end
1554
+
1555
+ class Concurrent::Promises::RunFuturePromise < ::Concurrent::Promises::AbstractFlatPromise
1556
+ def initialize(delayed, blockers_count, default_executor, run_test); end
1557
+
1558
+ private
1559
+
1560
+ def process_on_blocker_resolution(future, index); end
1561
+ end
1562
+
1563
+ class Concurrent::Promises::ScheduledPromise < ::Concurrent::Promises::InnerPromise
1564
+ def initialize(default_executor, intended_time); end
1565
+
1566
+ def inspect; end
1567
+ def intended_time; end
1568
+ end
1569
+
1570
+ class Concurrent::Promises::ThenPromise < ::Concurrent::Promises::BlockedTaskPromise
1571
+ def initialize(delayed, blockers_count, default_executor, executor, args, &task); end
1572
+
1573
+ private
1574
+
1575
+ def on_resolvable(resolved_future, index); end
1576
+ end
1577
+
1578
+ class Concurrent::Promises::ZipEventEventPromise < ::Concurrent::Promises::BlockedPromise
1579
+ def initialize(delayed, blockers_count, default_executor); end
1580
+
1581
+ private
1582
+
1583
+ def on_resolvable(resolved_future, index); end
1584
+ end
1585
+
1586
+ class Concurrent::Promises::ZipEventsPromise < ::Concurrent::Promises::BlockedPromise
1587
+ def initialize(delayed, blockers_count, default_executor); end
1588
+
1589
+ private
1590
+
1591
+ def on_resolvable(resolved_future, index); end
1592
+ end
1593
+
1594
+ class Concurrent::Promises::ZipFutureEventPromise < ::Concurrent::Promises::BlockedPromise
1595
+ def initialize(delayed, blockers_count, default_executor); end
1596
+
1597
+ private
1598
+
1599
+ def on_resolvable(resolved_future, index); end
1600
+ def process_on_blocker_resolution(future, index); end
1601
+ end
1602
+
1603
+ class Concurrent::Promises::ZipFuturesPromise < ::Concurrent::Promises::BlockedPromise
1604
+ def initialize(delayed, blockers_count, default_executor); end
1605
+
1606
+ private
1607
+
1608
+ def on_resolvable(resolved_future, index); end
1609
+ def process_on_blocker_resolution(future, index); end
1610
+ end
1611
+
1612
+ module Concurrent::ReInclude
1613
+ def extended(base); end
1614
+ def include(*modules); end
1615
+ def included(base); end
1616
+ end
1617
+
1618
+ class Concurrent::ReadWriteLock < ::Concurrent::Synchronization::Object
1619
+ def initialize; end
1620
+
1621
+ def acquire_read_lock; end
1622
+ def acquire_write_lock; end
1623
+ def has_waiters?; end
1624
+ def release_read_lock; end
1625
+ def release_write_lock; end
1626
+ def with_read_lock; end
1627
+ def with_write_lock; end
1628
+ def write_locked?; end
1629
+
1630
+ private
1631
+
1632
+ def max_readers?(c = T.unsafe(nil)); end
1633
+ def max_writers?(c = T.unsafe(nil)); end
1634
+ def running_readers(c = T.unsafe(nil)); end
1635
+ def running_readers?(c = T.unsafe(nil)); end
1636
+ def running_writer?(c = T.unsafe(nil)); end
1637
+ def waiting_writer?(c = T.unsafe(nil)); end
1638
+ def waiting_writers(c = T.unsafe(nil)); end
1639
+
1640
+ class << self
1641
+ def new(*args, &block); end
1642
+ end
1643
+ end
1644
+
1645
+ Concurrent::ReadWriteLock::MAX_READERS = T.let(T.unsafe(nil), Integer)
1646
+ Concurrent::ReadWriteLock::MAX_WRITERS = T.let(T.unsafe(nil), Integer)
1647
+ Concurrent::ReadWriteLock::RUNNING_WRITER = T.let(T.unsafe(nil), Integer)
1648
+ Concurrent::ReadWriteLock::WAITING_WRITER = T.let(T.unsafe(nil), Integer)
1649
+
1650
+ class Concurrent::ReentrantReadWriteLock < ::Concurrent::Synchronization::Object
1651
+ def initialize; end
1652
+
1653
+ def acquire_read_lock; end
1654
+ def acquire_write_lock; end
1655
+ def release_read_lock; end
1656
+ def release_write_lock; end
1657
+ def try_read_lock; end
1658
+ def try_write_lock; end
1659
+ def with_read_lock; end
1660
+ def with_write_lock; end
1661
+
1662
+ private
1663
+
1664
+ def max_readers?(c = T.unsafe(nil)); end
1665
+ def max_writers?(c = T.unsafe(nil)); end
1666
+ def running_readers(c = T.unsafe(nil)); end
1667
+ def running_readers?(c = T.unsafe(nil)); end
1668
+ def running_writer?(c = T.unsafe(nil)); end
1669
+ def waiting_or_running_writer?(c = T.unsafe(nil)); end
1670
+ def waiting_writers(c = T.unsafe(nil)); end
1671
+
1672
+ class << self
1673
+ def new(*args, &block); end
1674
+ end
1675
+ end
1676
+
1677
+ Concurrent::ReentrantReadWriteLock::MAX_READERS = T.let(T.unsafe(nil), Integer)
1678
+ Concurrent::ReentrantReadWriteLock::MAX_WRITERS = T.let(T.unsafe(nil), Integer)
1679
+ Concurrent::ReentrantReadWriteLock::READER_BITS = T.let(T.unsafe(nil), Integer)
1680
+ Concurrent::ReentrantReadWriteLock::READ_LOCK_MASK = T.let(T.unsafe(nil), Integer)
1681
+ Concurrent::ReentrantReadWriteLock::RUNNING_WRITER = T.let(T.unsafe(nil), Integer)
1682
+ Concurrent::ReentrantReadWriteLock::WAITING_WRITER = T.let(T.unsafe(nil), Integer)
1683
+ Concurrent::ReentrantReadWriteLock::WRITER_BITS = T.let(T.unsafe(nil), Integer)
1684
+ Concurrent::ReentrantReadWriteLock::WRITE_LOCK_HELD = T.let(T.unsafe(nil), Integer)
1685
+ Concurrent::ReentrantReadWriteLock::WRITE_LOCK_MASK = T.let(T.unsafe(nil), Integer)
1686
+ class Concurrent::RejectedExecutionError < ::Concurrent::Error; end
1687
+ class Concurrent::ResourceLimitError < ::Concurrent::Error; end
1688
+
1689
+ class Concurrent::RubyExchanger < ::Concurrent::AbstractExchanger
1690
+ def initialize; end
1691
+
1692
+ def __initialize_atomic_fields__; end
1693
+ def compare_and_set_slot(expected, value); end
1694
+ def slot; end
1695
+ def slot=(value); end
1696
+ def swap_slot(value); end
1697
+ def update_slot(&block); end
1698
+
1699
+ private
1700
+
1701
+ def do_exchange(value, timeout); end
1702
+
1703
+ class << self
1704
+ def new(*args, &block); end
1705
+ end
1706
+ end
1707
+
1708
+ class Concurrent::RubyExchanger::Node < ::Concurrent::Synchronization::Object
1709
+ def initialize(item); end
1710
+
1711
+ def __initialize_atomic_fields__; end
1712
+ def compare_and_set_value(expected, value); end
1713
+ def item; end
1714
+ def latch; end
1715
+ def swap_value(value); end
1716
+ def update_value(&block); end
1717
+ def value; end
1718
+ def value=(value); end
1719
+
1720
+ class << self
1721
+ def new(*args, &block); end
1722
+ end
1723
+ end
1724
+
1725
+ class Concurrent::RubyExecutorService < ::Concurrent::AbstractExecutorService
1726
+ def initialize(*args, &block); end
1727
+
1728
+ def kill; end
1729
+ def post(*args, &task); end
1730
+ def shutdown; end
1731
+ def wait_for_termination(timeout = T.unsafe(nil)); end
1732
+
1733
+ private
1734
+
1735
+ def ns_running?; end
1736
+ def ns_shutdown?; end
1737
+ def ns_shutdown_execution; end
1738
+ def ns_shuttingdown?; end
1739
+ def stop_event; end
1740
+ def stopped_event; end
1741
+ end
1742
+
1743
+ class Concurrent::RubySingleThreadExecutor < ::Concurrent::RubyThreadPoolExecutor
1744
+ def initialize(opts = T.unsafe(nil)); end
1745
+ end
1746
+
1747
+ class Concurrent::RubyThreadLocalVar < ::Concurrent::AbstractThreadLocalVar
1748
+ def value; end
1749
+ def value=(value); end
1750
+
1751
+ protected
1752
+
1753
+ def allocate_storage; end
1754
+
1755
+ private
1756
+
1757
+ def get_default; end
1758
+ def get_threadlocal_array(thread = T.unsafe(nil)); end
1759
+ def next_index; end
1760
+ def set_threadlocal_array(array, thread = T.unsafe(nil)); end
1761
+ def value_for(thread); end
1762
+
1763
+ class << self
1764
+ def semi_sync(&block); end
1765
+ def thread_finalizer(id); end
1766
+ def thread_local_finalizer(index); end
1767
+ end
1768
+ end
1769
+
1770
+ Concurrent::RubyThreadLocalVar::FREE = T.let(T.unsafe(nil), Array)
1771
+ Concurrent::RubyThreadLocalVar::LOCK = T.let(T.unsafe(nil), Thread::Mutex)
1772
+ Concurrent::RubyThreadLocalVar::THREAD_LOCAL_ARRAYS = T.let(T.unsafe(nil), Hash)
1773
+
1774
+ class Concurrent::RubyThreadPoolExecutor < ::Concurrent::RubyExecutorService
1775
+ def initialize(opts = T.unsafe(nil)); end
1776
+
1777
+ def can_overflow?; end
1778
+ def completed_task_count; end
1779
+ def idletime; end
1780
+ def largest_length; end
1781
+ def length; end
1782
+ def max_length; end
1783
+ def max_queue; end
1784
+ def min_length; end
1785
+ def queue_length; end
1786
+ def ready_worker(worker); end
1787
+ def remaining_capacity; end
1788
+ def remove_busy_worker(worker); end
1789
+ def scheduled_task_count; end
1790
+ def synchronous; end
1791
+ def worker_died(worker); end
1792
+ def worker_not_old_enough(worker); end
1793
+ def worker_task_completed; end
1794
+
1795
+ private
1796
+
1797
+ def ns_add_busy_worker; end
1798
+ def ns_assign_worker(*args, &task); end
1799
+ def ns_enqueue(*args, &task); end
1800
+ def ns_execute(*args, &task); end
1801
+ def ns_initialize(opts); end
1802
+ def ns_kill_execution; end
1803
+ def ns_limited_queue?; end
1804
+ def ns_prune_pool; end
1805
+ def ns_ready_worker(worker, success = T.unsafe(nil)); end
1806
+ def ns_remove_busy_worker(worker); end
1807
+ def ns_reset_if_forked; end
1808
+ def ns_shutdown_execution; end
1809
+ def ns_worker_died(worker); end
1810
+ def ns_worker_not_old_enough(worker); end
1811
+ end
1812
+
1813
+ Concurrent::RubyThreadPoolExecutor::DEFAULT_MAX_POOL_SIZE = T.let(T.unsafe(nil), Integer)
1814
+ Concurrent::RubyThreadPoolExecutor::DEFAULT_MAX_QUEUE_SIZE = T.let(T.unsafe(nil), Integer)
1815
+ Concurrent::RubyThreadPoolExecutor::DEFAULT_MIN_POOL_SIZE = T.let(T.unsafe(nil), Integer)
1816
+ Concurrent::RubyThreadPoolExecutor::DEFAULT_THREAD_IDLETIMEOUT = T.let(T.unsafe(nil), Integer)
1817
+
1818
+ class Concurrent::RubyThreadPoolExecutor::Worker
1819
+ include ::Logger::Severity
1820
+ include ::Concurrent::Concern::Logging
1821
+
1822
+ def initialize(pool, id); end
1823
+
1824
+ def <<(message); end
1825
+ def kill; end
1826
+ def stop; end
1827
+
1828
+ private
1829
+
1830
+ def create_worker(queue, pool, idletime); end
1831
+ def run_task(pool, task, args); end
1832
+ end
1833
+
1834
+ class Concurrent::SafeTaskExecutor < ::Concurrent::Synchronization::LockableObject
1835
+ def initialize(task, opts = T.unsafe(nil)); end
1836
+
1837
+ def execute(*args); end
1838
+ end
1839
+
1840
+ class Concurrent::ScheduledTask < ::Concurrent::IVar
1841
+ include ::Comparable
1842
+
1843
+ def initialize(delay, opts = T.unsafe(nil), &task); end
1844
+
1845
+ def <=>(other); end
1846
+ def cancel; end
1847
+ def cancelled?; end
1848
+ def execute; end
1849
+ def executor; end
1850
+ def initial_delay; end
1851
+ def process_task; end
1852
+ def processing?; end
1853
+ def reschedule(delay); end
1854
+ def reset; end
1855
+ def schedule_time; end
1856
+
1857
+ protected
1858
+
1859
+ def ns_reschedule(delay); end
1860
+ def ns_schedule(delay); end
1861
+
1862
+ class << self
1863
+ def execute(delay, opts = T.unsafe(nil), &task); end
1864
+ end
1865
+ end
1866
+
1867
+ class Concurrent::Semaphore < ::Concurrent::MutexSemaphore; end
1868
+ Concurrent::SemaphoreImplementation = Concurrent::MutexSemaphore
1869
+
1870
+ module Concurrent::SerialExecutorService
1871
+ include ::Logger::Severity
1872
+ include ::Concurrent::Concern::Logging
1873
+ include ::Concurrent::ExecutorService
1874
+
1875
+ def serialized?; end
1876
+ end
1877
+
1878
+ class Concurrent::SerializedExecution < ::Concurrent::Synchronization::LockableObject
1879
+ include ::Logger::Severity
1880
+ include ::Concurrent::Concern::Logging
1881
+
1882
+ def initialize; end
1883
+
1884
+ def post(executor, *args, &task); end
1885
+ def posts(posts); end
1886
+
1887
+ private
1888
+
1889
+ def call_job(job); end
1890
+ def ns_initialize; end
1891
+ def work(job); end
1892
+ end
1893
+
1894
+ class Concurrent::SerializedExecution::Job < ::Struct
1895
+ def args; end
1896
+ def args=(_); end
1897
+ def block; end
1898
+ def block=(_); end
1899
+ def call; end
1900
+ def executor; end
1901
+ def executor=(_); end
1902
+
1903
+ class << self
1904
+ def [](*_arg0); end
1905
+ def inspect; end
1906
+ def members; end
1907
+ def new(*_arg0); end
1908
+ end
1909
+ end
1910
+
1911
+ class Concurrent::SerializedExecutionDelegator < ::SimpleDelegator
1912
+ include ::Logger::Severity
1913
+ include ::Concurrent::Concern::Logging
1914
+ include ::Concurrent::ExecutorService
1915
+ include ::Concurrent::SerialExecutorService
1916
+
1917
+ def initialize(executor); end
1918
+
1919
+ def post(*args, &task); end
1920
+ end
1921
+
1922
+ class Concurrent::Set < ::Concurrent::CRubySet; end
1923
+ Concurrent::SetImplementation = Concurrent::CRubySet
1924
+
1925
+ module Concurrent::SettableStruct
1926
+ include ::Concurrent::Synchronization::AbstractStruct
1927
+
1928
+ def ==(other); end
1929
+ def [](member); end
1930
+ def []=(member, value); end
1931
+ def each(&block); end
1932
+ def each_pair(&block); end
1933
+ def inspect; end
1934
+ def merge(other, &block); end
1935
+ def select(&block); end
1936
+ def to_a; end
1937
+ def to_h; end
1938
+ def to_s; end
1939
+ def values; end
1940
+ def values_at(*indexes); end
1941
+
1942
+ private
1943
+
1944
+ def initialize_copy(original); end
1945
+
1946
+ class << self
1947
+ def new(*args, &block); end
1948
+ end
1949
+ end
1950
+
1951
+ Concurrent::SettableStruct::FACTORY = T.let(T.unsafe(nil), T.untyped)
1952
+
1953
+ class Concurrent::SimpleExecutorService < ::Concurrent::RubyExecutorService
1954
+ def <<(task); end
1955
+ def kill; end
1956
+ def post(*args, &task); end
1957
+ def running?; end
1958
+ def shutdown; end
1959
+ def shutdown?; end
1960
+ def shuttingdown?; end
1961
+ def wait_for_termination(timeout = T.unsafe(nil)); end
1962
+
1963
+ private
1964
+
1965
+ def ns_initialize(*args); end
1966
+
1967
+ class << self
1968
+ def <<(task); end
1969
+ def post(*args); end
1970
+ end
1971
+ end
1972
+
1973
+ class Concurrent::SingleThreadExecutor < ::Concurrent::RubySingleThreadExecutor; end
1974
+ Concurrent::SingleThreadExecutorImplementation = Concurrent::RubySingleThreadExecutor
1975
+ module Concurrent::Synchronization; end
1976
+
1977
+ class Concurrent::Synchronization::AbstractLockableObject < ::Concurrent::Synchronization::Object
1978
+ protected
1979
+
1980
+ def ns_broadcast; end
1981
+ def ns_signal; end
1982
+ def ns_wait(timeout = T.unsafe(nil)); end
1983
+ def ns_wait_until(timeout = T.unsafe(nil), &condition); end
1984
+ def synchronize; end
1985
+ end
1986
+
1987
+ class Concurrent::Synchronization::AbstractObject
1988
+ def initialize; end
1989
+
1990
+ def full_memory_barrier; end
1991
+
1992
+ class << self
1993
+ def attr_volatile(*names); end
1994
+ end
1995
+ end
1996
+
1997
+ module Concurrent::Synchronization::AbstractStruct
1998
+ def initialize(*values); end
1999
+
2000
+ def length; end
2001
+ def members; end
2002
+ def size; end
2003
+
2004
+ protected
2005
+
2006
+ def ns_each; end
2007
+ def ns_each_pair; end
2008
+ def ns_equality(other); end
2009
+ def ns_get(member); end
2010
+ def ns_initialize_copy; end
2011
+ def ns_inspect; end
2012
+ def ns_merge(other, &block); end
2013
+ def ns_select; end
2014
+ def ns_to_h; end
2015
+ def ns_values; end
2016
+ def ns_values_at(indexes); end
2017
+ def pr_underscore(clazz); end
2018
+
2019
+ class << self
2020
+ def define_struct_class(parent, base, name, members, &block); end
2021
+ end
2022
+ end
2023
+
2024
+ class Concurrent::Synchronization::Condition < ::Concurrent::Synchronization::LockableObject
2025
+ def initialize(lock); end
2026
+
2027
+ def broadcast; end
2028
+ def ns_broadcast; end
2029
+ def ns_signal; end
2030
+ def ns_wait(timeout = T.unsafe(nil)); end
2031
+ def ns_wait_until(timeout = T.unsafe(nil), &condition); end
2032
+ def signal; end
2033
+ def wait(timeout = T.unsafe(nil)); end
2034
+ def wait_until(timeout = T.unsafe(nil), &condition); end
2035
+
2036
+ class << self
2037
+ def private_new(*args, &block); end
2038
+ end
2039
+ end
2040
+
2041
+ module Concurrent::Synchronization::ConditionSignalling
2042
+ protected
2043
+
2044
+ def ns_broadcast; end
2045
+ def ns_signal; end
2046
+ end
2047
+
2048
+ class Concurrent::Synchronization::Lock < ::Concurrent::Synchronization::LockableObject
2049
+ def broadcast; end
2050
+ def signal; end
2051
+ def wait(timeout = T.unsafe(nil)); end
2052
+ def wait_until(timeout = T.unsafe(nil), &condition); end
2053
+ end
2054
+
2055
+ class Concurrent::Synchronization::LockableObject < ::Concurrent::Synchronization::MutexLockableObject
2056
+ def new_condition; end
2057
+ end
2058
+
2059
+ Concurrent::Synchronization::LockableObjectImplementation = Concurrent::Synchronization::MutexLockableObject
2060
+
2061
+ class Concurrent::Synchronization::MonitorLockableObject < ::Concurrent::Synchronization::AbstractLockableObject
2062
+ include ::Concurrent::Synchronization::ConditionSignalling
2063
+
2064
+ def initialize(*defaults); end
2065
+
2066
+ protected
2067
+
2068
+ def ns_wait(timeout = T.unsafe(nil)); end
2069
+ def synchronize; end
2070
+
2071
+ private
2072
+
2073
+ def initialize_copy(other); end
2074
+
2075
+ class << self
2076
+ def new(*args, &block); end
2077
+ end
2078
+ end
2079
+
2080
+ module Concurrent::Synchronization::MriAttrVolatile
2081
+ mixes_in_class_methods ::Concurrent::Synchronization::MriAttrVolatile::ClassMethods
2082
+
2083
+ def full_memory_barrier; end
2084
+
2085
+ class << self
2086
+ def included(base); end
2087
+ end
2088
+ end
2089
+
2090
+ module Concurrent::Synchronization::MriAttrVolatile::ClassMethods
2091
+ def attr_volatile(*names); end
2092
+ end
2093
+
2094
+ class Concurrent::Synchronization::MriObject < ::Concurrent::Synchronization::AbstractObject
2095
+ include ::Concurrent::Synchronization::MriAttrVolatile
2096
+ extend ::Concurrent::Synchronization::MriAttrVolatile::ClassMethods
2097
+
2098
+ def initialize; end
2099
+ end
2100
+
2101
+ class Concurrent::Synchronization::MutexLockableObject < ::Concurrent::Synchronization::AbstractLockableObject
2102
+ include ::Concurrent::Synchronization::ConditionSignalling
2103
+
2104
+ def initialize(*defaults); end
2105
+
2106
+ protected
2107
+
2108
+ def ns_wait(timeout = T.unsafe(nil)); end
2109
+ def synchronize; end
2110
+
2111
+ private
2112
+
2113
+ def initialize_copy(other); end
2114
+
2115
+ class << self
2116
+ def new(*args, &block); end
2117
+ end
2118
+ end
2119
+
2120
+ class Concurrent::Synchronization::Object < ::Concurrent::Synchronization::MriObject
2121
+ def initialize; end
2122
+
2123
+ private
2124
+
2125
+ def __initialize_atomic_fields__; end
2126
+
2127
+ class << self
2128
+ def atomic_attribute?(name); end
2129
+ def atomic_attributes(inherited = T.unsafe(nil)); end
2130
+ def attr_atomic(*names); end
2131
+ def ensure_safe_initialization_when_final_fields_are_present; end
2132
+ def safe_initialization!; end
2133
+ def safe_initialization?; end
2134
+
2135
+ private
2136
+
2137
+ def define_initialize_atomic_fields; end
2138
+ end
2139
+ end
2140
+
2141
+ Concurrent::Synchronization::ObjectImplementation = Concurrent::Synchronization::MriObject
2142
+
2143
+ module Concurrent::Synchronization::RbxAttrVolatile
2144
+ mixes_in_class_methods ::Concurrent::Synchronization::RbxAttrVolatile::ClassMethods
2145
+
2146
+ def full_memory_barrier; end
2147
+
2148
+ class << self
2149
+ def included(base); end
2150
+ end
2151
+ end
2152
+
2153
+ module Concurrent::Synchronization::RbxAttrVolatile::ClassMethods
2154
+ def attr_volatile(*names); end
2155
+ end
2156
+
2157
+ class Concurrent::Synchronization::RbxLockableObject < ::Concurrent::Synchronization::AbstractLockableObject
2158
+ def initialize(*defaults); end
2159
+
2160
+ protected
2161
+
2162
+ def ns_broadcast; end
2163
+ def ns_signal; end
2164
+ def ns_wait(timeout = T.unsafe(nil)); end
2165
+ def synchronize(&block); end
2166
+
2167
+ private
2168
+
2169
+ def initialize_copy(other); end
2170
+
2171
+ class << self
2172
+ def new(*args, &block); end
2173
+ end
2174
+ end
2175
+
2176
+ class Concurrent::Synchronization::RbxObject < ::Concurrent::Synchronization::AbstractObject
2177
+ include ::Concurrent::Synchronization::RbxAttrVolatile
2178
+ extend ::Concurrent::Synchronization::RbxAttrVolatile::ClassMethods
2179
+
2180
+ def initialize; end
2181
+ end
2182
+
2183
+ module Concurrent::Synchronization::TruffleRubyAttrVolatile
2184
+ mixes_in_class_methods ::Concurrent::Synchronization::TruffleRubyAttrVolatile::ClassMethods
2185
+
2186
+ def full_memory_barrier; end
2187
+
2188
+ class << self
2189
+ def included(base); end
2190
+ end
2191
+ end
2192
+
2193
+ module Concurrent::Synchronization::TruffleRubyAttrVolatile::ClassMethods
2194
+ def attr_volatile(*names); end
2195
+ end
2196
+
2197
+ class Concurrent::Synchronization::TruffleRubyObject < ::Concurrent::Synchronization::AbstractObject
2198
+ include ::Concurrent::Synchronization::TruffleRubyAttrVolatile
2199
+ extend ::Concurrent::Synchronization::TruffleRubyAttrVolatile::ClassMethods
2200
+
2201
+ def initialize; end
2202
+ end
2203
+
2204
+ Concurrent::Synchronization::Volatile = Concurrent::Synchronization::MriAttrVolatile
2205
+
2206
+ class Concurrent::SynchronizedDelegator < ::SimpleDelegator
2207
+ def initialize(obj); end
2208
+
2209
+ def method_missing(method, *args, &block); end
2210
+ def setup; end
2211
+ def teardown; end
2212
+ end
2213
+
2214
+ class Concurrent::TVar < ::Concurrent::Synchronization::Object
2215
+ def initialize(value); end
2216
+
2217
+ def unsafe_increment_version; end
2218
+ def unsafe_lock; end
2219
+ def unsafe_value; end
2220
+ def unsafe_value=(value); end
2221
+ def unsafe_version; end
2222
+ def value; end
2223
+ def value=(value); end
2224
+
2225
+ class << self
2226
+ def new(*args, &block); end
2227
+ end
2228
+ end
2229
+
2230
+ class Concurrent::ThreadLocalVar < ::Concurrent::RubyThreadLocalVar; end
2231
+ Concurrent::ThreadLocalVarImplementation = Concurrent::RubyThreadLocalVar
2232
+ class Concurrent::ThreadPoolExecutor < ::Concurrent::RubyThreadPoolExecutor; end
2233
+ Concurrent::ThreadPoolExecutorImplementation = Concurrent::RubyThreadPoolExecutor
2234
+ module Concurrent::ThreadSafe; end
2235
+
2236
+ module Concurrent::ThreadSafe::Util
2237
+ class << self
2238
+ def make_synchronized_on_cruby(klass); end
2239
+ def make_synchronized_on_rbx(klass); end
2240
+ def make_synchronized_on_truffleruby(klass); end
2241
+ end
2242
+ end
2243
+
2244
+ Concurrent::ThreadSafe::Util::CPU_COUNT = T.let(T.unsafe(nil), Integer)
2245
+ Concurrent::ThreadSafe::Util::FIXNUM_BIT_SIZE = T.let(T.unsafe(nil), Integer)
2246
+ Concurrent::ThreadSafe::Util::MAX_INT = T.let(T.unsafe(nil), Integer)
2247
+ class Concurrent::TimeoutError < ::Concurrent::Error; end
2248
+
2249
+ class Concurrent::TimerSet < ::Concurrent::RubyExecutorService
2250
+ def initialize(opts = T.unsafe(nil)); end
2251
+
2252
+ def kill; end
2253
+ def post(delay, *args, &task); end
2254
+
2255
+ private
2256
+
2257
+ def ns_initialize(opts); end
2258
+ def ns_post_task(task); end
2259
+ def ns_reset_if_forked; end
2260
+ def ns_shutdown_execution; end
2261
+ def post_task(task); end
2262
+ def process_tasks; end
2263
+ def remove_task(task); end
2264
+ end
2265
+
2266
+ class Concurrent::TimerTask < ::Concurrent::RubyExecutorService
2267
+ include ::Concurrent::Concern::Dereferenceable
2268
+ include ::Concurrent::Concern::Observable
2269
+
2270
+ def initialize(opts = T.unsafe(nil), &task); end
2271
+
2272
+ def execute; end
2273
+ def execution_interval; end
2274
+ def execution_interval=(value); end
2275
+ def running?; end
2276
+ def timeout_interval; end
2277
+ def timeout_interval=(value); end
2278
+
2279
+ private
2280
+
2281
+ def execute_task(completion); end
2282
+ def ns_initialize(opts, &task); end
2283
+ def ns_kill_execution; end
2284
+ def ns_shutdown_execution; end
2285
+ def schedule_next_task(interval = T.unsafe(nil)); end
2286
+ def timeout_task(completion); end
2287
+
2288
+ class << self
2289
+ def execute(opts = T.unsafe(nil), &task); end
2290
+ end
2291
+ end
2292
+
2293
+ Concurrent::TimerTask::EXECUTION_INTERVAL = T.let(T.unsafe(nil), Integer)
2294
+ Concurrent::TimerTask::TIMEOUT_INTERVAL = T.let(T.unsafe(nil), Integer)
2295
+
2296
+ class Concurrent::Transaction
2297
+ def initialize; end
2298
+
2299
+ def abort; end
2300
+ def commit; end
2301
+ def read(tvar); end
2302
+ def unlock; end
2303
+ def valid?; end
2304
+ def write(tvar, value); end
2305
+
2306
+ class << self
2307
+ def current; end
2308
+ def current=(transaction); end
2309
+ end
2310
+ end
2311
+
2312
+ Concurrent::Transaction::ABORTED = T.let(T.unsafe(nil), Object)
2313
+ class Concurrent::Transaction::AbortError < ::StandardError; end
2314
+ class Concurrent::Transaction::LeaveError < ::StandardError; end
2315
+
2316
+ class Concurrent::Transaction::ReadLogEntry < ::Struct
2317
+ def tvar; end
2318
+ def tvar=(_); end
2319
+ def version; end
2320
+ def version=(_); end
2321
+
2322
+ class << self
2323
+ def [](*_arg0); end
2324
+ def inspect; end
2325
+ def members; end
2326
+ def new(*_arg0); end
2327
+ end
2328
+ end
2329
+
2330
+ class Concurrent::Tuple
2331
+ include ::Enumerable
2332
+
2333
+ def initialize(size); end
2334
+
2335
+ def cas(i, old_value, new_value); end
2336
+ def compare_and_set(i, old_value, new_value); end
2337
+ def each; end
2338
+ def get(i); end
2339
+ def set(i, value); end
2340
+ def size; end
2341
+ def volatile_get(i); end
2342
+ def volatile_set(i, value); end
2343
+ end
2344
+
2345
+ Concurrent::Tuple::Tuple = Array
2346
+ module Concurrent::Utility; end
2347
+
2348
+ module Concurrent::Utility::EngineDetector
2349
+ def on_cruby?; end
2350
+ def on_jruby?; end
2351
+ def on_jruby_9000?; end
2352
+ def on_linux?; end
2353
+ def on_osx?; end
2354
+ def on_rbx?; end
2355
+ def on_truffleruby?; end
2356
+ def on_windows?; end
2357
+ def ruby_engine; end
2358
+ def ruby_version(version = T.unsafe(nil), comparison, major, minor, patch); end
2359
+ end
2360
+
2361
+ module Concurrent::Utility::NativeExtensionLoader
2362
+ def allow_c_extensions?; end
2363
+ def c_extensions_loaded?; end
2364
+ def java_extensions_loaded?; end
2365
+ def load_native_extensions; end
2366
+
2367
+ private
2368
+
2369
+ def load_error_path(error); end
2370
+ def set_c_extensions_loaded; end
2371
+ def set_java_extensions_loaded; end
2372
+ def try_load_c_extension(path); end
2373
+ end
2374
+
2375
+ module Concurrent::Utility::NativeInteger
2376
+ extend ::Concurrent::Utility::NativeInteger
2377
+
2378
+ def ensure_integer(value); end
2379
+ def ensure_integer_and_bounds(value); end
2380
+ def ensure_lower_bound(value); end
2381
+ def ensure_positive(value); end
2382
+ def ensure_positive_and_no_zero(value); end
2383
+ def ensure_upper_bound(value); end
2384
+ end
2385
+
2386
+ Concurrent::Utility::NativeInteger::MAX_VALUE = T.let(T.unsafe(nil), Integer)
2387
+ Concurrent::Utility::NativeInteger::MIN_VALUE = T.let(T.unsafe(nil), Integer)
2388
+
2389
+ class Concurrent::Utility::ProcessorCounter
2390
+ def initialize; end
2391
+
2392
+ def physical_processor_count; end
2393
+ def processor_count; end
2394
+
2395
+ private
2396
+
2397
+ def compute_physical_processor_count; end
2398
+ def compute_processor_count; end
2399
+ end
2400
+
2401
+ Concurrent::VERSION = T.let(T.unsafe(nil), String)