cybrid_api_bank_ruby 0.122.34 → 0.122.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (408) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +5 -5
  4. data/cybrid_api_bank_ruby.gemspec +1 -1
  5. data/lib/cybrid_api_bank_ruby/api/accounts_bank_api.rb +1 -1
  6. data/lib/cybrid_api_bank_ruby/api/assets_bank_api.rb +1 -1
  7. data/lib/cybrid_api_bank_ruby/api/banks_bank_api.rb +1 -1
  8. data/lib/cybrid_api_bank_ruby/api/counterparties_bank_api.rb +1 -1
  9. data/lib/cybrid_api_bank_ruby/api/customers_bank_api.rb +1 -1
  10. data/lib/cybrid_api_bank_ruby/api/deposit_addresses_bank_api.rb +1 -1
  11. data/lib/cybrid_api_bank_ruby/api/deposit_bank_accounts_bank_api.rb +1 -1
  12. data/lib/cybrid_api_bank_ruby/api/external_bank_accounts_bank_api.rb +1 -1
  13. data/lib/cybrid_api_bank_ruby/api/external_wallets_bank_api.rb +1 -1
  14. data/lib/cybrid_api_bank_ruby/api/identity_verifications_bank_api.rb +1 -1
  15. data/lib/cybrid_api_bank_ruby/api/invoices_bank_api.rb +1 -1
  16. data/lib/cybrid_api_bank_ruby/api/payment_instructions_bank_api.rb +1 -1
  17. data/lib/cybrid_api_bank_ruby/api/prices_bank_api.rb +1 -1
  18. data/lib/cybrid_api_bank_ruby/api/quotes_bank_api.rb +1 -1
  19. data/lib/cybrid_api_bank_ruby/api/symbols_bank_api.rb +1 -1
  20. data/lib/cybrid_api_bank_ruby/api/trades_bank_api.rb +1 -1
  21. data/lib/cybrid_api_bank_ruby/api/transfers_bank_api.rb +1 -1
  22. data/lib/cybrid_api_bank_ruby/api/workflows_bank_api.rb +1 -1
  23. data/lib/cybrid_api_bank_ruby/api_client.rb +1 -1
  24. data/lib/cybrid_api_bank_ruby/api_error.rb +1 -1
  25. data/lib/cybrid_api_bank_ruby/configuration.rb +1 -1
  26. data/lib/cybrid_api_bank_ruby/models/account_bank_model.rb +1 -1
  27. data/lib/cybrid_api_bank_ruby/models/account_list_bank_model.rb +1 -1
  28. data/lib/cybrid_api_bank_ruby/models/account_state_bank_model.rb +1 -1
  29. data/lib/cybrid_api_bank_ruby/models/account_type_bank_model.rb +1 -1
  30. data/lib/cybrid_api_bank_ruby/models/activity_limit_bank_model.rb +1 -1
  31. data/lib/cybrid_api_bank_ruby/models/activity_type_bank_model.rb +1 -1
  32. data/lib/cybrid_api_bank_ruby/models/asset_bank_model.rb +1 -1
  33. data/lib/cybrid_api_bank_ruby/models/asset_list_bank_model.rb +1 -1
  34. data/lib/cybrid_api_bank_ruby/models/asset_types_bank_model.rb +1 -1
  35. data/lib/cybrid_api_bank_ruby/models/bank_bank_model.rb +1 -1
  36. data/lib/cybrid_api_bank_ruby/models/bank_feature_bank_model.rb +1 -1
  37. data/lib/cybrid_api_bank_ruby/models/bank_list_bank_model.rb +1 -1
  38. data/lib/cybrid_api_bank_ruby/models/bank_type_bank_model.rb +1 -1
  39. data/lib/cybrid_api_bank_ruby/models/compliance_check_bank_model.rb +1 -1
  40. data/lib/cybrid_api_bank_ruby/models/compliance_check_outcome_bank_model.rb +1 -1
  41. data/lib/cybrid_api_bank_ruby/models/compliance_check_type_bank_model.rb +1 -1
  42. data/lib/cybrid_api_bank_ruby/models/compliance_decision_bank_model.rb +1 -1
  43. data/lib/cybrid_api_bank_ruby/models/compliance_decision_state_bank_model.rb +1 -1
  44. data/lib/cybrid_api_bank_ruby/models/compliance_decision_type_bank_model.rb +1 -1
  45. data/lib/cybrid_api_bank_ruby/models/counterparty_address_bank_model.rb +1 -1
  46. data/lib/cybrid_api_bank_ruby/models/counterparty_aliases_inner_bank_model.rb +1 -1
  47. data/lib/cybrid_api_bank_ruby/models/counterparty_bank_model.rb +1 -1
  48. data/lib/cybrid_api_bank_ruby/models/counterparty_list_bank_model.rb +1 -1
  49. data/lib/cybrid_api_bank_ruby/models/counterparty_name_bank_model.rb +1 -1
  50. data/lib/cybrid_api_bank_ruby/models/counterparty_state_bank_model.rb +1 -1
  51. data/lib/cybrid_api_bank_ruby/models/counterparty_type_bank_model.rb +1 -1
  52. data/lib/cybrid_api_bank_ruby/models/customer_address_bank_model.rb +1 -1
  53. data/lib/cybrid_api_bank_ruby/models/customer_aliases_inner_bank_model.rb +1 -1
  54. data/lib/cybrid_api_bank_ruby/models/customer_bank_model.rb +1 -1
  55. data/lib/cybrid_api_bank_ruby/models/customer_list_bank_model.rb +1 -1
  56. data/lib/cybrid_api_bank_ruby/models/customer_name_bank_model.rb +1 -1
  57. data/lib/cybrid_api_bank_ruby/models/customer_state_bank_model.rb +1 -1
  58. data/lib/cybrid_api_bank_ruby/models/customer_type_bank_model.rb +1 -1
  59. data/lib/cybrid_api_bank_ruby/models/deposit_address_bank_model.rb +1 -1
  60. data/lib/cybrid_api_bank_ruby/models/deposit_address_format_bank_model.rb +1 -1
  61. data/lib/cybrid_api_bank_ruby/models/deposit_address_list_bank_model.rb +1 -1
  62. data/lib/cybrid_api_bank_ruby/models/deposit_address_state_bank_model.rb +1 -1
  63. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_account_details_inner_bank_model.rb +1 -1
  64. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_bank_model.rb +1 -1
  65. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_counterparty_address_bank_model.rb +1 -1
  66. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_list_bank_model.rb +1 -1
  67. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_routing_details_inner_bank_model.rb +1 -1
  68. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_routing_number_type_bank_model.rb +1 -1
  69. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_state_bank_model.rb +1 -1
  70. data/lib/cybrid_api_bank_ruby/models/error_response_bank_model.rb +1 -1
  71. data/lib/cybrid_api_bank_ruby/models/external_bank_account_balances_bank_model.rb +1 -1
  72. data/lib/cybrid_api_bank_ruby/models/external_bank_account_bank_model.rb +1 -1
  73. data/lib/cybrid_api_bank_ruby/models/external_bank_account_kind_bank_model.rb +1 -1
  74. data/lib/cybrid_api_bank_ruby/models/external_bank_account_list_bank_model.rb +1 -1
  75. data/lib/cybrid_api_bank_ruby/models/external_bank_account_pii_inner_addresses_inner_bank_model.rb +1 -1
  76. data/lib/cybrid_api_bank_ruby/models/external_bank_account_pii_inner_bank_model.rb +1 -1
  77. data/lib/cybrid_api_bank_ruby/models/external_bank_account_pii_inner_routing_details_inner_bank_model.rb +1 -1
  78. data/lib/cybrid_api_bank_ruby/models/external_bank_account_state_bank_model.rb +1 -1
  79. data/lib/cybrid_api_bank_ruby/models/external_wallet_bank_model.rb +1 -1
  80. data/lib/cybrid_api_bank_ruby/models/external_wallet_environment_bank_model.rb +1 -1
  81. data/lib/cybrid_api_bank_ruby/models/external_wallet_list_bank_model.rb +1 -1
  82. data/lib/cybrid_api_bank_ruby/models/external_wallet_state_bank_model.rb +1 -1
  83. data/lib/cybrid_api_bank_ruby/models/identification_number_bank_model.rb +1 -1
  84. data/lib/cybrid_api_bank_ruby/models/identity_verification_bank_model.rb +1 -1
  85. data/lib/cybrid_api_bank_ruby/models/identity_verification_list_bank_model.rb +1 -1
  86. data/lib/cybrid_api_bank_ruby/models/identity_verification_method_bank_model.rb +1 -1
  87. data/lib/cybrid_api_bank_ruby/models/identity_verification_outcome_bank_model.rb +1 -1
  88. data/lib/cybrid_api_bank_ruby/models/identity_verification_persona_state_bank_model.rb +1 -1
  89. data/lib/cybrid_api_bank_ruby/models/identity_verification_state_bank_model.rb +1 -1
  90. data/lib/cybrid_api_bank_ruby/models/identity_verification_type_bank_model.rb +1 -1
  91. data/lib/cybrid_api_bank_ruby/models/identity_verification_with_details_bank_model.rb +1 -1
  92. data/lib/cybrid_api_bank_ruby/models/identity_verification_with_details_pii_address_bank_model.rb +1 -1
  93. data/lib/cybrid_api_bank_ruby/models/identity_verification_with_details_pii_bank_model.rb +1 -1
  94. data/lib/cybrid_api_bank_ruby/models/identity_verification_with_details_pii_name_bank_model.rb +1 -1
  95. data/lib/cybrid_api_bank_ruby/models/invoice_bank_model.rb +1 -1
  96. data/lib/cybrid_api_bank_ruby/models/invoice_list_bank_model.rb +1 -1
  97. data/lib/cybrid_api_bank_ruby/models/patch_bank_bank_model.rb +1 -1
  98. data/lib/cybrid_api_bank_ruby/models/patch_customer_bank_model.rb +1 -1
  99. data/lib/cybrid_api_bank_ruby/models/patch_external_bank_account_bank_model.rb +1 -1
  100. data/lib/cybrid_api_bank_ruby/models/payment_instruction_bank_model.rb +1 -1
  101. data/lib/cybrid_api_bank_ruby/models/payment_instruction_list_bank_model.rb +1 -1
  102. data/lib/cybrid_api_bank_ruby/models/post_account_bank_model.rb +1 -1
  103. data/lib/cybrid_api_bank_ruby/models/post_bank_bank_model.rb +1 -1
  104. data/lib/cybrid_api_bank_ruby/models/post_counterparty_address_bank_model.rb +1 -1
  105. data/lib/cybrid_api_bank_ruby/models/post_counterparty_aliases_inner_bank_model.rb +1 -1
  106. data/lib/cybrid_api_bank_ruby/models/post_counterparty_bank_model.rb +1 -1
  107. data/lib/cybrid_api_bank_ruby/models/post_counterparty_name_bank_model.rb +1 -1
  108. data/lib/cybrid_api_bank_ruby/models/post_customer_address_bank_model.rb +1 -1
  109. data/lib/cybrid_api_bank_ruby/models/post_customer_bank_model.rb +1 -1
  110. data/lib/cybrid_api_bank_ruby/models/post_customer_name_bank_model.rb +1 -1
  111. data/lib/cybrid_api_bank_ruby/models/post_deposit_address_bank_model.rb +1 -1
  112. data/lib/cybrid_api_bank_ruby/models/post_deposit_bank_account_bank_model.rb +1 -1
  113. data/lib/cybrid_api_bank_ruby/models/post_external_bank_account_bank_model.rb +1 -1
  114. data/lib/cybrid_api_bank_ruby/models/post_external_bank_account_counterparty_address_bank_model.rb +1 -1
  115. data/lib/cybrid_api_bank_ruby/models/post_external_bank_account_counterparty_bank_account_bank_model.rb +1 -1
  116. data/lib/cybrid_api_bank_ruby/models/post_external_bank_account_counterparty_name_bank_model.rb +1 -1
  117. data/lib/cybrid_api_bank_ruby/models/post_external_wallet_bank_model.rb +1 -1
  118. data/lib/cybrid_api_bank_ruby/models/post_fee_bank_model.rb +1 -1
  119. data/lib/cybrid_api_bank_ruby/models/post_identification_number_bank_model.rb +1 -1
  120. data/lib/cybrid_api_bank_ruby/models/post_identity_verification_address_bank_model.rb +1 -1
  121. data/lib/cybrid_api_bank_ruby/models/post_identity_verification_bank_model.rb +1 -1
  122. data/lib/cybrid_api_bank_ruby/models/post_identity_verification_name_bank_model.rb +1 -1
  123. data/lib/cybrid_api_bank_ruby/models/post_invoice_bank_model.rb +1 -1
  124. data/lib/cybrid_api_bank_ruby/models/post_payment_instruction_bank_model.rb +1 -1
  125. data/lib/cybrid_api_bank_ruby/models/post_quote_bank_model.rb +1 -1
  126. data/lib/cybrid_api_bank_ruby/models/post_quote_entry_bank_model.rb +1 -1
  127. data/lib/cybrid_api_bank_ruby/models/post_trade_bank_model.rb +1 -1
  128. data/lib/cybrid_api_bank_ruby/models/post_transfer_bank_model.rb +1 -1
  129. data/lib/cybrid_api_bank_ruby/models/post_transfer_participant_bank_model.rb +1 -1
  130. data/lib/cybrid_api_bank_ruby/models/post_workflow_bank_model.rb +1 -1
  131. data/lib/cybrid_api_bank_ruby/models/quote_bank_model.rb +1 -1
  132. data/lib/cybrid_api_bank_ruby/models/quote_entry_bank_model.rb +1 -1
  133. data/lib/cybrid_api_bank_ruby/models/quote_entry_destination_account_bank_model.rb +1 -1
  134. data/lib/cybrid_api_bank_ruby/models/quote_entry_source_account_bank_model.rb +1 -1
  135. data/lib/cybrid_api_bank_ruby/models/quote_list_bank_model.rb +1 -1
  136. data/lib/cybrid_api_bank_ruby/models/quote_side_bank_model.rb +1 -1
  137. data/lib/cybrid_api_bank_ruby/models/quote_type_bank_model.rb +1 -1
  138. data/lib/cybrid_api_bank_ruby/models/symbol_price_bank_model.rb +1 -1
  139. data/lib/cybrid_api_bank_ruby/models/trade_bank_model.rb +1 -1
  140. data/lib/cybrid_api_bank_ruby/models/trade_failure_code_bank_model.rb +1 -1
  141. data/lib/cybrid_api_bank_ruby/models/trade_list_bank_model.rb +1 -1
  142. data/lib/cybrid_api_bank_ruby/models/trade_side_bank_model.rb +1 -1
  143. data/lib/cybrid_api_bank_ruby/models/trade_state_bank_model.rb +1 -1
  144. data/lib/cybrid_api_bank_ruby/models/trade_type_bank_model.rb +1 -1
  145. data/lib/cybrid_api_bank_ruby/models/transfer_account_type_bank_model.rb +1 -1
  146. data/lib/cybrid_api_bank_ruby/models/transfer_bank_model.rb +1 -1
  147. data/lib/cybrid_api_bank_ruby/models/transfer_destination_account_bank_model.rb +1 -1
  148. data/lib/cybrid_api_bank_ruby/models/transfer_entry_bank_model.rb +1 -1
  149. data/lib/cybrid_api_bank_ruby/models/transfer_entry_destination_account_bank_model.rb +1 -1
  150. data/lib/cybrid_api_bank_ruby/models/transfer_failure_code_bank_model.rb +1 -1
  151. data/lib/cybrid_api_bank_ruby/models/transfer_list_bank_model.rb +1 -1
  152. data/lib/cybrid_api_bank_ruby/models/transfer_participant_bank_model.rb +1 -1
  153. data/lib/cybrid_api_bank_ruby/models/transfer_side_bank_model.rb +1 -1
  154. data/lib/cybrid_api_bank_ruby/models/transfer_source_account_bank_model.rb +1 -1
  155. data/lib/cybrid_api_bank_ruby/models/transfer_state_bank_model.rb +1 -1
  156. data/lib/cybrid_api_bank_ruby/models/transfer_type_bank_model.rb +1 -1
  157. data/lib/cybrid_api_bank_ruby/models/workflow_bank_model.rb +1 -1
  158. data/lib/cybrid_api_bank_ruby/models/workflow_state_bank_model.rb +1 -1
  159. data/lib/cybrid_api_bank_ruby/models/workflow_type_bank_model.rb +1 -1
  160. data/lib/cybrid_api_bank_ruby/models/workflow_with_details_all_of_bank_model.rb +1 -1
  161. data/lib/cybrid_api_bank_ruby/models/workflow_with_details_bank_model.rb +1 -1
  162. data/lib/cybrid_api_bank_ruby/models/workflows_list_bank_model.rb +1 -1
  163. data/lib/cybrid_api_bank_ruby/version.rb +2 -2
  164. data/lib/cybrid_api_bank_ruby.rb +1 -1
  165. data/spec/api/accounts_bank_api_spec.rb +1 -1
  166. data/spec/api/assets_bank_api_spec.rb +1 -1
  167. data/spec/api/banks_bank_api_spec.rb +1 -1
  168. data/spec/api/counterparties_bank_api_spec.rb +1 -1
  169. data/spec/api/customers_bank_api_spec.rb +1 -1
  170. data/spec/api/deposit_addresses_bank_api_spec.rb +1 -1
  171. data/spec/api/deposit_bank_accounts_bank_api_spec.rb +1 -1
  172. data/spec/api/external_bank_accounts_bank_api_spec.rb +1 -1
  173. data/spec/api/external_wallets_bank_api_spec.rb +1 -1
  174. data/spec/api/identity_verifications_bank_api_spec.rb +1 -1
  175. data/spec/api/invoices_bank_api_spec.rb +1 -1
  176. data/spec/api/payment_instructions_bank_api_spec.rb +1 -1
  177. data/spec/api/prices_bank_api_spec.rb +1 -1
  178. data/spec/api/quotes_bank_api_spec.rb +1 -1
  179. data/spec/api/symbols_bank_api_spec.rb +1 -1
  180. data/spec/api/trades_bank_api_spec.rb +1 -1
  181. data/spec/api/transfers_bank_api_spec.rb +1 -1
  182. data/spec/api/workflows_bank_api_spec.rb +1 -1
  183. data/spec/api_client_spec.rb +1 -1
  184. data/spec/configuration_spec.rb +1 -1
  185. data/spec/models/account_bank_model_spec.rb +1 -1
  186. data/spec/models/account_list_bank_model_spec.rb +1 -1
  187. data/spec/models/account_state_bank_model_spec.rb +1 -1
  188. data/spec/models/account_type_bank_model_spec.rb +1 -1
  189. data/spec/models/activity_limit_bank_model_spec.rb +1 -1
  190. data/spec/models/activity_type_bank_model_spec.rb +1 -1
  191. data/spec/models/asset_bank_model_spec.rb +1 -1
  192. data/spec/models/asset_list_bank_model_spec.rb +1 -1
  193. data/spec/models/asset_types_bank_model_spec.rb +1 -1
  194. data/spec/models/bank_bank_model_spec.rb +1 -1
  195. data/spec/models/bank_feature_bank_model_spec.rb +1 -1
  196. data/spec/models/bank_list_bank_model_spec.rb +1 -1
  197. data/spec/models/bank_type_bank_model_spec.rb +1 -1
  198. data/spec/models/compliance_check_bank_model_spec.rb +1 -1
  199. data/spec/models/compliance_check_outcome_bank_model_spec.rb +1 -1
  200. data/spec/models/compliance_check_type_bank_model_spec.rb +1 -1
  201. data/spec/models/compliance_decision_bank_model_spec.rb +1 -1
  202. data/spec/models/compliance_decision_state_bank_model_spec.rb +1 -1
  203. data/spec/models/compliance_decision_type_bank_model_spec.rb +1 -1
  204. data/spec/models/counterparty_address_bank_model_spec.rb +1 -1
  205. data/spec/models/counterparty_aliases_inner_bank_model_spec.rb +1 -1
  206. data/spec/models/counterparty_bank_model_spec.rb +1 -1
  207. data/spec/models/counterparty_list_bank_model_spec.rb +1 -1
  208. data/spec/models/counterparty_name_bank_model_spec.rb +1 -1
  209. data/spec/models/counterparty_state_bank_model_spec.rb +1 -1
  210. data/spec/models/counterparty_type_bank_model_spec.rb +1 -1
  211. data/spec/models/customer_address_bank_model_spec.rb +1 -1
  212. data/spec/models/customer_aliases_inner_bank_model_spec.rb +1 -1
  213. data/spec/models/customer_bank_model_spec.rb +1 -1
  214. data/spec/models/customer_list_bank_model_spec.rb +1 -1
  215. data/spec/models/customer_name_bank_model_spec.rb +1 -1
  216. data/spec/models/customer_state_bank_model_spec.rb +1 -1
  217. data/spec/models/customer_type_bank_model_spec.rb +1 -1
  218. data/spec/models/deposit_address_bank_model_spec.rb +1 -1
  219. data/spec/models/deposit_address_format_bank_model_spec.rb +1 -1
  220. data/spec/models/deposit_address_list_bank_model_spec.rb +1 -1
  221. data/spec/models/deposit_address_state_bank_model_spec.rb +1 -1
  222. data/spec/models/deposit_bank_account_account_details_inner_bank_model_spec.rb +1 -1
  223. data/spec/models/deposit_bank_account_bank_model_spec.rb +1 -1
  224. data/spec/models/deposit_bank_account_counterparty_address_bank_model_spec.rb +1 -1
  225. data/spec/models/deposit_bank_account_list_bank_model_spec.rb +1 -1
  226. data/spec/models/deposit_bank_account_routing_details_inner_bank_model_spec.rb +1 -1
  227. data/spec/models/deposit_bank_account_routing_number_type_bank_model_spec.rb +1 -1
  228. data/spec/models/deposit_bank_account_state_bank_model_spec.rb +1 -1
  229. data/spec/models/error_response_bank_model_spec.rb +1 -1
  230. data/spec/models/external_bank_account_balances_bank_model_spec.rb +1 -1
  231. data/spec/models/external_bank_account_bank_model_spec.rb +1 -1
  232. data/spec/models/external_bank_account_kind_bank_model_spec.rb +1 -1
  233. data/spec/models/external_bank_account_list_bank_model_spec.rb +1 -1
  234. data/spec/models/external_bank_account_pii_inner_addresses_inner_bank_model_spec.rb +1 -1
  235. data/spec/models/external_bank_account_pii_inner_bank_model_spec.rb +1 -1
  236. data/spec/models/external_bank_account_pii_inner_routing_details_inner_bank_model_spec.rb +1 -1
  237. data/spec/models/external_bank_account_state_bank_model_spec.rb +1 -1
  238. data/spec/models/external_wallet_bank_model_spec.rb +1 -1
  239. data/spec/models/external_wallet_environment_bank_model_spec.rb +1 -1
  240. data/spec/models/external_wallet_list_bank_model_spec.rb +1 -1
  241. data/spec/models/external_wallet_state_bank_model_spec.rb +1 -1
  242. data/spec/models/identification_number_bank_model_spec.rb +1 -1
  243. data/spec/models/identity_verification_bank_model_spec.rb +1 -1
  244. data/spec/models/identity_verification_list_bank_model_spec.rb +1 -1
  245. data/spec/models/identity_verification_method_bank_model_spec.rb +1 -1
  246. data/spec/models/identity_verification_outcome_bank_model_spec.rb +1 -1
  247. data/spec/models/identity_verification_persona_state_bank_model_spec.rb +1 -1
  248. data/spec/models/identity_verification_state_bank_model_spec.rb +1 -1
  249. data/spec/models/identity_verification_type_bank_model_spec.rb +1 -1
  250. data/spec/models/identity_verification_with_details_bank_model_spec.rb +1 -1
  251. data/spec/models/identity_verification_with_details_pii_address_bank_model_spec.rb +1 -1
  252. data/spec/models/identity_verification_with_details_pii_bank_model_spec.rb +1 -1
  253. data/spec/models/identity_verification_with_details_pii_name_bank_model_spec.rb +1 -1
  254. data/spec/models/invoice_bank_model_spec.rb +1 -1
  255. data/spec/models/invoice_list_bank_model_spec.rb +1 -1
  256. data/spec/models/patch_bank_bank_model_spec.rb +1 -1
  257. data/spec/models/patch_customer_bank_model_spec.rb +1 -1
  258. data/spec/models/patch_external_bank_account_bank_model_spec.rb +1 -1
  259. data/spec/models/payment_instruction_bank_model_spec.rb +1 -1
  260. data/spec/models/payment_instruction_list_bank_model_spec.rb +1 -1
  261. data/spec/models/post_account_bank_model_spec.rb +1 -1
  262. data/spec/models/post_bank_bank_model_spec.rb +1 -1
  263. data/spec/models/post_counterparty_address_bank_model_spec.rb +1 -1
  264. data/spec/models/post_counterparty_aliases_inner_bank_model_spec.rb +1 -1
  265. data/spec/models/post_counterparty_bank_model_spec.rb +1 -1
  266. data/spec/models/post_counterparty_name_bank_model_spec.rb +1 -1
  267. data/spec/models/post_customer_address_bank_model_spec.rb +1 -1
  268. data/spec/models/post_customer_bank_model_spec.rb +1 -1
  269. data/spec/models/post_customer_name_bank_model_spec.rb +1 -1
  270. data/spec/models/post_deposit_address_bank_model_spec.rb +1 -1
  271. data/spec/models/post_deposit_bank_account_bank_model_spec.rb +1 -1
  272. data/spec/models/post_external_bank_account_bank_model_spec.rb +1 -1
  273. data/spec/models/post_external_bank_account_counterparty_address_bank_model_spec.rb +1 -1
  274. data/spec/models/post_external_bank_account_counterparty_bank_account_bank_model_spec.rb +1 -1
  275. data/spec/models/post_external_bank_account_counterparty_name_bank_model_spec.rb +1 -1
  276. data/spec/models/post_external_wallet_bank_model_spec.rb +1 -1
  277. data/spec/models/post_fee_bank_model_spec.rb +1 -1
  278. data/spec/models/post_identification_number_bank_model_spec.rb +1 -1
  279. data/spec/models/post_identity_verification_address_bank_model_spec.rb +1 -1
  280. data/spec/models/post_identity_verification_bank_model_spec.rb +1 -1
  281. data/spec/models/post_identity_verification_name_bank_model_spec.rb +1 -1
  282. data/spec/models/post_invoice_bank_model_spec.rb +1 -1
  283. data/spec/models/post_payment_instruction_bank_model_spec.rb +1 -1
  284. data/spec/models/post_quote_bank_model_spec.rb +1 -1
  285. data/spec/models/post_quote_entry_bank_model_spec.rb +1 -1
  286. data/spec/models/post_trade_bank_model_spec.rb +1 -1
  287. data/spec/models/post_transfer_bank_model_spec.rb +1 -1
  288. data/spec/models/post_transfer_participant_bank_model_spec.rb +1 -1
  289. data/spec/models/post_workflow_bank_model_spec.rb +1 -1
  290. data/spec/models/quote_bank_model_spec.rb +1 -1
  291. data/spec/models/quote_entry_bank_model_spec.rb +1 -1
  292. data/spec/models/quote_entry_destination_account_bank_model_spec.rb +1 -1
  293. data/spec/models/quote_entry_source_account_bank_model_spec.rb +1 -1
  294. data/spec/models/quote_list_bank_model_spec.rb +1 -1
  295. data/spec/models/quote_side_bank_model_spec.rb +1 -1
  296. data/spec/models/quote_type_bank_model_spec.rb +1 -1
  297. data/spec/models/symbol_price_bank_model_spec.rb +1 -1
  298. data/spec/models/trade_bank_model_spec.rb +1 -1
  299. data/spec/models/trade_failure_code_bank_model_spec.rb +1 -1
  300. data/spec/models/trade_list_bank_model_spec.rb +1 -1
  301. data/spec/models/trade_side_bank_model_spec.rb +1 -1
  302. data/spec/models/trade_state_bank_model_spec.rb +1 -1
  303. data/spec/models/trade_type_bank_model_spec.rb +1 -1
  304. data/spec/models/transfer_account_type_bank_model_spec.rb +1 -1
  305. data/spec/models/transfer_bank_model_spec.rb +1 -1
  306. data/spec/models/transfer_destination_account_bank_model_spec.rb +1 -1
  307. data/spec/models/transfer_entry_bank_model_spec.rb +1 -1
  308. data/spec/models/transfer_entry_destination_account_bank_model_spec.rb +1 -1
  309. data/spec/models/transfer_failure_code_bank_model_spec.rb +1 -1
  310. data/spec/models/transfer_list_bank_model_spec.rb +1 -1
  311. data/spec/models/transfer_participant_bank_model_spec.rb +1 -1
  312. data/spec/models/transfer_side_bank_model_spec.rb +1 -1
  313. data/spec/models/transfer_source_account_bank_model_spec.rb +1 -1
  314. data/spec/models/transfer_state_bank_model_spec.rb +1 -1
  315. data/spec/models/transfer_type_bank_model_spec.rb +1 -1
  316. data/spec/models/workflow_bank_model_spec.rb +1 -1
  317. data/spec/models/workflow_state_bank_model_spec.rb +1 -1
  318. data/spec/models/workflow_type_bank_model_spec.rb +1 -1
  319. data/spec/models/workflow_with_details_all_of_bank_model_spec.rb +1 -1
  320. data/spec/models/workflow_with_details_bank_model_spec.rb +1 -1
  321. data/spec/models/workflows_list_bank_model_spec.rb +1 -1
  322. data/spec/spec_helper.rb +1 -1
  323. data/vendor/bundle/ruby/3.3.0/cache/psych-5.2.0.gem +0 -0
  324. data/vendor/bundle/ruby/3.3.0/cache/stringio-3.1.2.gem +0 -0
  325. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
  326. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  327. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/{psych-5.1.2 → psych-5.2.0}/gem_make.out +18 -18
  328. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/{psych-5.1.2 → psych-5.2.0}/psych.so +0 -0
  329. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
  330. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/{stringio-3.1.1 → stringio-3.1.2}/gem_make.out +18 -18
  331. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.2/stringio.so +0 -0
  332. data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/ext/psych/psych.c +1 -1
  333. data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/ext/psych/psych_emitter.c +154 -120
  334. data/vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/ext/psych/psych_parser.c +565 -0
  335. data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/nodes/node.rb +1 -1
  336. data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/scalar_scanner.rb +10 -9
  337. data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/versions.rb +1 -1
  338. data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/visitors/to_ruby.rb +1 -1
  339. data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/visitors/yaml_tree.rb +7 -10
  340. data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych.rb +19 -3
  341. data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych.so +0 -0
  342. data/vendor/bundle/ruby/3.3.0/gems/{stringio-3.1.1 → stringio-3.1.2}/NEWS.md +19 -0
  343. data/vendor/bundle/ruby/3.3.0/gems/{stringio-3.1.1 → stringio-3.1.2}/ext/stringio/stringio.c +23 -13
  344. data/vendor/bundle/ruby/3.3.0/gems/stringio-3.1.2/lib/stringio.so +0 -0
  345. data/vendor/bundle/ruby/3.3.0/specifications/{psych-5.1.2.gemspec → psych-5.2.0.gemspec} +5 -5
  346. data/vendor/bundle/ruby/3.3.0/specifications/{stringio-3.1.1.gemspec → stringio-3.1.2.gemspec} +4 -4
  347. metadata +79 -79
  348. data/vendor/bundle/ruby/3.3.0/cache/psych-5.1.2.gem +0 -0
  349. data/vendor/bundle/ruby/3.3.0/cache/stringio-3.1.1.gem +0 -0
  350. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.1/stringio.so +0 -0
  351. data/vendor/bundle/ruby/3.3.0/gems/psych-5.1.2/ext/psych/psych_parser.c +0 -565
  352. data/vendor/bundle/ruby/3.3.0/gems/stringio-3.1.1/lib/stringio.so +0 -0
  353. /data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/{psych-5.1.2 → psych-5.2.0}/gem.build_complete +0 -0
  354. /data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/{psych-5.1.2 → psych-5.2.0}/mkmf.log +0 -0
  355. /data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/{stringio-3.1.1 → stringio-3.1.2}/gem.build_complete +0 -0
  356. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/CONTRIBUTING.md +0 -0
  357. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/LICENSE +0 -0
  358. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/README.md +0 -0
  359. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/ext/psych/Makefile +0 -0
  360. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/ext/psych/depend +0 -0
  361. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/ext/psych/extconf.rb +0 -0
  362. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/ext/psych/psych.h +0 -0
  363. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/ext/psych/psych_emitter.h +0 -0
  364. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/ext/psych/psych_parser.h +0 -0
  365. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/ext/psych/psych_to_ruby.c +0 -0
  366. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/ext/psych/psych_to_ruby.h +0 -0
  367. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/ext/psych/psych_yaml_tree.c +0 -0
  368. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/ext/psych/psych_yaml_tree.h +0 -0
  369. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/class_loader.rb +0 -0
  370. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/coder.rb +0 -0
  371. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/core_ext.rb +0 -0
  372. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/exception.rb +0 -0
  373. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/handler.rb +0 -0
  374. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/handlers/document_stream.rb +0 -0
  375. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/handlers/recorder.rb +0 -0
  376. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/json/ruby_events.rb +0 -0
  377. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/json/stream.rb +0 -0
  378. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/json/tree_builder.rb +0 -0
  379. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/json/yaml_events.rb +0 -0
  380. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/nodes/alias.rb +0 -0
  381. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/nodes/document.rb +0 -0
  382. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/nodes/mapping.rb +0 -0
  383. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/nodes/scalar.rb +0 -0
  384. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/nodes/sequence.rb +0 -0
  385. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/nodes/stream.rb +0 -0
  386. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/nodes.rb +0 -0
  387. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/omap.rb +0 -0
  388. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/parser.rb +0 -0
  389. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/set.rb +0 -0
  390. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/stream.rb +0 -0
  391. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/streaming.rb +0 -0
  392. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/syntax_error.rb +0 -0
  393. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/tree_builder.rb +0 -0
  394. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/visitors/depth_first.rb +0 -0
  395. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/visitors/emitter.rb +0 -0
  396. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/visitors/json_tree.rb +0 -0
  397. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/visitors/visitor.rb +0 -0
  398. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/visitors.rb +0 -0
  399. /data/vendor/bundle/ruby/3.3.0/gems/{psych-5.1.2 → psych-5.2.0}/lib/psych/y.rb +0 -0
  400. /data/vendor/bundle/ruby/3.3.0/gems/{stringio-3.1.1 → stringio-3.1.2}/.document +0 -0
  401. /data/vendor/bundle/ruby/3.3.0/gems/{stringio-3.1.1 → stringio-3.1.2}/.rdoc_options +0 -0
  402. /data/vendor/bundle/ruby/3.3.0/gems/{stringio-3.1.1 → stringio-3.1.2}/COPYING +0 -0
  403. /data/vendor/bundle/ruby/3.3.0/gems/{stringio-3.1.1 → stringio-3.1.2}/LICENSE.txt +0 -0
  404. /data/vendor/bundle/ruby/3.3.0/gems/{stringio-3.1.1 → stringio-3.1.2}/README.md +0 -0
  405. /data/vendor/bundle/ruby/3.3.0/gems/{stringio-3.1.1 → stringio-3.1.2}/docs/io.rb +0 -0
  406. /data/vendor/bundle/ruby/3.3.0/gems/{stringio-3.1.1 → stringio-3.1.2}/ext/stringio/.document +0 -0
  407. /data/vendor/bundle/ruby/3.3.0/gems/{stringio-3.1.1 → stringio-3.1.2}/ext/stringio/Makefile +0 -0
  408. /data/vendor/bundle/ruby/3.3.0/gems/{stringio-3.1.1 → stringio-3.1.2}/ext/stringio/extconf.rb +0 -0
@@ -17,7 +17,7 @@ static ID id_canonical;
17
17
  static void emit(yaml_emitter_t * emitter, yaml_event_t * event)
18
18
  {
19
19
  if(!yaml_emitter_emit(emitter, event))
20
- rb_raise(rb_eRuntimeError, "%s", emitter->problem);
20
+ rb_raise(rb_eRuntimeError, "%s", emitter->problem);
21
21
  }
22
22
 
23
23
  static int writer(void *ctx, unsigned char *buffer, size_t size)
@@ -82,13 +82,13 @@ static VALUE initialize(int argc, VALUE *argv, VALUE self)
82
82
  TypedData_Get_Struct(self, yaml_emitter_t, &psych_emitter_type, emitter);
83
83
 
84
84
  if (rb_scan_args(argc, argv, "11", &io, &options) == 2) {
85
- line_width = rb_funcall(options, id_line_width, 0);
86
- indent = rb_funcall(options, id_indentation, 0);
87
- canonical = rb_funcall(options, id_canonical, 0);
85
+ line_width = rb_funcall(options, id_line_width, 0);
86
+ indent = rb_funcall(options, id_indentation, 0);
87
+ canonical = rb_funcall(options, id_canonical, 0);
88
88
 
89
- yaml_emitter_set_width(emitter, NUM2INT(line_width));
90
- yaml_emitter_set_indent(emitter, NUM2INT(indent));
91
- yaml_emitter_set_canonical(emitter, Qtrue == canonical ? 1 : 0);
89
+ yaml_emitter_set_width(emitter, NUM2INT(line_width));
90
+ yaml_emitter_set_indent(emitter, NUM2INT(indent));
91
+ yaml_emitter_set_canonical(emitter, Qtrue == canonical ? 1 : 0);
92
92
  }
93
93
 
94
94
  rb_ivar_set(self, id_io, io);
@@ -136,84 +136,118 @@ static VALUE end_stream(VALUE self)
136
136
  return self;
137
137
  }
138
138
 
139
- /* call-seq: emitter.start_document(version, tags, implicit)
140
- *
141
- * Start a document emission with YAML +version+, +tags+, and an +implicit+
142
- * start.
143
- *
144
- * See Psych::Handler#start_document
145
- */
146
- static VALUE start_document(VALUE self, VALUE version, VALUE tags, VALUE imp)
139
+ struct start_document_data {
140
+ VALUE self;
141
+ VALUE version;
142
+ VALUE tags;
143
+ VALUE imp;
144
+
145
+ yaml_tag_directive_t * head;
146
+ };
147
+
148
+ static VALUE start_document_try(VALUE d)
147
149
  {
150
+ struct start_document_data * data = (struct start_document_data *)d;
151
+ VALUE self = data->self;
152
+ VALUE version = data->version;
153
+ VALUE tags = data->tags;
154
+ VALUE imp = data->imp;
155
+
148
156
  yaml_emitter_t * emitter;
149
- yaml_tag_directive_t * head = NULL;
150
157
  yaml_tag_directive_t * tail = NULL;
151
158
  yaml_event_t event;
152
159
  yaml_version_directive_t version_directive;
153
160
  TypedData_Get_Struct(self, yaml_emitter_t, &psych_emitter_type, emitter);
154
161
 
155
-
156
162
  Check_Type(version, T_ARRAY);
157
163
 
158
164
  if(RARRAY_LEN(version) > 0) {
159
- VALUE major = rb_ary_entry(version, (long)0);
160
- VALUE minor = rb_ary_entry(version, (long)1);
165
+ VALUE major = rb_ary_entry(version, (long)0);
166
+ VALUE minor = rb_ary_entry(version, (long)1);
161
167
 
162
- version_directive.major = NUM2INT(major);
163
- version_directive.minor = NUM2INT(minor);
168
+ version_directive.major = NUM2INT(major);
169
+ version_directive.minor = NUM2INT(minor);
164
170
  }
165
171
 
166
172
  if(RTEST(tags)) {
167
- long i = 0;
168
- long len;
169
- rb_encoding * encoding = rb_utf8_encoding();
170
-
171
- Check_Type(tags, T_ARRAY);
172
-
173
- len = RARRAY_LEN(tags);
174
- head = xcalloc((size_t)len, sizeof(yaml_tag_directive_t));
175
- tail = head;
176
-
177
- for(i = 0; i < len && i < RARRAY_LEN(tags); i++) {
178
- VALUE tuple = RARRAY_AREF(tags, i);
179
- VALUE name;
180
- VALUE value;
181
-
182
- Check_Type(tuple, T_ARRAY);
183
-
184
- if(RARRAY_LEN(tuple) < 2) {
185
- xfree(head);
186
- rb_raise(rb_eRuntimeError, "tag tuple must be of length 2");
187
- }
188
- name = RARRAY_AREF(tuple, 0);
189
- value = RARRAY_AREF(tuple, 1);
190
- StringValue(name);
191
- StringValue(value);
192
- name = rb_str_export_to_enc(name, encoding);
193
- value = rb_str_export_to_enc(value, encoding);
194
-
195
- tail->handle = (yaml_char_t *)StringValueCStr(name);
196
- tail->prefix = (yaml_char_t *)StringValueCStr(value);
197
-
198
- tail++;
199
- }
173
+ long i = 0;
174
+ long len;
175
+ rb_encoding * encoding = rb_utf8_encoding();
176
+
177
+ Check_Type(tags, T_ARRAY);
178
+
179
+ len = RARRAY_LEN(tags);
180
+ data->head = xcalloc((size_t)len, sizeof(yaml_tag_directive_t));
181
+ tail = data->head;
182
+
183
+ for(i = 0; i < len && i < RARRAY_LEN(tags); i++) {
184
+ VALUE tuple = RARRAY_AREF(tags, i);
185
+ VALUE name;
186
+ VALUE value;
187
+
188
+ Check_Type(tuple, T_ARRAY);
189
+
190
+ if(RARRAY_LEN(tuple) < 2) {
191
+ rb_raise(rb_eRuntimeError, "tag tuple must be of length 2");
192
+ }
193
+
194
+ name = RARRAY_AREF(tuple, 0);
195
+ value = RARRAY_AREF(tuple, 1);
196
+ StringValue(name);
197
+ StringValue(value);
198
+ name = rb_str_export_to_enc(name, encoding);
199
+ value = rb_str_export_to_enc(value, encoding);
200
+
201
+ tail->handle = (yaml_char_t *)StringValueCStr(name);
202
+ tail->prefix = (yaml_char_t *)StringValueCStr(value);
203
+
204
+ tail++;
205
+ }
200
206
  }
201
207
 
202
208
  yaml_document_start_event_initialize(
203
- &event,
204
- (RARRAY_LEN(version) > 0) ? &version_directive : NULL,
205
- head,
206
- tail,
207
- imp ? 1 : 0
208
- );
209
+ &event,
210
+ (RARRAY_LEN(version) > 0) ? &version_directive : NULL,
211
+ data->head,
212
+ tail,
213
+ imp ? 1 : 0
214
+ );
209
215
 
210
216
  emit(emitter, &event);
211
217
 
212
- if(head) xfree(head);
213
-
214
218
  return self;
215
219
  }
216
220
 
221
+ static VALUE start_document_ensure(VALUE d)
222
+ {
223
+ struct start_document_data * data = (struct start_document_data *)d;
224
+
225
+ xfree(data->head);
226
+
227
+ return Qnil;
228
+ }
229
+
230
+ /* call-seq: emitter.start_document(version, tags, implicit)
231
+ *
232
+ * Start a document emission with YAML +version+, +tags+, and an +implicit+
233
+ * start.
234
+ *
235
+ * See Psych::Handler#start_document
236
+ */
237
+ static VALUE start_document(VALUE self, VALUE version, VALUE tags, VALUE imp)
238
+ {
239
+ struct start_document_data data = {
240
+ .self = self,
241
+ .version = version,
242
+ .tags = tags,
243
+ .imp = imp,
244
+
245
+ .head = NULL,
246
+ };
247
+
248
+ return rb_ensure(start_document_try, (VALUE)&data, start_document_ensure, (VALUE)&data);
249
+ }
250
+
217
251
  /* call-seq: emitter.end_document(implicit)
218
252
  *
219
253
  * End a document emission with an +implicit+ ending.
@@ -241,14 +275,14 @@ static VALUE end_document(VALUE self, VALUE imp)
241
275
  * See Psych::Handler#scalar
242
276
  */
243
277
  static VALUE scalar(
244
- VALUE self,
245
- VALUE value,
246
- VALUE anchor,
247
- VALUE tag,
248
- VALUE plain,
249
- VALUE quoted,
250
- VALUE style
251
- ) {
278
+ VALUE self,
279
+ VALUE value,
280
+ VALUE anchor,
281
+ VALUE tag,
282
+ VALUE plain,
283
+ VALUE quoted,
284
+ VALUE style
285
+ ) {
252
286
  yaml_emitter_t * emitter;
253
287
  yaml_event_t event;
254
288
  rb_encoding *encoding;
@@ -261,25 +295,25 @@ static VALUE scalar(
261
295
  value = rb_str_export_to_enc(value, encoding);
262
296
 
263
297
  if(!NIL_P(anchor)) {
264
- Check_Type(anchor, T_STRING);
265
- anchor = rb_str_export_to_enc(anchor, encoding);
298
+ Check_Type(anchor, T_STRING);
299
+ anchor = rb_str_export_to_enc(anchor, encoding);
266
300
  }
267
301
 
268
302
  if(!NIL_P(tag)) {
269
- Check_Type(tag, T_STRING);
270
- tag = rb_str_export_to_enc(tag, encoding);
303
+ Check_Type(tag, T_STRING);
304
+ tag = rb_str_export_to_enc(tag, encoding);
271
305
  }
272
306
 
273
307
  yaml_scalar_event_initialize(
274
- &event,
275
- (yaml_char_t *)(NIL_P(anchor) ? NULL : StringValueCStr(anchor)),
276
- (yaml_char_t *)(NIL_P(tag) ? NULL : StringValueCStr(tag)),
277
- (yaml_char_t*)StringValuePtr(value),
278
- (int)RSTRING_LEN(value),
279
- plain ? 1 : 0,
280
- quoted ? 1 : 0,
281
- (yaml_scalar_style_t)NUM2INT(style)
282
- );
308
+ &event,
309
+ (yaml_char_t *)(NIL_P(anchor) ? NULL : StringValueCStr(anchor)),
310
+ (yaml_char_t *)(NIL_P(tag) ? NULL : StringValueCStr(tag)),
311
+ (yaml_char_t*)StringValuePtr(value),
312
+ (int)RSTRING_LEN(value),
313
+ plain ? 1 : 0,
314
+ quoted ? 1 : 0,
315
+ (yaml_scalar_style_t)NUM2INT(style)
316
+ );
283
317
 
284
318
  emit(emitter, &event);
285
319
 
@@ -294,36 +328,36 @@ static VALUE scalar(
294
328
  * See Psych::Handler#start_sequence
295
329
  */
296
330
  static VALUE start_sequence(
297
- VALUE self,
298
- VALUE anchor,
299
- VALUE tag,
300
- VALUE implicit,
301
- VALUE style
302
- ) {
331
+ VALUE self,
332
+ VALUE anchor,
333
+ VALUE tag,
334
+ VALUE implicit,
335
+ VALUE style
336
+ ) {
303
337
  yaml_emitter_t * emitter;
304
338
  yaml_event_t event;
305
339
 
306
340
  rb_encoding * encoding = rb_utf8_encoding();
307
341
 
308
342
  if(!NIL_P(anchor)) {
309
- Check_Type(anchor, T_STRING);
310
- anchor = rb_str_export_to_enc(anchor, encoding);
343
+ Check_Type(anchor, T_STRING);
344
+ anchor = rb_str_export_to_enc(anchor, encoding);
311
345
  }
312
346
 
313
347
  if(!NIL_P(tag)) {
314
- Check_Type(tag, T_STRING);
315
- tag = rb_str_export_to_enc(tag, encoding);
348
+ Check_Type(tag, T_STRING);
349
+ tag = rb_str_export_to_enc(tag, encoding);
316
350
  }
317
351
 
318
352
  TypedData_Get_Struct(self, yaml_emitter_t, &psych_emitter_type, emitter);
319
353
 
320
354
  yaml_sequence_start_event_initialize(
321
- &event,
322
- (yaml_char_t *)(NIL_P(anchor) ? NULL : StringValueCStr(anchor)),
323
- (yaml_char_t *)(NIL_P(tag) ? NULL : StringValueCStr(tag)),
324
- implicit ? 1 : 0,
325
- (yaml_sequence_style_t)NUM2INT(style)
326
- );
355
+ &event,
356
+ (yaml_char_t *)(NIL_P(anchor) ? NULL : StringValueCStr(anchor)),
357
+ (yaml_char_t *)(NIL_P(tag) ? NULL : StringValueCStr(tag)),
358
+ implicit ? 1 : 0,
359
+ (yaml_sequence_style_t)NUM2INT(style)
360
+ );
327
361
 
328
362
  emit(emitter, &event);
329
363
 
@@ -357,12 +391,12 @@ static VALUE end_sequence(VALUE self)
357
391
  * See Psych::Handler#start_mapping
358
392
  */
359
393
  static VALUE start_mapping(
360
- VALUE self,
361
- VALUE anchor,
362
- VALUE tag,
363
- VALUE implicit,
364
- VALUE style
365
- ) {
394
+ VALUE self,
395
+ VALUE anchor,
396
+ VALUE tag,
397
+ VALUE implicit,
398
+ VALUE style
399
+ ) {
366
400
  yaml_emitter_t * emitter;
367
401
  yaml_event_t event;
368
402
  rb_encoding *encoding;
@@ -372,22 +406,22 @@ static VALUE start_mapping(
372
406
  encoding = rb_utf8_encoding();
373
407
 
374
408
  if(!NIL_P(anchor)) {
375
- Check_Type(anchor, T_STRING);
376
- anchor = rb_str_export_to_enc(anchor, encoding);
409
+ Check_Type(anchor, T_STRING);
410
+ anchor = rb_str_export_to_enc(anchor, encoding);
377
411
  }
378
412
 
379
413
  if(!NIL_P(tag)) {
380
- Check_Type(tag, T_STRING);
381
- tag = rb_str_export_to_enc(tag, encoding);
414
+ Check_Type(tag, T_STRING);
415
+ tag = rb_str_export_to_enc(tag, encoding);
382
416
  }
383
417
 
384
418
  yaml_mapping_start_event_initialize(
385
- &event,
386
- (yaml_char_t *)(NIL_P(anchor) ? NULL : StringValueCStr(anchor)),
387
- (yaml_char_t *)(NIL_P(tag) ? NULL : StringValueCStr(tag)),
388
- implicit ? 1 : 0,
389
- (yaml_mapping_style_t)NUM2INT(style)
390
- );
419
+ &event,
420
+ (yaml_char_t *)(NIL_P(anchor) ? NULL : StringValueCStr(anchor)),
421
+ (yaml_char_t *)(NIL_P(tag) ? NULL : StringValueCStr(tag)),
422
+ implicit ? 1 : 0,
423
+ (yaml_mapping_style_t)NUM2INT(style)
424
+ );
391
425
 
392
426
  emit(emitter, &event);
393
427
 
@@ -426,14 +460,14 @@ static VALUE alias(VALUE self, VALUE anchor)
426
460
  TypedData_Get_Struct(self, yaml_emitter_t, &psych_emitter_type, emitter);
427
461
 
428
462
  if(!NIL_P(anchor)) {
429
- Check_Type(anchor, T_STRING);
430
- anchor = rb_str_export_to_enc(anchor, rb_utf8_encoding());
463
+ Check_Type(anchor, T_STRING);
464
+ anchor = rb_str_export_to_enc(anchor, rb_utf8_encoding());
431
465
  }
432
466
 
433
467
  yaml_alias_event_initialize(
434
- &event,
435
- (yaml_char_t *)(NIL_P(anchor) ? NULL : StringValueCStr(anchor))
436
- );
468
+ &event,
469
+ (yaml_char_t *)(NIL_P(anchor) ? NULL : StringValueCStr(anchor))
470
+ );
437
471
 
438
472
  emit(emitter, &event);
439
473