ory-client 0.0.1.alpha27 → 0.0.1.alpha31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +7 -5
  4. data/docs/CnameSettings.md +30 -0
  5. data/docs/UpdateCustomHostnameBody.md +20 -0
  6. data/lib/ory-client/api/metadata_api.rb +1 -1
  7. data/lib/ory-client/api/v0alpha0_api.rb +1 -1
  8. data/lib/ory-client/api/v0alpha2_api.rb +1 -1
  9. data/lib/ory-client/api_client.rb +1 -1
  10. data/lib/ory-client/api_error.rb +1 -1
  11. data/lib/ory-client/configuration.rb +1 -1
  12. data/lib/ory-client/models/active_project.rb +1 -1
  13. data/lib/ory-client/models/admin_create_identity_body.rb +1 -1
  14. data/lib/ory-client/models/admin_create_self_service_recovery_link_body.rb +1 -1
  15. data/lib/ory-client/models/admin_update_identity_body.rb +1 -1
  16. data/lib/ory-client/models/api_token.rb +1 -1
  17. data/lib/ory-client/models/authenticator_assurance_level.rb +1 -1
  18. data/lib/ory-client/models/cname_settings.rb +275 -0
  19. data/lib/ory-client/models/create_custom_hostname_body.rb +1 -1
  20. data/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb +1 -1
  21. data/lib/ory-client/models/generic_error.rb +1 -1
  22. data/lib/ory-client/models/health_not_ready_status.rb +1 -1
  23. data/lib/ory-client/models/health_status.rb +1 -1
  24. data/lib/ory-client/models/identity.rb +1 -1
  25. data/lib/ory-client/models/identity_credentials.rb +1 -1
  26. data/lib/ory-client/models/identity_credentials_type.rb +1 -1
  27. data/lib/ory-client/models/identity_preset.rb +1 -1
  28. data/lib/ory-client/models/identity_schema.rb +1 -1
  29. data/lib/ory-client/models/identity_schema_location.rb +1 -1
  30. data/lib/ory-client/models/identity_schema_validation_result.rb +1 -1
  31. data/lib/ory-client/models/identity_state.rb +1 -1
  32. data/lib/ory-client/models/inline_response200.rb +1 -1
  33. data/lib/ory-client/models/inline_response2001.rb +1 -1
  34. data/lib/ory-client/models/inline_response503.rb +1 -1
  35. data/lib/ory-client/models/is_owner_for_project_by_slug.rb +1 -1
  36. data/lib/ory-client/models/is_owner_for_project_by_slug_payload.rb +1 -1
  37. data/lib/ory-client/models/json_error.rb +1 -1
  38. data/lib/ory-client/models/needs_privileged_session_error.rb +1 -1
  39. data/lib/ory-client/models/null_string.rb +1 -1
  40. data/lib/ory-client/models/null_uuid.rb +1 -1
  41. data/lib/ory-client/models/project.rb +1 -1
  42. data/lib/ory-client/models/project_host.rb +1 -1
  43. data/lib/ory-client/models/project_lookup_secret_config.rb +1 -1
  44. data/lib/ory-client/models/project_oidc_config.rb +1 -1
  45. data/lib/ory-client/models/project_password_config.rb +1 -1
  46. data/lib/ory-client/models/project_patch.rb +1 -1
  47. data/lib/ory-client/models/project_recovery_config.rb +1 -1
  48. data/lib/ory-client/models/project_revision.rb +1 -1
  49. data/lib/ory-client/models/project_slug.rb +1 -1
  50. data/lib/ory-client/models/project_totp_config.rb +1 -1
  51. data/lib/ory-client/models/project_verification_config.rb +1 -1
  52. data/lib/ory-client/models/project_web_authn_config.rb +1 -1
  53. data/lib/ory-client/models/provision_project_payload.rb +1 -1
  54. data/lib/ory-client/models/recovery_address.rb +1 -1
  55. data/lib/ory-client/models/redirection_config.rb +1 -1
  56. data/lib/ory-client/models/redirection_field.rb +1 -1
  57. data/lib/ory-client/models/schema_patch.rb +1 -1
  58. data/lib/ory-client/models/self_service_browser_location_change_required_error.rb +1 -1
  59. data/lib/ory-client/models/self_service_error.rb +1 -1
  60. data/lib/ory-client/models/self_service_flow_expired_error.rb +1 -1
  61. data/lib/ory-client/models/self_service_login_flow.rb +1 -1
  62. data/lib/ory-client/models/self_service_logout_url.rb +1 -1
  63. data/lib/ory-client/models/self_service_recovery_flow.rb +1 -1
  64. data/lib/ory-client/models/self_service_recovery_flow_state.rb +1 -1
  65. data/lib/ory-client/models/self_service_recovery_link.rb +1 -1
  66. data/lib/ory-client/models/self_service_registration_flow.rb +1 -1
  67. data/lib/ory-client/models/self_service_settings_flow.rb +1 -1
  68. data/lib/ory-client/models/self_service_settings_flow_state.rb +1 -1
  69. data/lib/ory-client/models/self_service_verification_flow.rb +1 -1
  70. data/lib/ory-client/models/self_service_verification_flow_state.rb +1 -1
  71. data/lib/ory-client/models/session.rb +1 -1
  72. data/lib/ory-client/models/session_authentication_method.rb +1 -1
  73. data/lib/ory-client/models/session_device.rb +1 -1
  74. data/lib/ory-client/models/settings_profile_form_config.rb +1 -1
  75. data/lib/ory-client/models/stripe_customer_response.rb +1 -1
  76. data/lib/ory-client/models/submit_self_service_login_flow_body.rb +1 -1
  77. data/lib/ory-client/models/submit_self_service_login_flow_with_lookup_secret_method_body.rb +1 -1
  78. data/lib/ory-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +1 -1
  79. data/lib/ory-client/models/submit_self_service_login_flow_with_password_method_body.rb +1 -1
  80. data/lib/ory-client/models/submit_self_service_login_flow_with_totp_method_body.rb +1 -1
  81. data/lib/ory-client/models/submit_self_service_login_flow_with_web_authn_method_body.rb +1 -1
  82. data/lib/ory-client/models/submit_self_service_logout_flow_without_browser_body.rb +1 -1
  83. data/lib/ory-client/models/submit_self_service_recovery_flow_body.rb +1 -1
  84. data/lib/ory-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +1 -1
  85. data/lib/ory-client/models/submit_self_service_registration_flow_body.rb +1 -1
  86. data/lib/ory-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +1 -1
  87. data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method_body.rb +1 -1
  88. data/lib/ory-client/models/submit_self_service_settings_flow_body.rb +1 -1
  89. data/lib/ory-client/models/submit_self_service_settings_flow_with_lookup_method_body.rb +1 -1
  90. data/lib/ory-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +1 -1
  91. data/lib/ory-client/models/submit_self_service_settings_flow_with_password_method_body.rb +1 -1
  92. data/lib/ory-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +1 -1
  93. data/lib/ory-client/models/submit_self_service_settings_flow_with_totp_method_body.rb +1 -1
  94. data/lib/ory-client/models/submit_self_service_settings_flow_with_web_authn_method_body.rb +1 -1
  95. data/lib/ory-client/models/submit_self_service_verification_flow_body.rb +1 -1
  96. data/lib/ory-client/models/submit_self_service_verification_flow_with_link_method_body.rb +1 -1
  97. data/lib/ory-client/models/successful_self_service_login_without_browser.rb +1 -1
  98. data/lib/ory-client/models/successful_self_service_registration_without_browser.rb +1 -1
  99. data/lib/ory-client/models/ui_container.rb +1 -1
  100. data/lib/ory-client/models/ui_node.rb +1 -1
  101. data/lib/ory-client/models/ui_node_anchor_attributes.rb +1 -1
  102. data/lib/ory-client/models/ui_node_attributes.rb +1 -1
  103. data/lib/ory-client/models/ui_node_image_attributes.rb +1 -1
  104. data/lib/ory-client/models/ui_node_input_attributes.rb +1 -1
  105. data/lib/ory-client/models/ui_node_meta.rb +1 -1
  106. data/lib/ory-client/models/ui_node_script_attributes.rb +1 -1
  107. data/lib/ory-client/models/ui_node_text_attributes.rb +1 -1
  108. data/lib/ory-client/models/ui_text.rb +1 -1
  109. data/lib/ory-client/models/update_custom_hostname_body.rb +229 -0
  110. data/lib/ory-client/models/verifiable_identity_address.rb +1 -1
  111. data/lib/ory-client/models/version.rb +1 -1
  112. data/lib/ory-client/version.rb +2 -2
  113. data/lib/ory-client.rb +3 -1
  114. data/ory-client.gemspec +1 -1
  115. data/spec/api/metadata_api_spec.rb +1 -1
  116. data/spec/api/v0alpha0_api_spec.rb +1 -1
  117. data/spec/api/v0alpha2_api_spec.rb +1 -1
  118. data/spec/api_client_spec.rb +1 -1
  119. data/spec/configuration_spec.rb +1 -1
  120. data/spec/models/active_project_spec.rb +1 -1
  121. data/spec/models/admin_create_identity_body_spec.rb +1 -1
  122. data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +1 -1
  123. data/spec/models/admin_update_identity_body_spec.rb +1 -1
  124. data/spec/models/api_token_spec.rb +1 -1
  125. data/spec/models/authenticator_assurance_level_spec.rb +1 -1
  126. data/spec/models/cname_settings_spec.rb +70 -0
  127. data/spec/models/create_custom_hostname_body_spec.rb +1 -1
  128. data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +1 -1
  129. data/spec/models/generic_error_spec.rb +1 -1
  130. data/spec/models/health_not_ready_status_spec.rb +1 -1
  131. data/spec/models/health_status_spec.rb +1 -1
  132. data/spec/models/identity_credentials_spec.rb +1 -1
  133. data/spec/models/identity_credentials_type_spec.rb +1 -1
  134. data/spec/models/identity_preset_spec.rb +1 -1
  135. data/spec/models/identity_schema_location_spec.rb +1 -1
  136. data/spec/models/identity_schema_spec.rb +1 -1
  137. data/spec/models/identity_schema_validation_result_spec.rb +1 -1
  138. data/spec/models/identity_spec.rb +1 -1
  139. data/spec/models/identity_state_spec.rb +1 -1
  140. data/spec/models/inline_response2001_spec.rb +1 -1
  141. data/spec/models/inline_response200_spec.rb +1 -1
  142. data/spec/models/inline_response503_spec.rb +1 -1
  143. data/spec/models/is_owner_for_project_by_slug_payload_spec.rb +1 -1
  144. data/spec/models/is_owner_for_project_by_slug_spec.rb +1 -1
  145. data/spec/models/json_error_spec.rb +1 -1
  146. data/spec/models/needs_privileged_session_error_spec.rb +1 -1
  147. data/spec/models/null_string_spec.rb +1 -1
  148. data/spec/models/null_uuid_spec.rb +1 -1
  149. data/spec/models/project_host_spec.rb +1 -1
  150. data/spec/models/project_lookup_secret_config_spec.rb +1 -1
  151. data/spec/models/project_oidc_config_spec.rb +1 -1
  152. data/spec/models/project_password_config_spec.rb +1 -1
  153. data/spec/models/project_patch_spec.rb +1 -1
  154. data/spec/models/project_recovery_config_spec.rb +1 -1
  155. data/spec/models/project_revision_spec.rb +1 -1
  156. data/spec/models/project_slug_spec.rb +1 -1
  157. data/spec/models/project_spec.rb +1 -1
  158. data/spec/models/project_totp_config_spec.rb +1 -1
  159. data/spec/models/project_verification_config_spec.rb +1 -1
  160. data/spec/models/project_web_authn_config_spec.rb +1 -1
  161. data/spec/models/provision_project_payload_spec.rb +1 -1
  162. data/spec/models/recovery_address_spec.rb +1 -1
  163. data/spec/models/redirection_config_spec.rb +1 -1
  164. data/spec/models/redirection_field_spec.rb +1 -1
  165. data/spec/models/schema_patch_spec.rb +1 -1
  166. data/spec/models/self_service_browser_location_change_required_error_spec.rb +1 -1
  167. data/spec/models/self_service_error_spec.rb +1 -1
  168. data/spec/models/self_service_flow_expired_error_spec.rb +1 -1
  169. data/spec/models/self_service_login_flow_spec.rb +1 -1
  170. data/spec/models/self_service_logout_url_spec.rb +1 -1
  171. data/spec/models/self_service_recovery_flow_spec.rb +1 -1
  172. data/spec/models/self_service_recovery_flow_state_spec.rb +1 -1
  173. data/spec/models/self_service_recovery_link_spec.rb +1 -1
  174. data/spec/models/self_service_registration_flow_spec.rb +1 -1
  175. data/spec/models/self_service_settings_flow_spec.rb +1 -1
  176. data/spec/models/self_service_settings_flow_state_spec.rb +1 -1
  177. data/spec/models/self_service_verification_flow_spec.rb +1 -1
  178. data/spec/models/self_service_verification_flow_state_spec.rb +1 -1
  179. data/spec/models/session_authentication_method_spec.rb +1 -1
  180. data/spec/models/session_device_spec.rb +1 -1
  181. data/spec/models/session_spec.rb +1 -1
  182. data/spec/models/settings_profile_form_config_spec.rb +1 -1
  183. data/spec/models/stripe_customer_response_spec.rb +1 -1
  184. data/spec/models/submit_self_service_login_flow_body_spec.rb +1 -1
  185. data/spec/models/submit_self_service_login_flow_with_lookup_secret_method_body_spec.rb +1 -1
  186. data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +1 -1
  187. data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +1 -1
  188. data/spec/models/submit_self_service_login_flow_with_totp_method_body_spec.rb +1 -1
  189. data/spec/models/submit_self_service_login_flow_with_web_authn_method_body_spec.rb +1 -1
  190. data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +1 -1
  191. data/spec/models/submit_self_service_recovery_flow_body_spec.rb +1 -1
  192. data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +1 -1
  193. data/spec/models/submit_self_service_registration_flow_body_spec.rb +1 -1
  194. data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +1 -1
  195. data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +1 -1
  196. data/spec/models/submit_self_service_settings_flow_body_spec.rb +1 -1
  197. data/spec/models/submit_self_service_settings_flow_with_lookup_method_body_spec.rb +1 -1
  198. data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +1 -1
  199. data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +1 -1
  200. data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +1 -1
  201. data/spec/models/submit_self_service_settings_flow_with_totp_method_body_spec.rb +1 -1
  202. data/spec/models/submit_self_service_settings_flow_with_web_authn_method_body_spec.rb +1 -1
  203. data/spec/models/submit_self_service_verification_flow_body_spec.rb +1 -1
  204. data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +1 -1
  205. data/spec/models/successful_self_service_login_without_browser_spec.rb +1 -1
  206. data/spec/models/successful_self_service_registration_without_browser_spec.rb +1 -1
  207. data/spec/models/ui_container_spec.rb +1 -1
  208. data/spec/models/ui_node_anchor_attributes_spec.rb +1 -1
  209. data/spec/models/ui_node_attributes_spec.rb +1 -1
  210. data/spec/models/ui_node_image_attributes_spec.rb +1 -1
  211. data/spec/models/ui_node_input_attributes_spec.rb +1 -1
  212. data/spec/models/ui_node_meta_spec.rb +1 -1
  213. data/spec/models/ui_node_script_attributes_spec.rb +1 -1
  214. data/spec/models/ui_node_spec.rb +1 -1
  215. data/spec/models/ui_node_text_attributes_spec.rb +1 -1
  216. data/spec/models/ui_text_spec.rb +1 -1
  217. data/spec/models/update_custom_hostname_body_spec.rb +40 -0
  218. data/spec/models/verifiable_identity_address_spec.rb +1 -1
  219. data/spec/models/version_spec.rb +1 -1
  220. data/spec/spec_helper.rb +1 -1
  221. data/vendor/bundle/ruby/2.5.0/cache/parser-3.0.3.2.gem +0 -0
  222. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
  223. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.4/gem_make.out +2 -2
  224. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/jaro_winkler-1.5.4/gem_make.out +2 -2
  225. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.2/gem_make.out +2 -2
  226. data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
  227. data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/ext/ffi_c/Makefile +2 -2
  228. data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
  229. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/LICENSE.txt +0 -0
  230. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/bin/ruby-parse +0 -0
  231. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/bin/ruby-rewrite +0 -0
  232. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/gauntlet_parser.rb +0 -0
  233. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/all.rb +0 -0
  234. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/ast/node.rb +0 -0
  235. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/ast/processor.rb +0 -0
  236. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/base.rb +0 -0
  237. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/builders/default.rb +99 -14
  238. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/clobbering_error.rb +0 -0
  239. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/color.rb +0 -0
  240. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/context.rb +7 -0
  241. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/current.rb +6 -6
  242. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/current_arg_stack.rb +0 -0
  243. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/deprecation.rb +0 -0
  244. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/diagnostic/engine.rb +0 -0
  245. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/diagnostic.rb +0 -0
  246. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/lexer/dedenter.rb +7 -1
  247. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/lexer/explanation.rb +0 -0
  248. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/lexer/literal.rb +0 -0
  249. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/lexer/stack_state.rb +0 -0
  250. data/vendor/bundle/ruby/2.5.0/gems/parser-3.0.3.2/lib/parser/lexer.rb +25028 -0
  251. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/macruby.rb +0 -0
  252. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/max_numparam_stack.rb +0 -0
  253. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/messages.rb +4 -0
  254. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/meta.rb +0 -0
  255. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/rewriter.rb +0 -0
  256. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/ruby18.rb +0 -0
  257. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/ruby19.rb +0 -0
  258. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/ruby20.rb +0 -0
  259. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/ruby21.rb +0 -0
  260. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/ruby22.rb +0 -0
  261. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/ruby23.rb +0 -0
  262. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/ruby24.rb +0 -0
  263. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/ruby25.rb +0 -0
  264. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/ruby26.rb +0 -0
  265. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/ruby27.rb +45 -41
  266. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/ruby28.rb +0 -0
  267. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/ruby30.rb +45 -41
  268. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/ruby31.rb +3251 -3185
  269. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/rubymotion.rb +0 -0
  270. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/runner/ruby_parse.rb +0 -0
  271. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/runner/ruby_rewrite.rb +0 -0
  272. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/runner.rb +0 -0
  273. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/buffer.rb +0 -0
  274. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/comment/associator.rb +0 -0
  275. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/comment.rb +0 -0
  276. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/map/collection.rb +0 -0
  277. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/map/condition.rb +0 -0
  278. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/map/constant.rb +0 -0
  279. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/map/definition.rb +0 -0
  280. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/map/for.rb +0 -0
  281. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/map/heredoc.rb +0 -0
  282. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/map/index.rb +0 -0
  283. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/map/keyword.rb +0 -0
  284. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/map/method_definition.rb +0 -0
  285. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/map/objc_kwarg.rb +0 -0
  286. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/map/operator.rb +0 -0
  287. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/map/rescue_body.rb +0 -0
  288. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/map/send.rb +0 -0
  289. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/map/ternary.rb +0 -0
  290. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/map/variable.rb +0 -0
  291. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/map.rb +0 -0
  292. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/range.rb +0 -0
  293. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/rewriter/action.rb +0 -0
  294. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/rewriter.rb +0 -0
  295. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/tree_rewriter/action.rb +0 -0
  296. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/source/tree_rewriter.rb +0 -0
  297. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/static_environment.rb +9 -0
  298. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/syntax_error.rb +0 -0
  299. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/tree_rewriter.rb +0 -0
  300. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/variables_stack.rb +0 -0
  301. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser/version.rb +1 -1
  302. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/lib/parser.rb +0 -0
  303. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.0.2.0 → parser-3.0.3.2}/parser.gemspec +0 -0
  304. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.2/ext/psych/Makefile +2 -2
  305. data/vendor/bundle/ruby/2.5.0/specifications/{parser-3.0.2.0.gemspec → parser-3.0.3.2.gemspec} +4 -4
  306. metadata +88 -80
  307. data/vendor/bundle/ruby/2.5.0/cache/parser-3.0.2.0.gem +0 -0
  308. data/vendor/bundle/ruby/2.5.0/gems/parser-3.0.2.0/lib/parser/lexer.rb +0 -23840
@@ -161,7 +161,7 @@ module Parser
161
161
  #
162
162
  # ```
163
163
  # (send nil :foo
164
- # (hash
164
+ # (kwargs
165
165
  # (pair
166
166
  # (sym :a)
167
167
  # (int 42))
@@ -518,12 +518,52 @@ module Parser
518
518
  n(:pair, [ key, value ], pair_map)
519
519
  end
520
520
 
521
+ def pair_label(key_t)
522
+ key_l = loc(key_t)
523
+ value_l = key_l.adjust(end_pos: -1)
524
+
525
+ label = value(key_t)
526
+ value =
527
+ if label =~ /\A[[:lower:]]/
528
+ n(:ident, [ label.to_sym ], Source::Map::Variable.new(value_l))
529
+ else
530
+ n(:const, [ nil, label.to_sym ], Source::Map::Constant.new(nil, value_l, value_l))
531
+ end
532
+ pair_keyword(key_t, accessible(value))
533
+ end
534
+
521
535
  def kwsplat(dstar_t, arg)
522
536
  n(:kwsplat, [ arg ],
523
537
  unary_op_map(dstar_t, arg))
524
538
  end
525
539
 
526
540
  def associate(begin_t, pairs, end_t)
541
+ 0.upto(pairs.length - 1) do |i|
542
+ (i + 1).upto(pairs.length - 1) do |j|
543
+ key1, = *pairs[i]
544
+ key2, = *pairs[j]
545
+
546
+ do_warn = false
547
+
548
+ # keys have to be simple nodes, MRI ignores equal composite keys like
549
+ # `{ a(1) => 1, a(1) => 1 }`
550
+ case key1.type
551
+ when :sym, :str, :int, :float
552
+ if key1 == key2
553
+ do_warn = true
554
+ end
555
+ when :rational, :complex, :regexp
556
+ if @parser.version >= 31 && key1 == key2
557
+ do_warn = true
558
+ end
559
+ end
560
+
561
+ if do_warn
562
+ diagnostic :warning, :duplicate_hash_key, nil, key2.loc.expression
563
+ end
564
+ end
565
+ end
566
+
527
567
  n(:hash, [ *pairs ],
528
568
  collection_map(begin_t, pairs, end_t))
529
569
  end
@@ -608,19 +648,29 @@ module Parser
608
648
  when :ident
609
649
  name, = *node
610
650
 
611
- if @parser.static_env.declared?(name)
612
- if name.to_s == parser.current_arg_stack.top
613
- diagnostic :error, :circular_argument_reference,
614
- { :var_name => name.to_s }, node.loc.expression
615
- end
651
+ if %w[? !].any? { |c| name.to_s.end_with?(c) }
652
+ diagnostic :error, :invalid_id_to_get,
653
+ { :identifier => name.to_s }, node.loc.expression
654
+ end
616
655
 
617
- node.updated(:lvar)
618
- else
619
- name, = *node
620
- n(:send, [ nil, name ],
656
+ # Numbered parameters are not declared anywhere,
657
+ # so they take precedence over method calls in numblock contexts
658
+ if @parser.version >= 27 && @parser.try_declare_numparam(node)
659
+ return node.updated(:lvar)
660
+ end
661
+
662
+ unless @parser.static_env.declared?(name)
663
+ return n(:send, [ nil, name ],
621
664
  var_send_map(node))
622
665
  end
623
666
 
667
+ if name.to_s == parser.current_arg_stack.top
668
+ diagnostic :error, :circular_argument_reference,
669
+ { :var_name => name.to_s }, node.loc.expression
670
+ end
671
+
672
+ node.updated(:lvar)
673
+
624
674
  else
625
675
  node
626
676
  end
@@ -683,6 +733,17 @@ module Parser
683
733
 
684
734
  node.updated(:lvasgn)
685
735
 
736
+ when :match_var
737
+ name, = *node
738
+
739
+ var_name = node.children[0].to_s
740
+ name_loc = node.loc.expression
741
+
742
+ check_assignment_to_numparam(var_name, name_loc)
743
+ check_reserved_for_numparam(var_name, name_loc)
744
+
745
+ node
746
+
686
747
  when :nil, :self, :true, :false,
687
748
  :__FILE__, :__LINE__, :__ENCODING__
688
749
  diagnostic :error, :invalid_assignment, nil, node.loc.expression
@@ -818,8 +879,14 @@ module Parser
818
879
 
819
880
  def args(begin_t, args, end_t, check_args=true)
820
881
  args = check_duplicate_args(args) if check_args
821
- n(:args, args,
822
- collection_map(begin_t, args, end_t))
882
+ validate_no_forward_arg_after_restarg(args)
883
+
884
+ map = collection_map(begin_t, args, end_t)
885
+ if !self.class.emit_forward_arg && args.length == 1 && args[0].type == :forward_arg
886
+ n(:forward_args, [], map)
887
+ else
888
+ n(:args, args, map)
889
+ end
823
890
  end
824
891
 
825
892
  def numargs(max_numparam)
@@ -906,9 +973,12 @@ module Parser
906
973
  end
907
974
 
908
975
  def blockarg(amper_t, name_t)
909
- check_reserved_for_numparam(value(name_t), loc(name_t))
976
+ if !name_t.nil?
977
+ check_reserved_for_numparam(value(name_t), loc(name_t))
978
+ end
910
979
 
911
- n(:blockarg, [ value(name_t).to_sym ],
980
+ arg_name = name_t ? value(name_t).to_sym : nil
981
+ n(:blockarg, [ arg_name ],
912
982
  arg_prefix_map(amper_t, name_t))
913
983
  end
914
984
 
@@ -1683,6 +1753,21 @@ module Parser
1683
1753
  end
1684
1754
  end
1685
1755
 
1756
+ def validate_no_forward_arg_after_restarg(args)
1757
+ restarg = nil
1758
+ forward_arg = nil
1759
+ args.each do |arg|
1760
+ case arg.type
1761
+ when :restarg then restarg = arg
1762
+ when :forward_arg then forward_arg = arg
1763
+ end
1764
+ end
1765
+
1766
+ if !forward_arg.nil? && !restarg.nil?
1767
+ diagnostic :error, :forward_arg_after_restarg, nil, forward_arg.loc.expression, [restarg.loc.expression]
1768
+ end
1769
+ end
1770
+
1686
1771
  def check_assignment_to_numparam(name, loc)
1687
1772
  # MRI < 2.7 treats numbered parameters as regular variables
1688
1773
  # and so it's allowed to perform assignments like `_1 = 42`.
@@ -9,6 +9,9 @@ module Parser
9
9
  # + :sclass - in the singleton class body (class << obj; end)
10
10
  # + :def - in the method body (def m; end)
11
11
  # + :defs - in the singleton method body (def self.m; end)
12
+ # + :def_open_args - in the arglist of the method definition
13
+ # keep in mind that it's set **only** after reducing the first argument,
14
+ # if you need to handle the first argument check `lex_state == expr_fname`
12
15
  # + :block - in the block body (tap {})
13
16
  # + :lambda - in the lambda body (-> {})
14
17
  #
@@ -64,5 +67,9 @@ module Parser
64
67
  def in_dynamic_block?
65
68
  in_block? || in_lambda?
66
69
  end
70
+
71
+ def in_def_open_args?
72
+ @stack.last == :def_open_args
73
+ end
67
74
  end
68
75
  end
@@ -3,9 +3,9 @@
3
3
  module Parser
4
4
  class << self
5
5
  def warn_syntax_deviation(feature, version)
6
- warn "warning: parser/current is loading #{feature}, which recognizes"
7
- warn "warning: #{version}-compliant syntax, but you are running #{RUBY_VERSION}."
8
- warn "warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri."
6
+ warn "warning: parser/current is loading #{feature}, which recognizes" \
7
+ "#{version}-compliant syntax, but you are running #{RUBY_VERSION}.\n" \
8
+ "Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri."
9
9
  end
10
10
  private :warn_syntax_deviation
11
11
  end
@@ -66,7 +66,7 @@ module Parser
66
66
  CurrentRuby = Ruby25
67
67
 
68
68
  when /^2\.6\./
69
- current_version = '2.6.8'
69
+ current_version = '2.6.9'
70
70
  if RUBY_VERSION != current_version
71
71
  warn_syntax_deviation 'parser/ruby26', current_version
72
72
  end
@@ -75,7 +75,7 @@ module Parser
75
75
  CurrentRuby = Ruby26
76
76
 
77
77
  when /^2\.7\./
78
- current_version = '2.7.4'
78
+ current_version = '2.7.5'
79
79
  if RUBY_VERSION != current_version
80
80
  warn_syntax_deviation 'parser/ruby27', current_version
81
81
  end
@@ -84,7 +84,7 @@ module Parser
84
84
  CurrentRuby = Ruby27
85
85
 
86
86
  when /^3\.0\./
87
- current_version = '3.0.2'
87
+ current_version = '3.0.3'
88
88
  if RUBY_VERSION != current_version
89
89
  warn_syntax_deviation 'parser/ruby30', current_version
90
90
  end
@@ -38,7 +38,13 @@ module Parser
38
38
  # Prevent the following error when processing binary encoded source.
39
39
  # "\xC0".split # => ArgumentError (invalid byte sequence in UTF-8)
40
40
  lines = string.force_encoding(Encoding::BINARY).split("\\\n")
41
- lines.map! {|s| s.force_encoding(original_encoding) }
41
+ if lines.length == 1
42
+ # If the line continuation sequence was found but there is no second
43
+ # line, it was not really a line continuation and must be ignored.
44
+ lines = [string.force_encoding(original_encoding)]
45
+ else
46
+ lines.map! {|s| s.force_encoding(original_encoding) }
47
+ end
42
48
 
43
49
  if @at_line_begin
44
50
  lines_to_dedent = lines