ory-client 1.1.21 → 1.1.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (614) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/README.md +10 -10
  4. data/docs/CreateSubscriptionBody.md +4 -2
  5. data/docs/GenericUsage.md +20 -0
  6. data/docs/IdentitySchemaContainer.md +1 -1
  7. data/docs/InternalProvisionMockSubscription.md +4 -2
  8. data/docs/OAuth2Client.md +4 -0
  9. data/docs/PermissionApi.md +2 -2
  10. data/docs/Plan.md +20 -0
  11. data/docs/PlanDetails.md +30 -0
  12. data/docs/QuotaUsage.md +28 -0
  13. data/docs/Subscription.md +6 -2
  14. data/docs/UpdateLoginFlowWithOidcMethod.md +3 -1
  15. data/docs/UpdateRegistrationFlowWithOidcMethod.md +3 -1
  16. data/docs/UpdateSettingsFlowWithOidcMethod.md +3 -1
  17. data/docs/UpdateSubscriptionBody.md +4 -2
  18. data/docs/Usage.md +18 -0
  19. data/lib/ory-client/api/courier_api.rb +1 -1
  20. data/lib/ory-client/api/frontend_api.rb +1 -1
  21. data/lib/ory-client/api/identity_api.rb +1 -1
  22. data/lib/ory-client/api/jwk_api.rb +1 -1
  23. data/lib/ory-client/api/metadata_api.rb +1 -1
  24. data/lib/ory-client/api/o_auth2_api.rb +1 -1
  25. data/lib/ory-client/api/oidc_api.rb +1 -1
  26. data/lib/ory-client/api/permission_api.rb +3 -3
  27. data/lib/ory-client/api/project_api.rb +1 -1
  28. data/lib/ory-client/api/relationship_api.rb +1 -1
  29. data/lib/ory-client/api/wellknown_api.rb +1 -1
  30. data/lib/ory-client/api_client.rb +1 -1
  31. data/lib/ory-client/api_error.rb +1 -1
  32. data/lib/ory-client/configuration.rb +1 -1
  33. data/lib/ory-client/models/accept_o_auth2_consent_request.rb +1 -1
  34. data/lib/ory-client/models/accept_o_auth2_consent_request_session.rb +1 -1
  35. data/lib/ory-client/models/accept_o_auth2_login_request.rb +1 -1
  36. data/lib/ory-client/models/active_project_in_console.rb +1 -1
  37. data/lib/ory-client/models/authenticator_assurance_level.rb +1 -1
  38. data/lib/ory-client/models/check_opl_syntax_result.rb +1 -1
  39. data/lib/ory-client/models/check_permission_result.rb +1 -1
  40. data/lib/ory-client/models/cloud_account.rb +1 -1
  41. data/lib/ory-client/models/courier_message_status.rb +1 -1
  42. data/lib/ory-client/models/courier_message_type.rb +1 -1
  43. data/lib/ory-client/models/create_custom_domain_body.rb +1 -1
  44. data/lib/ory-client/models/create_identity_body.rb +1 -1
  45. data/lib/ory-client/models/create_json_web_key_set.rb +1 -1
  46. data/lib/ory-client/models/create_project_api_key_request.rb +1 -1
  47. data/lib/ory-client/models/create_project_body.rb +1 -1
  48. data/lib/ory-client/models/create_project_branding.rb +1 -1
  49. data/lib/ory-client/models/create_project_invite.rb +1 -1
  50. data/lib/ory-client/models/create_recovery_code_for_identity_body.rb +1 -1
  51. data/lib/ory-client/models/create_recovery_link_for_identity_body.rb +1 -1
  52. data/lib/ory-client/models/create_relationship_body.rb +1 -1
  53. data/lib/ory-client/models/create_subscription_body.rb +60 -11
  54. data/lib/ory-client/models/custom_domain.rb +1 -1
  55. data/lib/ory-client/models/delete_my_sessions_count.rb +1 -1
  56. data/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb +1 -1
  57. data/lib/ory-client/models/error_browser_location_change_required.rb +1 -1
  58. data/lib/ory-client/models/error_flow_replaced.rb +1 -1
  59. data/lib/ory-client/models/error_generic.rb +1 -1
  60. data/lib/ory-client/models/error_o_auth2.rb +1 -1
  61. data/lib/ory-client/models/expanded_permission_tree.rb +1 -1
  62. data/lib/ory-client/models/flow_error.rb +1 -1
  63. data/lib/ory-client/models/generic_error.rb +1 -1
  64. data/lib/ory-client/models/generic_error_content.rb +1 -1
  65. data/lib/ory-client/models/{custom_domain_quota.rb → generic_usage.rb} +29 -27
  66. data/lib/ory-client/models/get_managed_identity_schema_location.rb +1 -1
  67. data/lib/ory-client/models/get_version200_response.rb +1 -1
  68. data/lib/ory-client/models/health_not_ready_status.rb +1 -1
  69. data/lib/ory-client/models/health_status.rb +1 -1
  70. data/lib/ory-client/models/identity.rb +1 -1
  71. data/lib/ory-client/models/identity_credentials.rb +1 -1
  72. data/lib/ory-client/models/identity_credentials_oidc.rb +1 -1
  73. data/lib/ory-client/models/identity_credentials_oidc_provider.rb +1 -1
  74. data/lib/ory-client/models/identity_credentials_password.rb +1 -1
  75. data/lib/ory-client/models/identity_credentials_type.rb +1 -1
  76. data/lib/ory-client/models/identity_schema_container.rb +2 -2
  77. data/lib/ory-client/models/identity_schema_preset.rb +1 -1
  78. data/lib/ory-client/models/identity_state.rb +1 -1
  79. data/lib/ory-client/models/identity_with_credentials.rb +1 -1
  80. data/lib/ory-client/models/identity_with_credentials_oidc.rb +1 -1
  81. data/lib/ory-client/models/identity_with_credentials_oidc_config.rb +1 -1
  82. data/lib/ory-client/models/identity_with_credentials_oidc_config_provider.rb +1 -1
  83. data/lib/ory-client/models/identity_with_credentials_password.rb +1 -1
  84. data/lib/ory-client/models/identity_with_credentials_password_config.rb +1 -1
  85. data/lib/ory-client/models/internal_get_project_branding_body.rb +1 -1
  86. data/lib/ory-client/models/internal_is_owner_for_project_by_slug_body.rb +1 -1
  87. data/lib/ory-client/models/internal_provision_mock_subscription.rb +61 -12
  88. data/lib/ory-client/models/introspected_o_auth2_token.rb +1 -1
  89. data/lib/ory-client/models/is_owner_for_project_by_slug.rb +1 -1
  90. data/lib/ory-client/models/is_ready200_response.rb +1 -1
  91. data/lib/ory-client/models/is_ready503_response.rb +1 -1
  92. data/lib/ory-client/models/json_patch.rb +1 -1
  93. data/lib/ory-client/models/json_web_key.rb +1 -1
  94. data/lib/ory-client/models/json_web_key_set.rb +1 -1
  95. data/lib/ory-client/models/keto_namespace.rb +1 -1
  96. data/lib/ory-client/models/login_flow.rb +1 -1
  97. data/lib/ory-client/models/logout_flow.rb +1 -1
  98. data/lib/ory-client/models/managed_identity_schema.rb +1 -1
  99. data/lib/ory-client/models/managed_identity_schema_validation_result.rb +1 -1
  100. data/lib/ory-client/models/message.rb +1 -1
  101. data/lib/ory-client/models/message_dispatch.rb +1 -1
  102. data/lib/ory-client/models/namespace.rb +1 -1
  103. data/lib/ory-client/models/needs_privileged_session_error.rb +1 -1
  104. data/lib/ory-client/models/normalized_project.rb +1 -1
  105. data/lib/ory-client/models/normalized_project_revision.rb +1 -1
  106. data/lib/ory-client/models/normalized_project_revision_hook.rb +1 -1
  107. data/lib/ory-client/models/normalized_project_revision_identity_schema.rb +1 -1
  108. data/lib/ory-client/models/normalized_project_revision_third_party_provider.rb +1 -1
  109. data/lib/ory-client/models/o_auth2_client.rb +22 -2
  110. data/lib/ory-client/models/o_auth2_client_token_lifespans.rb +1 -1
  111. data/lib/ory-client/models/o_auth2_consent_request.rb +1 -1
  112. data/lib/ory-client/models/o_auth2_consent_request_open_id_connect_context.rb +1 -1
  113. data/lib/ory-client/models/o_auth2_consent_session.rb +1 -1
  114. data/lib/ory-client/models/o_auth2_consent_session_expires_at.rb +1 -1
  115. data/lib/ory-client/models/o_auth2_login_request.rb +1 -1
  116. data/lib/ory-client/models/o_auth2_logout_request.rb +1 -1
  117. data/lib/ory-client/models/o_auth2_redirect_to.rb +1 -1
  118. data/lib/ory-client/models/o_auth2_token_exchange.rb +1 -1
  119. data/lib/ory-client/models/oidc_configuration.rb +1 -1
  120. data/lib/ory-client/models/oidc_user_info.rb +1 -1
  121. data/lib/ory-client/models/pagination.rb +1 -1
  122. data/lib/ory-client/models/pagination_headers.rb +1 -1
  123. data/lib/ory-client/models/parse_error.rb +1 -1
  124. data/lib/ory-client/models/perform_native_logout_body.rb +1 -1
  125. data/lib/ory-client/models/{session_caching_quota.rb → plan.rb} +32 -12
  126. data/lib/ory-client/models/{invite_quota.rb → plan_details.rb} +103 -24
  127. data/lib/ory-client/models/post_check_permission_body.rb +1 -1
  128. data/lib/ory-client/models/post_check_permission_or_error_body.rb +1 -1
  129. data/lib/ory-client/models/project.rb +1 -1
  130. data/lib/ory-client/models/project_api_key.rb +1 -1
  131. data/lib/ory-client/models/project_branding.rb +1 -1
  132. data/lib/ory-client/models/project_branding_colors.rb +1 -1
  133. data/lib/ory-client/models/project_branding_theme.rb +1 -1
  134. data/lib/ory-client/models/project_host.rb +1 -1
  135. data/lib/ory-client/models/project_invite.rb +1 -1
  136. data/lib/ory-client/models/project_metadata.rb +1 -1
  137. data/lib/ory-client/models/project_service_identity.rb +1 -1
  138. data/lib/ory-client/models/project_service_o_auth2.rb +1 -1
  139. data/lib/ory-client/models/project_service_permission.rb +1 -1
  140. data/lib/ory-client/models/project_services.rb +1 -1
  141. data/lib/ory-client/models/quota_usage.rb +329 -0
  142. data/lib/ory-client/models/recovery_code_for_identity.rb +1 -1
  143. data/lib/ory-client/models/recovery_flow.rb +1 -1
  144. data/lib/ory-client/models/recovery_flow_state.rb +1 -1
  145. data/lib/ory-client/models/recovery_identity_address.rb +1 -1
  146. data/lib/ory-client/models/recovery_link_for_identity.rb +1 -1
  147. data/lib/ory-client/models/registration_flow.rb +1 -1
  148. data/lib/ory-client/models/reject_o_auth2_request.rb +1 -1
  149. data/lib/ory-client/models/relation_query.rb +1 -1
  150. data/lib/ory-client/models/relationship.rb +1 -1
  151. data/lib/ory-client/models/relationship_namespaces.rb +1 -1
  152. data/lib/ory-client/models/relationship_patch.rb +1 -1
  153. data/lib/ory-client/models/relationships.rb +1 -1
  154. data/lib/ory-client/models/schema_patch.rb +1 -1
  155. data/lib/ory-client/models/self_service_flow_expired_error.rb +1 -1
  156. data/lib/ory-client/models/session.rb +1 -1
  157. data/lib/ory-client/models/session_authentication_method.rb +1 -1
  158. data/lib/ory-client/models/session_device.rb +1 -1
  159. data/lib/ory-client/models/set_active_project_in_console_body.rb +1 -1
  160. data/lib/ory-client/models/set_custom_domain_body.rb +1 -1
  161. data/lib/ory-client/models/set_project.rb +1 -1
  162. data/lib/ory-client/models/set_project_branding_theme_body.rb +1 -1
  163. data/lib/ory-client/models/settings_flow.rb +1 -1
  164. data/lib/ory-client/models/settings_flow_state.rb +1 -1
  165. data/lib/ory-client/models/source_position.rb +1 -1
  166. data/lib/ory-client/models/stripe_customer.rb +1 -1
  167. data/lib/ory-client/models/subject_set.rb +1 -1
  168. data/lib/ory-client/models/subscription.rb +38 -17
  169. data/lib/ory-client/models/successful_native_login.rb +1 -1
  170. data/lib/ory-client/models/successful_native_registration.rb +1 -1
  171. data/lib/ory-client/models/successful_project_update.rb +1 -1
  172. data/lib/ory-client/models/token_pagination.rb +1 -1
  173. data/lib/ory-client/models/token_pagination_headers.rb +1 -1
  174. data/lib/ory-client/models/token_pagination_request_parameters.rb +1 -1
  175. data/lib/ory-client/models/token_pagination_response_headers.rb +1 -1
  176. data/lib/ory-client/models/trust_o_auth2_jwt_grant_issuer.rb +1 -1
  177. data/lib/ory-client/models/trusted_o_auth2_jwt_grant_issuer.rb +1 -1
  178. data/lib/ory-client/models/trusted_o_auth2_jwt_grant_json_web_key.rb +1 -1
  179. data/lib/ory-client/models/ui_container.rb +1 -1
  180. data/lib/ory-client/models/ui_node.rb +1 -1
  181. data/lib/ory-client/models/ui_node_anchor_attributes.rb +1 -1
  182. data/lib/ory-client/models/ui_node_attributes.rb +1 -1
  183. data/lib/ory-client/models/ui_node_image_attributes.rb +1 -1
  184. data/lib/ory-client/models/ui_node_input_attributes.rb +1 -1
  185. data/lib/ory-client/models/ui_node_meta.rb +1 -1
  186. data/lib/ory-client/models/ui_node_script_attributes.rb +1 -1
  187. data/lib/ory-client/models/ui_node_text_attributes.rb +1 -1
  188. data/lib/ory-client/models/ui_text.rb +1 -1
  189. data/lib/ory-client/models/update_identity_body.rb +1 -1
  190. data/lib/ory-client/models/update_login_flow_body.rb +1 -1
  191. data/lib/ory-client/models/update_login_flow_with_lookup_secret_method.rb +1 -1
  192. data/lib/ory-client/models/update_login_flow_with_oidc_method.rb +15 -5
  193. data/lib/ory-client/models/update_login_flow_with_password_method.rb +1 -1
  194. data/lib/ory-client/models/update_login_flow_with_totp_method.rb +1 -1
  195. data/lib/ory-client/models/update_login_flow_with_web_authn_method.rb +1 -1
  196. data/lib/ory-client/models/update_recovery_flow_body.rb +1 -1
  197. data/lib/ory-client/models/update_recovery_flow_with_code_method.rb +1 -1
  198. data/lib/ory-client/models/update_recovery_flow_with_link_method.rb +1 -1
  199. data/lib/ory-client/models/update_registration_flow_body.rb +1 -1
  200. data/lib/ory-client/models/update_registration_flow_with_oidc_method.rb +15 -5
  201. data/lib/ory-client/models/update_registration_flow_with_password_method.rb +1 -1
  202. data/lib/ory-client/models/update_registration_flow_with_web_authn_method.rb +1 -1
  203. data/lib/ory-client/models/update_settings_flow_body.rb +1 -1
  204. data/lib/ory-client/models/update_settings_flow_with_lookup_method.rb +1 -1
  205. data/lib/ory-client/models/update_settings_flow_with_oidc_method.rb +15 -5
  206. data/lib/ory-client/models/update_settings_flow_with_password_method.rb +1 -1
  207. data/lib/ory-client/models/update_settings_flow_with_profile_method.rb +1 -1
  208. data/lib/ory-client/models/update_settings_flow_with_totp_method.rb +1 -1
  209. data/lib/ory-client/models/update_settings_flow_with_web_authn_method.rb +1 -1
  210. data/lib/ory-client/models/update_subscription_body.rb +60 -11
  211. data/lib/ory-client/models/update_verification_flow_body.rb +1 -1
  212. data/lib/ory-client/models/update_verification_flow_with_code_method_body.rb +1 -1
  213. data/lib/ory-client/models/update_verification_flow_with_link_method.rb +1 -1
  214. data/lib/ory-client/models/{quota_branding_themes.rb → usage.rb} +11 -11
  215. data/lib/ory-client/models/verifiable_identity_address.rb +1 -1
  216. data/lib/ory-client/models/verification_flow.rb +1 -1
  217. data/lib/ory-client/models/verification_flow_state.rb +1 -1
  218. data/lib/ory-client/models/version.rb +1 -1
  219. data/lib/ory-client/models/warning.rb +1 -1
  220. data/lib/ory-client/version.rb +2 -2
  221. data/lib/ory-client.rb +6 -6
  222. data/ory-client.gemspec +1 -1
  223. data/spec/api/courier_api_spec.rb +1 -1
  224. data/spec/api/frontend_api_spec.rb +1 -1
  225. data/spec/api/identity_api_spec.rb +1 -1
  226. data/spec/api/jwk_api_spec.rb +1 -1
  227. data/spec/api/metadata_api_spec.rb +1 -1
  228. data/spec/api/o_auth2_api_spec.rb +1 -1
  229. data/spec/api/oidc_api_spec.rb +1 -1
  230. data/spec/api/permission_api_spec.rb +2 -2
  231. data/spec/api/project_api_spec.rb +1 -1
  232. data/spec/api/relationship_api_spec.rb +1 -1
  233. data/spec/api/wellknown_api_spec.rb +1 -1
  234. data/spec/api_client_spec.rb +1 -1
  235. data/spec/configuration_spec.rb +1 -1
  236. data/spec/models/accept_o_auth2_consent_request_session_spec.rb +1 -1
  237. data/spec/models/accept_o_auth2_consent_request_spec.rb +1 -1
  238. data/spec/models/accept_o_auth2_login_request_spec.rb +1 -1
  239. data/spec/models/active_project_in_console_spec.rb +1 -1
  240. data/spec/models/authenticator_assurance_level_spec.rb +1 -1
  241. data/spec/models/check_opl_syntax_result_spec.rb +1 -1
  242. data/spec/models/check_permission_result_spec.rb +1 -1
  243. data/spec/models/cloud_account_spec.rb +1 -1
  244. data/spec/models/courier_message_status_spec.rb +1 -1
  245. data/spec/models/courier_message_type_spec.rb +1 -1
  246. data/spec/models/create_custom_domain_body_spec.rb +1 -1
  247. data/spec/models/create_identity_body_spec.rb +1 -1
  248. data/spec/models/create_json_web_key_set_spec.rb +1 -1
  249. data/spec/models/create_project_api_key_request_spec.rb +1 -1
  250. data/spec/models/create_project_body_spec.rb +1 -1
  251. data/spec/models/create_project_branding_spec.rb +1 -1
  252. data/spec/models/create_project_invite_spec.rb +1 -1
  253. data/spec/models/create_recovery_code_for_identity_body_spec.rb +1 -1
  254. data/spec/models/create_recovery_link_for_identity_body_spec.rb +1 -1
  255. data/spec/models/create_relationship_body_spec.rb +1 -1
  256. data/spec/models/create_subscription_body_spec.rb +12 -2
  257. data/spec/models/custom_domain_spec.rb +1 -1
  258. data/spec/models/delete_my_sessions_count_spec.rb +1 -1
  259. data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +1 -1
  260. data/spec/models/error_browser_location_change_required_spec.rb +1 -1
  261. data/spec/models/error_flow_replaced_spec.rb +1 -1
  262. data/spec/models/error_generic_spec.rb +1 -1
  263. data/spec/models/error_o_auth2_spec.rb +1 -1
  264. data/spec/models/expanded_permission_tree_spec.rb +1 -1
  265. data/spec/models/flow_error_spec.rb +1 -1
  266. data/spec/models/generic_error_content_spec.rb +1 -1
  267. data/spec/models/generic_error_spec.rb +1 -1
  268. data/spec/models/{invite_quota_spec.rb → generic_usage_spec.rb} +9 -15
  269. data/spec/models/get_managed_identity_schema_location_spec.rb +1 -1
  270. data/spec/models/get_version200_response_spec.rb +1 -1
  271. data/spec/models/health_not_ready_status_spec.rb +1 -1
  272. data/spec/models/health_status_spec.rb +1 -1
  273. data/spec/models/identity_credentials_oidc_provider_spec.rb +1 -1
  274. data/spec/models/identity_credentials_oidc_spec.rb +1 -1
  275. data/spec/models/identity_credentials_password_spec.rb +1 -1
  276. data/spec/models/identity_credentials_spec.rb +1 -1
  277. data/spec/models/identity_credentials_type_spec.rb +1 -1
  278. data/spec/models/identity_schema_container_spec.rb +1 -1
  279. data/spec/models/identity_schema_preset_spec.rb +1 -1
  280. data/spec/models/identity_spec.rb +1 -1
  281. data/spec/models/identity_state_spec.rb +1 -1
  282. data/spec/models/identity_with_credentials_oidc_config_provider_spec.rb +1 -1
  283. data/spec/models/identity_with_credentials_oidc_config_spec.rb +1 -1
  284. data/spec/models/identity_with_credentials_oidc_spec.rb +1 -1
  285. data/spec/models/identity_with_credentials_password_config_spec.rb +1 -1
  286. data/spec/models/identity_with_credentials_password_spec.rb +1 -1
  287. data/spec/models/identity_with_credentials_spec.rb +1 -1
  288. data/spec/models/internal_get_project_branding_body_spec.rb +1 -1
  289. data/spec/models/internal_is_owner_for_project_by_slug_body_spec.rb +1 -1
  290. data/spec/models/internal_provision_mock_subscription_spec.rb +12 -2
  291. data/spec/models/introspected_o_auth2_token_spec.rb +1 -1
  292. data/spec/models/is_owner_for_project_by_slug_spec.rb +1 -1
  293. data/spec/models/is_ready200_response_spec.rb +1 -1
  294. data/spec/models/is_ready503_response_spec.rb +1 -1
  295. data/spec/models/json_patch_spec.rb +1 -1
  296. data/spec/models/json_web_key_set_spec.rb +1 -1
  297. data/spec/models/json_web_key_spec.rb +1 -1
  298. data/spec/models/keto_namespace_spec.rb +1 -1
  299. data/spec/models/login_flow_spec.rb +1 -1
  300. data/spec/models/logout_flow_spec.rb +1 -1
  301. data/spec/models/managed_identity_schema_spec.rb +1 -1
  302. data/spec/models/managed_identity_schema_validation_result_spec.rb +1 -1
  303. data/spec/models/message_dispatch_spec.rb +1 -1
  304. data/spec/models/message_spec.rb +1 -1
  305. data/spec/models/namespace_spec.rb +1 -1
  306. data/spec/models/needs_privileged_session_error_spec.rb +1 -1
  307. data/spec/models/normalized_project_revision_hook_spec.rb +1 -1
  308. data/spec/models/normalized_project_revision_identity_schema_spec.rb +1 -1
  309. data/spec/models/normalized_project_revision_spec.rb +1 -1
  310. data/spec/models/normalized_project_revision_third_party_provider_spec.rb +1 -1
  311. data/spec/models/normalized_project_spec.rb +1 -1
  312. data/spec/models/o_auth2_client_spec.rb +13 -1
  313. data/spec/models/o_auth2_client_token_lifespans_spec.rb +1 -1
  314. data/spec/models/o_auth2_consent_request_open_id_connect_context_spec.rb +1 -1
  315. data/spec/models/o_auth2_consent_request_spec.rb +1 -1
  316. data/spec/models/o_auth2_consent_session_expires_at_spec.rb +1 -1
  317. data/spec/models/o_auth2_consent_session_spec.rb +1 -1
  318. data/spec/models/o_auth2_login_request_spec.rb +1 -1
  319. data/spec/models/o_auth2_logout_request_spec.rb +1 -1
  320. data/spec/models/o_auth2_redirect_to_spec.rb +1 -1
  321. data/spec/models/o_auth2_token_exchange_spec.rb +1 -1
  322. data/spec/models/oidc_configuration_spec.rb +1 -1
  323. data/spec/models/oidc_user_info_spec.rb +1 -1
  324. data/spec/models/pagination_headers_spec.rb +1 -1
  325. data/spec/models/pagination_spec.rb +1 -1
  326. data/spec/models/parse_error_spec.rb +1 -1
  327. data/spec/models/perform_native_logout_body_spec.rb +1 -1
  328. data/spec/models/plan_details_spec.rb +70 -0
  329. data/spec/models/{session_caching_quota_spec.rb → plan_spec.rb} +14 -8
  330. data/spec/models/post_check_permission_body_spec.rb +1 -1
  331. data/spec/models/post_check_permission_or_error_body_spec.rb +1 -1
  332. data/spec/models/project_api_key_spec.rb +1 -1
  333. data/spec/models/project_branding_colors_spec.rb +1 -1
  334. data/spec/models/project_branding_spec.rb +1 -1
  335. data/spec/models/project_branding_theme_spec.rb +1 -1
  336. data/spec/models/project_host_spec.rb +1 -1
  337. data/spec/models/project_invite_spec.rb +1 -1
  338. data/spec/models/project_metadata_spec.rb +1 -1
  339. data/spec/models/project_service_identity_spec.rb +1 -1
  340. data/spec/models/project_service_o_auth2_spec.rb +1 -1
  341. data/spec/models/project_service_permission_spec.rb +1 -1
  342. data/spec/models/project_services_spec.rb +1 -1
  343. data/spec/models/project_spec.rb +1 -1
  344. data/spec/models/quota_usage_spec.rb +68 -0
  345. data/spec/models/recovery_code_for_identity_spec.rb +1 -1
  346. data/spec/models/recovery_flow_spec.rb +1 -1
  347. data/spec/models/recovery_flow_state_spec.rb +1 -1
  348. data/spec/models/recovery_identity_address_spec.rb +1 -1
  349. data/spec/models/recovery_link_for_identity_spec.rb +1 -1
  350. data/spec/models/registration_flow_spec.rb +1 -1
  351. data/spec/models/reject_o_auth2_request_spec.rb +1 -1
  352. data/spec/models/relation_query_spec.rb +1 -1
  353. data/spec/models/relationship_namespaces_spec.rb +1 -1
  354. data/spec/models/relationship_patch_spec.rb +1 -1
  355. data/spec/models/relationship_spec.rb +1 -1
  356. data/spec/models/relationships_spec.rb +1 -1
  357. data/spec/models/schema_patch_spec.rb +1 -1
  358. data/spec/models/self_service_flow_expired_error_spec.rb +1 -1
  359. data/spec/models/session_authentication_method_spec.rb +1 -1
  360. data/spec/models/session_device_spec.rb +1 -1
  361. data/spec/models/session_spec.rb +1 -1
  362. data/spec/models/set_active_project_in_console_body_spec.rb +1 -1
  363. data/spec/models/set_custom_domain_body_spec.rb +1 -1
  364. data/spec/models/set_project_branding_theme_body_spec.rb +1 -1
  365. data/spec/models/set_project_spec.rb +1 -1
  366. data/spec/models/settings_flow_spec.rb +1 -1
  367. data/spec/models/settings_flow_state_spec.rb +1 -1
  368. data/spec/models/source_position_spec.rb +1 -1
  369. data/spec/models/stripe_customer_spec.rb +1 -1
  370. data/spec/models/subject_set_spec.rb +1 -1
  371. data/spec/models/subscription_spec.rb +16 -4
  372. data/spec/models/successful_native_login_spec.rb +1 -1
  373. data/spec/models/successful_native_registration_spec.rb +1 -1
  374. data/spec/models/successful_project_update_spec.rb +1 -1
  375. data/spec/models/token_pagination_headers_spec.rb +1 -1
  376. data/spec/models/token_pagination_request_parameters_spec.rb +1 -1
  377. data/spec/models/token_pagination_response_headers_spec.rb +1 -1
  378. data/spec/models/token_pagination_spec.rb +1 -1
  379. data/spec/models/trust_o_auth2_jwt_grant_issuer_spec.rb +1 -1
  380. data/spec/models/trusted_o_auth2_jwt_grant_issuer_spec.rb +1 -1
  381. data/spec/models/trusted_o_auth2_jwt_grant_json_web_key_spec.rb +1 -1
  382. data/spec/models/ui_container_spec.rb +1 -1
  383. data/spec/models/ui_node_anchor_attributes_spec.rb +1 -1
  384. data/spec/models/ui_node_attributes_spec.rb +1 -1
  385. data/spec/models/ui_node_image_attributes_spec.rb +1 -1
  386. data/spec/models/ui_node_input_attributes_spec.rb +1 -1
  387. data/spec/models/ui_node_meta_spec.rb +1 -1
  388. data/spec/models/ui_node_script_attributes_spec.rb +1 -1
  389. data/spec/models/ui_node_spec.rb +1 -1
  390. data/spec/models/ui_node_text_attributes_spec.rb +1 -1
  391. data/spec/models/ui_text_spec.rb +1 -1
  392. data/spec/models/update_identity_body_spec.rb +1 -1
  393. data/spec/models/update_login_flow_body_spec.rb +1 -1
  394. data/spec/models/update_login_flow_with_lookup_secret_method_spec.rb +1 -1
  395. data/spec/models/update_login_flow_with_oidc_method_spec.rb +7 -1
  396. data/spec/models/update_login_flow_with_password_method_spec.rb +1 -1
  397. data/spec/models/update_login_flow_with_totp_method_spec.rb +1 -1
  398. data/spec/models/update_login_flow_with_web_authn_method_spec.rb +1 -1
  399. data/spec/models/update_recovery_flow_body_spec.rb +1 -1
  400. data/spec/models/update_recovery_flow_with_code_method_spec.rb +1 -1
  401. data/spec/models/update_recovery_flow_with_link_method_spec.rb +1 -1
  402. data/spec/models/update_registration_flow_body_spec.rb +1 -1
  403. data/spec/models/update_registration_flow_with_oidc_method_spec.rb +7 -1
  404. data/spec/models/update_registration_flow_with_password_method_spec.rb +1 -1
  405. data/spec/models/update_registration_flow_with_web_authn_method_spec.rb +1 -1
  406. data/spec/models/update_settings_flow_body_spec.rb +1 -1
  407. data/spec/models/update_settings_flow_with_lookup_method_spec.rb +1 -1
  408. data/spec/models/update_settings_flow_with_oidc_method_spec.rb +7 -1
  409. data/spec/models/update_settings_flow_with_password_method_spec.rb +1 -1
  410. data/spec/models/update_settings_flow_with_profile_method_spec.rb +1 -1
  411. data/spec/models/update_settings_flow_with_totp_method_spec.rb +1 -1
  412. data/spec/models/update_settings_flow_with_web_authn_method_spec.rb +1 -1
  413. data/spec/models/update_subscription_body_spec.rb +12 -2
  414. data/spec/models/update_verification_flow_body_spec.rb +1 -1
  415. data/spec/models/update_verification_flow_with_code_method_body_spec.rb +1 -1
  416. data/spec/models/update_verification_flow_with_link_method_spec.rb +1 -1
  417. data/spec/models/{quota_branding_themes_spec.rb → usage_spec.rb} +8 -8
  418. data/spec/models/verifiable_identity_address_spec.rb +1 -1
  419. data/spec/models/verification_flow_spec.rb +1 -1
  420. data/spec/models/verification_flow_state_spec.rb +1 -1
  421. data/spec/models/version_spec.rb +1 -1
  422. data/spec/models/warning_spec.rb +1 -1
  423. data/spec/spec_helper.rb +1 -1
  424. data/vendor/bundle/ruby/2.5.0/cache/parser-3.2.1.1.gem +0 -0
  425. data/vendor/bundle/ruby/2.5.0/cache/rspec-mocks-3.12.4.gem +0 -0
  426. data/vendor/bundle/ruby/2.5.0/cache/ruby-progressbar-1.13.0.gem +0 -0
  427. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
  428. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.5/gem_make.out +2 -2
  429. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/jaro_winkler-1.5.4/gem_make.out +2 -2
  430. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.6/gem_make.out +2 -2
  431. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.5/gem_make.out +2 -2
  432. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.5/mkmf.log +1 -1
  433. data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
  434. data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
  435. data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
  436. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ast/node.rb +2 -2
  437. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/builders/default.rb +7 -2
  438. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/macruby.rb +1 -1
  439. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby18.rb +1 -1
  440. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby19.rb +1 -1
  441. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby20.rb +1 -1
  442. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby21.rb +1 -1
  443. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby22.rb +1 -1
  444. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby23.rb +1 -1
  445. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby24.rb +1 -1
  446. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby25.rb +1 -1
  447. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby26.rb +1 -1
  448. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby27.rb +1 -1
  449. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby30.rb +1 -1
  450. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby31.rb +1 -1
  451. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby32.rb +1 -1
  452. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby33.rb +1 -1
  453. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/rubymotion.rb +1 -1
  454. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/version.rb +1 -1
  455. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/parser.gemspec +1 -1
  456. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/Makefile +2 -2
  457. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/Changelog.md +10 -1
  458. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/matchers/receive.rb +2 -1
  459. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/version.rb +1 -1
  460. data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/base.rb +234 -0
  461. data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/calculators/length.rb +0 -2
  462. data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/components/percentage.rb +1 -3
  463. data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/components/rate.rb +3 -7
  464. data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/components/time.rb +30 -30
  465. data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/format/formatter.rb +1 -1
  466. data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/format/molecule.rb +61 -0
  467. data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/format/string.rb +2 -0
  468. data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/output.rb +3 -0
  469. data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/progress.rb +6 -16
  470. data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/projector.rb +14 -0
  471. data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/projectors/smoothed_average.rb +71 -0
  472. data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/refinements/progress_enumerator.rb +28 -0
  473. data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/refinements.rb +1 -0
  474. data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/time.rb +3 -5
  475. data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/timer.rb +6 -0
  476. data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/version.rb +3 -0
  477. data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar.rb +12 -0
  478. data/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.5/ext/stringio/Makefile +2 -2
  479. data/vendor/bundle/ruby/2.5.0/specifications/{parser-3.2.1.0.gemspec → parser-3.2.1.1.gemspec} +7 -7
  480. data/vendor/bundle/ruby/2.5.0/specifications/{rspec-mocks-3.12.3.gemspec → rspec-mocks-3.12.4.gemspec} +8 -8
  481. data/vendor/bundle/ruby/2.5.0/specifications/{ruby-progressbar-1.11.0.gemspec → ruby-progressbar-1.13.0.gemspec} +8 -8
  482. metadata +182 -183
  483. data/docs/CustomDomainQuota.md +0 -22
  484. data/docs/InviteQuota.md +0 -22
  485. data/docs/NullPlan.md +0 -15
  486. data/docs/QuotaBrandingThemes.md +0 -18
  487. data/docs/SessionCachingQuota.md +0 -18
  488. data/lib/ory-client/models/null_plan.rb +0 -42
  489. data/spec/models/custom_domain_quota_spec.rb +0 -46
  490. data/spec/models/null_plan_spec.rb +0 -28
  491. data/vendor/bundle/ruby/2.5.0/cache/parser-3.2.1.0.gem +0 -0
  492. data/vendor/bundle/ruby/2.5.0/cache/rspec-mocks-3.12.3.gem +0 -0
  493. data/vendor/bundle/ruby/2.5.0/cache/ruby-progressbar-1.11.0.gem +0 -0
  494. data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/base.rb +0 -183
  495. data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb +0 -9
  496. data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/components.rb +0 -5
  497. data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/format/molecule.rb +0 -60
  498. data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/format.rb +0 -3
  499. data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/refinements/enumerator.rb +0 -23
  500. data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/refinements.rb +0 -1
  501. data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/version.rb +0 -3
  502. data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar.rb +0 -22
  503. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/LICENSE.txt +0 -0
  504. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/bin/ruby-parse +0 -0
  505. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/bin/ruby-rewrite +0 -0
  506. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/gauntlet_parser.rb +0 -0
  507. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/all.rb +0 -0
  508. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ast/processor.rb +0 -0
  509. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/base.rb +0 -0
  510. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/clobbering_error.rb +0 -0
  511. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/color.rb +0 -0
  512. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/context.rb +0 -0
  513. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/current.rb +0 -0
  514. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/current_arg_stack.rb +0 -0
  515. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/deprecation.rb +0 -0
  516. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/diagnostic/engine.rb +0 -0
  517. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/diagnostic.rb +0 -0
  518. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/lexer/dedenter.rb +0 -0
  519. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/lexer/explanation.rb +0 -0
  520. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/lexer/literal.rb +0 -0
  521. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/lexer/stack_state.rb +0 -0
  522. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/lexer-F0.rb +0 -0
  523. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/lexer-F1.rb +0 -0
  524. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/lexer-strings.rb +0 -0
  525. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/max_numparam_stack.rb +0 -0
  526. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/messages.rb +0 -0
  527. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/meta.rb +0 -0
  528. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/rewriter.rb +0 -0
  529. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby28.rb +0 -0
  530. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/runner/ruby_parse.rb +0 -0
  531. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/runner/ruby_rewrite.rb +0 -0
  532. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/runner.rb +0 -0
  533. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/buffer.rb +0 -0
  534. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/comment/associator.rb +0 -0
  535. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/comment.rb +0 -0
  536. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/collection.rb +0 -0
  537. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/condition.rb +0 -0
  538. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/constant.rb +0 -0
  539. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/definition.rb +0 -0
  540. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/for.rb +0 -0
  541. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/heredoc.rb +0 -0
  542. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/index.rb +0 -0
  543. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/keyword.rb +0 -0
  544. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/method_definition.rb +0 -0
  545. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/objc_kwarg.rb +0 -0
  546. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/operator.rb +0 -0
  547. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/rescue_body.rb +0 -0
  548. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/send.rb +0 -0
  549. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/ternary.rb +0 -0
  550. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/variable.rb +0 -0
  551. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map.rb +0 -0
  552. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/range.rb +0 -0
  553. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/rewriter/action.rb +0 -0
  554. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/rewriter.rb +0 -0
  555. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/tree_rewriter/action.rb +0 -0
  556. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/tree_rewriter.rb +0 -0
  557. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/static_environment.rb +0 -0
  558. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/syntax_error.rb +0 -0
  559. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/tree_rewriter.rb +0 -0
  560. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/variables_stack.rb +0 -0
  561. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser.rb +0 -0
  562. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/.document +0 -0
  563. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/.yardopts +0 -0
  564. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/LICENSE.md +0 -0
  565. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/README.md +0 -0
  566. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/any_instance/chain.rb +0 -0
  567. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/any_instance/error_generator.rb +0 -0
  568. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -0
  569. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -0
  570. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/any_instance/message_chains.rb +0 -0
  571. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/any_instance/proxy.rb +0 -0
  572. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/any_instance/recorder.rb +0 -0
  573. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/any_instance/stub_chain.rb +0 -0
  574. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -0
  575. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/any_instance.rb +0 -0
  576. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/argument_list_matcher.rb +0 -0
  577. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/argument_matchers.rb +0 -0
  578. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/configuration.rb +0 -0
  579. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/error_generator.rb +0 -0
  580. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/example_methods.rb +0 -0
  581. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/instance_method_stasher.rb +0 -0
  582. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/marshal_extension.rb +0 -0
  583. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/matchers/expectation_customization.rb +0 -0
  584. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/matchers/have_received.rb +0 -0
  585. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -0
  586. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/matchers/receive_messages.rb +0 -0
  587. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/message_chain.rb +0 -0
  588. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/message_expectation.rb +0 -0
  589. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/method_double.rb +0 -0
  590. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/method_reference.rb +0 -0
  591. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/minitest_integration.rb +0 -0
  592. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/mutate_const.rb +0 -0
  593. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/object_reference.rb +0 -0
  594. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/order_group.rb +0 -0
  595. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/proxy.rb +0 -0
  596. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/space.rb +1 -1
  597. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/standalone.rb +0 -0
  598. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/syntax.rb +0 -0
  599. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/targets.rb +0 -0
  600. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/test_double.rb +0 -0
  601. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/verifying_double.rb +0 -0
  602. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/verifying_message_expectation.rb +0 -0
  603. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks/verifying_proxy.rb +0 -0
  604. data/vendor/bundle/ruby/2.5.0/gems/{rspec-mocks-3.12.3 → rspec-mocks-3.12.4}/lib/rspec/mocks.rb +0 -0
  605. data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/LICENSE.txt +0 -0
  606. data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/README.md +0 -0
  607. data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/Rakefile +0 -0
  608. data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/components/bar.rb +22 -22
  609. /data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/components/title.rb +0 -0
  610. /data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/errors/invalid_progress_error.rb +0 -0
  611. /data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/outputs/non_tty.rb +0 -0
  612. /data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/outputs/null.rb +0 -0
  613. /data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/outputs/tty.rb +0 -0
  614. /data/vendor/bundle/ruby/2.5.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/throttle.rb +0 -0
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Parser
4
- VERSION = '3.2.1.0'
4
+ VERSION = '3.2.1.1'
5
5
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
 
31
31
  spec.add_development_dependency 'bundler', '>= 1.15', '< 3.0.0'
32
32
  spec.add_development_dependency 'rake', '~> 13.0.1'
33
- spec.add_development_dependency 'racc', '= 1.6.1'
33
+ spec.add_development_dependency 'racc', '= 1.6.2'
34
34
  spec.add_development_dependency 'cliver', '~> 0.3.2'
35
35
 
36
36
  spec.add_development_dependency 'yard'
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
31
  vendorarchdir = $(rubysitearchprefix)/vendor_ruby/$(ruby_version)
32
32
  vendorlibdir = $(vendordir)/$(ruby_version)
33
33
  vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(DESTDIR)./.gem.20230227-4737-yktxy6
35
- sitelibdir = $(DESTDIR)./.gem.20230227-4737-yktxy6
34
+ sitearchdir = $(DESTDIR)./.gem.20230316-4731-d2a0yv
35
+ sitelibdir = $(DESTDIR)./.gem.20230316-4731-d2a0yv
36
36
  sitedir = $(DESTDIR)/usr/local/lib/site_ruby
37
37
  rubyarchdir = $(rubyarchprefix)/$(ruby_version)
38
38
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -1,5 +1,14 @@
1
1
  ### Development
2
- [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.3...3-12-maintenance)
2
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.4...3-12-maintenance)
3
+
4
+ ### 3.12.4 / 2023-01-17
5
+ [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.3...v3.12.4)
6
+
7
+ Bug Fixes:
8
+
9
+ * Fix an issue with asserting that Array#reverse is never called. (Brad Trick, #1533)
10
+ * Fix compatibility issue with Rails where active_support monkey patches `with`.
11
+ (Jean Boussier, #1531, #1534)
3
12
 
4
13
  ### 3.12.3 / 2023-01-17
5
14
  [Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.12.2...v3.12.3)
@@ -55,8 +55,9 @@ module RSpec
55
55
  setup_any_instance_method_substitute(subject, :stub, block)
56
56
  end
57
57
 
58
+ own_methods = (instance_methods - superclass.instance_methods)
58
59
  MessageExpectation.public_instance_methods(false).each do |method|
59
- next if method_defined?(method)
60
+ next if own_methods.include?(method)
60
61
 
61
62
  define_method(method) do |*args, &block|
62
63
  @recorded_customizations << ExpectationCustomization.new(method, args, block)
@@ -3,7 +3,7 @@ module RSpec
3
3
  # Version information for RSpec mocks.
4
4
  module Version
5
5
  # Version of RSpec mocks currently in use in SemVer format.
6
- STRING = '3.12.3'
6
+ STRING = '3.12.4'
7
7
  end
8
8
  end
9
9
  end
@@ -0,0 +1,234 @@
1
+ require 'forwardable'
2
+
3
+ require 'ruby-progressbar/components/bar'
4
+ require 'ruby-progressbar/components/percentage'
5
+ require 'ruby-progressbar/components/rate'
6
+ require 'ruby-progressbar/components/time'
7
+ require 'ruby-progressbar/components/title'
8
+ require 'ruby-progressbar/format/formatter'
9
+ require 'ruby-progressbar/format/string'
10
+ require 'ruby-progressbar/outputs/non_tty'
11
+ require 'ruby-progressbar/outputs/tty'
12
+ require 'ruby-progressbar/progress'
13
+ require 'ruby-progressbar/projector'
14
+ require 'ruby-progressbar/timer'
15
+
16
+ class ProgressBar
17
+ class Base
18
+ extend Forwardable
19
+
20
+ # rubocop:disable Layout/HeredocIndentation
21
+ SMOOTHING_DEPRECATION_WARNING = <<-HEREDOC.tr("\n", ' ')
22
+ WARNING: Passing the 'smoothing' option is deprecated and will be removed
23
+ in version 2.0. Please pass { projector: { type: 'smoothing', strength: 0.x }}.
24
+ For more information on why this change is happening, visit
25
+ https://github.com/jfelchner/ruby-progressbar/wiki/Upgrading
26
+ HEREDOC
27
+
28
+ RUNNING_AVERAGE_RATE_DEPRECATION_WARNING = <<-HEREDOC.tr("\n", ' ')
29
+ WARNING: Passing the 'running_average_rate' option is deprecated and will be removed
30
+ in version 2.0. Please pass { projector: { type: 'smoothing', strength: 0.x }}.
31
+ For more information on why this change is happening, visit
32
+ https://github.com/jfelchner/ruby-progressbar/wiki/Upgrading
33
+ HEREDOC
34
+ # rubocop:enable Layout/HeredocIndentation
35
+
36
+ def_delegators :output,
37
+ :clear,
38
+ :log,
39
+ :refresh
40
+
41
+ def_delegators :progressable,
42
+ :progress,
43
+ :total
44
+
45
+ def initialize(options = {}) # rubocop:disable Metrics/AbcSize
46
+ options[:projector] ||= {}
47
+
48
+ self.autostart = options.fetch(:autostart, true)
49
+ self.autofinish = options.fetch(:autofinish, true)
50
+ self.finished = false
51
+
52
+ self.timer = Timer.new(options)
53
+ projector_opts = if options[:projector].any?
54
+ options[:projector]
55
+ elsif options[:smoothing]
56
+ warn SMOOTHING_DEPRECATION_WARNING
57
+
58
+ { :strength => options[:smoothing] }
59
+ elsif options[:running_average_rate]
60
+ warn RUNNING_AVERAGE_RATE_DEPRECATION_WARNING
61
+
62
+ { :strength => options[:smoothing] }
63
+ else
64
+ {}
65
+ end
66
+ self.projector = Projector.
67
+ from_type(options[:projector][:type]).
68
+ new(projector_opts)
69
+ self.progressable = Progress.new(options)
70
+
71
+ options = options.merge(:progress => progressable,
72
+ :projector => projector,
73
+ :timer => timer)
74
+
75
+ self.title_component = Components::Title.new(options)
76
+ self.bar_component = Components::Bar.new(options)
77
+ self.percentage_component = Components::Percentage.new(options)
78
+ self.rate_component = Components::Rate.new(options)
79
+ self.time_component = Components::Time.new(options)
80
+
81
+ self.output = Output.detect(options.merge(:bar => self))
82
+ @format = Format::String.new(output.resolve_format(options[:format]))
83
+
84
+ start :at => options[:starting_at] if autostart
85
+ end
86
+
87
+ def start(options = {})
88
+ timer.start
89
+ update_progress(:start, options)
90
+ end
91
+
92
+ def finish
93
+ return if finished?
94
+
95
+ output.with_refresh do
96
+ self.finished = true
97
+ progressable.finish
98
+ timer.stop
99
+ end
100
+ end
101
+
102
+ def pause
103
+ output.with_refresh { timer.pause } unless paused?
104
+ end
105
+
106
+ def stop
107
+ output.with_refresh { timer.stop } unless stopped?
108
+ end
109
+
110
+ def resume
111
+ output.with_refresh { timer.resume } if stopped?
112
+ end
113
+
114
+ def reset
115
+ output.with_refresh do
116
+ self.finished = false
117
+ progressable.reset
118
+ projector.reset
119
+ timer.reset
120
+ end
121
+ end
122
+
123
+ def stopped?
124
+ timer.stopped? || finished?
125
+ end
126
+
127
+ alias paused? stopped?
128
+
129
+ def finished?
130
+ finished || (autofinish && progressable.finished?)
131
+ end
132
+
133
+ def started?
134
+ timer.started?
135
+ end
136
+
137
+ def decrement
138
+ update_progress(:decrement)
139
+ end
140
+
141
+ def increment
142
+ update_progress(:increment)
143
+ end
144
+
145
+ def progress=(new_progress)
146
+ update_progress(:progress=, new_progress)
147
+ end
148
+
149
+ def total=(new_total)
150
+ update_progress(:total=, new_total)
151
+ end
152
+
153
+ def progress_mark=(mark)
154
+ output.refresh_with_format_change { bar_component.progress_mark = mark }
155
+ end
156
+
157
+ def remainder_mark=(mark)
158
+ output.refresh_with_format_change { bar_component.remainder_mark = mark }
159
+ end
160
+
161
+ def title
162
+ title_component.title
163
+ end
164
+
165
+ def title=(title)
166
+ output.refresh_with_format_change { title_component.title = title }
167
+ end
168
+
169
+ def to_s(new_format = nil)
170
+ self.format = new_format if new_format
171
+
172
+ Format::Formatter.process(@format, output.length, self)
173
+ end
174
+
175
+ # rubocop:disable Metrics/AbcSize, Layout/LineLength
176
+ def to_h
177
+ {
178
+ 'output_stream' => output.__send__(:stream),
179
+ 'length' => output.length,
180
+ 'title' => title_component.title,
181
+ 'progress_mark' => bar_component.progress_mark,
182
+ 'remainder_mark' => bar_component.remainder_mark,
183
+ 'progress' => progressable.progress,
184
+ 'total' => progressable.total,
185
+ 'percentage' => progressable.percentage_completed_with_precision.to_f,
186
+ 'elapsed_time_in_seconds' => time_component.__send__(:timer).elapsed_seconds,
187
+ 'estimated_time_remaining_in_seconds' => time_component.__send__(:estimated_seconds_remaining),
188
+ 'base_rate_of_change' => rate_component.__send__(:base_rate),
189
+ 'scaled_rate_of_change' => rate_component.__send__(:scaled_rate),
190
+ 'unknown_progress_animation_steps' => bar_component.upa_steps,
191
+ 'throttle_rate' => output.__send__(:throttle).rate,
192
+ 'started?' => started?,
193
+ 'stopped?' => stopped?,
194
+ 'finished?' => finished?
195
+ }
196
+ end
197
+ # rubocop:enable Metrics/AbcSize, Layout/LineLength
198
+
199
+ def inspect
200
+ "#<ProgressBar:#{progress}/#{total || 'unknown'}>"
201
+ end
202
+
203
+ def format=(other)
204
+ output.refresh_with_format_change do
205
+ @format = Format::String.new(other || output.default_format)
206
+ end
207
+ end
208
+
209
+ alias format format=
210
+
211
+ protected
212
+
213
+ attr_accessor :output,
214
+ :projector,
215
+ :timer,
216
+ :progressable,
217
+ :title_component,
218
+ :bar_component,
219
+ :percentage_component,
220
+ :rate_component,
221
+ :time_component,
222
+ :autostart,
223
+ :autofinish,
224
+ :finished
225
+
226
+ def update_progress(*args)
227
+ output.with_refresh do
228
+ progressable.__send__(*args)
229
+ projector.__send__(*args)
230
+ timer.stop if finished?
231
+ end
232
+ end
233
+ end
234
+ end
@@ -50,7 +50,6 @@ class Length
50
50
  end
51
51
  # rubocop:enable Style/RescueStandardError
52
52
 
53
- # rubocop:disable Lint/DuplicateMethods
54
53
  begin
55
54
  require 'io/console'
56
55
 
@@ -68,7 +67,6 @@ class Length
68
67
  dynamic_width_via_system_calls
69
68
  end
70
69
  end
71
- # rubocop:enable Lint/DuplicateMethods
72
70
 
73
71
  def dynamic_width_via_output_stream_object
74
72
  _rows, columns = output.winsize
@@ -7,10 +7,8 @@ class Percentage
7
7
  self.progress = options[:progress]
8
8
  end
9
9
 
10
- private
11
-
12
10
  def percentage
13
- progress.percentage_completed
11
+ progress.percentage_completed.to_s
14
12
  end
15
13
 
16
14
  def justified_percentage
@@ -2,23 +2,17 @@ class ProgressBar
2
2
  module Components
3
3
  class Rate
4
4
  attr_accessor :rate_scale,
5
- :started_at,
6
- :stopped_at,
7
5
  :timer,
8
6
  :progress
9
7
 
10
8
  def initialize(options = {})
11
9
  self.rate_scale = options[:rate_scale] || lambda { |x| x }
12
- self.started_at = nil
13
- self.stopped_at = nil
14
10
  self.timer = options[:timer]
15
11
  self.progress = options[:progress]
16
12
  end
17
13
 
18
- private
19
-
20
14
  def rate_of_change(format_string = '%i')
21
- return 0 unless elapsed_seconds > 0
15
+ return '0' if elapsed_seconds <= 0
22
16
 
23
17
  format_string % scaled_rate
24
18
  end
@@ -27,6 +21,8 @@ class Rate
27
21
  rate_of_change('%.2f')
28
22
  end
29
23
 
24
+ private
25
+
30
26
  def scaled_rate
31
27
  rate_scale.call(base_rate)
32
28
  end
@@ -12,60 +12,58 @@ class Time
12
12
  NO_TIME_ELAPSED_TEXT = '--:--:--'.freeze
13
13
  ESTIMATED_LABEL = ' ETA'.freeze
14
14
  ELAPSED_LABEL = 'Time'.freeze
15
+ WALL_CLOCK_FORMAT = '%H:%M:%S'.freeze
15
16
  OOB_TEXT_TO_FORMAT = {
16
17
  :unknown => OOB_UNKNOWN_TIME_TEXT,
17
18
  :friendly => OOB_FRIENDLY_TIME_TEXT
18
19
  }.freeze
19
20
 
20
21
  def initialize(options = {})
21
- self.out_of_bounds_time_format = options[:out_of_bounds_time_format]
22
- self.timer = options[:timer]
23
- self.progress = options[:progress]
22
+ self.timer = options[:timer]
23
+ self.progress = options[:progress]
24
+ self.projector = options[:projector]
24
25
  end
25
26
 
26
- def estimated_with_label
27
- "#{ESTIMATED_LABEL}: #{estimated}"
27
+ def estimated_with_label(out_of_bounds_time_format = nil)
28
+ "#{ESTIMATED_LABEL}: #{estimated(out_of_bounds_time_format)}"
28
29
  end
29
30
 
30
31
  def elapsed_with_label
31
32
  "#{ELAPSED_LABEL}: #{elapsed}"
32
33
  end
33
34
 
34
- protected
35
-
36
35
  def estimated_with_no_oob
37
- self.out_of_bounds_time_format = nil
38
-
39
- estimated_with_elapsed_fallback
36
+ estimated_with_elapsed_fallback(nil)
40
37
  end
41
38
 
42
39
  def estimated_with_unknown_oob
43
- self.out_of_bounds_time_format = :unknown
44
-
45
- estimated_with_elapsed_fallback
40
+ estimated_with_elapsed_fallback(:unknown)
46
41
  end
47
42
 
48
43
  def estimated_with_friendly_oob
49
- self.out_of_bounds_time_format = :friendly
50
-
51
- estimated_with_elapsed_fallback
44
+ estimated_with_elapsed_fallback(:friendly)
52
45
  end
53
46
 
54
- attr_reader :out_of_bounds_time_format
55
- attr_accessor :timer,
56
- :progress
47
+ def estimated_wall_clock
48
+ return timer.stopped_at.strftime(WALL_CLOCK_FORMAT) if progress.finished?
49
+ return NO_TIME_ELAPSED_TEXT unless timer.started?
57
50
 
58
- def out_of_bounds_time_format=(format)
59
- unless OOB_TIME_FORMATS.include? format
60
- fail StandardError, "Invalid Out Of Bounds time format. Valid formats are #{OOB_TIME_FORMATS.inspect}"
61
- end
51
+ memo_estimated_seconds_remaining = estimated_seconds_remaining
52
+ return NO_TIME_ELAPSED_TEXT unless memo_estimated_seconds_remaining
62
53
 
63
- @out_of_bounds_time_format = format
54
+ (timer.now + memo_estimated_seconds_remaining).
55
+ strftime(WALL_CLOCK_FORMAT)
64
56
  end
65
57
 
58
+ protected
59
+
60
+ attr_accessor :timer,
61
+ :progress,
62
+ :projector
63
+
66
64
  private
67
65
 
68
- def estimated
66
+ def estimated(out_of_bounds_time_format)
69
67
  memo_estimated_seconds_remaining = estimated_seconds_remaining
70
68
 
71
69
  return OOB_UNKNOWN_TIME_TEXT unless memo_estimated_seconds_remaining
@@ -73,7 +71,7 @@ class Time
73
71
  hours, minutes, seconds = timer.divide_seconds(memo_estimated_seconds_remaining)
74
72
 
75
73
  if hours > OOB_LIMIT_IN_HOURS && out_of_bounds_time_format
76
- OOB_TEXT_TO_FORMAT[out_of_bounds_time_format]
74
+ OOB_TEXT_TO_FORMAT.fetch(out_of_bounds_time_format)
77
75
  else
78
76
  TIME_FORMAT % [hours, minutes, seconds]
79
77
  end
@@ -87,14 +85,16 @@ class Time
87
85
  TIME_FORMAT % [hours, minutes, seconds]
88
86
  end
89
87
 
90
- def estimated_with_elapsed_fallback
91
- progress.finished? ? elapsed_with_label : estimated_with_label
88
+ def estimated_with_elapsed_fallback(out_of_bounds_time_format)
89
+ return elapsed_with_label if progress.finished?
90
+
91
+ estimated_with_label(out_of_bounds_time_format)
92
92
  end
93
93
 
94
94
  def estimated_seconds_remaining
95
- return if progress.unknown? || progress.none? || timer.stopped? || timer.reset?
95
+ return if progress.unknown? || projector.none? || progress.none? || timer.stopped? || timer.reset?
96
96
 
97
- (timer.elapsed_seconds * (progress.total / progress.running_average - 1)).round
97
+ (timer.elapsed_seconds * ((progress.total / projector.projection) - 1)).round
98
98
  end
99
99
  end
100
100
  end
@@ -13,7 +13,7 @@ class Formatter
13
13
  bar_length = max_length -
14
14
  processed_string.displayable_length +
15
15
  format_string.bar_molecule_placeholder_length
16
- bar_length = (bar_length < 0) ? 0 : bar_length
16
+ bar_length = 0 if bar_length < 0
17
17
 
18
18
  format_string.bar_molecules.each do |molecule|
19
19
  processed_string.gsub!(molecule.full_key,
@@ -0,0 +1,61 @@
1
+ class ProgressBar
2
+ module Format
3
+ class Molecule
4
+ MOLECULES = {
5
+ :t => [:title_component, :title],
6
+ :T => [:title_component, :title],
7
+ :c => [:progressable, :progress],
8
+ :C => [:progressable, :total],
9
+ :u => [:progressable, :total_with_unknown_indicator],
10
+ :p => [:percentage_component, :percentage],
11
+ :P => [:percentage_component, :percentage_with_precision],
12
+ :j => [:percentage_component, :justified_percentage],
13
+ :J => [:percentage_component, :justified_percentage_with_precision],
14
+ :a => [:time_component, :elapsed_with_label],
15
+ :e => [:time_component, :estimated_with_unknown_oob],
16
+ :E => [:time_component, :estimated_with_friendly_oob],
17
+ :f => [:time_component, :estimated_with_no_oob],
18
+ :l => [:time_component, :estimated_wall_clock],
19
+ :B => [:bar_component, :complete_bar],
20
+ :b => [:bar_component, :bar],
21
+ :W => [:bar_component, :complete_bar_with_percentage],
22
+ :w => [:bar_component, :bar_with_percentage],
23
+ :i => [:bar_component, :incomplete_space],
24
+ :r => [:rate_component, :rate_of_change],
25
+ :R => [:rate_component, :rate_of_change_with_precision]
26
+ }.freeze
27
+
28
+ BAR_MOLECULES = %w{W w B b i}.freeze
29
+
30
+ attr_accessor :key,
31
+ :method_name
32
+
33
+ def initialize(letter)
34
+ self.key = letter
35
+ self.method_name = MOLECULES.fetch(key.to_sym)
36
+ end
37
+
38
+ def bar_molecule?
39
+ BAR_MOLECULES.include? key
40
+ end
41
+
42
+ def non_bar_molecule?
43
+ !bar_molecule?
44
+ end
45
+
46
+ def full_key
47
+ "%#{key}"
48
+ end
49
+
50
+ def lookup_value(environment, length = 0)
51
+ component = environment.__send__(method_name[0])
52
+
53
+ if bar_molecule?
54
+ component.__send__(method_name[1], length).to_s
55
+ else
56
+ component.__send__(method_name[1]).to_s
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
@@ -1,3 +1,5 @@
1
+ require 'ruby-progressbar/format/molecule'
2
+
1
3
  class ProgressBar
2
4
  module Format
3
5
  class String < ::String
@@ -1,3 +1,6 @@
1
+ require 'ruby-progressbar/calculators/length'
2
+ require 'ruby-progressbar/throttle'
3
+
1
4
  class ProgressBar
2
5
  class Output
3
6
  DEFAULT_OUTPUT_STREAM = $stdout