postfinancecheckout-ruby-sdk 5.2.0 → 6.0.0
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.
- checksums.yaml +4 -4
- data/Gemfile +20 -5
- data/Gemfile.lock +31 -38
- data/README.md +2973 -140
- data/Rakefile +24 -5
- data/lib/postfinancecheckout-ruby-sdk/api_client.rb +236 -196
- data/lib/postfinancecheckout-ruby-sdk/api_error.rb +40 -17
- data/lib/postfinancecheckout-ruby-sdk/configuration.rb +240 -41
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_account_update.rb +85 -62
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_application_user_update.rb +112 -58
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_customer_active.rb +156 -99
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_customer_address_active.rb +98 -49
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_customer_comment_active.rb +79 -46
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_human_user_update.rb +167 -101
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_payment_connector_configuration_update.rb +304 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_payment_link_update.rb +200 -118
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_payment_method_configuration_update.rb +313 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_payment_processor_configuration_active.rb +269 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_payment_terminal_update.rb +238 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_refund_comment_active.rb +79 -46
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_role_update.rb +253 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_single_sign_on_user_update.rb +318 -0
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_space_update.rb +153 -100
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_subscriber_update.rb +167 -116
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_subscription_affiliate_update.rb +118 -64
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_subscription_metric_update.rb +89 -60
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_subscription_product_active.rb +136 -82
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_token_update.rb +125 -76
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_transaction_comment_active.rb +79 -46
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_transaction_invoice_comment_active.rb +79 -46
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_transaction_pending.rb +298 -203
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_webhook_listener_update.rb +125 -61
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_webhook_url_update.rb +111 -53
- data/lib/postfinancecheckout-ruby-sdk/models/account.rb +186 -146
- data/lib/postfinancecheckout-ruby-sdk/models/account_create.rb +107 -76
- data/lib/postfinancecheckout-ruby-sdk/models/account_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/account_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/account_state.rb +40 -27
- data/lib/postfinancecheckout-ruby-sdk/models/account_type.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/account_update.rb +95 -79
- data/lib/postfinancecheckout-ruby-sdk/models/address.rb +365 -257
- data/lib/postfinancecheckout-ruby-sdk/models/address_create.rb +366 -257
- data/lib/postfinancecheckout-ruby-sdk/models/analytics_query_execution_request.rb +267 -0
- data/lib/postfinancecheckout-ruby-sdk/models/analytics_query_execution_response.rb +219 -0
- data/lib/postfinancecheckout-ruby-sdk/models/application_key_state.rb +49 -0
- data/lib/postfinancecheckout-ruby-sdk/models/application_user.rb +142 -83
- data/lib/postfinancecheckout-ruby-sdk/models/application_user_create.rb +123 -61
- data/lib/postfinancecheckout-ruby-sdk/models/application_user_create_with_mac_key.rb +142 -83
- data/lib/postfinancecheckout-ruby-sdk/models/application_user_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/application_user_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/application_user_update.rb +122 -75
- data/lib/postfinancecheckout-ruby-sdk/models/authenticated_card_data.rb +119 -65
- data/lib/postfinancecheckout-ruby-sdk/models/authenticated_card_data_create.rb +208 -102
- data/lib/postfinancecheckout-ruby-sdk/models/authenticated_card_request.rb +228 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_account.rb +145 -88
- data/lib/postfinancecheckout-ruby-sdk/models/bank_account_environment.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/bank_account_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_account_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_account_state.rb +38 -25
- data/lib/postfinancecheckout-ruby-sdk/models/bank_account_type.rb +101 -73
- data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction.rb +218 -155
- data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_flow_direction.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_source.rb +91 -63
- data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_state.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_type.rb +91 -63
- data/lib/postfinancecheckout-ruby-sdk/models/billing_cycle_model.rb +147 -79
- data/lib/postfinancecheckout-ruby-sdk/models/billing_cycle_type.rb +38 -25
- data/lib/postfinancecheckout-ruby-sdk/models/billing_day_customization.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/card_authentication_response.rb +39 -26
- data/lib/postfinancecheckout-ruby-sdk/models/card_authentication_version.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/card_cryptogram.rb +75 -47
- data/lib/postfinancecheckout-ruby-sdk/models/card_cryptogram_create.rb +77 -47
- data/lib/postfinancecheckout-ruby-sdk/models/cardholder_authentication.rb +111 -63
- data/lib/postfinancecheckout-ruby-sdk/models/cardholder_authentication_create.rb +115 -63
- data/lib/postfinancecheckout-ruby-sdk/models/charge.rb +175 -129
- data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt.rb +277 -224
- data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt_environment.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt_state.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/charge_bank_transaction.rb +129 -104
- data/lib/postfinancecheckout-ruby-sdk/models/charge_bank_transaction_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_bank_transaction_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow.rb +131 -82
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level.rb +159 -115
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_configuration.rb +146 -94
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_configuration_type.rb +92 -64
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_payment_link.rb +88 -61
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_payment_link_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_payment_link_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_state.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/charge_state.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/charge_type.rb +38 -25
- data/lib/postfinancecheckout-ruby-sdk/models/client_platform_information_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/client_platform_information_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/completion_line_item.rb +82 -50
- data/lib/postfinancecheckout-ruby-sdk/models/completion_line_item_create.rb +83 -49
- data/lib/postfinancecheckout-ruby-sdk/models/completion_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/completion_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/condition.rb +125 -72
- data/lib/postfinancecheckout-ruby-sdk/models/condition_type.rb +91 -63
- data/lib/postfinancecheckout-ruby-sdk/models/condition_type_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/condition_type_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/connector_invocation.rb +141 -92
- data/lib/postfinancecheckout-ruby-sdk/models/connector_invocation_stage.rb +38 -25
- data/lib/postfinancecheckout-ruby-sdk/models/country_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/country_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/creation_entity_state.rb +39 -26
- data/lib/postfinancecheckout-ruby-sdk/models/currency_bank_account.rb +117 -69
- data/lib/postfinancecheckout-ruby-sdk/models/currency_bank_account_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/currency_bank_account_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/currency_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/currency_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer.rb +174 -118
- data/lib/postfinancecheckout-ruby-sdk/models/customer_active.rb +160 -110
- data/lib/postfinancecheckout-ruby-sdk/models/customer_address.rb +132 -85
- data/lib/postfinancecheckout-ruby-sdk/models/customer_address_active.rb +109 -67
- data/lib/postfinancecheckout-ruby-sdk/models/customer_address_create.rb +108 -51
- data/lib/postfinancecheckout-ruby-sdk/models/customer_address_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_address_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_address_type.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/customer_comment.rb +138 -107
- data/lib/postfinancecheckout-ruby-sdk/models/customer_comment_active.rb +90 -64
- data/lib/postfinancecheckout-ruby-sdk/models/customer_comment_create.rb +89 -48
- data/lib/postfinancecheckout-ruby-sdk/models/customer_comment_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_comment_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_create.rb +163 -100
- data/lib/postfinancecheckout-ruby-sdk/models/customer_email_address_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customer_postal_address.rb +365 -257
- data/lib/postfinancecheckout-ruby-sdk/models/customer_postal_address_create.rb +366 -257
- data/lib/postfinancecheckout-ruby-sdk/models/customer_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/customers_presence.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/data_collection_type.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/delivery_indication.rb +157 -111
- data/lib/postfinancecheckout-ruby-sdk/models/delivery_indication_decision_reason.rb +91 -63
- data/lib/postfinancecheckout-ruby-sdk/models/delivery_indication_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/delivery_indication_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/delivery_indication_state.rb +38 -25
- data/lib/postfinancecheckout-ruby-sdk/models/displayable_day_of_week.rb +41 -28
- data/lib/postfinancecheckout-ruby-sdk/models/displayable_month.rb +46 -33
- data/lib/postfinancecheckout-ruby-sdk/models/document_template.rb +146 -93
- data/lib/postfinancecheckout-ruby-sdk/models/document_template_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/document_template_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/document_template_type.rb +97 -71
- data/lib/postfinancecheckout-ruby-sdk/models/document_template_type_group.rb +75 -47
- data/lib/postfinancecheckout-ruby-sdk/models/document_template_type_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/document_template_type_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/dunning_case.rb +164 -121
- data/lib/postfinancecheckout-ruby-sdk/models/dunning_case_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/dunning_case_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/dunning_case_state.rb +40 -27
- data/lib/postfinancecheckout-ruby-sdk/models/dunning_condition.rb +119 -65
- data/lib/postfinancecheckout-ruby-sdk/models/dunning_condition_type.rb +91 -63
- data/lib/postfinancecheckout-ruby-sdk/models/dunning_flow.rb +132 -84
- data/lib/postfinancecheckout-ruby-sdk/models/dunning_flow_level.rb +175 -125
- data/lib/postfinancecheckout-ruby-sdk/models/dunning_flow_level_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/dunning_flow_level_processor.rb +99 -72
- data/lib/postfinancecheckout-ruby-sdk/models/dunning_flow_level_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/dunning_flow_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/dunning_flow_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/dunning_flow_type.rb +98 -71
- data/lib/postfinancecheckout-ruby-sdk/models/environment.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/express_checkout_create_response.rb +227 -0
- data/lib/postfinancecheckout-ruby-sdk/models/express_checkout_session.rb +302 -0
- data/lib/postfinancecheckout-ruby-sdk/models/express_checkout_session_create.rb +231 -0
- data/lib/postfinancecheckout-ruby-sdk/models/express_checkout_session_state.rb +51 -0
- data/lib/postfinancecheckout-ruby-sdk/models/express_checkout_shipping_option.rb +279 -0
- data/lib/postfinancecheckout-ruby-sdk/models/express_checkout_wallet_type.rb +243 -0
- data/lib/postfinancecheckout-ruby-sdk/models/external_transfer_bank_transaction.rb +112 -85
- data/lib/postfinancecheckout-ruby-sdk/models/external_transfer_bank_transaction_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/external_transfer_bank_transaction_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/facade_user_friendly_query_status_model.rb +50 -0
- data/lib/postfinancecheckout-ruby-sdk/models/failure_category.rb +39 -26
- data/lib/postfinancecheckout-ruby-sdk/models/failure_reason.rb +113 -64
- data/lib/postfinancecheckout-ruby-sdk/models/feature.rb +132 -105
- data/lib/postfinancecheckout-ruby-sdk/models/feature_category.rb +100 -72
- data/lib/postfinancecheckout-ruby-sdk/models/gender.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/human_user.rb +171 -128
- data/lib/postfinancecheckout-ruby-sdk/models/human_user_create.rb +178 -106
- data/lib/postfinancecheckout-ruby-sdk/models/human_user_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/human_user_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/human_user_update.rb +179 -120
- data/lib/postfinancecheckout-ruby-sdk/models/internal_transfer_bank_transaction.rb +93 -67
- data/lib/postfinancecheckout-ruby-sdk/models/internal_transfer_bank_transaction_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/internal_transfer_bank_transaction_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_comment_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_comment_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/label.rb +90 -62
- data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor.rb +148 -90
- data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_category.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_group.rb +100 -72
- data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_group_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_group_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_type.rb +91 -63
- data/lib/postfinancecheckout-ruby-sdk/models/language_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/language_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/legal_organization_form.rb +120 -72
- data/lib/postfinancecheckout-ruby-sdk/models/legal_organization_form_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/legal_organization_form_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/line_item.rb +252 -181
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_attribute.rb +85 -49
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_attribute_create.rb +79 -47
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_create.rb +180 -107
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_reduction.rb +94 -62
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_reduction_create.rb +105 -71
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_type.rb +39 -26
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_version_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/line_item_version_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/localized_string.rb +87 -59
- data/lib/postfinancecheckout-ruby-sdk/models/manual_task.rb +141 -91
- data/lib/postfinancecheckout-ruby-sdk/models/manual_task_action.rb +118 -69
- data/lib/postfinancecheckout-ruby-sdk/models/manual_task_action_style.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/manual_task_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/manual_task_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/manual_task_state.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/manual_task_type.rb +110 -71
- data/lib/postfinancecheckout-ruby-sdk/models/metric_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/metric_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/metric_usage_report_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/metric_usage_report_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/one_click_payment_mode.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/pan_type.rb +42 -29
- data/lib/postfinancecheckout-ruby-sdk/models/payment_adjustment.rb +116 -70
- data/lib/postfinancecheckout-ruby-sdk/models/payment_adjustment_type.rb +91 -63
- data/lib/postfinancecheckout-ruby-sdk/models/payment_connector.rb +200 -125
- data/lib/postfinancecheckout-ruby-sdk/models/payment_connector_configuration.rb +208 -138
- data/lib/postfinancecheckout-ruby-sdk/models/payment_connector_configuration_create.rb +400 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_connector_configuration_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_connector_configuration_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_connector_configuration_update.rb +328 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_connector_feature.rb +76 -48
- data/lib/postfinancecheckout-ruby-sdk/models/payment_connector_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_connector_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_contract.rb +179 -142
- data/lib/postfinancecheckout-ruby-sdk/models/payment_contract_state.rb +39 -26
- data/lib/postfinancecheckout-ruby-sdk/models/payment_contract_type.rb +91 -63
- data/lib/postfinancecheckout-ruby-sdk/models/payment_information_hash.rb +76 -48
- data/lib/postfinancecheckout-ruby-sdk/models/payment_information_hash_type.rb +88 -60
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link.rb +242 -163
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link_active.rb +210 -136
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link_address_handling_mode.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link_create.rb +230 -140
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link_protection_mode.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_link_update.rb +202 -134
- data/lib/postfinancecheckout-ruby-sdk/models/payment_method.rb +137 -89
- data/lib/postfinancecheckout-ruby-sdk/models/payment_method_brand.rb +105 -77
- data/lib/postfinancecheckout-ruby-sdk/models/payment_method_brand_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_method_brand_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_method_configuration.rb +214 -145
- data/lib/postfinancecheckout-ruby-sdk/models/payment_method_configuration_active.rb +346 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_method_configuration_create.rb +369 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_method_configuration_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_method_configuration_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_method_configuration_update.rb +330 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_method_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_method_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_primary_risk_taker.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/payment_processor.rb +105 -76
- data/lib/postfinancecheckout-ruby-sdk/models/payment_processor_configuration.rb +136 -84
- data/lib/postfinancecheckout-ruby-sdk/models/payment_processor_configuration_active.rb +293 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_processor_configuration_create.rb +293 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_processor_configuration_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_processor_configuration_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_processor_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_processor_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal.rb +173 -123
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_address.rb +196 -148
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration.rb +119 -67
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration_state.rb +38 -25
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration_version.rb +173 -125
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration_version_state.rb +39 -26
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_create.rb +309 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location.rb +126 -73
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_state.rb +38 -25
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_version.rb +151 -105
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_version_state.rb +39 -26
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_preparing.rb +272 -0
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_receipt_type.rb +91 -63
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_state.rb +40 -27
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_transaction_summary_reference.rb +88 -60
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_type.rb +91 -63
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_update.rb +255 -0
- data/lib/postfinancecheckout-ruby-sdk/models/permission.rb +135 -109
- data/lib/postfinancecheckout-ruby-sdk/models/permission_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/permission_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/persistable_currency_amount.rb +75 -49
- data/lib/postfinancecheckout-ruby-sdk/models/persistable_currency_amount_update.rb +75 -49
- data/lib/postfinancecheckout-ruby-sdk/models/product_component_group_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_component_group_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_component_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_component_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_fee_type.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/product_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_metered_fee.rb +134 -88
- data/lib/postfinancecheckout-ruby-sdk/models/product_metered_fee_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_metered_fee_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_metered_fee_tier_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_metered_fee_tier_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_metered_fee_update.rb +125 -89
- data/lib/postfinancecheckout-ruby-sdk/models/product_metered_tier_fee.rb +106 -69
- data/lib/postfinancecheckout-ruby-sdk/models/product_metered_tier_fee_update.rb +108 -83
- data/lib/postfinancecheckout-ruby-sdk/models/product_metered_tier_pricing.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/product_period_fee.rb +162 -104
- data/lib/postfinancecheckout-ruby-sdk/models/product_period_fee_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_period_fee_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_period_fee_update.rb +130 -105
- data/lib/postfinancecheckout-ruby-sdk/models/product_retirement_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_retirement_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_setup_fee.rb +204 -99
- data/lib/postfinancecheckout-ruby-sdk/models/product_setup_fee_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_setup_fee_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_setup_fee_update.rb +143 -98
- data/lib/postfinancecheckout-ruby-sdk/models/product_version_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_version_retirement_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_version_retirement_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/product_version_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/recurring_indicator.rb +38 -25
- data/lib/postfinancecheckout-ruby-sdk/models/refund.rb +358 -256
- data/lib/postfinancecheckout-ruby-sdk/models/refund_bank_transaction.rb +129 -103
- data/lib/postfinancecheckout-ruby-sdk/models/refund_bank_transaction_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_bank_transaction_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_comment.rb +138 -107
- data/lib/postfinancecheckout-ruby-sdk/models/refund_comment_active.rb +90 -64
- data/lib/postfinancecheckout-ruby-sdk/models/refund_comment_create.rb +89 -48
- data/lib/postfinancecheckout-ruby-sdk/models/refund_comment_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_comment_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_create.rb +167 -85
- data/lib/postfinancecheckout-ruby-sdk/models/refund_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_recovery_bank_transaction.rb +133 -107
- data/lib/postfinancecheckout-ruby-sdk/models/refund_recovery_bank_transaction_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_recovery_bank_transaction_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/refund_state.rb +40 -27
- data/lib/postfinancecheckout-ruby-sdk/models/refund_type.rb +38 -25
- data/lib/postfinancecheckout-ruby-sdk/models/rendered_document.rb +87 -73
- data/lib/postfinancecheckout-ruby-sdk/models/rendered_terminal_receipt.rb +97 -84
- data/lib/postfinancecheckout-ruby-sdk/models/rendered_terminal_receipt_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rest_address_format.rb +113 -65
- data/lib/postfinancecheckout-ruby-sdk/models/rest_address_format_field.rb +44 -31
- data/lib/postfinancecheckout-ruby-sdk/models/rest_api_bulk_operation_result.rb +249 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rest_api_error_response.rb +261 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rest_application_user_mac_key.rb +260 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rest_application_user_mac_key_created.rb +277 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rest_country.rb +112 -75
- data/lib/postfinancecheckout-ruby-sdk/models/rest_country_state.rb +90 -62
- data/lib/postfinancecheckout-ruby-sdk/models/rest_currency.rb +92 -64
- data/lib/postfinancecheckout-ruby-sdk/models/rest_customer_email_address.rb +229 -0
- data/lib/postfinancecheckout-ruby-sdk/models/rest_language.rb +109 -81
- data/lib/postfinancecheckout-ruby-sdk/models/result_portion_model.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/role.rb +149 -91
- data/lib/postfinancecheckout-ruby-sdk/models/role_create.rb +277 -0
- data/lib/postfinancecheckout-ruby-sdk/models/role_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/role_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/role_state.rb +38 -25
- data/lib/postfinancecheckout-ruby-sdk/models/role_update.rb +277 -0
- data/lib/postfinancecheckout-ruby-sdk/models/sales_channel.rb +99 -71
- data/lib/postfinancecheckout-ruby-sdk/models/sales_channel_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/sales_channel_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/scope.rb +264 -154
- data/lib/postfinancecheckout-ruby-sdk/models/scope_single_sign_on_provider.rb +318 -0
- data/lib/postfinancecheckout-ruby-sdk/models/single_sign_on_user.rb +317 -0
- data/lib/postfinancecheckout-ruby-sdk/models/single_sign_on_user_create.rb +352 -0
- data/lib/postfinancecheckout-ruby-sdk/models/single_sign_on_user_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/single_sign_on_user_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/single_sign_on_user_update.rb +342 -0
- data/lib/postfinancecheckout-ruby-sdk/models/sorting_order.rb +48 -0
- data/lib/postfinancecheckout-ruby-sdk/models/space.rb +221 -171
- data/lib/postfinancecheckout-ruby-sdk/models/space_address.rb +244 -180
- data/lib/postfinancecheckout-ruby-sdk/models/space_address_create.rb +244 -180
- data/lib/postfinancecheckout-ruby-sdk/models/space_create.rb +170 -109
- data/lib/postfinancecheckout-ruby-sdk/models/space_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/space_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/space_update.rb +159 -113
- data/lib/postfinancecheckout-ruby-sdk/models/space_view.rb +131 -79
- data/lib/postfinancecheckout-ruby-sdk/models/static_value.rb +100 -72
- data/lib/postfinancecheckout-ruby-sdk/models/static_value_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/static_value_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/submitted_analytics_query_execution.rb +320 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscriber.rb +216 -144
- data/lib/postfinancecheckout-ruby-sdk/models/subscriber_active.rb +206 -140
- data/lib/postfinancecheckout-ruby-sdk/models/subscriber_create.rb +208 -127
- data/lib/postfinancecheckout-ruby-sdk/models/subscriber_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscriber_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscriber_update.rb +176 -138
- data/lib/postfinancecheckout-ruby-sdk/models/subscription.rb +232 -167
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_affiliate.rb +171 -114
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_affiliate_create.rb +148 -84
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_affiliate_deleted.rb +178 -114
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_affiliate_deleting.rb +178 -114
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_affiliate_inactive.rb +144 -97
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_affiliate_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_affiliate_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_affiliate_update.rb +137 -97
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_charge.rb +274 -194
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_charge_create.rb +197 -117
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_charge_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_charge_processing_type.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_charge_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_charge_state.rb +39 -26
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_charge_type.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_component_configuration.rb +95 -67
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_component_reference_configuration.rb +87 -58
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_create_request.rb +97 -87
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_initialize_subscriber_present_request.rb +229 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_ledger_entry.rb +262 -187
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_ledger_entry_create.rb +149 -102
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_ledger_entry_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_ledger_entry_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_ledger_entry_state.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_metric.rb +125 -76
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_metric_active.rb +100 -77
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_metric_create.rb +98 -58
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_metric_type.rb +99 -71
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_metric_update.rb +93 -77
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_metric_usage_report.rb +123 -90
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_metric_usage_report_create.rb +107 -66
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_pending.rb +131 -89
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_period_bill.rb +152 -104
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_period_bill_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_period_bill_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_period_bill_state.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product.rb +195 -125
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_active.rb +140 -92
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_component.rb +152 -127
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_component_group.rb +103 -76
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_component_group_update.rb +100 -85
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_component_reference.rb +143 -73
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_component_reference_state.rb +38 -25
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_component_update.rb +150 -135
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_create.rb +155 -80
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_retirement.rb +112 -86
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_retirement_request.rb +229 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_state.rb +39 -26
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_version.rb +239 -179
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_version_pending.rb +164 -119
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_version_retirement.rb +112 -86
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_version_retirement_request.rb +229 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_version_state.rb +39 -26
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_state.rb +42 -29
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_suspension.rb +177 -127
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_suspension_action.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_suspension_reason.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_suspension_state.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_update.rb +106 -87
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_update_request.rb +79 -47
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_version.rb +219 -163
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_version_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_version_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_version_state.rb +40 -27
- data/lib/postfinancecheckout-ruby-sdk/models/suspension_creation_request.rb +279 -0
- data/lib/postfinancecheckout-ruby-sdk/models/suspension_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/suspension_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/tax.rb +102 -51
- data/lib/postfinancecheckout-ruby-sdk/models/tax_calculation.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/tax_class.rb +118 -65
- data/lib/postfinancecheckout-ruby-sdk/models/tax_create.rb +100 -49
- data/lib/postfinancecheckout-ruby-sdk/models/tenant_database.rb +90 -58
- data/lib/postfinancecheckout-ruby-sdk/models/terminal_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/terminal_receipt_format.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/terminal_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/token.rb +186 -117
- data/lib/postfinancecheckout-ruby-sdk/models/token_create.rb +159 -81
- data/lib/postfinancecheckout-ruby-sdk/models/token_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/token_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/token_update.rb +133 -91
- data/lib/postfinancecheckout-ruby-sdk/models/token_version.rb +285 -187
- data/lib/postfinancecheckout-ruby-sdk/models/token_version_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/token_version_retry_strategy.rb +49 -0
- data/lib/postfinancecheckout-ruby-sdk/models/token_version_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/token_version_state.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/token_version_type.rb +99 -72
- data/lib/postfinancecheckout-ruby-sdk/models/tokenization_mode.rb +38 -25
- data/lib/postfinancecheckout-ruby-sdk/models/tokenized_card_data.rb +113 -65
- data/lib/postfinancecheckout-ruby-sdk/models/tokenized_card_data_create.rb +201 -94
- data/lib/postfinancecheckout-ruby-sdk/models/tokenized_card_request.rb +228 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction.rb +659 -561
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_client_platform_information.rb +289 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_comment.rb +138 -107
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_comment_active.rb +90 -64
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_comment_create.rb +89 -48
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_comment_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_comment_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion.rb +360 -256
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_behavior.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_details.rb +363 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_mode.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_state.rb +39 -26
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_create.rb +366 -250
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_environment_selection_strategy.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_group.rb +144 -79
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_group_state.rb +37 -24
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice.rb +256 -178
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_comment.rb +134 -103
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_comment_active.rb +90 -64
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_comment_create.rb +90 -49
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_replacement.rb +145 -86
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_state.rb +41 -28
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_line_item_version.rb +219 -162
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_line_item_version_create.rb +98 -64
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_line_item_version_state.rb +39 -26
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_pending.rb +305 -217
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_state.rb +44 -31
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_user_interface_type.rb +40 -26
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_void.rb +207 -151
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_void_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_void_mode.rb +36 -23
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_void_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_void_state.rb +38 -25
- data/lib/postfinancecheckout-ruby-sdk/models/two_factor_authentication_type.rb +101 -73
- data/lib/postfinancecheckout-ruby-sdk/models/user.rb +116 -68
- data/lib/postfinancecheckout-ruby-sdk/models/user_account_role.rb +104 -76
- data/lib/postfinancecheckout-ruby-sdk/models/user_account_role_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/user_space_role.rb +97 -69
- data/lib/postfinancecheckout-ruby-sdk/models/user_space_role_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/user_type.rb +39 -26
- data/lib/postfinancecheckout-ruby-sdk/models/wallet_type.rb +102 -77
- data/lib/postfinancecheckout-ruby-sdk/models/web_app_confirmation_response.rb +90 -62
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_identity.rb +118 -64
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener.rb +174 -113
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener_create.rb +144 -70
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener_entity.rb +87 -59
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener_update.rb +132 -75
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_url.rb +145 -88
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_url_create.rb +118 -54
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_url_list_response.rb +241 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_url_search_response.rb +251 -0
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_url_update.rb +122 -71
- data/lib/postfinancecheckout-ruby-sdk/postfinancecheckout_sdk_exception.rb +59 -0
- data/lib/postfinancecheckout-ruby-sdk/service/accounts_service.rb +600 -0
- data/lib/postfinancecheckout-ruby-sdk/service/analytics_queries_service.rb +393 -0
- data/lib/postfinancecheckout-ruby-sdk/service/application_users_roles_service.rb +476 -0
- data/lib/postfinancecheckout-ruby-sdk/service/application_users_service.rb +668 -0
- data/lib/postfinancecheckout-ruby-sdk/service/bank_accounts_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/bank_transactions_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/charge_attempts_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/charge_bank_transactions_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/charge_flow_levels_service.rb +356 -0
- data/lib/postfinancecheckout-ruby-sdk/service/charge_flows_level_payment_links_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/charge_flows_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/condition_types_service.rb +266 -0
- data/lib/postfinancecheckout-ruby-sdk/service/countries_service.rb +418 -0
- data/lib/postfinancecheckout-ruby-sdk/service/currencies_service.rb +235 -0
- data/lib/postfinancecheckout-ruby-sdk/service/currency_bank_accounts_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/customer_addresses_service.rb +627 -0
- data/lib/postfinancecheckout-ruby-sdk/service/customer_comments_service.rb +702 -0
- data/lib/postfinancecheckout-ruby-sdk/service/customers_service.rb +890 -0
- data/lib/postfinancecheckout-ruby-sdk/service/delivery_indications_service.rb +431 -0
- data/lib/postfinancecheckout-ruby-sdk/service/document_template_types_service.rb +266 -0
- data/lib/postfinancecheckout-ruby-sdk/service/document_templates_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/dunning_cases_service.rb +428 -0
- data/lib/postfinancecheckout-ruby-sdk/service/dunning_flow_levels_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/dunning_flows_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/express_checkout_service.rb +105 -0
- data/lib/postfinancecheckout-ruby-sdk/service/external_transfer_bank_transactions_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/human_users_roles_service.rb +476 -0
- data/lib/postfinancecheckout-ruby-sdk/service/human_users_service.rb +557 -0
- data/lib/postfinancecheckout-ruby-sdk/service/internal_transfer_bank_transactions_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/label_descriptors_service.rb +501 -0
- data/lib/postfinancecheckout-ruby-sdk/service/languages_service.rb +235 -0
- data/lib/postfinancecheckout-ruby-sdk/service/legal_organization_forms_service.rb +266 -0
- data/lib/postfinancecheckout-ruby-sdk/service/manual_tasks_service.rb +431 -0
- data/lib/postfinancecheckout-ruby-sdk/service/payment_connector_configurations_service.rb +518 -0
- data/lib/postfinancecheckout-ruby-sdk/service/payment_connectors_service.rb +266 -0
- data/lib/postfinancecheckout-ruby-sdk/service/payment_links_service.rb +518 -0
- data/lib/postfinancecheckout-ruby-sdk/service/payment_method_brands_service.rb +266 -0
- data/lib/postfinancecheckout-ruby-sdk/service/payment_method_configurations_service.rb +518 -0
- data/lib/postfinancecheckout-ruby-sdk/service/payment_methods_service.rb +266 -0
- data/lib/postfinancecheckout-ruby-sdk/service/payment_processor_configurations_service.rb +518 -0
- data/lib/postfinancecheckout-ruby-sdk/service/payment_processors_service.rb +266 -0
- data/lib/postfinancecheckout-ruby-sdk/service/payment_sales_channels_service.rb +266 -0
- data/lib/postfinancecheckout-ruby-sdk/service/payment_terminals_service.rb +1048 -0
- data/lib/postfinancecheckout-ruby-sdk/service/permissions_service.rb +266 -0
- data/lib/postfinancecheckout-ruby-sdk/service/refund_bank_transactions_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/refund_comments_service.rb +702 -0
- data/lib/postfinancecheckout-ruby-sdk/service/refund_recovery_bank_transactions_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/refunds_service.rb +577 -0
- data/lib/postfinancecheckout-ruby-sdk/service/roles_service.rb +476 -0
- data/lib/postfinancecheckout-ruby-sdk/service/single_sign_on_users_roles_service.rb +476 -0
- data/lib/postfinancecheckout-ruby-sdk/service/single_sign_on_users_service.rb +476 -0
- data/lib/postfinancecheckout-ruby-sdk/service/spaces_service.rb +476 -0
- data/lib/postfinancecheckout-ruby-sdk/service/static_values_service.rb +266 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscribers_service.rb +516 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_affiliates_service.rb +516 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_charges_service.rb +436 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_ledger_entries_service.rb +364 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_metric_usage_reports_service.rb +364 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_metrics_service.rb +516 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_period_bills_service.rb +373 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_component_groups_service.rb +516 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_components_service.rb +516 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_metered_fee_tiers_service.rb +552 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_metered_fees_service.rb +516 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_period_fees_service.rb +516 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_retirements_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_setup_fees_service.rb +516 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_version_retirements_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_versions_service.rb +602 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_products_service.rb +530 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_suspensions_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscription_versions_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/subscriptions_service.rb +1088 -0
- data/lib/postfinancecheckout-ruby-sdk/service/token_versions_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/tokens_service.rb +662 -0
- data/lib/postfinancecheckout-ruby-sdk/service/transaction_client_platforms_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/transaction_comments_service.rb +702 -0
- data/lib/postfinancecheckout-ruby-sdk/service/transaction_completions_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/transaction_invoice_comments_service.rb +702 -0
- data/lib/postfinancecheckout-ruby-sdk/service/transaction_invoices_service.rb +652 -0
- data/lib/postfinancecheckout-ruby-sdk/service/transaction_line_item_versions_service.rb +364 -0
- data/lib/postfinancecheckout-ruby-sdk/service/transaction_voids_service.rb +287 -0
- data/lib/postfinancecheckout-ruby-sdk/service/transactions_service.rb +2838 -0
- data/lib/postfinancecheckout-ruby-sdk/service/web_apps_service.rb +228 -0
- data/lib/postfinancecheckout-ruby-sdk/service/webhook_encryption_keys_service.rb +133 -0
- data/lib/postfinancecheckout-ruby-sdk/service/webhook_listeners_service.rb +738 -0
- data/lib/postfinancecheckout-ruby-sdk/service/webhook_urls_service.rb +738 -0
- data/lib/postfinancecheckout-ruby-sdk/utils/encryption_util.rb +80 -0
- data/lib/postfinancecheckout-ruby-sdk/version.rb +21 -18
- data/lib/postfinancecheckout-ruby-sdk.rb +367 -241
- data/postfinancecheckout-ruby-sdk.gemspec +38 -28
- data/test/constants.rb +49 -80
- data/test/encryption_util_test.rb +47 -27
- data/test/test_querying.rb +242 -0
- data/test/test_refunds_service.rb +119 -0
- data/test/test_transaction_completions_service.rb +72 -0
- data/test/test_transactions_service.rb +1163 -0
- data/test/test_webhook_listeners_service.rb +132 -0
- data/test/utils.rb +62 -0
- metadata +389 -792
- data/lib/postfinancecheckout-ruby-sdk/api/account_service_api.rb +0 -398
- data/lib/postfinancecheckout-ruby-sdk/api/application_user_service_api.rb +0 -398
- data/lib/postfinancecheckout-ruby-sdk/api/bank_account_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/bank_transaction_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/card_processing_service_api.rb +0 -182
- data/lib/postfinancecheckout-ruby-sdk/api/charge_attempt_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/charge_bank_transaction_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/charge_flow_level_payment_link_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/charge_flow_level_service_api.rb +0 -296
- data/lib/postfinancecheckout-ruby-sdk/api/charge_flow_service_api.rb +0 -509
- data/lib/postfinancecheckout-ruby-sdk/api/condition_type_service_api.rb +0 -149
- data/lib/postfinancecheckout-ruby-sdk/api/country_service_api.rb +0 -86
- data/lib/postfinancecheckout-ruby-sdk/api/country_state_service_api.rb +0 -149
- data/lib/postfinancecheckout-ruby-sdk/api/currency_bank_account_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/currency_service_api.rb +0 -86
- data/lib/postfinancecheckout-ruby-sdk/api/customer_address_service_api.rb +0 -495
- data/lib/postfinancecheckout-ruby-sdk/api/customer_comment_service_api.rb +0 -562
- data/lib/postfinancecheckout-ruby-sdk/api/customer_service_api.rb +0 -428
- data/lib/postfinancecheckout-ruby-sdk/api/delivery_indication_service_api.rb +0 -362
- data/lib/postfinancecheckout-ruby-sdk/api/document_template_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/document_template_type_service_api.rb +0 -149
- data/lib/postfinancecheckout-ruby-sdk/api/dunning_case_level_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/dunning_case_service_api.rb +0 -366
- data/lib/postfinancecheckout-ruby-sdk/api/dunning_flow_level_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/dunning_flow_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/external_transfer_bank_transaction_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/human_user_service_api.rb +0 -460
- data/lib/postfinancecheckout-ruby-sdk/api/internal_transfer_bank_transaction_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/invoice_reconciliation_record_invoice_link_service_api.rb +0 -376
- data/lib/postfinancecheckout-ruby-sdk/api/invoice_reconciliation_record_service_api.rb +0 -429
- data/lib/postfinancecheckout-ruby-sdk/api/invoice_reimbursement_service_api.rb +0 -373
- data/lib/postfinancecheckout-ruby-sdk/api/label_description_group_service_api.rb +0 -149
- data/lib/postfinancecheckout-ruby-sdk/api/label_description_service_api.rb +0 -149
- data/lib/postfinancecheckout-ruby-sdk/api/language_service_api.rb +0 -86
- data/lib/postfinancecheckout-ruby-sdk/api/legal_organization_form_service_api.rb +0 -212
- data/lib/postfinancecheckout-ruby-sdk/api/manual_task_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/payment_connector_configuration_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/payment_connector_service_api.rb +0 -149
- data/lib/postfinancecheckout-ruby-sdk/api/payment_link_service_api.rb +0 -428
- data/lib/postfinancecheckout-ruby-sdk/api/payment_method_brand_service_api.rb +0 -149
- data/lib/postfinancecheckout-ruby-sdk/api/payment_method_configuration_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/payment_method_service_api.rb +0 -149
- data/lib/postfinancecheckout-ruby-sdk/api/payment_processor_configuration_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/payment_processor_service_api.rb +0 -149
- data/lib/postfinancecheckout-ruby-sdk/api/payment_terminal_service_api.rb +0 -503
- data/lib/postfinancecheckout-ruby-sdk/api/payment_terminal_till_service_api.rb +0 -180
- data/lib/postfinancecheckout-ruby-sdk/api/payment_terminal_transaction_summary_service_api.rb +0 -295
- data/lib/postfinancecheckout-ruby-sdk/api/permission_service_api.rb +0 -149
- data/lib/postfinancecheckout-ruby-sdk/api/refund_bank_transaction_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/refund_comment_service_api.rb +0 -498
- data/lib/postfinancecheckout-ruby-sdk/api/refund_recovery_bank_transaction_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/refund_service_api.rb +0 -572
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_recurring_order_service_api.rb +0 -294
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscriber_service_api.rb +0 -295
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_product_service_api.rb +0 -362
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_service_api.rb +0 -501
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_suspension_service_api.rb +0 -362
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_version_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/shopify_transaction_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/space_service_api.rb +0 -398
- data/lib/postfinancecheckout-ruby-sdk/api/static_value_service_api.rb +0 -149
- data/lib/postfinancecheckout-ruby-sdk/api/subscriber_service_api.rb +0 -428
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_affiliate_service_api.rb +0 -428
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_charge_service_api.rb +0 -363
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_ledger_entry_service_api.rb +0 -295
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_metric_service_api.rb +0 -428
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_metric_usage_service_api.rb +0 -295
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_period_bill_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_product_component_group_service_api.rb +0 -428
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_product_component_service_api.rb +0 -428
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_product_fee_tier_service_api.rb +0 -428
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_product_metered_fee_service_api.rb +0 -428
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_product_period_fee_service_api.rb +0 -428
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_product_retirement_service_api.rb +0 -295
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_product_service_api.rb +0 -362
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_product_setup_fee_service_api.rb +0 -428
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_product_version_retirement_service_api.rb +0 -295
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_product_version_service_api.rb +0 -430
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_service_api.rb +0 -793
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_suspension_service_api.rb +0 -353
- data/lib/postfinancecheckout-ruby-sdk/api/subscription_version_service_api.rb +0 -228
- data/lib/postfinancecheckout-ruby-sdk/api/token_service_api.rb +0 -768
- data/lib/postfinancecheckout-ruby-sdk/api/token_version_service_api.rb +0 -296
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_comment_service_api.rb +0 -498
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_completion_service_api.rb +0 -498
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_iframe_service_api.rb +0 -96
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_invoice_comment_service_api.rb +0 -498
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_invoice_service_api.rb +0 -645
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_lightbox_service_api.rb +0 -96
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_line_item_version_service_api.rb +0 -295
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_mobile_sdk_service_api.rb +0 -91
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_payment_page_service_api.rb +0 -96
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_service_api.rb +0 -1238
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_terminal_service_api.rb +0 -171
- data/lib/postfinancecheckout-ruby-sdk/api/transaction_void_service_api.rb +0 -364
- data/lib/postfinancecheckout-ruby-sdk/api/user_account_role_service_api.rb +0 -234
- data/lib/postfinancecheckout-ruby-sdk/api/user_space_role_service_api.rb +0 -231
- data/lib/postfinancecheckout-ruby-sdk/api/web_app_service_api.rb +0 -215
- data/lib/postfinancecheckout-ruby-sdk/api/webhook_encryption_service_api.rb +0 -117
- data/lib/postfinancecheckout-ruby-sdk/api/webhook_listener_service_api.rb +0 -428
- data/lib/postfinancecheckout-ruby-sdk/api/webhook_url_service_api.rb +0 -428
- data/lib/postfinancecheckout-ruby-sdk/encryption_util.rb +0 -40
- data/lib/postfinancecheckout-ruby-sdk/models/abstract_shopify_subscription_product_update.rb +0 -320
- data/lib/postfinancecheckout-ruby-sdk/models/billing_configuration.rb +0 -271
- data/lib/postfinancecheckout-ruby-sdk/models/client_error.rb +0 -231
- data/lib/postfinancecheckout-ruby-sdk/models/client_error_type.rb +0 -36
- data/lib/postfinancecheckout-ruby-sdk/models/criteria_operator.rb +0 -45
- data/lib/postfinancecheckout-ruby-sdk/models/dunning_case_level.rb +0 -351
- data/lib/postfinancecheckout-ruby-sdk/models/dunning_case_level_state.rb +0 -38
- data/lib/postfinancecheckout-ruby-sdk/models/entity_export_request.rb +0 -208
- data/lib/postfinancecheckout-ruby-sdk/models/entity_query.rb +0 -233
- data/lib/postfinancecheckout-ruby-sdk/models/entity_query_filter.rb +0 -238
- data/lib/postfinancecheckout-ruby-sdk/models/entity_query_filter_type.rb +0 -36
- data/lib/postfinancecheckout-ruby-sdk/models/entity_query_order_by.rb +0 -211
- data/lib/postfinancecheckout-ruby-sdk/models/entity_query_order_by_type.rb +0 -35
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record.rb +0 -571
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_invoice_link.rb +0 -241
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_rejection_status.rb +0 -36
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_state.rb +0 -38
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_type.rb +0 -215
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reimbursement.rb +0 -401
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reimbursement_state.rb +0 -38
- data/lib/postfinancecheckout-ruby-sdk/models/invoice_reimbursement_with_refund_reference.rb +0 -411
- data/lib/postfinancecheckout-ruby-sdk/models/item.rb +0 -233
- data/lib/postfinancecheckout-ruby-sdk/models/payment_initiation_advice_file.rb +0 -281
- data/lib/postfinancecheckout-ruby-sdk/models/payment_initiation_advice_file_state.rb +0 -40
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_dcc_transaction_sum.rb +0 -261
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_transaction_sum.rb +0 -291
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_transaction_summary.rb +0 -307
- data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_transaction_summary_fetch_request.rb +0 -221
- data/lib/postfinancecheckout-ruby-sdk/models/rendered_terminal_transaction_summary.rb +0 -215
- data/lib/postfinancecheckout-ruby-sdk/models/resource_path.rb +0 -275
- data/lib/postfinancecheckout-ruby-sdk/models/resource_state.rb +0 -36
- data/lib/postfinancecheckout-ruby-sdk/models/server_error.rb +0 -211
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_additional_line_item_data.rb +0 -35
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_integration_payment_app_version.rb +0 -34
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_integration_subscription_app_version.rb +0 -36
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_recurring_order.rb +0 -371
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_recurring_order_state.rb +0 -39
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_recurring_order_update_request.rb +0 -201
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber.rb +0 -321
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber_active.rb +0 -281
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber_creation.rb +0 -226
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber_state.rb +0 -36
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription.rb +0 -375
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_address.rb +0 -546
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_address_create.rb +0 -546
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_billing_interval_unit.rb +0 -39
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_creation_request.rb +0 -363
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product.rb +0 -491
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_create.rb +0 -386
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_pricing_option.rb +0 -38
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_state.rb +0 -39
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_update.rb +0 -351
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_state.rb +0 -39
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension.rb +0 -311
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_create.rb +0 -226
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_initiator.rb +0 -35
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_state.rb +0 -35
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_type.rb +0 -35
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +0 -211
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_update_request.rb +0 -233
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version.rb +0 -463
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version_item.rb +0 -233
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version_item_price_strategy.rb +0 -35
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version_state.rb +0 -36
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_weekday.rb +0 -40
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_tax_line.rb +0 -231
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_transaction.rb +0 -321
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_transaction_state.rb +0 -38
- data/lib/postfinancecheckout-ruby-sdk/models/shopify_v1_integration.rb +0 -480
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_change_request.rb +0 -260
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_retirement_create.rb +0 -216
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_version_retirement_create.rb +0 -216
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_suspension_create.rb +0 -251
- data/lib/postfinancecheckout-ruby-sdk/models/subscription_suspension_running.rb +0 -336
- data/lib/postfinancecheckout-ruby-sdk/models/tax_line.rb +0 -201
- data/lib/postfinancecheckout-ruby-sdk/models/terminal_receipt_fetch_request.rb +0 -221
- data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_request.rb +0 -316
- data/lib/postfinancecheckout-ruby-sdk/models/web_app_confirmation_request.rb +0 -206
- data/lib/postfinancecheckout-ruby-sdk/models/webhook_encryption_public_key.rb +0 -201
- data/test/refund_service_test.rb +0 -133
- data/test/transaction_completion_service_test.rb +0 -104
- data/test/transaction_iframe_service_test.rb +0 -25
- data/test/transaction_lightbox_service_test.rb +0 -25
- data/test/transaction_payment_page_service_test.rb +0 -25
- data/test/transaction_service_test.rb +0 -230
- data/vendor/bundle/ruby/3.3.0/bin/rake +0 -29
- data/vendor/bundle/ruby/3.3.0/cache/addressable-2.8.7.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/ethon-0.15.0.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/ffi-1.17.2-x86_64-linux-gnu.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/json-2.15.1.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/power_assert-2.0.5.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/public_suffix-6.0.2.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/rake-13.0.6.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/test-unit-3.3.9.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/typhoeus-1.5.0.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.15.1/gem.build_complete +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.15.1/gem_make.out +0 -25
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.15.1/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.15.1/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.15.1/mkmf.log +0 -165
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/CHANGELOG.md +0 -301
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/Gemfile +0 -31
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/LICENSE.txt +0 -202
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/README.md +0 -121
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/Rakefile +0 -37
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/addressable.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/data/unicode.data +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/lib/addressable/idna/native.rb +0 -66
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/lib/addressable/idna/pure.rb +0 -505
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/lib/addressable/idna.rb +0 -26
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/lib/addressable/template.rb +0 -1029
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/lib/addressable/uri.rb +0 -2602
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/lib/addressable/version.rb +0 -31
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/lib/addressable.rb +0 -4
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/spec/addressable/idna_spec.rb +0 -302
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/spec/addressable/net_http_compat_spec.rb +0 -29
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/spec/addressable/security_spec.rb +0 -58
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/spec/addressable/template_spec.rb +0 -1264
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/spec/addressable/uri_spec.rb +0 -6840
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/spec/spec_helper.rb +0 -33
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/tasks/clobber.rake +0 -4
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/tasks/gem.rake +0 -95
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/tasks/git.rake +0 -47
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/tasks/metrics.rake +0 -24
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/tasks/profile.rake +0 -72
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/tasks/rspec.rake +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/tasks/yard.rake +0 -29
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/.github/workflows/ruby.yml +0 -41
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/.gitignore +0 -8
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/.rspec +0 -3
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/CHANGELOG.md +0 -372
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/Gemfile +0 -43
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/Guardfile +0 -10
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/README.md +0 -95
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/Rakefile +0 -40
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/ethon.gemspec +0 -26
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/curl.rb +0 -90
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb +0 -55
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/curls/codes.rb +0 -122
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/curls/constants.rb +0 -80
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/curls/form_options.rb +0 -37
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/curls/functions.rb +0 -58
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/curls/infos.rb +0 -151
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/curls/messages.rb +0 -19
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/curls/options.rb +0 -502
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/curls/settings.rb +0 -12
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/callbacks.rb +0 -148
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/debug_info.rb +0 -47
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/features.rb +0 -31
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/form.rb +0 -107
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/header.rb +0 -61
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/http/actionable.rb +0 -157
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/http/custom.rb +0 -29
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/http/delete.rb +0 -25
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/http/get.rb +0 -24
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/http/head.rb +0 -24
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/http/options.rb +0 -24
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/http/patch.rb +0 -24
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/http/post.rb +0 -26
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/http/postable.rb +0 -32
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/http/put.rb +0 -27
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/http/putable.rb +0 -25
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/http.rb +0 -68
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/informations.rb +0 -113
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/mirror.rb +0 -36
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/operations.rb +0 -64
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/options.rb +0 -50
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/params.rb +0 -29
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/queryable.rb +0 -154
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/response_callbacks.rb +0 -131
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy/util.rb +0 -28
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/easy.rb +0 -315
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/errors/ethon_error.rb +0 -9
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/errors/global_init.rb +0 -13
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/errors/invalid_option.rb +0 -13
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/errors/invalid_value.rb +0 -13
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/errors/multi_add.rb +0 -12
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/errors/multi_fdset.rb +0 -12
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/errors/multi_remove.rb +0 -12
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/errors/multi_timeout.rb +0 -13
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/errors/select.rb +0 -13
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/errors.rb +0 -17
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/libc.rb +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/loggable.rb +0 -59
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/multi/operations.rb +0 -228
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/multi/options.rb +0 -117
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/multi/stack.rb +0 -49
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/multi.rb +0 -126
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon/version.rb +0 -6
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/lib/ethon.rb +0 -36
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/profile/benchmarks.rb +0 -104
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/profile/memory_leaks.rb +0 -114
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/profile/perf_spec_helper.rb +0 -37
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/profile/support/memory_test_helpers.rb +0 -76
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/profile/support/os_memory_leak_tracker.rb +0 -48
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/profile/support/ruby_object_leak_tracker.rb +0 -49
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/curl_spec.rb +0 -38
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/callbacks_spec.rb +0 -59
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/debug_info_spec.rb +0 -54
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/features_spec.rb +0 -24
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/form_spec.rb +0 -104
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/header_spec.rb +0 -79
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/http/custom_spec.rb +0 -177
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/http/delete_spec.rb +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/http/get_spec.rb +0 -126
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/http/head_spec.rb +0 -80
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/http/options_spec.rb +0 -51
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/http/patch_spec.rb +0 -51
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/http/post_spec.rb +0 -317
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/http/put_spec.rb +0 -168
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/http_spec.rb +0 -64
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/informations_spec.rb +0 -120
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/mirror_spec.rb +0 -47
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/operations_spec.rb +0 -268
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/options_spec.rb +0 -193
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/queryable_spec.rb +0 -235
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/response_callbacks_spec.rb +0 -152
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/util_spec.rb +0 -28
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy_spec.rb +0 -203
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/libc_spec.rb +0 -14
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/loggable_spec.rb +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/multi/operations_spec.rb +0 -298
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/multi/options_spec.rb +0 -182
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/multi/stack_spec.rb +0 -80
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/multi_spec.rb +0 -152
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/spec_helper.rb +0 -28
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/support/localhost_server.rb +0 -95
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/support/server.rb +0 -115
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/CHANGELOG.md +0 -473
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/COPYING +0 -49
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/Gemfile +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/LICENSE +0 -24
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/LICENSE.SPECS +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/README.md +0 -137
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/Rakefile +0 -206
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/ffi.gemspec +0 -42
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/2.5/ffi_c.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/2.6/ffi_c.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/2.7/ffi_c.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/3.0/ffi_c.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/3.1/ffi_c.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/3.2/ffi_c.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/3.3/ffi_c.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/3.4/ffi_c.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/abstract_memory.rb +0 -44
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/autopointer.rb +0 -180
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/buffer.rb +0 -4
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/callback.rb +0 -4
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/compat.rb +0 -43
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/data_converter.rb +0 -67
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/dynamic_library.rb +0 -118
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/enum.rb +0 -302
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/errno.rb +0 -43
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/ffi.rb +0 -109
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/function.rb +0 -71
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/io.rb +0 -62
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/library.rb +0 -576
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/library_path.rb +0 -109
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/managedstruct.rb +0 -84
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/memorypointer.rb +0 -1
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/aarch64-darwin/types.conf +0 -130
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/aarch64-freebsd/types.conf +0 -128
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/aarch64-freebsd12/types.conf +0 -181
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/aarch64-linux/types.conf +0 -175
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/aarch64-openbsd/types.conf +0 -134
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/aarch64-windows/types.conf +0 -52
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/arm-freebsd/types.conf +0 -152
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/arm-freebsd12/types.conf +0 -152
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/arm-linux/types.conf +0 -132
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/hppa1.1-linux/types.conf +0 -178
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/hppa2.0-linux/types.conf +0 -178
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/i386-cygwin/types.conf +0 -3
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/i386-darwin/types.conf +0 -100
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/i386-freebsd/types.conf +0 -152
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/i386-freebsd12/types.conf +0 -152
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/i386-gnu/types.conf +0 -107
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/i386-linux/types.conf +0 -103
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/i386-netbsd/types.conf +0 -126
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/i386-openbsd/types.conf +0 -128
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/i386-solaris/types.conf +0 -122
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/i386-windows/types.conf +0 -52
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/ia64-linux/types.conf +0 -104
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/loongarch64-linux/types.conf +0 -141
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/mips-linux/types.conf +0 -102
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/mips64-linux/types.conf +0 -104
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/mips64el-linux/types.conf +0 -104
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/mipsel-linux/types.conf +0 -102
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/mipsisa32r6-linux/types.conf +0 -102
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/mipsisa32r6el-linux/types.conf +0 -102
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/mipsisa64r6-linux/types.conf +0 -104
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/mipsisa64r6el-linux/types.conf +0 -104
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/powerpc-aix/types.conf +0 -180
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/powerpc-darwin/types.conf +0 -100
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/powerpc-linux/types.conf +0 -130
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/powerpc-openbsd/types.conf +0 -156
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/powerpc64-linux/types.conf +0 -104
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/powerpc64le-linux/types.conf +0 -100
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/riscv64-linux/types.conf +0 -104
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/s390-linux/types.conf +0 -102
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/s390x-linux/types.conf +0 -102
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/sparc-linux/types.conf +0 -102
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/sparc-solaris/types.conf +0 -128
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/sparcv9-linux/types.conf +0 -102
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/sparcv9-openbsd/types.conf +0 -156
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/sparcv9-solaris/types.conf +0 -128
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/sw_64-linux/types.conf +0 -141
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/x86_64-cygwin/types.conf +0 -3
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/x86_64-darwin/types.conf +0 -130
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/x86_64-dragonflybsd/types.conf +0 -130
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/x86_64-freebsd/types.conf +0 -128
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/x86_64-freebsd12/types.conf +0 -158
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/x86_64-haiku/types.conf +0 -117
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/x86_64-linux/types.conf +0 -132
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/x86_64-msys/types.conf +0 -119
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/x86_64-netbsd/types.conf +0 -128
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/x86_64-openbsd/types.conf +0 -134
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/x86_64-solaris/types.conf +0 -122
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform/x86_64-windows/types.conf +0 -52
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/platform.rb +0 -187
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/pointer.rb +0 -167
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/struct.rb +0 -317
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/struct_by_reference.rb +0 -72
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/struct_layout.rb +0 -96
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/struct_layout_builder.rb +0 -227
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/tools/const_generator.rb +0 -232
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/tools/generator.rb +0 -105
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/tools/generator_task.rb +0 -32
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/tools/struct_generator.rb +0 -195
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/tools/types_generator.rb +0 -137
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/types.rb +0 -222
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/union.rb +0 -43
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/variadic.rb +0 -80
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi/version.rb +0 -3
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/lib/ffi.rb +0 -27
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/rakelib/ffi_gem_helper.rb +0 -65
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/samples/getlogin.rb +0 -8
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/samples/getpid.rb +0 -8
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/samples/gettimeofday.rb +0 -18
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/samples/hello.rb +0 -8
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/samples/hello_ractor.rb +0 -11
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/samples/inotify.rb +0 -60
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/samples/pty.rb +0 -75
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/samples/qsort.rb +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/samples/qsort_ractor.rb +0 -28
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/sig/ffi/abstract_memory.rbs +0 -165
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/sig/ffi/auto_pointer.rbs +0 -26
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/sig/ffi/buffer.rbs +0 -18
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/sig/ffi/data_converter.rbs +0 -10
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/sig/ffi/dynamic_library.rbs +0 -9
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/sig/ffi/enum.rbs +0 -38
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/sig/ffi/function.rbs +0 -39
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/sig/ffi/library.rbs +0 -42
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/sig/ffi/native_type.rbs +0 -86
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/sig/ffi/pointer.rbs +0 -42
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/sig/ffi/struct.rbs +0 -76
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/sig/ffi/struct_by_reference.rbs +0 -11
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/sig/ffi/struct_by_value.rbs +0 -7
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/sig/ffi/struct_layout.rbs +0 -9
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/sig/ffi/struct_layout_builder.rbs +0 -5
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/sig/ffi/type.rbs +0 -39
- data/vendor/bundle/ruby/3.3.0/gems/ffi-1.17.2-x86_64-linux-gnu/sig/ffi.rbs +0 -26
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/BSDL +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/CHANGES.md +0 -693
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/COPYING +0 -56
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/LEGAL +0 -8
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/README.md +0 -283
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/ext/json/ext/fbuffer/fbuffer.h +0 -296
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/ext/json/ext/generator/Makefile +0 -269
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/ext/json/ext/generator/extconf.rb +0 -16
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/ext/json/ext/generator/generator.c +0 -2169
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/ext/json/ext/parser/Makefile +0 -269
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/ext/json/ext/parser/extconf.rb +0 -15
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/ext/json/ext/parser/parser.c +0 -1557
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/ext/json/ext/simd/conf.rb +0 -24
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/ext/json/ext/simd/simd.h +0 -188
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/ext/json/ext/vendor/fpconv.c +0 -480
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/ext/json/ext/vendor/jeaiii-ltoa.h +0 -267
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/json.gemspec +0 -62
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/add/bigdecimal.rb +0 -58
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/add/complex.rb +0 -51
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/add/core.rb +0 -13
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/add/date.rb +0 -54
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/add/date_time.rb +0 -67
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/add/exception.rb +0 -49
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/add/ostruct.rb +0 -54
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/add/range.rb +0 -54
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/add/rational.rb +0 -49
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/add/regexp.rb +0 -48
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/add/set.rb +0 -48
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/add/string.rb +0 -35
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/add/struct.rb +0 -52
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/add/symbol.rb +0 -52
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/add/time.rb +0 -52
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/common.rb +0 -1130
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/ext/generator/state.rb +0 -99
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/ext.rb +0 -45
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/generic_object.rb +0 -67
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/truffle_ruby/generator.rb +0 -708
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json/version.rb +0 -5
- data/vendor/bundle/ruby/3.3.0/gems/json-2.15.1/lib/json.rb +0 -642
- data/vendor/bundle/ruby/3.3.0/gems/power_assert-2.0.5/.github/dependabot.yml +0 -6
- data/vendor/bundle/ruby/3.3.0/gems/power_assert-2.0.5/.github/workflows/ci.yml +0 -46
- data/vendor/bundle/ruby/3.3.0/gems/power_assert-2.0.5/.gitignore +0 -9
- data/vendor/bundle/ruby/3.3.0/gems/power_assert-2.0.5/BSDL +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/power_assert-2.0.5/COPYING +0 -57
- data/vendor/bundle/ruby/3.3.0/gems/power_assert-2.0.5/Gemfile +0 -19
- data/vendor/bundle/ruby/3.3.0/gems/power_assert-2.0.5/LEGAL +0 -4
- data/vendor/bundle/ruby/3.3.0/gems/power_assert-2.0.5/README.md +0 -98
- data/vendor/bundle/ruby/3.3.0/gems/power_assert-2.0.5/Rakefile +0 -59
- data/vendor/bundle/ruby/3.3.0/gems/power_assert-2.0.5/lib/power_assert/colorize.rb +0 -7
- data/vendor/bundle/ruby/3.3.0/gems/power_assert-2.0.5/lib/power_assert/configuration.rb +0 -46
- data/vendor/bundle/ruby/3.3.0/gems/power_assert-2.0.5/lib/power_assert/context.rb +0 -233
- data/vendor/bundle/ruby/3.3.0/gems/power_assert-2.0.5/lib/power_assert/enable_tracepoint_events.rb +0 -62
- data/vendor/bundle/ruby/3.3.0/gems/power_assert-2.0.5/lib/power_assert/inspector.rb +0 -66
- data/vendor/bundle/ruby/3.3.0/gems/power_assert-2.0.5/lib/power_assert/parser.rb +0 -251
- data/vendor/bundle/ruby/3.3.0/gems/power_assert-2.0.5/lib/power_assert/version.rb +0 -3
- data/vendor/bundle/ruby/3.3.0/gems/power_assert-2.0.5/lib/power_assert.rb +0 -93
- data/vendor/bundle/ruby/3.3.0/gems/power_assert-2.0.5/power_assert.gemspec +0 -24
- data/vendor/bundle/ruby/3.3.0/gems/public_suffix-6.0.2/.yardopts +0 -1
- data/vendor/bundle/ruby/3.3.0/gems/public_suffix-6.0.2/CHANGELOG.md +0 -498
- data/vendor/bundle/ruby/3.3.0/gems/public_suffix-6.0.2/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/public_suffix-6.0.2/README.md +0 -222
- data/vendor/bundle/ruby/3.3.0/gems/public_suffix-6.0.2/SECURITY.md +0 -24
- data/vendor/bundle/ruby/3.3.0/gems/public_suffix-6.0.2/data/list.txt +0 -15791
- data/vendor/bundle/ruby/3.3.0/gems/public_suffix-6.0.2/lib/public_suffix/domain.rb +0 -235
- data/vendor/bundle/ruby/3.3.0/gems/public_suffix-6.0.2/lib/public_suffix/errors.rb +0 -41
- data/vendor/bundle/ruby/3.3.0/gems/public_suffix-6.0.2/lib/public_suffix/list.rb +0 -247
- data/vendor/bundle/ruby/3.3.0/gems/public_suffix-6.0.2/lib/public_suffix/rule.rb +0 -350
- data/vendor/bundle/ruby/3.3.0/gems/public_suffix-6.0.2/lib/public_suffix/version.rb +0 -14
- data/vendor/bundle/ruby/3.3.0/gems/public_suffix-6.0.2/lib/public_suffix.rb +0 -177
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/History.rdoc +0 -2403
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/MIT-LICENSE +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/README.rdoc +0 -155
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/doc/command_line_usage.rdoc +0 -158
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/doc/example/Rakefile1 +0 -38
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/doc/example/Rakefile2 +0 -35
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/doc/example/a.c +0 -6
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/doc/example/b.c +0 -6
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/doc/example/main.c +0 -11
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/doc/glossary.rdoc +0 -42
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/doc/jamis.rb +0 -592
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/doc/proto_rake.rdoc +0 -127
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/doc/rake.1 +0 -156
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/doc/rakefile.rdoc +0 -622
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/doc/rational.rdoc +0 -151
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/exe/rake +0 -27
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/application.rb +0 -831
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/backtrace.rb +0 -24
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/clean.rb +0 -78
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/cloneable.rb +0 -17
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/cpu_counter.rb +0 -107
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/default_loader.rb +0 -15
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/dsl_definition.rb +0 -195
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/early_time.rb +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/ext/core.rb +0 -26
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/ext/string.rb +0 -176
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/file_creation_task.rb +0 -25
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/file_list.rb +0 -435
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/file_task.rb +0 -54
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/file_utils.rb +0 -134
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/file_utils_ext.rb +0 -134
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/invocation_chain.rb +0 -57
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/invocation_exception_mixin.rb +0 -17
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/late_time.rb +0 -18
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/linked_list.rb +0 -112
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/loaders/makefile.rb +0 -54
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/multi_task.rb +0 -14
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/name_space.rb +0 -38
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/packagetask.rb +0 -222
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/phony.rb +0 -16
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/private_reader.rb +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/promise.rb +0 -100
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/pseudo_status.rb +0 -30
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/rake_module.rb +0 -67
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb +0 -27
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/rule_recursion_overflow_error.rb +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/scope.rb +0 -43
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/task.rb +0 -434
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/task_argument_error.rb +0 -8
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/task_arguments.rb +0 -109
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/task_manager.rb +0 -331
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/tasklib.rb +0 -12
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/testtask.rb +0 -189
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/thread_history_display.rb +0 -49
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/thread_pool.rb +0 -163
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/version.rb +0 -10
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/win32.rb +0 -51
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake.rb +0 -71
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/rake.gemspec +0 -100
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/BSDL +0 -24
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/COPYING +0 -64
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/PSFL +0 -271
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/README.md +0 -97
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/Rakefile +0 -66
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/doc/text/getting-started.md +0 -246
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/doc/text/how-to.md +0 -90
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/doc/text/news.md +0 -1533
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/assertion-failed-error.rb +0 -25
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/assertions.rb +0 -2256
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/attribute-matcher.rb +0 -26
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/attribute.rb +0 -227
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/auto-runner-loader.rb +0 -17
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/autorunner.rb +0 -569
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/code-snippet-fetcher.rb +0 -58
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/collector/descendant.rb +0 -19
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/collector/dir.rb +0 -108
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/collector/load.rb +0 -197
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/collector/objectspace.rb +0 -34
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/collector/xml.rb +0 -249
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/collector.rb +0 -73
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/color-scheme.rb +0 -216
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/color.rb +0 -134
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/data-sets.rb +0 -116
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/data.rb +0 -371
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/diff.rb +0 -745
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/error.rb +0 -158
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/exception-handler.rb +0 -82
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/failure.rb +0 -169
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/fault-location-detector.rb +0 -100
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/fixture.rb +0 -298
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/notification.rb +0 -138
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/omission.rb +0 -198
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/pending.rb +0 -155
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/priority.rb +0 -196
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/runner/console.rb +0 -67
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/runner/emacs.rb +0 -8
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/runner/xml.rb +0 -15
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/test-suite-creator.rb +0 -103
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/testcase.rb +0 -899
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/testresult.rb +0 -132
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/testsuite.rb +0 -175
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/ui/console/outputlevel.rb +0 -15
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/ui/console/testrunner.rb +0 -733
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/ui/emacs/testrunner.rb +0 -49
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/ui/testrunner.rb +0 -53
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/ui/testrunnermediator.rb +0 -114
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/ui/testrunnerutilities.rb +0 -41
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/ui/xml/testrunner.rb +0 -224
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/util/backtracefilter.rb +0 -59
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/util/method-owner-finder.rb +0 -28
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/util/observable.rb +0 -90
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/util/output.rb +0 -32
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/util/procwrapper.rb +0 -48
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit/version.rb +0 -5
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test/unit.rb +0 -519
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/lib/test-unit.rb +0 -17
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/sample/adder.rb +0 -13
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/sample/subtracter.rb +0 -12
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/sample/test_adder.rb +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/sample/test_subtracter.rb +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/sample/test_user.rb +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/collector/test-descendant.rb +0 -182
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/collector/test-load.rb +0 -475
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/collector/test_dir.rb +0 -407
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/collector/test_objectspace.rb +0 -102
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/fixtures/header-label.csv +0 -3
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/fixtures/header-label.tsv +0 -3
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/fixtures/header.csv +0 -3
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/fixtures/header.tsv +0 -3
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/fixtures/no-header.csv +0 -2
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/fixtures/no-header.tsv +0 -2
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/fixtures/plus.csv +0 -3
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/run-test.rb +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-assertions.rb +0 -2187
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-attribute-matcher.rb +0 -38
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-attribute.rb +0 -123
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-code-snippet.rb +0 -79
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-color-scheme.rb +0 -123
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-color.rb +0 -47
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-data.rb +0 -419
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-diff.rb +0 -518
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-emacs-runner.rb +0 -60
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-error.rb +0 -26
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-failure.rb +0 -33
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-fault-location-detector.rb +0 -163
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-fixture.rb +0 -713
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-notification.rb +0 -33
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-omission.rb +0 -81
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-pending.rb +0 -70
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-priority.rb +0 -184
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-test-case.rb +0 -1284
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-test-result.rb +0 -113
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-test-suite-creator.rb +0 -97
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/test-test-suite.rb +0 -151
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/testunit-test-util.rb +0 -33
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/ui/test_testrunmediator.rb +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/util/test-method-owner-finder.rb +0 -38
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/util/test-output.rb +0 -11
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/util/test_backtracefilter.rb +0 -52
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/util/test_observable.rb +0 -102
- data/vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/util/test_procwrapper.rb +0 -36
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/CHANGELOG.md +0 -452
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/CONTRIBUTING.md +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/LICENSE +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/README.md +0 -588
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/UPGRADE.md +0 -55
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/rack/typhoeus/middleware/params_decoder/helper.rb +0 -76
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/rack/typhoeus/middleware/params_decoder.rb +0 -57
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/rack/typhoeus.rb +0 -1
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/adapters/faraday.rb +0 -180
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/cache/dalli.rb +0 -28
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/cache/rails.rb +0 -28
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/cache/redis.rb +0 -35
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/config.rb +0 -85
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/easy_factory.rb +0 -206
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/errors/no_stub.rb +0 -12
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/errors/typhoeus_error.rb +0 -8
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/errors.rb +0 -9
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/expectation.rb +0 -219
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/hydra/addable.rb +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/hydra/before.rb +0 -31
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/hydra/block_connection.rb +0 -35
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/hydra/cacheable.rb +0 -15
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/hydra/memoizable.rb +0 -56
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/hydra/queueable.rb +0 -83
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/hydra/runnable.rb +0 -19
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/hydra/stubbable.rb +0 -28
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/hydra.rb +0 -95
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/pool.rb +0 -70
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/railtie.rb +0 -12
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/request/actions.rb +0 -125
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/request/before.rb +0 -30
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/request/block_connection.rb +0 -52
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/request/cacheable.rb +0 -38
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/request/callbacks.rb +0 -151
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/request/marshal.rb +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/request/memoizable.rb +0 -38
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/request/operations.rb +0 -40
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/request/responseable.rb +0 -29
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/request/streamable.rb +0 -34
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/request/stubbable.rb +0 -30
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/request.rb +0 -223
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/response/cacheable.rb +0 -14
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/response/header.rb +0 -105
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/response/informations.rb +0 -305
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/response/status.rb +0 -106
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/response.rb +0 -68
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus/version.rb +0 -5
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/lib/typhoeus.rb +0 -143
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.5.0/typhoeus.gemspec +0 -35
- data/vendor/bundle/ruby/3.3.0/specifications/addressable-2.8.7.gemspec +0 -30
- data/vendor/bundle/ruby/3.3.0/specifications/ethon-0.15.0.gemspec +0 -24
- data/vendor/bundle/ruby/3.3.0/specifications/ffi-1.17.2-x86_64-linux-gnu.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/json-2.15.1.gemspec +0 -0
- data/vendor/bundle/ruby/3.3.0/specifications/power_assert-2.0.5.gemspec +0 -24
- data/vendor/bundle/ruby/3.3.0/specifications/public_suffix-6.0.2.gemspec +0 -24
- data/vendor/bundle/ruby/3.3.0/specifications/rake-13.0.6.gemspec +0 -26
- data/vendor/bundle/ruby/3.3.0/specifications/test-unit-3.3.9.gemspec +0 -30
- data/vendor/bundle/ruby/3.3.0/specifications/typhoeus-1.5.0.gemspec +0 -26
|
@@ -1,2256 +0,0 @@
|
|
|
1
|
-
# Author:: Nathaniel Talbott.
|
|
2
|
-
# Copyright:: Copyright (c) 2000-2003 Nathaniel Talbott. All rights reserved.
|
|
3
|
-
# Copyright (c) 2009-2013 Kouhei Sutou. All rights reserved.
|
|
4
|
-
# License:: Ruby license.
|
|
5
|
-
|
|
6
|
-
require 'test/unit/assertion-failed-error'
|
|
7
|
-
require 'test/unit/util/backtracefilter'
|
|
8
|
-
require 'test/unit/util/method-owner-finder'
|
|
9
|
-
require 'test/unit/diff'
|
|
10
|
-
|
|
11
|
-
begin
|
|
12
|
-
require 'power_assert'
|
|
13
|
-
rescue LoadError, SyntaxError
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
module Test
|
|
17
|
-
module Unit
|
|
18
|
-
|
|
19
|
-
##
|
|
20
|
-
# Test::Unit::Assertions contains the standard Test::Unit assertions.
|
|
21
|
-
# Assertions is included in Test::Unit::TestCase.
|
|
22
|
-
#
|
|
23
|
-
# To include it in your own code and use its functionality, you simply
|
|
24
|
-
# need to rescue Test::Unit::AssertionFailedError. Additionally you may
|
|
25
|
-
# override add_assertion to get notified whenever an assertion is made.
|
|
26
|
-
#
|
|
27
|
-
# Notes:
|
|
28
|
-
#
|
|
29
|
-
# * The message to each assertion, if given, will be propagated with the
|
|
30
|
-
# failure.
|
|
31
|
-
# * It is easy to add your own assertions based on assert_block().
|
|
32
|
-
#
|
|
33
|
-
# @example Example Custom Assertion
|
|
34
|
-
#
|
|
35
|
-
# def deny(boolean, message=nil)
|
|
36
|
-
# message = build_message(message, '<?> is not false or nil.', boolean)
|
|
37
|
-
# assert_block(message) do
|
|
38
|
-
# not boolean
|
|
39
|
-
# end
|
|
40
|
-
# end
|
|
41
|
-
|
|
42
|
-
module Assertions
|
|
43
|
-
|
|
44
|
-
##
|
|
45
|
-
# The assertion upon which all other assertions are based. Passes if the
|
|
46
|
-
# block yields true.
|
|
47
|
-
#
|
|
48
|
-
# @example
|
|
49
|
-
# assert_block "Couldn't do the thing" do
|
|
50
|
-
# do_the_thing
|
|
51
|
-
# end
|
|
52
|
-
def assert_block(message="assert_block failed.")
|
|
53
|
-
_wrap_assertion do
|
|
54
|
-
if (! yield)
|
|
55
|
-
options = {}
|
|
56
|
-
if message.respond_to?(:user_message)
|
|
57
|
-
options[:user_message] = message.user_message
|
|
58
|
-
end
|
|
59
|
-
raise AssertionFailedError.new(message.to_s, options)
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
# @private
|
|
65
|
-
NOT_SPECIFIED = Object.new
|
|
66
|
-
|
|
67
|
-
# @overload assert(object, message=nil)
|
|
68
|
-
#
|
|
69
|
-
# Asserts that `object` is not false nor nil.
|
|
70
|
-
#
|
|
71
|
-
# Normally, you don't need to use this assertion. Use more
|
|
72
|
-
# specific assertions such as #assert_equal and
|
|
73
|
-
# #assert_include.
|
|
74
|
-
#
|
|
75
|
-
# @example Pass patterns
|
|
76
|
-
# assert(true) # => pass
|
|
77
|
-
# assert([1, 2].include?(1)) # => pass
|
|
78
|
-
#
|
|
79
|
-
# @example Failure patterns
|
|
80
|
-
# assert(nil) # => failure
|
|
81
|
-
# assert(false) # => failure
|
|
82
|
-
# assert([1, 2].include?(5)) # => failure
|
|
83
|
-
#
|
|
84
|
-
# @param [Object] object The check target.
|
|
85
|
-
# @param [String] message The additional user message. It is
|
|
86
|
-
# showed when the assertion is failed.
|
|
87
|
-
# @return [void]
|
|
88
|
-
#
|
|
89
|
-
# @overload assert(message=nil) {}
|
|
90
|
-
#
|
|
91
|
-
# Asserts that the givens block returns not false nor nil.
|
|
92
|
-
#
|
|
93
|
-
# This style uses Power Assert. It means that you can see each
|
|
94
|
-
# object values in method chains on failure. See the following
|
|
95
|
-
# example about Power Assert.
|
|
96
|
-
#
|
|
97
|
-
# @example Power Assert
|
|
98
|
-
# coins = [1, 5, 50]
|
|
99
|
-
# target_coin = 10
|
|
100
|
-
# assert do
|
|
101
|
-
# coins.include?(target_coin)
|
|
102
|
-
# end
|
|
103
|
-
# # =>
|
|
104
|
-
# # coins.include?(target_coin)
|
|
105
|
-
# # | | |
|
|
106
|
-
# # | | 10
|
|
107
|
-
# # | false
|
|
108
|
-
# # [1, 5, 50]
|
|
109
|
-
#
|
|
110
|
-
# We recommend you to use Power Assert for predicate method
|
|
111
|
-
# checks rather than existing assertions such as
|
|
112
|
-
# #assert_include and #assert_predicate. Power Assert shows
|
|
113
|
-
# useful message for debugging.
|
|
114
|
-
#
|
|
115
|
-
# We don't recommend you use Power Assert for equality
|
|
116
|
-
# check. You should use #assert_equal for the case. Because
|
|
117
|
-
# #assert_equal shows more useful message for debugging.
|
|
118
|
-
#
|
|
119
|
-
# @example Pass patterns
|
|
120
|
-
# assert {true} # => pass
|
|
121
|
-
# assert {[1, 2].include?(1)} # => pass
|
|
122
|
-
#
|
|
123
|
-
# @example Failure patterns
|
|
124
|
-
# assert {nil} # => failure
|
|
125
|
-
# assert {false} # => failure
|
|
126
|
-
# assert {[1, 2].include?(5)} # => failure
|
|
127
|
-
#
|
|
128
|
-
# @param [String] message The additional user message. It is
|
|
129
|
-
# showed when the assertion is failed.
|
|
130
|
-
# @yield [] Given no parameters to the block.
|
|
131
|
-
# @yieldreturn [Object] The checked object.
|
|
132
|
-
# @return [void]
|
|
133
|
-
def assert(object=NOT_SPECIFIED, message=nil, &block)
|
|
134
|
-
_wrap_assertion do
|
|
135
|
-
have_object = !NOT_SPECIFIED.equal?(object)
|
|
136
|
-
if block
|
|
137
|
-
message = object if have_object
|
|
138
|
-
if defined?(PowerAssert)
|
|
139
|
-
PowerAssert.start(block, :assertion_method => __callee__) do |pa|
|
|
140
|
-
pa_message = AssertionMessage.delayed_literal(&pa.message_proc)
|
|
141
|
-
assertion_message = build_message(message, "?", pa_message)
|
|
142
|
-
assert_block(assertion_message) do
|
|
143
|
-
pa.yield
|
|
144
|
-
end
|
|
145
|
-
end
|
|
146
|
-
else
|
|
147
|
-
assert(yield, message)
|
|
148
|
-
end
|
|
149
|
-
else
|
|
150
|
-
unless have_object
|
|
151
|
-
raise ArgumentError, "wrong number of arguments (0 for 1..2)"
|
|
152
|
-
end
|
|
153
|
-
assertion_message = nil
|
|
154
|
-
case message
|
|
155
|
-
when nil, String, Proc
|
|
156
|
-
when AssertionMessage
|
|
157
|
-
assertion_message = message
|
|
158
|
-
else
|
|
159
|
-
error_message = "assertion message must be String, Proc or "
|
|
160
|
-
error_message += "#{AssertionMessage}: "
|
|
161
|
-
error_message += "<#{message.inspect}>(<#{message.class}>)"
|
|
162
|
-
raise ArgumentError, error_message, filter_backtrace(caller)
|
|
163
|
-
end
|
|
164
|
-
assertion_message ||= build_message(message,
|
|
165
|
-
"<?> is not true.",
|
|
166
|
-
object)
|
|
167
|
-
assert_block(assertion_message) do
|
|
168
|
-
object
|
|
169
|
-
end
|
|
170
|
-
end
|
|
171
|
-
end
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
# Asserts that `object` is false or nil.
|
|
175
|
-
#
|
|
176
|
-
# @note Just for minitest compatibility. :<
|
|
177
|
-
#
|
|
178
|
-
# @param [Object] object The object to be asserted.
|
|
179
|
-
# @return [void]
|
|
180
|
-
#
|
|
181
|
-
# @example Pass patterns
|
|
182
|
-
# refute(false) # => pass
|
|
183
|
-
# refute(nil) # => pass
|
|
184
|
-
#
|
|
185
|
-
# @example Failure patterns
|
|
186
|
-
# refute(true) # => failure
|
|
187
|
-
# refute("string") # => failure
|
|
188
|
-
#
|
|
189
|
-
# @since 2.5.3
|
|
190
|
-
def refute(object, message=nil)
|
|
191
|
-
_wrap_assertion do
|
|
192
|
-
assertion_message = nil
|
|
193
|
-
case message
|
|
194
|
-
when nil, String, Proc
|
|
195
|
-
when AssertionMessage
|
|
196
|
-
assertion_message = message
|
|
197
|
-
else
|
|
198
|
-
error_message = "assertion message must be String, Proc or "
|
|
199
|
-
error_message += "#{AssertionMessage}: "
|
|
200
|
-
error_message += "<#{message.inspect}>(<#{message.class}>)"
|
|
201
|
-
raise ArgumentError, error_message, filter_backtrace(caller)
|
|
202
|
-
end
|
|
203
|
-
assert_block("refute should not be called with a block.") do
|
|
204
|
-
!block_given?
|
|
205
|
-
end
|
|
206
|
-
assertion_message ||= build_message(message,
|
|
207
|
-
"<?> is neither nil or false.",
|
|
208
|
-
object)
|
|
209
|
-
assert_block(assertion_message) do
|
|
210
|
-
not object
|
|
211
|
-
end
|
|
212
|
-
end
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
##
|
|
216
|
-
# Passes if `expected` == `actual`.
|
|
217
|
-
#
|
|
218
|
-
# Note that the ordering of arguments is important, since a helpful
|
|
219
|
-
# error message is generated when this one fails that tells you the
|
|
220
|
-
# values of expected and actual.
|
|
221
|
-
#
|
|
222
|
-
# @example
|
|
223
|
-
# assert_equal 'MY STRING', 'my string'.upcase
|
|
224
|
-
def assert_equal(expected, actual, message=nil)
|
|
225
|
-
diff = AssertionMessage.delayed_diff(expected, actual)
|
|
226
|
-
if expected.respond_to?(:encoding) and
|
|
227
|
-
actual.respond_to?(:encoding) and
|
|
228
|
-
expected.encoding != actual.encoding
|
|
229
|
-
format = <<EOT
|
|
230
|
-
<?>(?) expected but was
|
|
231
|
-
<?>(?).?
|
|
232
|
-
EOT
|
|
233
|
-
full_message = build_message(message, format,
|
|
234
|
-
expected, expected.encoding.name,
|
|
235
|
-
actual, actual.encoding.name,
|
|
236
|
-
diff)
|
|
237
|
-
else
|
|
238
|
-
full_message = build_message(message, <<EOT, expected, actual, diff)
|
|
239
|
-
<?> expected but was
|
|
240
|
-
<?>.?
|
|
241
|
-
EOT
|
|
242
|
-
end
|
|
243
|
-
begin
|
|
244
|
-
assert_block(full_message) { expected == actual }
|
|
245
|
-
rescue AssertionFailedError => failure
|
|
246
|
-
_set_failed_information(failure, expected, actual)
|
|
247
|
-
raise failure # For JRuby. :<
|
|
248
|
-
end
|
|
249
|
-
end
|
|
250
|
-
|
|
251
|
-
##
|
|
252
|
-
# Passes if the block raises one of the expected
|
|
253
|
-
# exceptions. When an expected exception is an Exception
|
|
254
|
-
# object, passes if expected_exception == actual_exception.
|
|
255
|
-
#
|
|
256
|
-
# @example
|
|
257
|
-
# assert_raise(RuntimeError, LoadError) do
|
|
258
|
-
# raise 'Boom!!!'
|
|
259
|
-
# end # -> pass
|
|
260
|
-
#
|
|
261
|
-
# assert_raise do
|
|
262
|
-
# raise Exception, 'Any exception should be raised!!!'
|
|
263
|
-
# end # -> pass
|
|
264
|
-
#
|
|
265
|
-
# assert_raise(RuntimeError.new("XXX")) {raise "XXX"} # -> pass
|
|
266
|
-
# assert_raise(MyError.new("XXX")) {raise "XXX"} # -> fail
|
|
267
|
-
# assert_raise(RuntimeError.new("ZZZ")) {raise "XXX"} # -> fail
|
|
268
|
-
def assert_raise(*args, &block)
|
|
269
|
-
assert_expected_exception = Proc.new do |*_args|
|
|
270
|
-
message, assert_exception_helper, actual_exception = _args
|
|
271
|
-
expected = assert_exception_helper.expected_exceptions
|
|
272
|
-
diff = AssertionMessage.delayed_diff(expected, actual_exception)
|
|
273
|
-
full_message = build_message(message,
|
|
274
|
-
"<?> exception expected but was\n<?>.?",
|
|
275
|
-
expected, actual_exception, diff)
|
|
276
|
-
begin
|
|
277
|
-
assert_block(full_message) do
|
|
278
|
-
expected == [] or
|
|
279
|
-
assert_exception_helper.expected?(actual_exception)
|
|
280
|
-
end
|
|
281
|
-
rescue AssertionFailedError => failure
|
|
282
|
-
_set_failed_information(failure, expected, actual_exception)
|
|
283
|
-
raise failure # For JRuby. :<
|
|
284
|
-
end
|
|
285
|
-
end
|
|
286
|
-
_assert_raise(assert_expected_exception, *args, &block)
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
# Just for minitest compatibility. :<
|
|
290
|
-
alias_method :assert_raises, :assert_raise
|
|
291
|
-
|
|
292
|
-
##
|
|
293
|
-
# Passes if the block raises one of the given
|
|
294
|
-
# exceptions or sub exceptions of the given exceptions.
|
|
295
|
-
#
|
|
296
|
-
# @example
|
|
297
|
-
# assert_raise_kind_of(SystemCallError) do
|
|
298
|
-
# raise Errno::EACCES
|
|
299
|
-
# end
|
|
300
|
-
def assert_raise_kind_of(*args, &block)
|
|
301
|
-
assert_expected_exception = Proc.new do |*_args|
|
|
302
|
-
message, assert_exception_helper, actual_exception = _args
|
|
303
|
-
expected = assert_exception_helper.expected_exceptions
|
|
304
|
-
full_message = build_message(message,
|
|
305
|
-
"<?> family exception expected " +
|
|
306
|
-
"but was\n<?>.",
|
|
307
|
-
expected, actual_exception)
|
|
308
|
-
assert_block(full_message) do
|
|
309
|
-
assert_exception_helper.expected?(actual_exception, :kind_of?)
|
|
310
|
-
end
|
|
311
|
-
end
|
|
312
|
-
_assert_raise(assert_expected_exception, *args, &block)
|
|
313
|
-
end
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
##
|
|
317
|
-
# Passes if `object`.instance_of?(`klass`). When `klass` is
|
|
318
|
-
# an array of classes, it passes if any class
|
|
319
|
-
# satisfies +object.instance_of?(class).
|
|
320
|
-
#
|
|
321
|
-
# @example
|
|
322
|
-
# assert_instance_of(String, 'foo') # -> pass
|
|
323
|
-
# assert_instance_of([Fixnum, NilClass], 100) # -> pass
|
|
324
|
-
# assert_instance_of([Numeric, NilClass], 100) # -> fail
|
|
325
|
-
def assert_instance_of(klass, object, message=nil)
|
|
326
|
-
_wrap_assertion do
|
|
327
|
-
if klass.is_a?(Array)
|
|
328
|
-
klasses = klass
|
|
329
|
-
else
|
|
330
|
-
klasses = [klass]
|
|
331
|
-
end
|
|
332
|
-
assert_block("The first parameter to assert_instance_of should be " +
|
|
333
|
-
"a Class or an Array of Class.") do
|
|
334
|
-
klasses.all? {|k| k.is_a?(Class)}
|
|
335
|
-
end
|
|
336
|
-
klass_message = AssertionMessage.maybe_container(klass) do |value|
|
|
337
|
-
"<#{value}>"
|
|
338
|
-
end
|
|
339
|
-
full_message = build_message(message, <<EOT, object, klass_message, object.class)
|
|
340
|
-
<?> was expected to be instance_of\\?
|
|
341
|
-
? but was
|
|
342
|
-
<?>.
|
|
343
|
-
EOT
|
|
344
|
-
assert_block(full_message) do
|
|
345
|
-
klasses.any? {|k| object.instance_of?(k)}
|
|
346
|
-
end
|
|
347
|
-
end
|
|
348
|
-
end
|
|
349
|
-
|
|
350
|
-
##
|
|
351
|
-
# Passes if `object`.instance_of?(`klass`) does not hold.
|
|
352
|
-
# When `klass` is an array of classes, it passes if no class
|
|
353
|
-
# satisfies +object.instance_of?(class).
|
|
354
|
-
#
|
|
355
|
-
# @example
|
|
356
|
-
# assert_not_instance_of(String, 100) # -> pass
|
|
357
|
-
# assert_not_instance_of([Fixnum, NilClass], '100') # -> pass
|
|
358
|
-
# assert_not_instance_of([Numeric, NilClass], 100) # -> fail
|
|
359
|
-
#
|
|
360
|
-
# @since 3.0.0
|
|
361
|
-
def assert_not_instance_of(klass, object, message=nil)
|
|
362
|
-
_wrap_assertion do
|
|
363
|
-
if klass.is_a?(Array)
|
|
364
|
-
klasses = klass
|
|
365
|
-
else
|
|
366
|
-
klasses = [klass]
|
|
367
|
-
end
|
|
368
|
-
assert_block("The first parameter to assert_not_instance_of should be " +
|
|
369
|
-
"a Class or an Array of Class.") do
|
|
370
|
-
klasses.all? {|k| k.is_a?(Class)}
|
|
371
|
-
end
|
|
372
|
-
klass_message = AssertionMessage.maybe_container(klass) do |value|
|
|
373
|
-
"<#{value}>"
|
|
374
|
-
end
|
|
375
|
-
full_message = build_message(message,
|
|
376
|
-
"<?> was expected to not be instance_of\\?\n" +
|
|
377
|
-
"? but was.",
|
|
378
|
-
object,
|
|
379
|
-
klass_message)
|
|
380
|
-
assert_block(full_message) do
|
|
381
|
-
klasses.none? {|k| object.instance_of?(k)}
|
|
382
|
-
end
|
|
383
|
-
end
|
|
384
|
-
end
|
|
385
|
-
|
|
386
|
-
# Just for minitest compatibility. :<
|
|
387
|
-
#
|
|
388
|
-
# @since 3.0.0
|
|
389
|
-
alias_method :refute_instance_of, :assert_not_instance_of
|
|
390
|
-
|
|
391
|
-
##
|
|
392
|
-
# Passes if `object` is nil.
|
|
393
|
-
#
|
|
394
|
-
# @example
|
|
395
|
-
# assert_nil [1, 2].uniq!
|
|
396
|
-
def assert_nil(object, message=nil)
|
|
397
|
-
full_message = build_message(message, <<EOT, object)
|
|
398
|
-
<?> was expected to be nil.
|
|
399
|
-
EOT
|
|
400
|
-
assert_block(full_message) { object.nil? }
|
|
401
|
-
end
|
|
402
|
-
|
|
403
|
-
##
|
|
404
|
-
# Passes if `object`.kind_of?(`klass`). When `klass` is
|
|
405
|
-
# an array of classes or modules, it passes if any
|
|
406
|
-
# class or module satisfies +object.kind_of?(class_or_module).
|
|
407
|
-
#
|
|
408
|
-
# @example
|
|
409
|
-
# assert_kind_of(Object, 'foo') # -> pass
|
|
410
|
-
# assert_kind_of([Fixnum, NilClass], 100) # -> pass
|
|
411
|
-
# assert_kind_of([Fixnum, NilClass], "string") # -> fail
|
|
412
|
-
def assert_kind_of(klass, object, message=nil)
|
|
413
|
-
_wrap_assertion do
|
|
414
|
-
if klass.is_a?(Array)
|
|
415
|
-
klasses = klass
|
|
416
|
-
else
|
|
417
|
-
klasses = [klass]
|
|
418
|
-
end
|
|
419
|
-
assert_block("The first parameter to assert_kind_of should be " +
|
|
420
|
-
"a kind_of Module or an Array of a kind_of Module.") do
|
|
421
|
-
klasses.all? {|k| k.kind_of?(Module)}
|
|
422
|
-
end
|
|
423
|
-
klass_message = AssertionMessage.maybe_container(klass) do |value|
|
|
424
|
-
"<#{value}>"
|
|
425
|
-
end
|
|
426
|
-
full_message = build_message(message,
|
|
427
|
-
"<?> was expected to be kind_of\\?\n" +
|
|
428
|
-
"? but was\n" +
|
|
429
|
-
"<?>.",
|
|
430
|
-
object,
|
|
431
|
-
klass_message,
|
|
432
|
-
object.class)
|
|
433
|
-
assert_block(full_message) do
|
|
434
|
-
klasses.any? {|k| object.kind_of?(k)}
|
|
435
|
-
end
|
|
436
|
-
end
|
|
437
|
-
end
|
|
438
|
-
|
|
439
|
-
##
|
|
440
|
-
# Passes if `object`.kind_of?(`klass`) does not hold.
|
|
441
|
-
# When `klass` is an array of classes or modules, it passes only if all
|
|
442
|
-
# classes (and modules) do not satisfy +object.kind_of?(class_or_module).
|
|
443
|
-
#
|
|
444
|
-
# @example
|
|
445
|
-
# assert_not_kind_of(Fixnum, 'foo') # -> pass
|
|
446
|
-
# assert_not_kind_of([Fixnum, NilClass], '0') # -> pass
|
|
447
|
-
# assert_not_kind_of([Fixnum, NilClass], 100) # -> fail
|
|
448
|
-
#
|
|
449
|
-
# @since 3.0.0
|
|
450
|
-
def assert_not_kind_of(klass, object, message=nil)
|
|
451
|
-
_wrap_assertion do
|
|
452
|
-
if klass.is_a?(Array)
|
|
453
|
-
klasses = klass
|
|
454
|
-
else
|
|
455
|
-
klasses = [klass]
|
|
456
|
-
end
|
|
457
|
-
assert_block("The first parameter to assert_not_kind_of should be " +
|
|
458
|
-
"a kind_of Module or an Array of a kind_of Module.") do
|
|
459
|
-
klasses.all? {|k| k.kind_of?(Module)}
|
|
460
|
-
end
|
|
461
|
-
klass_message = AssertionMessage.maybe_container(klass) do |value|
|
|
462
|
-
"<#{value}>"
|
|
463
|
-
end
|
|
464
|
-
full_message = build_message(message,
|
|
465
|
-
"<?> was expected to not be kind_of\\?\n" +
|
|
466
|
-
"? but was.",
|
|
467
|
-
object,
|
|
468
|
-
klass_message)
|
|
469
|
-
assert_block(full_message) do
|
|
470
|
-
klasses.none? {|k| object.kind_of?(k)}
|
|
471
|
-
end
|
|
472
|
-
end
|
|
473
|
-
end
|
|
474
|
-
|
|
475
|
-
# Just for minitest compatibility. :<
|
|
476
|
-
#
|
|
477
|
-
# @since 3.0.0
|
|
478
|
-
alias_method :refute_kind_of, :assert_not_kind_of
|
|
479
|
-
|
|
480
|
-
##
|
|
481
|
-
# Passes if `object` .respond_to? `method`
|
|
482
|
-
#
|
|
483
|
-
# @example
|
|
484
|
-
# assert_respond_to 'bugbear', :slice
|
|
485
|
-
def assert_respond_to(object, method, message=nil)
|
|
486
|
-
_wrap_assertion do
|
|
487
|
-
full_message = build_message(message,
|
|
488
|
-
"<?>.kind_of\\?(Symbol) or\n" +
|
|
489
|
-
"<?>.respond_to\\?(:to_str) expected",
|
|
490
|
-
method, method)
|
|
491
|
-
assert_block(full_message) do
|
|
492
|
-
method.kind_of?(Symbol) or method.respond_to?(:to_str)
|
|
493
|
-
end
|
|
494
|
-
full_message = build_message(message,
|
|
495
|
-
"<?>.respond_to\\?(?) expected\n" +
|
|
496
|
-
"(Class: <?>)",
|
|
497
|
-
object, method, object.class)
|
|
498
|
-
assert_block(full_message) {object.respond_to?(method)}
|
|
499
|
-
end
|
|
500
|
-
end
|
|
501
|
-
|
|
502
|
-
##
|
|
503
|
-
# Passes if `object` does not .respond_to? `method`.
|
|
504
|
-
#
|
|
505
|
-
# @example
|
|
506
|
-
# assert_not_respond_to('bugbear', :nonexistence) # -> pass
|
|
507
|
-
# assert_not_respond_to('bugbear', :size) # -> fail
|
|
508
|
-
def assert_not_respond_to(object, method, message=nil)
|
|
509
|
-
_wrap_assertion do
|
|
510
|
-
full_message = build_message(message,
|
|
511
|
-
"<?>.kind_of\\?(Symbol) or\n" +
|
|
512
|
-
"<?>.respond_to\\?(:to_str) expected",
|
|
513
|
-
method, method)
|
|
514
|
-
assert_block(full_message) do
|
|
515
|
-
method.kind_of?(Symbol) or method.respond_to?(:to_str)
|
|
516
|
-
end
|
|
517
|
-
full_message = build_message(message,
|
|
518
|
-
"!<?>.respond_to\\?(?) expected\n" +
|
|
519
|
-
"(Class: <?>)",
|
|
520
|
-
object, method, object.class)
|
|
521
|
-
assert_block(full_message) {!object.respond_to?(method)}
|
|
522
|
-
end
|
|
523
|
-
end
|
|
524
|
-
|
|
525
|
-
# Just for minitest compatibility. :<
|
|
526
|
-
#
|
|
527
|
-
# @since 2.5.3
|
|
528
|
-
alias_method :refute_respond_to, :assert_not_respond_to
|
|
529
|
-
|
|
530
|
-
##
|
|
531
|
-
# Passes if `pattern` =~ `string`.
|
|
532
|
-
#
|
|
533
|
-
# @example
|
|
534
|
-
# assert_match(/\d+/, 'five, 6, seven')
|
|
535
|
-
def assert_match(pattern, string, message=nil)
|
|
536
|
-
_wrap_assertion do
|
|
537
|
-
pattern = Regexp.new(Regexp.escape(pattern)) if pattern.is_a?(String)
|
|
538
|
-
full_message = build_message(message,
|
|
539
|
-
"<?> was expected to be =~\n<?>.",
|
|
540
|
-
pattern, string)
|
|
541
|
-
assert_block(full_message) { pattern =~ string }
|
|
542
|
-
end
|
|
543
|
-
end
|
|
544
|
-
|
|
545
|
-
##
|
|
546
|
-
# Passes if `actual` .equal? `expected` (i.e. they are the same
|
|
547
|
-
# instance).
|
|
548
|
-
#
|
|
549
|
-
# @example
|
|
550
|
-
# o = Object.new
|
|
551
|
-
# assert_same o, o
|
|
552
|
-
def assert_same(expected, actual, message=nil)
|
|
553
|
-
full_message = build_message(message, <<EOT, expected, expected.__id__, actual, actual.__id__)
|
|
554
|
-
<?>
|
|
555
|
-
with id <?> was expected to be equal\\? to
|
|
556
|
-
<?>
|
|
557
|
-
with id <?>.
|
|
558
|
-
EOT
|
|
559
|
-
assert_block(full_message) { actual.equal?(expected) }
|
|
560
|
-
end
|
|
561
|
-
|
|
562
|
-
##
|
|
563
|
-
# Compares the `object1` with `object2` using `operator`.
|
|
564
|
-
#
|
|
565
|
-
# Passes if object1.__send__(operator, object2) is true.
|
|
566
|
-
#
|
|
567
|
-
# @example
|
|
568
|
-
# assert_operator 5, :>=, 4
|
|
569
|
-
def assert_operator(object1, operator, object2, message=nil)
|
|
570
|
-
_wrap_assertion do
|
|
571
|
-
full_message = build_message(nil, "<?>\ngiven as the operator for #assert_operator must be a Symbol or #respond_to\\?(:to_str).", operator)
|
|
572
|
-
assert_block(full_message){operator.kind_of?(Symbol) || operator.respond_to?(:to_str)}
|
|
573
|
-
full_message = build_message(message, <<EOT, object1, AssertionMessage.literal(operator), object2)
|
|
574
|
-
<?> was expected to be
|
|
575
|
-
?
|
|
576
|
-
<?>.
|
|
577
|
-
EOT
|
|
578
|
-
assert_block(full_message) { object1.__send__(operator, object2) }
|
|
579
|
-
end
|
|
580
|
-
end
|
|
581
|
-
|
|
582
|
-
##
|
|
583
|
-
# Compares the `object1` with `object2` using `operator`.
|
|
584
|
-
#
|
|
585
|
-
# Passes if object1.__send__(operator, object2) is not true.
|
|
586
|
-
#
|
|
587
|
-
# @example
|
|
588
|
-
# assert_not_operator(5, :<, 4) # => pass
|
|
589
|
-
# assert_not_operator(5, :>, 4) # => fail
|
|
590
|
-
#
|
|
591
|
-
# @since 3.0.0
|
|
592
|
-
def assert_not_operator(object1, operator, object2, message=nil)
|
|
593
|
-
_wrap_assertion do
|
|
594
|
-
full_message = build_message(nil, "<?>\ngiven as the operator for #assert_not_operator must be a Symbol or #respond_to\\?(:to_str).", operator)
|
|
595
|
-
assert_block(full_message){operator.kind_of?(Symbol) || operator.respond_to?(:to_str)}
|
|
596
|
-
full_message = build_message(message, <<EOT, object1, AssertionMessage.literal(operator), object2)
|
|
597
|
-
<?> was expected to not be
|
|
598
|
-
?
|
|
599
|
-
<?>.
|
|
600
|
-
EOT
|
|
601
|
-
assert_block(full_message) { ! object1.__send__(operator, object2) }
|
|
602
|
-
end
|
|
603
|
-
end
|
|
604
|
-
|
|
605
|
-
# Just for minitest compatibility. :<
|
|
606
|
-
#
|
|
607
|
-
# @since 3.0.0
|
|
608
|
-
alias_method :refute_operator, :assert_not_operator
|
|
609
|
-
|
|
610
|
-
##
|
|
611
|
-
# Passes if block does not raise an exception.
|
|
612
|
-
#
|
|
613
|
-
# @example
|
|
614
|
-
# assert_nothing_raised do
|
|
615
|
-
# [1, 2].uniq
|
|
616
|
-
# end
|
|
617
|
-
def assert_nothing_raised(*args)
|
|
618
|
-
_wrap_assertion do
|
|
619
|
-
if args.last.is_a?(String)
|
|
620
|
-
message = args.pop
|
|
621
|
-
else
|
|
622
|
-
message = ""
|
|
623
|
-
end
|
|
624
|
-
|
|
625
|
-
assert_exception_helper = AssertExceptionHelper.new(self, args)
|
|
626
|
-
begin
|
|
627
|
-
yield
|
|
628
|
-
rescue Exception => e
|
|
629
|
-
if ((args.empty? && !e.instance_of?(AssertionFailedError)) ||
|
|
630
|
-
assert_exception_helper.expected?(e))
|
|
631
|
-
failure_message = build_message(message, "Exception raised:\n?", e)
|
|
632
|
-
assert_block(failure_message) {false}
|
|
633
|
-
else
|
|
634
|
-
raise
|
|
635
|
-
end
|
|
636
|
-
end
|
|
637
|
-
end
|
|
638
|
-
end
|
|
639
|
-
|
|
640
|
-
##
|
|
641
|
-
# Flunk always fails.
|
|
642
|
-
#
|
|
643
|
-
# @example
|
|
644
|
-
# flunk 'Not done testing yet.'
|
|
645
|
-
def flunk(message="Flunked")
|
|
646
|
-
assert_block(build_message(message)){false}
|
|
647
|
-
end
|
|
648
|
-
|
|
649
|
-
##
|
|
650
|
-
# Passes if ! `actual` .equal? `expected`
|
|
651
|
-
#
|
|
652
|
-
# @example
|
|
653
|
-
# assert_not_same Object.new, Object.new
|
|
654
|
-
def assert_not_same(expected, actual, message=nil)
|
|
655
|
-
full_message = build_message(message, <<EOT, expected, expected.__id__, actual, actual.__id__)
|
|
656
|
-
<?>
|
|
657
|
-
with id <?> was expected to not be equal\\? to
|
|
658
|
-
<?>
|
|
659
|
-
with id <?>.
|
|
660
|
-
EOT
|
|
661
|
-
assert_block(full_message) { !actual.equal?(expected) }
|
|
662
|
-
end
|
|
663
|
-
|
|
664
|
-
# Just for minitest compatibility. :<
|
|
665
|
-
#
|
|
666
|
-
# @since 2.5.3
|
|
667
|
-
alias_method :refute_same, :assert_not_same
|
|
668
|
-
|
|
669
|
-
##
|
|
670
|
-
# Passes if `expected` != `actual`
|
|
671
|
-
#
|
|
672
|
-
# @example
|
|
673
|
-
# assert_not_equal 'some string', 5
|
|
674
|
-
def assert_not_equal(expected, actual, message=nil)
|
|
675
|
-
full_message = build_message(message,
|
|
676
|
-
"<?> was expected to be != to\n<?>.",
|
|
677
|
-
expected, actual)
|
|
678
|
-
assert_block(full_message) { expected != actual }
|
|
679
|
-
end
|
|
680
|
-
|
|
681
|
-
# Just for minitest compatibility. :<
|
|
682
|
-
#
|
|
683
|
-
# @since 2.5.3
|
|
684
|
-
alias_method :refute_equal, :assert_not_equal
|
|
685
|
-
|
|
686
|
-
##
|
|
687
|
-
# Passes if ! `object` .nil?
|
|
688
|
-
#
|
|
689
|
-
# @example
|
|
690
|
-
# assert_not_nil '1 two 3'.sub!(/two/, '2')
|
|
691
|
-
def assert_not_nil(object, message=nil)
|
|
692
|
-
full_message = build_message(message,
|
|
693
|
-
"<?> was expected to not be nil.",
|
|
694
|
-
object)
|
|
695
|
-
assert_block(full_message){!object.nil?}
|
|
696
|
-
end
|
|
697
|
-
|
|
698
|
-
# Just for minitest compatibility. :<
|
|
699
|
-
#
|
|
700
|
-
# @since 2.5.3
|
|
701
|
-
alias_method :refute_nil, :assert_not_nil
|
|
702
|
-
|
|
703
|
-
##
|
|
704
|
-
# Passes if `regexp` !~ `string`
|
|
705
|
-
#
|
|
706
|
-
# @example
|
|
707
|
-
# assert_not_match(/two/, 'one 2 three') # -> pass
|
|
708
|
-
# assert_not_match(/three/, 'one 2 three') # -> fail
|
|
709
|
-
def assert_not_match(pattern, string, message=nil)
|
|
710
|
-
_wrap_assertion do
|
|
711
|
-
pattern = Regexp.new(Regexp.escape(pattern)) if pattern.is_a?(String)
|
|
712
|
-
full_message = build_message(message,
|
|
713
|
-
"<?> was expected to not match\n<?>.",
|
|
714
|
-
pattern, string)
|
|
715
|
-
assert_block(full_message) { pattern !~ string }
|
|
716
|
-
end
|
|
717
|
-
end
|
|
718
|
-
|
|
719
|
-
# Just for minitest compatibility. :<
|
|
720
|
-
#
|
|
721
|
-
# @since 2.5.3
|
|
722
|
-
alias_method :refute_match, :assert_not_match
|
|
723
|
-
|
|
724
|
-
##
|
|
725
|
-
# Deprecated. Use #assert_not_match instead.
|
|
726
|
-
#
|
|
727
|
-
# Passes if `regexp` !~ `string`
|
|
728
|
-
#
|
|
729
|
-
# @example
|
|
730
|
-
# assert_no_match(/two/, 'one 2 three') # -> pass
|
|
731
|
-
# assert_no_match(/three/, 'one 2 three') # -> fail
|
|
732
|
-
def assert_no_match(regexp, string, message="")
|
|
733
|
-
_wrap_assertion do
|
|
734
|
-
assert_instance_of(Regexp, regexp,
|
|
735
|
-
"The first argument to assert_no_match " +
|
|
736
|
-
"should be a Regexp.")
|
|
737
|
-
assert_not_match(regexp, string, message)
|
|
738
|
-
end
|
|
739
|
-
end
|
|
740
|
-
|
|
741
|
-
# @private
|
|
742
|
-
class ThrowTagExtractor
|
|
743
|
-
@@have_uncaught_throw_error = const_defined?(:UncaughtThrowError)
|
|
744
|
-
|
|
745
|
-
UncaughtThrowPatterns = {
|
|
746
|
-
NameError => /^uncaught throw `(.+)'$/,
|
|
747
|
-
ArgumentError => /^uncaught throw (`.+'|.+)$/,
|
|
748
|
-
ThreadError => /^uncaught throw `(.+)' in thread /,
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
def initialize(error)
|
|
752
|
-
@error = error
|
|
753
|
-
end
|
|
754
|
-
|
|
755
|
-
def extract_tag
|
|
756
|
-
tag = nil
|
|
757
|
-
if @@have_uncaught_throw_error
|
|
758
|
-
return nil unless @error.is_a?(UncaughtThrowError)
|
|
759
|
-
tag = @error.tag
|
|
760
|
-
else
|
|
761
|
-
pattern = UncaughtThrowPatterns[@error.class]
|
|
762
|
-
return nil if pattern.nil?
|
|
763
|
-
return nil unless pattern =~ @error.message
|
|
764
|
-
tag = $1
|
|
765
|
-
end
|
|
766
|
-
normalize_tag(tag)
|
|
767
|
-
end
|
|
768
|
-
|
|
769
|
-
private
|
|
770
|
-
def normalize_tag(tag)
|
|
771
|
-
case tag
|
|
772
|
-
when /\A:/
|
|
773
|
-
tag[1..-1].intern
|
|
774
|
-
when /\A`(.+)'\z/
|
|
775
|
-
$1.intern
|
|
776
|
-
when String
|
|
777
|
-
tag.intern
|
|
778
|
-
else
|
|
779
|
-
tag
|
|
780
|
-
end
|
|
781
|
-
end
|
|
782
|
-
end
|
|
783
|
-
|
|
784
|
-
##
|
|
785
|
-
# Passes if the block throws `expected_object`
|
|
786
|
-
#
|
|
787
|
-
# @example
|
|
788
|
-
# assert_throw(:done) do
|
|
789
|
-
# throw(:done)
|
|
790
|
-
# end
|
|
791
|
-
def assert_throw(expected_object, message=nil, &proc)
|
|
792
|
-
_wrap_assertion do
|
|
793
|
-
begin
|
|
794
|
-
catch([]) {}
|
|
795
|
-
rescue TypeError
|
|
796
|
-
assert_instance_of(Symbol, expected_object,
|
|
797
|
-
"assert_throws expects the symbol that should be thrown for its first argument")
|
|
798
|
-
end
|
|
799
|
-
assert_block("Should have passed a block to assert_throw.") do
|
|
800
|
-
block_given?
|
|
801
|
-
end
|
|
802
|
-
caught = true
|
|
803
|
-
begin
|
|
804
|
-
catch(expected_object) do
|
|
805
|
-
proc.call
|
|
806
|
-
caught = false
|
|
807
|
-
end
|
|
808
|
-
full_message = build_message(message,
|
|
809
|
-
"<?> should have been thrown.",
|
|
810
|
-
expected_object)
|
|
811
|
-
assert_block(full_message) {caught}
|
|
812
|
-
rescue => error
|
|
813
|
-
extractor = ThrowTagExtractor.new(error)
|
|
814
|
-
tag = extractor.extract_tag
|
|
815
|
-
raise if tag.nil?
|
|
816
|
-
full_message = build_message(message,
|
|
817
|
-
"<?> was expected to be thrown but\n" +
|
|
818
|
-
"<?> was thrown.",
|
|
819
|
-
expected_object, tag)
|
|
820
|
-
flunk(full_message)
|
|
821
|
-
end
|
|
822
|
-
end
|
|
823
|
-
end
|
|
824
|
-
|
|
825
|
-
# Just for minitest compatibility. :<
|
|
826
|
-
#
|
|
827
|
-
# @since 2.5.3
|
|
828
|
-
alias_method :assert_throws, :assert_throw
|
|
829
|
-
|
|
830
|
-
##
|
|
831
|
-
# Passes if block does not throw anything.
|
|
832
|
-
#
|
|
833
|
-
# @example
|
|
834
|
-
# assert_nothing_thrown do
|
|
835
|
-
# [1, 2].uniq
|
|
836
|
-
# end
|
|
837
|
-
def assert_nothing_thrown(message=nil, &proc)
|
|
838
|
-
_wrap_assertion do
|
|
839
|
-
assert(block_given?, "Should have passed a block to assert_nothing_thrown")
|
|
840
|
-
begin
|
|
841
|
-
proc.call
|
|
842
|
-
rescue => error
|
|
843
|
-
extractor = ThrowTagExtractor.new(error)
|
|
844
|
-
tag = extractor.extract_tag
|
|
845
|
-
raise if tag.nil?
|
|
846
|
-
full_message = build_message(message,
|
|
847
|
-
"<?> was thrown when nothing was expected",
|
|
848
|
-
tag)
|
|
849
|
-
flunk(full_message)
|
|
850
|
-
end
|
|
851
|
-
assert(true, "Expected nothing to be thrown")
|
|
852
|
-
end
|
|
853
|
-
end
|
|
854
|
-
|
|
855
|
-
##
|
|
856
|
-
# Passes if `expected_float` and `actual_float` are equal
|
|
857
|
-
# within `delta` tolerance.
|
|
858
|
-
#
|
|
859
|
-
# @example
|
|
860
|
-
# assert_in_delta 0.05, (50000.0 / 10**6), 0.00001
|
|
861
|
-
def assert_in_delta(expected_float, actual_float, delta=0.001, message="")
|
|
862
|
-
_wrap_assertion do
|
|
863
|
-
_assert_in_delta_validate_arguments(expected_float,
|
|
864
|
-
actual_float,
|
|
865
|
-
delta)
|
|
866
|
-
full_message = _assert_in_delta_message(expected_float,
|
|
867
|
-
actual_float,
|
|
868
|
-
delta,
|
|
869
|
-
message)
|
|
870
|
-
assert_block(full_message) do
|
|
871
|
-
(expected_float.to_f - actual_float.to_f).abs <= delta.to_f
|
|
872
|
-
end
|
|
873
|
-
end
|
|
874
|
-
end
|
|
875
|
-
|
|
876
|
-
##
|
|
877
|
-
# Passes if `expected_float` and `actual_float` are
|
|
878
|
-
# not equal within `delta` tolerance.
|
|
879
|
-
#
|
|
880
|
-
# @example
|
|
881
|
-
# assert_not_in_delta(0.05, (50000.0 / 10**6), 0.00002) # -> pass
|
|
882
|
-
# assert_not_in_delta(0.05, (50000.0 / 10**6), 0.00001) # -> fail
|
|
883
|
-
def assert_not_in_delta(expected_float, actual_float, delta=0.001, message="")
|
|
884
|
-
_wrap_assertion do
|
|
885
|
-
_assert_in_delta_validate_arguments(expected_float,
|
|
886
|
-
actual_float,
|
|
887
|
-
delta)
|
|
888
|
-
full_message = _assert_in_delta_message(expected_float,
|
|
889
|
-
actual_float,
|
|
890
|
-
delta,
|
|
891
|
-
message,
|
|
892
|
-
:negative_assertion => true)
|
|
893
|
-
assert_block(full_message) do
|
|
894
|
-
(expected_float.to_f - actual_float.to_f).abs > delta.to_f
|
|
895
|
-
end
|
|
896
|
-
end
|
|
897
|
-
end
|
|
898
|
-
|
|
899
|
-
# Just for minitest compatibility. :<
|
|
900
|
-
#
|
|
901
|
-
# @since 2.5.3
|
|
902
|
-
alias_method :refute_in_delta, :assert_not_in_delta
|
|
903
|
-
|
|
904
|
-
private
|
|
905
|
-
def _assert_in_delta_validate_arguments(expected_float,
|
|
906
|
-
actual_float,
|
|
907
|
-
delta)
|
|
908
|
-
{
|
|
909
|
-
expected_float => "first float",
|
|
910
|
-
actual_float => "second float",
|
|
911
|
-
delta => "delta"
|
|
912
|
-
}.each do |float, name|
|
|
913
|
-
assert_respond_to(float, :to_f,
|
|
914
|
-
"The arguments must respond to to_f; " +
|
|
915
|
-
"the #{name} did not")
|
|
916
|
-
end
|
|
917
|
-
delta = delta.to_f
|
|
918
|
-
assert_operator(delta, :>=, 0.0, "The delta should not be negative")
|
|
919
|
-
end
|
|
920
|
-
|
|
921
|
-
def _assert_in_delta_message(expected_float, actual_float, delta,
|
|
922
|
-
message, options={})
|
|
923
|
-
if options[:negative_assertion]
|
|
924
|
-
format = <<-EOT
|
|
925
|
-
<?> -/+ <?> was expected to not include
|
|
926
|
-
<?>.
|
|
927
|
-
EOT
|
|
928
|
-
else
|
|
929
|
-
format = <<-EOT
|
|
930
|
-
<?> -/+ <?> was expected to include
|
|
931
|
-
<?>.
|
|
932
|
-
EOT
|
|
933
|
-
end
|
|
934
|
-
arguments = [expected_float, delta, actual_float]
|
|
935
|
-
normalized_expected = expected_float.to_f
|
|
936
|
-
normalized_actual = actual_float.to_f
|
|
937
|
-
normalized_delta = delta.to_f
|
|
938
|
-
relation_format = nil
|
|
939
|
-
relation_arguments = nil
|
|
940
|
-
if normalized_actual < normalized_expected - normalized_delta
|
|
941
|
-
relation_format = "<<?> < <?>-<?>[?] <= <?>+<?>[?]>"
|
|
942
|
-
relation_arguments = [actual_float,
|
|
943
|
-
expected_float, delta,
|
|
944
|
-
normalized_expected - normalized_delta,
|
|
945
|
-
expected_float, delta,
|
|
946
|
-
normalized_expected + normalized_delta]
|
|
947
|
-
elsif normalized_actual <= normalized_expected + normalized_delta
|
|
948
|
-
relation_format = "<<?>-<?>[?] <= <?> <= <?>+<?>[?]>"
|
|
949
|
-
relation_arguments = [expected_float, delta,
|
|
950
|
-
normalized_expected - normalized_delta,
|
|
951
|
-
actual_float,
|
|
952
|
-
expected_float, delta,
|
|
953
|
-
normalized_expected + normalized_delta]
|
|
954
|
-
else
|
|
955
|
-
relation_format = "<<?>-<?>[?] <= <?>+<?>[?] < <?>>"
|
|
956
|
-
relation_arguments = [expected_float, delta,
|
|
957
|
-
normalized_expected - normalized_delta,
|
|
958
|
-
expected_float, delta,
|
|
959
|
-
normalized_expected + normalized_delta,
|
|
960
|
-
actual_float]
|
|
961
|
-
end
|
|
962
|
-
|
|
963
|
-
if relation_format
|
|
964
|
-
format += <<-EOT
|
|
965
|
-
|
|
966
|
-
Relation:
|
|
967
|
-
#{relation_format}
|
|
968
|
-
EOT
|
|
969
|
-
arguments.concat(relation_arguments)
|
|
970
|
-
end
|
|
971
|
-
|
|
972
|
-
build_message(message, format, *arguments)
|
|
973
|
-
end
|
|
974
|
-
|
|
975
|
-
public
|
|
976
|
-
##
|
|
977
|
-
# Passes if `expected_float` and `actual_float` are equal
|
|
978
|
-
# within `epsilon` relative error of `expected_float`.
|
|
979
|
-
#
|
|
980
|
-
# @example
|
|
981
|
-
# assert_in_epsilon(10000.0, 9900.0, 0.1) # -> pass
|
|
982
|
-
# assert_in_epsilon(10000.0, 9899.0, 0.1) # -> fail
|
|
983
|
-
def assert_in_epsilon(expected_float, actual_float, epsilon=0.001,
|
|
984
|
-
message="")
|
|
985
|
-
_wrap_assertion do
|
|
986
|
-
_assert_in_epsilon_validate_arguments(expected_float,
|
|
987
|
-
actual_float,
|
|
988
|
-
epsilon)
|
|
989
|
-
full_message = _assert_in_epsilon_message(expected_float,
|
|
990
|
-
actual_float,
|
|
991
|
-
epsilon,
|
|
992
|
-
message)
|
|
993
|
-
assert_block(full_message) do
|
|
994
|
-
normalized_expected_float = expected_float.to_f
|
|
995
|
-
if normalized_expected_float.zero?
|
|
996
|
-
delta = epsilon.to_f ** 2
|
|
997
|
-
else
|
|
998
|
-
delta = normalized_expected_float * epsilon.to_f
|
|
999
|
-
end
|
|
1000
|
-
delta = delta.abs
|
|
1001
|
-
(normalized_expected_float - actual_float.to_f).abs <= delta
|
|
1002
|
-
end
|
|
1003
|
-
end
|
|
1004
|
-
end
|
|
1005
|
-
|
|
1006
|
-
##
|
|
1007
|
-
# Passes if `expected_float` and `actual_float` are
|
|
1008
|
-
# not equal within `epsilon` relative error of
|
|
1009
|
-
# `expected_float`.
|
|
1010
|
-
#
|
|
1011
|
-
# @example
|
|
1012
|
-
# assert_not_in_epsilon(10000.0, 9900.0, 0.1) # -> fail
|
|
1013
|
-
# assert_not_in_epsilon(10000.0, 9899.0, 0.1) # -> pass
|
|
1014
|
-
def assert_not_in_epsilon(expected_float, actual_float, epsilon=0.001,
|
|
1015
|
-
message="")
|
|
1016
|
-
_wrap_assertion do
|
|
1017
|
-
_assert_in_epsilon_validate_arguments(expected_float,
|
|
1018
|
-
actual_float,
|
|
1019
|
-
epsilon)
|
|
1020
|
-
full_message = _assert_in_epsilon_message(expected_float,
|
|
1021
|
-
actual_float,
|
|
1022
|
-
epsilon,
|
|
1023
|
-
message,
|
|
1024
|
-
:negative_assertion => true)
|
|
1025
|
-
assert_block(full_message) do
|
|
1026
|
-
normalized_expected_float = expected_float.to_f
|
|
1027
|
-
delta = normalized_expected_float * epsilon.to_f
|
|
1028
|
-
(normalized_expected_float - actual_float.to_f).abs > delta
|
|
1029
|
-
end
|
|
1030
|
-
end
|
|
1031
|
-
end
|
|
1032
|
-
|
|
1033
|
-
# Just for minitest compatibility. :<
|
|
1034
|
-
#
|
|
1035
|
-
# @since 3.0.0
|
|
1036
|
-
alias_method :refute_in_epsilon, :assert_not_in_epsilon
|
|
1037
|
-
|
|
1038
|
-
private
|
|
1039
|
-
def _assert_in_epsilon_validate_arguments(expected_float,
|
|
1040
|
-
actual_float,
|
|
1041
|
-
epsilon)
|
|
1042
|
-
{
|
|
1043
|
-
expected_float => "first float",
|
|
1044
|
-
actual_float => "second float",
|
|
1045
|
-
epsilon => "epsilon"
|
|
1046
|
-
}.each do |float, name|
|
|
1047
|
-
assert_respond_to(float, :to_f,
|
|
1048
|
-
"The arguments must respond to to_f; " +
|
|
1049
|
-
"the #{name} did not")
|
|
1050
|
-
end
|
|
1051
|
-
epsilon = epsilon.to_f
|
|
1052
|
-
assert_operator(epsilon, :>=, 0.0, "The epsilon should not be negative")
|
|
1053
|
-
end
|
|
1054
|
-
|
|
1055
|
-
def _assert_in_epsilon_message(expected_float, actual_float, epsilon,
|
|
1056
|
-
message, options={})
|
|
1057
|
-
normalized_expected = expected_float.to_f
|
|
1058
|
-
normalized_actual = actual_float.to_f
|
|
1059
|
-
normalized_epsilon = epsilon.to_f
|
|
1060
|
-
delta = normalized_expected * normalized_epsilon
|
|
1061
|
-
|
|
1062
|
-
if options[:negative_assertion]
|
|
1063
|
-
format = <<-EOT
|
|
1064
|
-
<?> -/+ (<?> * <?>)[?] was expected to not include
|
|
1065
|
-
<?>.
|
|
1066
|
-
EOT
|
|
1067
|
-
else
|
|
1068
|
-
format = <<-EOT
|
|
1069
|
-
<?> -/+ (<?> * <?>)[?] was expected to include
|
|
1070
|
-
<?>.
|
|
1071
|
-
EOT
|
|
1072
|
-
end
|
|
1073
|
-
arguments = [expected_float, expected_float, epsilon, delta,
|
|
1074
|
-
actual_float]
|
|
1075
|
-
|
|
1076
|
-
relation_format = nil
|
|
1077
|
-
relation_arguments = nil
|
|
1078
|
-
if normalized_actual < normalized_expected - delta
|
|
1079
|
-
relation_format = "<<?> < <?>-(<?>*<?>)[?] <= <?>+(<?>*<?>)[?]>"
|
|
1080
|
-
relation_arguments = [actual_float,
|
|
1081
|
-
expected_float, expected_float, epsilon,
|
|
1082
|
-
normalized_expected - delta,
|
|
1083
|
-
expected_float, expected_float, epsilon,
|
|
1084
|
-
normalized_expected + delta]
|
|
1085
|
-
elsif normalized_actual <= normalized_expected + delta
|
|
1086
|
-
relation_format = "<<?>-(<?>*<?>)[?] <= <?> <= <?>+(<?>*<?>)[?]>"
|
|
1087
|
-
relation_arguments = [expected_float, expected_float, epsilon,
|
|
1088
|
-
normalized_expected - delta,
|
|
1089
|
-
actual_float,
|
|
1090
|
-
expected_float, expected_float, epsilon,
|
|
1091
|
-
normalized_expected + delta]
|
|
1092
|
-
else
|
|
1093
|
-
relation_format = "<<?>-(<?>*<?>)[?] <= <?>+(<?>*<?>)[?] < <?>>"
|
|
1094
|
-
relation_arguments = [expected_float, expected_float, epsilon,
|
|
1095
|
-
normalized_expected - delta,
|
|
1096
|
-
expected_float, expected_float, epsilon,
|
|
1097
|
-
normalized_expected + delta,
|
|
1098
|
-
actual_float]
|
|
1099
|
-
end
|
|
1100
|
-
|
|
1101
|
-
if relation_format
|
|
1102
|
-
format += <<-EOT
|
|
1103
|
-
|
|
1104
|
-
Relation:
|
|
1105
|
-
#{relation_format}
|
|
1106
|
-
EOT
|
|
1107
|
-
arguments.concat(relation_arguments)
|
|
1108
|
-
end
|
|
1109
|
-
|
|
1110
|
-
build_message(message, format, *arguments)
|
|
1111
|
-
end
|
|
1112
|
-
|
|
1113
|
-
public
|
|
1114
|
-
##
|
|
1115
|
-
# Passes if the method send returns a true value.
|
|
1116
|
-
#
|
|
1117
|
-
# `send_array` is composed of:
|
|
1118
|
-
# * A receiver
|
|
1119
|
-
# * A method
|
|
1120
|
-
# * Arguments to the method
|
|
1121
|
-
#
|
|
1122
|
-
# @example
|
|
1123
|
-
# assert_send([[1, 2], :member?, 1]) # -> pass
|
|
1124
|
-
# assert_send([[1, 2], :member?, 4]) # -> fail
|
|
1125
|
-
def assert_send(send_array, message=nil)
|
|
1126
|
-
_wrap_assertion do
|
|
1127
|
-
assert_instance_of(Array, send_array,
|
|
1128
|
-
"assert_send requires an array " +
|
|
1129
|
-
"of send information")
|
|
1130
|
-
assert_operator(send_array.size, :>=, 2,
|
|
1131
|
-
"assert_send requires at least a receiver " +
|
|
1132
|
-
"and a message name")
|
|
1133
|
-
format = <<EOT
|
|
1134
|
-
<?> was expected to respond to
|
|
1135
|
-
<?(*?)> with a true value but was
|
|
1136
|
-
<?>.
|
|
1137
|
-
EOT
|
|
1138
|
-
receiver, message_name, *arguments = send_array
|
|
1139
|
-
result = nil
|
|
1140
|
-
full_message =
|
|
1141
|
-
build_message(message,
|
|
1142
|
-
format,
|
|
1143
|
-
receiver,
|
|
1144
|
-
AssertionMessage.literal(message_name.to_s),
|
|
1145
|
-
arguments,
|
|
1146
|
-
AssertionMessage.delayed_literal {result})
|
|
1147
|
-
assert_block(full_message) do
|
|
1148
|
-
result = receiver.__send__(message_name, *arguments)
|
|
1149
|
-
result
|
|
1150
|
-
end
|
|
1151
|
-
end
|
|
1152
|
-
end
|
|
1153
|
-
|
|
1154
|
-
##
|
|
1155
|
-
# Passes if the method send doesn't return a true value.
|
|
1156
|
-
#
|
|
1157
|
-
# `send_array` is composed of:
|
|
1158
|
-
# * A receiver
|
|
1159
|
-
# * A method
|
|
1160
|
-
# * Arguments to the method
|
|
1161
|
-
#
|
|
1162
|
-
# @example
|
|
1163
|
-
# assert_not_send([[1, 2], :member?, 1]) # -> fail
|
|
1164
|
-
# assert_not_send([[1, 2], :member?, 4]) # -> pass
|
|
1165
|
-
def assert_not_send(send_array, message=nil)
|
|
1166
|
-
_wrap_assertion do
|
|
1167
|
-
assert_instance_of(Array, send_array,
|
|
1168
|
-
"assert_not_send requires an array " +
|
|
1169
|
-
"of send information")
|
|
1170
|
-
assert_operator(send_array.size, :>=, 2,
|
|
1171
|
-
"assert_not_send requires at least a receiver " +
|
|
1172
|
-
"and a message name")
|
|
1173
|
-
format = <<EOT
|
|
1174
|
-
<?> was expected to respond to
|
|
1175
|
-
<?(*?)> with not a true value but was
|
|
1176
|
-
<?>.
|
|
1177
|
-
EOT
|
|
1178
|
-
receiver, message_name, *arguments = send_array
|
|
1179
|
-
result = nil
|
|
1180
|
-
full_message =
|
|
1181
|
-
build_message(message,
|
|
1182
|
-
format,
|
|
1183
|
-
receiver,
|
|
1184
|
-
AssertionMessage.literal(message_name.to_s),
|
|
1185
|
-
arguments,
|
|
1186
|
-
AssertionMessage.delayed_literal {result})
|
|
1187
|
-
assert_block(full_message) do
|
|
1188
|
-
result = receiver.__send__(message_name, *arguments)
|
|
1189
|
-
not result
|
|
1190
|
-
end
|
|
1191
|
-
end
|
|
1192
|
-
end
|
|
1193
|
-
|
|
1194
|
-
##
|
|
1195
|
-
# Passes if `actual` is a boolean value.
|
|
1196
|
-
#
|
|
1197
|
-
# @example
|
|
1198
|
-
# assert_boolean(true) # -> pass
|
|
1199
|
-
# assert_boolean(nil) # -> fail
|
|
1200
|
-
def assert_boolean(actual, message=nil)
|
|
1201
|
-
_wrap_assertion do
|
|
1202
|
-
assert_block(build_message(message,
|
|
1203
|
-
"<true> or <false> expected but was\n<?>",
|
|
1204
|
-
actual)) do
|
|
1205
|
-
[true, false].include?(actual)
|
|
1206
|
-
end
|
|
1207
|
-
end
|
|
1208
|
-
end
|
|
1209
|
-
|
|
1210
|
-
##
|
|
1211
|
-
# Passes if `actual` is true.
|
|
1212
|
-
#
|
|
1213
|
-
# @example
|
|
1214
|
-
# assert_true(true) # -> pass
|
|
1215
|
-
# assert_true(:true) # -> fail
|
|
1216
|
-
def assert_true(actual, message=nil)
|
|
1217
|
-
_wrap_assertion do
|
|
1218
|
-
assert_block(build_message(message,
|
|
1219
|
-
"<true> expected but was\n<?>",
|
|
1220
|
-
actual)) do
|
|
1221
|
-
actual == true
|
|
1222
|
-
end
|
|
1223
|
-
end
|
|
1224
|
-
end
|
|
1225
|
-
|
|
1226
|
-
##
|
|
1227
|
-
# Passes if `actual` is false.
|
|
1228
|
-
#
|
|
1229
|
-
# @example
|
|
1230
|
-
# assert_false(false) # -> pass
|
|
1231
|
-
# assert_false(nil) # -> fail
|
|
1232
|
-
def assert_false(actual, message=nil)
|
|
1233
|
-
_wrap_assertion do
|
|
1234
|
-
assert_block(build_message(message,
|
|
1235
|
-
"<false> expected but was\n<?>",
|
|
1236
|
-
actual)) do
|
|
1237
|
-
actual == false
|
|
1238
|
-
end
|
|
1239
|
-
end
|
|
1240
|
-
end
|
|
1241
|
-
|
|
1242
|
-
##
|
|
1243
|
-
# Passes if expression "`expected` `operator`
|
|
1244
|
-
# `actual`" is true.
|
|
1245
|
-
#
|
|
1246
|
-
# @example
|
|
1247
|
-
# assert_compare(1, "<", 10) # -> pass
|
|
1248
|
-
# assert_compare(1, ">=", 10) # -> fail
|
|
1249
|
-
def assert_compare(expected, operator, actual, message=nil)
|
|
1250
|
-
_wrap_assertion do
|
|
1251
|
-
assert_send([["<", "<=", ">", ">="], :include?, operator.to_s])
|
|
1252
|
-
case operator.to_s
|
|
1253
|
-
when "<"
|
|
1254
|
-
operator_description = "less than"
|
|
1255
|
-
when "<="
|
|
1256
|
-
operator_description = "less than or equal to"
|
|
1257
|
-
when ">"
|
|
1258
|
-
operator_description = "greater than"
|
|
1259
|
-
when ">="
|
|
1260
|
-
operator_description = "greater than or equal to"
|
|
1261
|
-
end
|
|
1262
|
-
template = <<-EOT
|
|
1263
|
-
<?> #{operator} <?> should be true
|
|
1264
|
-
<?> was expected to be #{operator_description}
|
|
1265
|
-
<?>.
|
|
1266
|
-
EOT
|
|
1267
|
-
full_message = build_message(message, template,
|
|
1268
|
-
expected, actual,
|
|
1269
|
-
expected, actual)
|
|
1270
|
-
assert_block(full_message) do
|
|
1271
|
-
expected.__send__(operator, actual)
|
|
1272
|
-
end
|
|
1273
|
-
end
|
|
1274
|
-
end
|
|
1275
|
-
|
|
1276
|
-
##
|
|
1277
|
-
# Passes if assertion is failed in block.
|
|
1278
|
-
#
|
|
1279
|
-
# @example
|
|
1280
|
-
# assert_fail_assertion {assert_equal("A", "B")} # -> pass
|
|
1281
|
-
# assert_fail_assertion {assert_equal("A", "A")} # -> fail
|
|
1282
|
-
def assert_fail_assertion(message=nil)
|
|
1283
|
-
_wrap_assertion do
|
|
1284
|
-
full_message = build_message(message,
|
|
1285
|
-
"Failed assertion was expected.")
|
|
1286
|
-
assert_block(full_message) do
|
|
1287
|
-
begin
|
|
1288
|
-
yield
|
|
1289
|
-
false
|
|
1290
|
-
rescue AssertionFailedError
|
|
1291
|
-
true
|
|
1292
|
-
end
|
|
1293
|
-
end
|
|
1294
|
-
end
|
|
1295
|
-
end
|
|
1296
|
-
|
|
1297
|
-
##
|
|
1298
|
-
# Passes if an exception is raised in block and its
|
|
1299
|
-
# message is `expected`.
|
|
1300
|
-
#
|
|
1301
|
-
# @example
|
|
1302
|
-
# assert_raise_message("exception") {raise "exception"} # -> pass
|
|
1303
|
-
# assert_raise_message(/exc/i) {raise "exception"} # -> pass
|
|
1304
|
-
# assert_raise_message("exception") {raise "EXCEPTION"} # -> fail
|
|
1305
|
-
# assert_raise_message("exception") {} # -> fail
|
|
1306
|
-
def assert_raise_message(expected, message=nil)
|
|
1307
|
-
_wrap_assertion do
|
|
1308
|
-
full_message = build_message(message,
|
|
1309
|
-
"<?> exception message was expected " +
|
|
1310
|
-
"but none was thrown.",
|
|
1311
|
-
expected)
|
|
1312
|
-
exception = nil
|
|
1313
|
-
assert_block(full_message) do
|
|
1314
|
-
begin
|
|
1315
|
-
yield
|
|
1316
|
-
false
|
|
1317
|
-
rescue Exception => exception
|
|
1318
|
-
true
|
|
1319
|
-
end
|
|
1320
|
-
end
|
|
1321
|
-
|
|
1322
|
-
actual = exception.message
|
|
1323
|
-
diff = AssertionMessage.delayed_diff(expected, actual)
|
|
1324
|
-
full_message =
|
|
1325
|
-
build_message(message,
|
|
1326
|
-
"<?> exception message expected but was\n" +
|
|
1327
|
-
"<?>.?", expected, actual, diff)
|
|
1328
|
-
assert_block(full_message) do
|
|
1329
|
-
if expected.is_a?(Regexp)
|
|
1330
|
-
expected =~ actual
|
|
1331
|
-
else
|
|
1332
|
-
expected == actual
|
|
1333
|
-
end
|
|
1334
|
-
end
|
|
1335
|
-
end
|
|
1336
|
-
end
|
|
1337
|
-
|
|
1338
|
-
##
|
|
1339
|
-
# Passes if `object`.const_defined?(`constant_name`)
|
|
1340
|
-
#
|
|
1341
|
-
# @example
|
|
1342
|
-
# assert_const_defined(Test, :Unit) # -> pass
|
|
1343
|
-
# assert_const_defined(Object, :Nonexistent) # -> fail
|
|
1344
|
-
def assert_const_defined(object, constant_name, message=nil)
|
|
1345
|
-
_wrap_assertion do
|
|
1346
|
-
full_message = build_message(message,
|
|
1347
|
-
"<?>.const_defined\\?(<?>) expected.",
|
|
1348
|
-
object, constant_name)
|
|
1349
|
-
assert_block(full_message) do
|
|
1350
|
-
object.const_defined?(constant_name)
|
|
1351
|
-
end
|
|
1352
|
-
end
|
|
1353
|
-
end
|
|
1354
|
-
|
|
1355
|
-
##
|
|
1356
|
-
# Passes if !`object`.const_defined?(`constant_name`)
|
|
1357
|
-
#
|
|
1358
|
-
# @example
|
|
1359
|
-
# assert_not_const_defined(Object, :Nonexistent) # -> pass
|
|
1360
|
-
# assert_not_const_defined(Test, :Unit) # -> fail
|
|
1361
|
-
def assert_not_const_defined(object, constant_name, message=nil)
|
|
1362
|
-
_wrap_assertion do
|
|
1363
|
-
full_message = build_message(message,
|
|
1364
|
-
"!<?>.const_defined\\?(<?>) expected.",
|
|
1365
|
-
object, constant_name)
|
|
1366
|
-
assert_block(full_message) do
|
|
1367
|
-
!object.const_defined?(constant_name)
|
|
1368
|
-
end
|
|
1369
|
-
end
|
|
1370
|
-
end
|
|
1371
|
-
|
|
1372
|
-
##
|
|
1373
|
-
# Passes if `object`.`predicate` is _true_.
|
|
1374
|
-
#
|
|
1375
|
-
# @example
|
|
1376
|
-
# assert_predicate([], :empty?) # -> pass
|
|
1377
|
-
# assert_predicate([1], :empty?) # -> fail
|
|
1378
|
-
def assert_predicate(object, predicate, message=nil)
|
|
1379
|
-
_wrap_assertion do
|
|
1380
|
-
assert_respond_to(object, predicate, message)
|
|
1381
|
-
actual = object.__send__(predicate)
|
|
1382
|
-
full_message = build_message(message,
|
|
1383
|
-
"<?>.? is true value expected but was\n" +
|
|
1384
|
-
"<?>",
|
|
1385
|
-
object,
|
|
1386
|
-
AssertionMessage.literal(predicate),
|
|
1387
|
-
actual)
|
|
1388
|
-
assert_block(full_message) do
|
|
1389
|
-
actual
|
|
1390
|
-
end
|
|
1391
|
-
end
|
|
1392
|
-
end
|
|
1393
|
-
|
|
1394
|
-
##
|
|
1395
|
-
# Passes if `object`.`predicate` is not _true_.
|
|
1396
|
-
#
|
|
1397
|
-
# @example
|
|
1398
|
-
# assert_not_predicate([1], :empty?) # -> pass
|
|
1399
|
-
# assert_not_predicate([], :empty?) # -> fail
|
|
1400
|
-
def assert_not_predicate(object, predicate, message=nil)
|
|
1401
|
-
_wrap_assertion do
|
|
1402
|
-
assert_respond_to(object, predicate, message)
|
|
1403
|
-
actual = object.__send__(predicate)
|
|
1404
|
-
full_message = build_message(message,
|
|
1405
|
-
"<?>.? is false value expected but was\n" +
|
|
1406
|
-
"<?>",
|
|
1407
|
-
object,
|
|
1408
|
-
AssertionMessage.literal(predicate),
|
|
1409
|
-
actual)
|
|
1410
|
-
assert_block(full_message) do
|
|
1411
|
-
not actual
|
|
1412
|
-
end
|
|
1413
|
-
end
|
|
1414
|
-
end
|
|
1415
|
-
|
|
1416
|
-
# Just for minitest compatibility. :<
|
|
1417
|
-
#
|
|
1418
|
-
# @since 3.0.0
|
|
1419
|
-
alias_method :refute_predicate, :assert_not_predicate
|
|
1420
|
-
|
|
1421
|
-
##
|
|
1422
|
-
# Passes if `object`#`alias_name` is an alias method of
|
|
1423
|
-
# `object`#`original_name`.
|
|
1424
|
-
#
|
|
1425
|
-
# @example
|
|
1426
|
-
# assert_alias_method([], :length, :size) # -> pass
|
|
1427
|
-
# assert_alias_method([], :size, :length) # -> pass
|
|
1428
|
-
# assert_alias_method([], :each, :size) # -> fail
|
|
1429
|
-
def assert_alias_method(object, alias_name, original_name, message=nil)
|
|
1430
|
-
_wrap_assertion do
|
|
1431
|
-
find_method_failure_message = Proc.new do |method_name|
|
|
1432
|
-
build_message(message,
|
|
1433
|
-
"<?>.? doesn't exist\n" +
|
|
1434
|
-
"(Class: <?>)",
|
|
1435
|
-
object,
|
|
1436
|
-
AssertionMessage.literal(method_name),
|
|
1437
|
-
object.class)
|
|
1438
|
-
end
|
|
1439
|
-
|
|
1440
|
-
alias_method = original_method = nil
|
|
1441
|
-
assert_block(find_method_failure_message.call(alias_name)) do
|
|
1442
|
-
begin
|
|
1443
|
-
alias_method = object.method(alias_name)
|
|
1444
|
-
true
|
|
1445
|
-
rescue NameError
|
|
1446
|
-
false
|
|
1447
|
-
end
|
|
1448
|
-
end
|
|
1449
|
-
assert_block(find_method_failure_message.call(original_name)) do
|
|
1450
|
-
begin
|
|
1451
|
-
original_method = object.method(original_name)
|
|
1452
|
-
true
|
|
1453
|
-
rescue NameError
|
|
1454
|
-
false
|
|
1455
|
-
end
|
|
1456
|
-
end
|
|
1457
|
-
|
|
1458
|
-
full_message = build_message(message,
|
|
1459
|
-
"<?> is alias of\n" +
|
|
1460
|
-
"<?> expected",
|
|
1461
|
-
alias_method,
|
|
1462
|
-
original_method)
|
|
1463
|
-
assert_block(full_message) do
|
|
1464
|
-
alias_method == original_method
|
|
1465
|
-
end
|
|
1466
|
-
end
|
|
1467
|
-
end
|
|
1468
|
-
|
|
1469
|
-
##
|
|
1470
|
-
# Passes if `path` exists.
|
|
1471
|
-
#
|
|
1472
|
-
# @example
|
|
1473
|
-
# assert_path_exist("/tmp") # -> pass
|
|
1474
|
-
# assert_path_exist("/bin/sh") # -> pass
|
|
1475
|
-
# assert_path_exist("/nonexistent") # -> fail
|
|
1476
|
-
def assert_path_exist(path, message=nil)
|
|
1477
|
-
_wrap_assertion do
|
|
1478
|
-
failure_message = build_message(message,
|
|
1479
|
-
"<?> was expected to exist",
|
|
1480
|
-
path)
|
|
1481
|
-
assert_block(failure_message) do
|
|
1482
|
-
File.exist?(path)
|
|
1483
|
-
end
|
|
1484
|
-
end
|
|
1485
|
-
end
|
|
1486
|
-
|
|
1487
|
-
##
|
|
1488
|
-
# Passes if `path` doesn't exist.
|
|
1489
|
-
#
|
|
1490
|
-
# @example
|
|
1491
|
-
# assert_path_not_exist("/nonexistent") # -> pass
|
|
1492
|
-
# assert_path_not_exist("/tmp") # -> fail
|
|
1493
|
-
# assert_path_not_exist("/bin/sh") # -> fail
|
|
1494
|
-
def assert_path_not_exist(path, message=nil)
|
|
1495
|
-
_wrap_assertion do
|
|
1496
|
-
failure_message = build_message(message,
|
|
1497
|
-
"<?> was expected to not exist",
|
|
1498
|
-
path)
|
|
1499
|
-
assert_block(failure_message) do
|
|
1500
|
-
not File.exist?(path)
|
|
1501
|
-
end
|
|
1502
|
-
end
|
|
1503
|
-
end
|
|
1504
|
-
|
|
1505
|
-
##
|
|
1506
|
-
# Passes if `collection` includes `object`.
|
|
1507
|
-
#
|
|
1508
|
-
# @example
|
|
1509
|
-
# assert_include([1, 10], 1) # -> pass
|
|
1510
|
-
# assert_include(1..10, 5) # -> pass
|
|
1511
|
-
# assert_include([1, 10], 5) # -> fail
|
|
1512
|
-
# assert_include(1..10, 20) # -> fail
|
|
1513
|
-
def assert_include(collection, object, message=nil)
|
|
1514
|
-
_wrap_assertion do
|
|
1515
|
-
assert_respond_to(collection, :include?,
|
|
1516
|
-
"The collection must respond to :include?.")
|
|
1517
|
-
full_message = build_message(message,
|
|
1518
|
-
"<?> was expected to include\n<?>.",
|
|
1519
|
-
collection,
|
|
1520
|
-
object)
|
|
1521
|
-
assert_block(full_message) do
|
|
1522
|
-
collection.include?(object)
|
|
1523
|
-
end
|
|
1524
|
-
end
|
|
1525
|
-
end
|
|
1526
|
-
|
|
1527
|
-
# Just for minitest compatibility. :<
|
|
1528
|
-
#
|
|
1529
|
-
# @since 2.5.3
|
|
1530
|
-
alias_method :assert_includes, :assert_include
|
|
1531
|
-
|
|
1532
|
-
##
|
|
1533
|
-
# Passes if `collection` doesn't include `object`.
|
|
1534
|
-
#
|
|
1535
|
-
# @example
|
|
1536
|
-
# assert_not_include([1, 10], 5) # -> pass
|
|
1537
|
-
# assert_not_include(1..10, 20) # -> pass
|
|
1538
|
-
# assert_not_include([1, 10], 1) # -> fail
|
|
1539
|
-
# assert_not_include(1..10, 5) # -> fail
|
|
1540
|
-
def assert_not_include(collection, object, message=nil)
|
|
1541
|
-
_wrap_assertion do
|
|
1542
|
-
assert_respond_to(collection, :include?,
|
|
1543
|
-
"The collection must respond to :include?.")
|
|
1544
|
-
full_message = build_message(message,
|
|
1545
|
-
"<?> was expected to not include\n<?>.",
|
|
1546
|
-
collection,
|
|
1547
|
-
object)
|
|
1548
|
-
assert_block(full_message) do
|
|
1549
|
-
not collection.include?(object)
|
|
1550
|
-
end
|
|
1551
|
-
end
|
|
1552
|
-
end
|
|
1553
|
-
|
|
1554
|
-
# Just for minitest compatibility. :<
|
|
1555
|
-
#
|
|
1556
|
-
# @since 3.0.0
|
|
1557
|
-
alias_method :assert_not_includes, :assert_not_include
|
|
1558
|
-
|
|
1559
|
-
# Just for minitest compatibility. :<
|
|
1560
|
-
#
|
|
1561
|
-
# @since 3.0.0
|
|
1562
|
-
alias_method :refute_includes, :assert_not_include
|
|
1563
|
-
|
|
1564
|
-
##
|
|
1565
|
-
# Passes if `object` is empty.
|
|
1566
|
-
#
|
|
1567
|
-
# @example
|
|
1568
|
-
# assert_empty("") # -> pass
|
|
1569
|
-
# assert_empty([]) # -> pass
|
|
1570
|
-
# assert_empty({}) # -> pass
|
|
1571
|
-
# assert_empty(" ") # -> fail
|
|
1572
|
-
# assert_empty([nil]) # -> fail
|
|
1573
|
-
# assert_empty({1 => 2}) # -> fail
|
|
1574
|
-
def assert_empty(object, message=nil)
|
|
1575
|
-
_wrap_assertion do
|
|
1576
|
-
assert_respond_to(object, :empty?,
|
|
1577
|
-
"The object must respond to :empty?.")
|
|
1578
|
-
full_message = build_message(message,
|
|
1579
|
-
"<?> was expected to be empty.",
|
|
1580
|
-
object)
|
|
1581
|
-
assert_block(full_message) do
|
|
1582
|
-
object.empty?
|
|
1583
|
-
end
|
|
1584
|
-
end
|
|
1585
|
-
end
|
|
1586
|
-
|
|
1587
|
-
##
|
|
1588
|
-
# Passes if `object` is not empty.
|
|
1589
|
-
#
|
|
1590
|
-
# @example
|
|
1591
|
-
# assert_not_empty(" ") # -> pass
|
|
1592
|
-
# assert_not_empty([nil]) # -> pass
|
|
1593
|
-
# assert_not_empty({1 => 2}) # -> pass
|
|
1594
|
-
# assert_not_empty("") # -> fail
|
|
1595
|
-
# assert_not_empty([]) # -> fail
|
|
1596
|
-
# assert_not_empty({}) # -> fail
|
|
1597
|
-
def assert_not_empty(object, message=nil)
|
|
1598
|
-
_wrap_assertion do
|
|
1599
|
-
assert_respond_to(object, :empty?,
|
|
1600
|
-
"The object must respond to :empty?.")
|
|
1601
|
-
full_message = build_message(message,
|
|
1602
|
-
"<?> was expected to not be empty.",
|
|
1603
|
-
object)
|
|
1604
|
-
assert_block(full_message) do
|
|
1605
|
-
not object.empty?
|
|
1606
|
-
end
|
|
1607
|
-
end
|
|
1608
|
-
end
|
|
1609
|
-
|
|
1610
|
-
# Just for minitest compatibility. :<
|
|
1611
|
-
#
|
|
1612
|
-
# @since 3.0.0
|
|
1613
|
-
alias_method :refute_empty, :assert_not_empty
|
|
1614
|
-
|
|
1615
|
-
##
|
|
1616
|
-
# Builds a failure message. `user_message` is added before the
|
|
1617
|
-
# `template` and `arguments` replaces the '?'s positionally in
|
|
1618
|
-
# the template.
|
|
1619
|
-
def build_message(user_message, template=nil, *arguments)
|
|
1620
|
-
template &&= template.chomp
|
|
1621
|
-
return AssertionMessage.new(user_message, template, arguments)
|
|
1622
|
-
end
|
|
1623
|
-
|
|
1624
|
-
private
|
|
1625
|
-
def _wrap_assertion(&block)
|
|
1626
|
-
@_assertion_wrapped ||= false
|
|
1627
|
-
if @_assertion_wrapped
|
|
1628
|
-
block.call
|
|
1629
|
-
else
|
|
1630
|
-
@_assertion_wrapped = true
|
|
1631
|
-
begin
|
|
1632
|
-
add_assertion
|
|
1633
|
-
block.call
|
|
1634
|
-
ensure
|
|
1635
|
-
@_assertion_wrapped = false
|
|
1636
|
-
end
|
|
1637
|
-
end
|
|
1638
|
-
end
|
|
1639
|
-
|
|
1640
|
-
public
|
|
1641
|
-
# Called whenever an assertion is made. Define this in classes
|
|
1642
|
-
# that include Test::Unit::Assertions to record assertion
|
|
1643
|
-
# counts.
|
|
1644
|
-
#
|
|
1645
|
-
# This is a public API for developers who extend test-unit.
|
|
1646
|
-
#
|
|
1647
|
-
# @return [void]
|
|
1648
|
-
def add_assertion
|
|
1649
|
-
end
|
|
1650
|
-
|
|
1651
|
-
##
|
|
1652
|
-
# Select whether or not to use the pretty-printer. If this option is set
|
|
1653
|
-
# to false before any assertions are made, pp.rb will not be required.
|
|
1654
|
-
def self.use_pp=(value)
|
|
1655
|
-
AssertionMessage.use_pp = value
|
|
1656
|
-
end
|
|
1657
|
-
|
|
1658
|
-
private
|
|
1659
|
-
def _assert_raise(assert_expected_exception, *args, &block)
|
|
1660
|
-
_wrap_assertion do
|
|
1661
|
-
if args.last.is_a?(String)
|
|
1662
|
-
message = args.pop
|
|
1663
|
-
else
|
|
1664
|
-
message = ""
|
|
1665
|
-
end
|
|
1666
|
-
|
|
1667
|
-
assert_exception_helper = AssertExceptionHelper.new(self, args)
|
|
1668
|
-
expected = assert_exception_helper.expected_exceptions
|
|
1669
|
-
actual_exception = nil
|
|
1670
|
-
full_message = build_message(message,
|
|
1671
|
-
"<?> exception was expected " +
|
|
1672
|
-
"but none was thrown.",
|
|
1673
|
-
expected)
|
|
1674
|
-
assert_block(full_message) do
|
|
1675
|
-
begin
|
|
1676
|
-
yield
|
|
1677
|
-
false
|
|
1678
|
-
rescue Exception => actual_exception
|
|
1679
|
-
true
|
|
1680
|
-
end
|
|
1681
|
-
end
|
|
1682
|
-
assert_expected_exception.call(message, assert_exception_helper,
|
|
1683
|
-
actual_exception)
|
|
1684
|
-
actual_exception
|
|
1685
|
-
end
|
|
1686
|
-
end
|
|
1687
|
-
|
|
1688
|
-
def _set_failed_information(failure, expected, actual)
|
|
1689
|
-
failure.expected = expected
|
|
1690
|
-
failure.actual = actual
|
|
1691
|
-
failure.inspected_expected = AssertionMessage.convert(expected)
|
|
1692
|
-
failure.inspected_actual = AssertionMessage.convert(actual)
|
|
1693
|
-
end
|
|
1694
|
-
|
|
1695
|
-
class AssertionMessage
|
|
1696
|
-
@use_pp = true
|
|
1697
|
-
class << self
|
|
1698
|
-
attr_accessor :use_pp
|
|
1699
|
-
|
|
1700
|
-
def literal(value)
|
|
1701
|
-
Literal.new(value)
|
|
1702
|
-
end
|
|
1703
|
-
|
|
1704
|
-
def delayed_literal(&block)
|
|
1705
|
-
DelayedLiteral.new(block)
|
|
1706
|
-
end
|
|
1707
|
-
|
|
1708
|
-
def maybe_container(value, &formatter)
|
|
1709
|
-
MaybeContainer.new(value, &formatter)
|
|
1710
|
-
end
|
|
1711
|
-
|
|
1712
|
-
MAX_DIFF_TARGET_STRING_SIZE = 1000
|
|
1713
|
-
def max_diff_target_string_size
|
|
1714
|
-
return @@max_diff_target_string_size if @@max_diff_target_string_size
|
|
1715
|
-
|
|
1716
|
-
size = ENV["TEST_UNIT_MAX_DIFF_TARGET_STRING_SIZE"]
|
|
1717
|
-
if size
|
|
1718
|
-
begin
|
|
1719
|
-
size = Integer(size)
|
|
1720
|
-
rescue ArgumentError
|
|
1721
|
-
size = nil
|
|
1722
|
-
end
|
|
1723
|
-
end
|
|
1724
|
-
size || MAX_DIFF_TARGET_STRING_SIZE
|
|
1725
|
-
end
|
|
1726
|
-
|
|
1727
|
-
@@max_diff_target_string_size = nil
|
|
1728
|
-
def max_diff_target_string_size=(size)
|
|
1729
|
-
@@max_diff_target_string_size = size
|
|
1730
|
-
end
|
|
1731
|
-
|
|
1732
|
-
def diff_target_string?(string)
|
|
1733
|
-
if string.respond_to?(:bytesize)
|
|
1734
|
-
string.bytesize < max_diff_target_string_size
|
|
1735
|
-
else
|
|
1736
|
-
string.size < max_diff_target_string_size
|
|
1737
|
-
end
|
|
1738
|
-
end
|
|
1739
|
-
|
|
1740
|
-
def ensure_diffable_string(string)
|
|
1741
|
-
if string.respond_to?(:encoding) and
|
|
1742
|
-
!string.encoding.ascii_compatible?
|
|
1743
|
-
string = string.dup.force_encoding("ASCII-8BIT")
|
|
1744
|
-
end
|
|
1745
|
-
string
|
|
1746
|
-
end
|
|
1747
|
-
|
|
1748
|
-
def prepare_for_diff(from, to)
|
|
1749
|
-
if !from.is_a?(String) or !to.is_a?(String)
|
|
1750
|
-
from = convert(from)
|
|
1751
|
-
to = convert(to)
|
|
1752
|
-
end
|
|
1753
|
-
|
|
1754
|
-
if diff_target_string?(from) and diff_target_string?(to)
|
|
1755
|
-
from = ensure_diffable_string(from)
|
|
1756
|
-
to = ensure_diffable_string(to)
|
|
1757
|
-
[from, to]
|
|
1758
|
-
else
|
|
1759
|
-
[nil, nil]
|
|
1760
|
-
end
|
|
1761
|
-
end
|
|
1762
|
-
|
|
1763
|
-
def delayed_diff(from, to)
|
|
1764
|
-
delayed_literal do
|
|
1765
|
-
from, to = prepare_for_diff(from, to)
|
|
1766
|
-
|
|
1767
|
-
diff = "" if from.nil? or to.nil?
|
|
1768
|
-
diff ||= Diff.readable(from, to)
|
|
1769
|
-
if /^[-+]/ !~ diff
|
|
1770
|
-
diff = ""
|
|
1771
|
-
elsif /^[ ?]/ =~ diff or /(?:.*\n){2,}/ =~ diff
|
|
1772
|
-
diff = "\n\ndiff:\n#{diff}"
|
|
1773
|
-
else
|
|
1774
|
-
diff = ""
|
|
1775
|
-
end
|
|
1776
|
-
|
|
1777
|
-
if Diff.need_fold?(diff)
|
|
1778
|
-
folded_diff = Diff.folded_readable(from, to)
|
|
1779
|
-
diff += "\n\nfolded diff:\n#{folded_diff}"
|
|
1780
|
-
end
|
|
1781
|
-
|
|
1782
|
-
diff
|
|
1783
|
-
end
|
|
1784
|
-
end
|
|
1785
|
-
|
|
1786
|
-
def convert(object)
|
|
1787
|
-
if object.is_a?(Exception)
|
|
1788
|
-
object = AssertExceptionHelper::WrappedException.new(object)
|
|
1789
|
-
end
|
|
1790
|
-
inspector = Inspector.new(object)
|
|
1791
|
-
if use_pp
|
|
1792
|
-
begin
|
|
1793
|
-
require "pp" unless defined?(PP)
|
|
1794
|
-
begin
|
|
1795
|
-
return PP.pp(inspector, String.new).chomp
|
|
1796
|
-
rescue NameError
|
|
1797
|
-
end
|
|
1798
|
-
rescue LoadError
|
|
1799
|
-
self.use_pp = false
|
|
1800
|
-
end
|
|
1801
|
-
end
|
|
1802
|
-
inspector.inspect
|
|
1803
|
-
end
|
|
1804
|
-
end
|
|
1805
|
-
|
|
1806
|
-
class Inspector
|
|
1807
|
-
include Comparable
|
|
1808
|
-
|
|
1809
|
-
class << self
|
|
1810
|
-
def cached_new(object, inspected_objects)
|
|
1811
|
-
inspected_objects[object.object_id] ||=
|
|
1812
|
-
new(object, inspected_objects)
|
|
1813
|
-
end
|
|
1814
|
-
|
|
1815
|
-
@@inspector_classes = []
|
|
1816
|
-
def inspector_classes
|
|
1817
|
-
@@inspector_classes
|
|
1818
|
-
end
|
|
1819
|
-
|
|
1820
|
-
def register_inspector_class(inspector_class)
|
|
1821
|
-
@@inspector_classes << inspector_class
|
|
1822
|
-
end
|
|
1823
|
-
|
|
1824
|
-
def unregister_inspector_class(inspector_class)
|
|
1825
|
-
@@inspector_classes.delete(inspector_class)
|
|
1826
|
-
end
|
|
1827
|
-
end
|
|
1828
|
-
|
|
1829
|
-
attr_reader :object
|
|
1830
|
-
def initialize(object, inspected_objects={})
|
|
1831
|
-
@inspected_objects = inspected_objects
|
|
1832
|
-
@object = object
|
|
1833
|
-
@inspected_objects[@object.object_id] = self
|
|
1834
|
-
@inspect_target = inspect_target
|
|
1835
|
-
end
|
|
1836
|
-
|
|
1837
|
-
alias_method :native_inspect, :inspect
|
|
1838
|
-
def inspect
|
|
1839
|
-
@inspect_target.inspect
|
|
1840
|
-
end
|
|
1841
|
-
|
|
1842
|
-
def pretty_print(q)
|
|
1843
|
-
@inspect_target.pretty_print(q)
|
|
1844
|
-
end
|
|
1845
|
-
|
|
1846
|
-
def pretty_print_cycle(q)
|
|
1847
|
-
@inspect_target.pretty_print_cycle(q)
|
|
1848
|
-
end
|
|
1849
|
-
|
|
1850
|
-
def <=>(other)
|
|
1851
|
-
if other.is_a?(self.class)
|
|
1852
|
-
@object <=> other.object
|
|
1853
|
-
else
|
|
1854
|
-
@object <=> other
|
|
1855
|
-
end
|
|
1856
|
-
end
|
|
1857
|
-
|
|
1858
|
-
private
|
|
1859
|
-
def inspect_target
|
|
1860
|
-
self.class.inspector_classes.each do |inspector_class|
|
|
1861
|
-
if inspector_class.target?(@object)
|
|
1862
|
-
return inspector_class.new(@object, @inspected_objects)
|
|
1863
|
-
end
|
|
1864
|
-
end
|
|
1865
|
-
@object
|
|
1866
|
-
end
|
|
1867
|
-
end
|
|
1868
|
-
|
|
1869
|
-
class NumericInspector
|
|
1870
|
-
Inspector.register_inspector_class(self)
|
|
1871
|
-
|
|
1872
|
-
class << self
|
|
1873
|
-
def target?(object)
|
|
1874
|
-
object.is_a?(Numeric)
|
|
1875
|
-
end
|
|
1876
|
-
end
|
|
1877
|
-
|
|
1878
|
-
def initialize(numeric, inspected_objects)
|
|
1879
|
-
@inspected_objects = inspected_objects
|
|
1880
|
-
@numeric = numeric
|
|
1881
|
-
end
|
|
1882
|
-
|
|
1883
|
-
def inspect
|
|
1884
|
-
@numeric.to_s
|
|
1885
|
-
end
|
|
1886
|
-
|
|
1887
|
-
def pretty_print(q)
|
|
1888
|
-
q.text(@numeric.to_s)
|
|
1889
|
-
end
|
|
1890
|
-
|
|
1891
|
-
def pretty_print_cycle(q)
|
|
1892
|
-
q.text(@numeric.to_s)
|
|
1893
|
-
end
|
|
1894
|
-
end
|
|
1895
|
-
|
|
1896
|
-
class HashInspector
|
|
1897
|
-
Inspector.register_inspector_class(self)
|
|
1898
|
-
|
|
1899
|
-
class << self
|
|
1900
|
-
def target?(object)
|
|
1901
|
-
object.is_a?(Hash) or ENV.equal?(object)
|
|
1902
|
-
end
|
|
1903
|
-
end
|
|
1904
|
-
|
|
1905
|
-
def initialize(hash, inspected_objects)
|
|
1906
|
-
@inspected_objects = inspected_objects
|
|
1907
|
-
@hash = {}
|
|
1908
|
-
hash.each do |key, value|
|
|
1909
|
-
key = Inspector.cached_new(key, @inspected_objects)
|
|
1910
|
-
value = Inspector.cached_new(value, @inspected_objects)
|
|
1911
|
-
@hash[key] = value
|
|
1912
|
-
end
|
|
1913
|
-
end
|
|
1914
|
-
|
|
1915
|
-
def inspect
|
|
1916
|
-
@hash.inspect
|
|
1917
|
-
end
|
|
1918
|
-
|
|
1919
|
-
def pretty_print(q)
|
|
1920
|
-
q.group(1, '{', '}') do
|
|
1921
|
-
q.seplist(self, nil, :each_pair) do |k, v|
|
|
1922
|
-
q.group do
|
|
1923
|
-
q.pp(k)
|
|
1924
|
-
q.text('=>')
|
|
1925
|
-
q.group(1) do
|
|
1926
|
-
q.breakable('')
|
|
1927
|
-
q.pp(v)
|
|
1928
|
-
end
|
|
1929
|
-
end
|
|
1930
|
-
end
|
|
1931
|
-
end
|
|
1932
|
-
end
|
|
1933
|
-
|
|
1934
|
-
def pretty_print_cycle(q)
|
|
1935
|
-
@hash.pretty_print_cycle(q)
|
|
1936
|
-
end
|
|
1937
|
-
|
|
1938
|
-
def each_pair
|
|
1939
|
-
keys = @hash.keys
|
|
1940
|
-
begin
|
|
1941
|
-
keys = keys.sort # FIXME: more cleverly
|
|
1942
|
-
rescue ArgumentError
|
|
1943
|
-
end
|
|
1944
|
-
keys.each do |key|
|
|
1945
|
-
yield(key, @hash[key])
|
|
1946
|
-
end
|
|
1947
|
-
end
|
|
1948
|
-
end
|
|
1949
|
-
|
|
1950
|
-
class ArrayInspector
|
|
1951
|
-
Inspector.register_inspector_class(self)
|
|
1952
|
-
|
|
1953
|
-
class << self
|
|
1954
|
-
def target?(object)
|
|
1955
|
-
object.is_a?(Array)
|
|
1956
|
-
end
|
|
1957
|
-
end
|
|
1958
|
-
|
|
1959
|
-
def initialize(array, inspected_objects)
|
|
1960
|
-
@inspected_objects = inspected_objects
|
|
1961
|
-
@array = array.collect do |element|
|
|
1962
|
-
Inspector.cached_new(element, @inspected_objects)
|
|
1963
|
-
end
|
|
1964
|
-
end
|
|
1965
|
-
|
|
1966
|
-
def inspect
|
|
1967
|
-
@array.inspect
|
|
1968
|
-
end
|
|
1969
|
-
|
|
1970
|
-
def pretty_print(q)
|
|
1971
|
-
q.group(1, '[', ']') do
|
|
1972
|
-
q.seplist(self) do |v|
|
|
1973
|
-
q.pp(v)
|
|
1974
|
-
end
|
|
1975
|
-
end
|
|
1976
|
-
end
|
|
1977
|
-
|
|
1978
|
-
def pretty_print_cycle(q)
|
|
1979
|
-
@array.pretty_print_cycle(q)
|
|
1980
|
-
end
|
|
1981
|
-
|
|
1982
|
-
def each(&block)
|
|
1983
|
-
@array.each(&block)
|
|
1984
|
-
end
|
|
1985
|
-
end
|
|
1986
|
-
|
|
1987
|
-
class Literal
|
|
1988
|
-
def initialize(value)
|
|
1989
|
-
@value = value
|
|
1990
|
-
end
|
|
1991
|
-
|
|
1992
|
-
def inspect
|
|
1993
|
-
@value.to_s
|
|
1994
|
-
end
|
|
1995
|
-
end
|
|
1996
|
-
|
|
1997
|
-
class DelayedLiteral
|
|
1998
|
-
def initialize(value)
|
|
1999
|
-
@value = value
|
|
2000
|
-
end
|
|
2001
|
-
|
|
2002
|
-
def inspect
|
|
2003
|
-
@value.call.to_s
|
|
2004
|
-
end
|
|
2005
|
-
end
|
|
2006
|
-
|
|
2007
|
-
class MaybeContainer
|
|
2008
|
-
def initialize(value, &formatter)
|
|
2009
|
-
@value = value
|
|
2010
|
-
@formatter = formatter
|
|
2011
|
-
end
|
|
2012
|
-
|
|
2013
|
-
def inspect
|
|
2014
|
-
if @value.is_a?(Array)
|
|
2015
|
-
values = @value.collect do |value|
|
|
2016
|
-
@formatter.call(AssertionMessage.convert(value))
|
|
2017
|
-
end
|
|
2018
|
-
"[#{values.join(', ')}]"
|
|
2019
|
-
else
|
|
2020
|
-
@formatter.call(AssertionMessage.convert(@value))
|
|
2021
|
-
end
|
|
2022
|
-
end
|
|
2023
|
-
end
|
|
2024
|
-
|
|
2025
|
-
class Template
|
|
2026
|
-
def self.create(string)
|
|
2027
|
-
parts = (string ? string.scan(/(?=[^\\])\?|(?:\\\?|[^\?])+/m) : [])
|
|
2028
|
-
self.new(parts)
|
|
2029
|
-
end
|
|
2030
|
-
|
|
2031
|
-
attr_reader :count
|
|
2032
|
-
|
|
2033
|
-
def initialize(parts)
|
|
2034
|
-
@parts = parts
|
|
2035
|
-
@count = parts.find_all{|e| e == '?'}.size
|
|
2036
|
-
end
|
|
2037
|
-
|
|
2038
|
-
def result(parameters)
|
|
2039
|
-
raise "The number of parameters does not match the number of substitutions." if(parameters.size != count)
|
|
2040
|
-
params = parameters.dup
|
|
2041
|
-
expanded_template = ""
|
|
2042
|
-
@parts.each do |part|
|
|
2043
|
-
if part == '?'
|
|
2044
|
-
param = params.shift
|
|
2045
|
-
if Object.const_defined?(:Encoding)
|
|
2046
|
-
expanded_template += concatenatable(param,
|
|
2047
|
-
expanded_template.encoding)
|
|
2048
|
-
else
|
|
2049
|
-
expanded_template += param
|
|
2050
|
-
end
|
|
2051
|
-
else
|
|
2052
|
-
expanded_template += part.gsub(/\\\?/m, '?')
|
|
2053
|
-
end
|
|
2054
|
-
end
|
|
2055
|
-
expanded_template
|
|
2056
|
-
end
|
|
2057
|
-
|
|
2058
|
-
private
|
|
2059
|
-
def concatenatable(text, encoding)
|
|
2060
|
-
if Encoding.compatible?(text, encoding)
|
|
2061
|
-
text
|
|
2062
|
-
else
|
|
2063
|
-
text.dup.force_encoding(encoding)
|
|
2064
|
-
end
|
|
2065
|
-
end
|
|
2066
|
-
end
|
|
2067
|
-
|
|
2068
|
-
include Util::BacktraceFilter
|
|
2069
|
-
|
|
2070
|
-
def initialize(user_message, template_string, parameters)
|
|
2071
|
-
@user_message = user_message
|
|
2072
|
-
@template_string = template_string
|
|
2073
|
-
@parameters = parameters
|
|
2074
|
-
end
|
|
2075
|
-
|
|
2076
|
-
def convert(object)
|
|
2077
|
-
self.class.convert(object)
|
|
2078
|
-
end
|
|
2079
|
-
|
|
2080
|
-
def template
|
|
2081
|
-
@template ||= Template.create(@template_string)
|
|
2082
|
-
end
|
|
2083
|
-
|
|
2084
|
-
def user_message
|
|
2085
|
-
return nil unless @user_message
|
|
2086
|
-
message = @user_message
|
|
2087
|
-
message = message.call if message.respond_to?(:call)
|
|
2088
|
-
message.to_s
|
|
2089
|
-
end
|
|
2090
|
-
|
|
2091
|
-
def to_s
|
|
2092
|
-
message_parts = []
|
|
2093
|
-
head = user_message
|
|
2094
|
-
if head and not head.empty?
|
|
2095
|
-
message_parts << add_period(head)
|
|
2096
|
-
end
|
|
2097
|
-
tail = template.result(@parameters.collect{|e| convert(e)})
|
|
2098
|
-
message_parts << tail unless(tail.empty?)
|
|
2099
|
-
message_parts.join("\n")
|
|
2100
|
-
end
|
|
2101
|
-
|
|
2102
|
-
private
|
|
2103
|
-
def add_period(string)
|
|
2104
|
-
(string =~ /\.\Z/ ? string : string + '.')
|
|
2105
|
-
end
|
|
2106
|
-
end
|
|
2107
|
-
|
|
2108
|
-
class AssertExceptionHelper
|
|
2109
|
-
class WrappedException
|
|
2110
|
-
attr_reader :exception
|
|
2111
|
-
def initialize(exception)
|
|
2112
|
-
@exception = exception
|
|
2113
|
-
end
|
|
2114
|
-
|
|
2115
|
-
def inspect
|
|
2116
|
-
if default_inspect?
|
|
2117
|
-
inspected = "#{@exception.class.inspect}(<#{@exception.message}>)"
|
|
2118
|
-
unless (@exception.backtrace || []).empty?
|
|
2119
|
-
inspected += "\n"
|
|
2120
|
-
@exception.backtrace.each do |trace|
|
|
2121
|
-
inspected << "#{trace}\n"
|
|
2122
|
-
end
|
|
2123
|
-
end
|
|
2124
|
-
inspected
|
|
2125
|
-
else
|
|
2126
|
-
@exception.inspect
|
|
2127
|
-
end
|
|
2128
|
-
end
|
|
2129
|
-
|
|
2130
|
-
def method_missing(name, *args, &block)
|
|
2131
|
-
@exception.__send__(name, *args, &block)
|
|
2132
|
-
end
|
|
2133
|
-
|
|
2134
|
-
private
|
|
2135
|
-
def default_inspect?
|
|
2136
|
-
inspect_method = @exception.method(:inspect)
|
|
2137
|
-
if inspect_method.respond_to?(:owner) and
|
|
2138
|
-
inspect_method.owner == Exception
|
|
2139
|
-
true
|
|
2140
|
-
else
|
|
2141
|
-
default_inspect_method = Exception.instance_method(:inspect)
|
|
2142
|
-
default_inspect_method.bind(@exception).call == @exception.inspect
|
|
2143
|
-
end
|
|
2144
|
-
end
|
|
2145
|
-
end
|
|
2146
|
-
|
|
2147
|
-
def initialize(test_case, expected_exceptions)
|
|
2148
|
-
@test_case = test_case
|
|
2149
|
-
@expected_exceptions = expected_exceptions
|
|
2150
|
-
@expected_classes, @expected_modules, @expected_objects =
|
|
2151
|
-
split_expected_exceptions(expected_exceptions)
|
|
2152
|
-
end
|
|
2153
|
-
|
|
2154
|
-
def expected_exceptions
|
|
2155
|
-
exceptions = @expected_exceptions.collect do |exception|
|
|
2156
|
-
if exception.is_a?(Exception)
|
|
2157
|
-
WrappedException.new(exception)
|
|
2158
|
-
else
|
|
2159
|
-
exception
|
|
2160
|
-
end
|
|
2161
|
-
end
|
|
2162
|
-
if exceptions.size == 1
|
|
2163
|
-
exceptions[0]
|
|
2164
|
-
else
|
|
2165
|
-
exceptions
|
|
2166
|
-
end
|
|
2167
|
-
end
|
|
2168
|
-
|
|
2169
|
-
def expected?(actual_exception, equality=nil)
|
|
2170
|
-
equality ||= :instance_of?
|
|
2171
|
-
expected_class?(actual_exception, equality) or
|
|
2172
|
-
expected_module?(actual_exception) or
|
|
2173
|
-
expected_object?(actual_exception)
|
|
2174
|
-
end
|
|
2175
|
-
|
|
2176
|
-
private
|
|
2177
|
-
def split_expected_exceptions(expected_exceptions)
|
|
2178
|
-
exception_modules = []
|
|
2179
|
-
exception_objects = []
|
|
2180
|
-
exception_classes = []
|
|
2181
|
-
expected_exceptions.each do |exception_type|
|
|
2182
|
-
if exception_type.instance_of?(Module)
|
|
2183
|
-
exception_modules << exception_type
|
|
2184
|
-
elsif exception_object?(exception_type)
|
|
2185
|
-
exception_objects << exception_type
|
|
2186
|
-
elsif exception_class?(exception_type)
|
|
2187
|
-
exception_classes << exception_type
|
|
2188
|
-
else
|
|
2189
|
-
full_message =
|
|
2190
|
-
@test_case.__send__(:build_message,
|
|
2191
|
-
nil,
|
|
2192
|
-
"<?> must be " +
|
|
2193
|
-
"a subclass of Exception, " +
|
|
2194
|
-
"an object of Exception subclasses " +
|
|
2195
|
-
"or a Module",
|
|
2196
|
-
exception_type)
|
|
2197
|
-
@test_case.flunk(full_message)
|
|
2198
|
-
end
|
|
2199
|
-
end
|
|
2200
|
-
[exception_classes, exception_modules, exception_objects]
|
|
2201
|
-
end
|
|
2202
|
-
|
|
2203
|
-
def exception_object?(exception_type)
|
|
2204
|
-
return true if exception_type.is_a?(Exception)
|
|
2205
|
-
|
|
2206
|
-
if Object.const_defined?(:Java)
|
|
2207
|
-
return true if exception_type.is_a?(Java::JavaLang::Throwable)
|
|
2208
|
-
end
|
|
2209
|
-
|
|
2210
|
-
false
|
|
2211
|
-
end
|
|
2212
|
-
|
|
2213
|
-
def exception_class?(exception_type)
|
|
2214
|
-
return true if exception_type <= Exception
|
|
2215
|
-
|
|
2216
|
-
if Object.const_defined?(:Java)
|
|
2217
|
-
return true if exception_type <= Java::JavaLang::Throwable
|
|
2218
|
-
end
|
|
2219
|
-
|
|
2220
|
-
false
|
|
2221
|
-
end
|
|
2222
|
-
|
|
2223
|
-
def expected_class?(actual_exception, equality)
|
|
2224
|
-
@expected_classes.any? do |expected_class|
|
|
2225
|
-
actual_exception.__send__(equality, expected_class)
|
|
2226
|
-
end
|
|
2227
|
-
end
|
|
2228
|
-
|
|
2229
|
-
def expected_module?(actual_exception)
|
|
2230
|
-
@expected_modules.any? do |expected_module|
|
|
2231
|
-
actual_exception.is_a?(expected_module)
|
|
2232
|
-
end
|
|
2233
|
-
end
|
|
2234
|
-
|
|
2235
|
-
def expected_object?(actual_exception)
|
|
2236
|
-
@expected_objects.any? do |expected_object|
|
|
2237
|
-
expected_object == actual_exception or
|
|
2238
|
-
fallback_exception_object_equal(expected_object, actual_exception)
|
|
2239
|
-
end
|
|
2240
|
-
end
|
|
2241
|
-
|
|
2242
|
-
def fallback_exception_object_equal(expected_object, actual_exception)
|
|
2243
|
-
owner = Util::MethodOwnerFinder.find(expected_object, :==)
|
|
2244
|
-
if owner == Kernel or owner == Exception
|
|
2245
|
-
expected_object.class == actual_exception.class and
|
|
2246
|
-
expected_object.message == actual_exception.message
|
|
2247
|
-
else
|
|
2248
|
-
false
|
|
2249
|
-
end
|
|
2250
|
-
end
|
|
2251
|
-
end
|
|
2252
|
-
|
|
2253
|
-
# :startdoc:
|
|
2254
|
-
end
|
|
2255
|
-
end
|
|
2256
|
-
end
|