pingram 1.0.39 → 1.0.41
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.lock +7 -7
- data/lib/pingram/api/account_api.rb +191 -4
- data/lib/pingram/api/accounts_api.rb +2 -2
- data/lib/pingram/api/addresses_api.rb +2 -2
- data/lib/pingram/api/broadcasts_api.rb +12 -12
- data/lib/pingram/api/domains_api.rb +4 -4
- data/lib/pingram/api/email_api.rb +2 -2
- data/lib/pingram/api/registrations_api.rb +4 -4
- data/lib/pingram/api/voice_api.rb +60 -318
- data/lib/pingram/api/webhooks_api.rb +6 -6
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/models/account_get_response_billing_alerts.rb +1 -1
- data/lib/pingram/models/account_payment_methods.rb +214 -0
- data/lib/pingram/models/account_payment_methods_payment_methods_inner.rb +270 -0
- data/lib/pingram/models/{bind_number_response_agent_spec_inbound.rb → agent.rb} +52 -34
- data/lib/pingram/models/{bind_number_response_agent_spec_outbound.rb → agent1.rb} +59 -47
- data/lib/pingram/models/agent_agent.rb +222 -0
- data/lib/pingram/models/{bind_number_response_agent_spec_conversation.rb → agent_agent_conversation.rb} +14 -109
- data/lib/pingram/models/agent_agent_model.rb +108 -0
- data/lib/pingram/models/{bind_number_response_agent_spec_tools_inner.rb → agent_agent_tools_inner.rb} +4 -2
- data/lib/pingram/models/{bind_number_response_agent_spec_variables_inner.rb → agent_agent_variables_inner.rb} +6 -3
- data/lib/pingram/models/{bind_number_request.rb → arm_voice_inbound_claim_request.rb} +20 -19
- data/lib/pingram/models/{bind_number_response_agent_spec_model.rb → arm_voice_inbound_claim_request_inbound.rb} +5 -4
- data/lib/pingram/models/arm_voice_inbound_claim_response.rb +192 -0
- data/lib/pingram/models/assign_payment_method_request.rb +216 -0
- data/lib/pingram/models/billing_post_response_body.rb +1 -1
- data/lib/pingram/models/broadcast_response.rb +1 -0
- data/lib/pingram/models/confirm_change_email_request.rb +14 -4
- data/lib/pingram/models/confirm_change_email_response.rb +192 -0
- data/lib/pingram/models/confirm_password_change_request.rb +191 -0
- data/lib/pingram/models/create_broadcast_request.rb +2 -1
- data/lib/pingram/models/create_payment_method_setup_request.rb +191 -0
- data/lib/pingram/models/custom.rb +39 -4
- data/lib/pingram/models/disabled.rb +188 -0
- data/lib/pingram/models/disconnect.rb +190 -0
- data/lib/pingram/models/dtmf.rb +2 -0
- data/lib/pingram/models/get_voice_call_response_call.rb +27 -27
- data/lib/pingram/models/get_voice_call_response_call_cost.rb +1 -1
- data/lib/pingram/models/get_voice_call_response_call_cost_lines_inner.rb +1 -1
- data/lib/pingram/models/google_gemini31_flash_live_preview.rb +230 -0
- data/lib/pingram/models/inbound_config.rb +106 -0
- data/lib/pingram/models/knowledge.rb +3 -0
- data/lib/pingram/models/knowledge_documents_inner.rb +2 -0
- data/lib/pingram/models/list_broadcasts_response_broadcasts_inner.rb +28 -27
- data/lib/pingram/models/list_broadcasts_response_broadcasts_inner_audience.rb +160 -0
- data/lib/pingram/models/list_invoices_response_invoices_inner.rb +1 -1
- data/lib/pingram/models/list_phone_numbers_response_numbers_inner.rb +7 -8
- data/lib/pingram/models/list_voice_calls_response_calls_inner.rb +27 -27
- data/lib/pingram/models/local_number_admin_update_request.rb +213 -0
- data/lib/pingram/models/local_number_admin_update_request_fields.rb +380 -0
- data/lib/pingram/models/{update_voice_agent_response.rb → local_number_submit_request.rb} +31 -27
- data/lib/pingram/models/local_number_upload_request.rb +267 -0
- data/lib/pingram/models/local_number_upload_response.rb +240 -0
- data/lib/pingram/models/logs_get_response_logs_inner.rb +12 -3
- data/lib/pingram/models/mcp.rb +4 -0
- data/lib/pingram/models/openai_gpt_live1.rb +230 -0
- data/lib/pingram/models/{s2s.rb → openai_gpt_realtime21.rb} +20 -85
- data/lib/pingram/models/openai_gpt_realtime21_mini.rb +230 -0
- data/lib/pingram/models/password_status_response.rb +195 -0
- data/lib/pingram/models/payment_method_setup.rb +191 -0
- data/lib/pingram/models/script.rb +225 -0
- data/lib/pingram/models/script1.rb +256 -0
- data/lib/pingram/models/{update_voice_agent_request.rb → script_privacy.rb} +20 -27
- data/lib/pingram/models/script_steps_inner.rb +215 -0
- data/lib/pingram/models/{get_voice_agent_response.rb → sign_in_username_request.rb} +19 -19
- data/lib/pingram/models/{bind_number_response.rb → sign_in_username_response.rb} +20 -19
- data/lib/pingram/models/sign_out_request.rb +165 -0
- data/lib/pingram/models/{list_voice_agents_response.rb → sms_compliance_countries_response.rb} +20 -20
- data/lib/pingram/models/sms_compliance_countries_response_countries_inner.rb +244 -0
- data/lib/pingram/models/{unbind_number_response.rb → sms_compliance_country.rb} +99 -19
- data/lib/pingram/models/sms_compliance_country_create_request.rb +208 -0
- data/lib/pingram/models/sms_local_number_registration_admin.rb +470 -0
- data/lib/pingram/models/sms_local_number_registration_admin_documents_inner.rb +243 -0
- data/lib/pingram/models/sms_local_number_submit_response.rb +345 -0
- data/lib/pingram/models/sms_local_number_submit_response_questions_inner.rb +240 -0
- data/lib/pingram/models/sms_local_number_submit_response_slots_inner.rb +355 -0
- data/lib/pingram/models/sms_registration.rb +244 -0
- data/lib/pingram/models/sms_registration_a2p10dlc.rb +774 -0
- data/lib/pingram/models/{create_voice_agent_request.rb → sms_registration_create_request.rb} +20 -27
- data/lib/pingram/models/sms_registration_create_request_a2p10dlc.rb +702 -0
- data/lib/pingram/models/sms_registration_create_request_local_number.rb +243 -0
- data/lib/pingram/models/sms_registration_create_request_local_number_documents_inner.rb +237 -0
- data/lib/pingram/models/sms_registration_local_number.rb +433 -0
- data/lib/pingram/models/sms_registration_local_number_documents_inner.rb +216 -0
- data/lib/pingram/models/sms_registration_sender_id.rb +360 -0
- data/lib/pingram/models/{create_voice_agent_response.rb → sms_registration_update_request.rb} +20 -27
- data/lib/pingram/models/sms_registration_update_request_a2p10dlc.rb +535 -0
- data/lib/pingram/models/sms_registration_update_request_local_number.rb +202 -0
- data/lib/pingram/models/sms_sender_id.rb +293 -0
- data/lib/pingram/models/{bind_number_response_agent.rb → sms_sender_id_admin.rb} +66 -96
- data/lib/pingram/models/sms_sender_id_admin_update_request.rb +189 -0
- data/lib/pingram/models/{delete_voice_agent_response.rb → sms_sender_id_create_request.rb} +20 -19
- data/lib/pingram/models/start_change_email_request.rb +13 -20
- data/lib/pingram/models/start_password_change_request.rb +185 -0
- data/lib/pingram/models/transfer.rb +21 -53
- data/lib/pingram/models/transfer1.rb +223 -0
- data/lib/pingram/models/transfer_destinations_inner.rb +253 -0
- data/lib/pingram/models/update_broadcast_request.rb +2 -1
- data/lib/pingram/models/voice_browser_call_request.rb +57 -23
- data/lib/pingram/models/voice_browser_call_request_config.rb +104 -0
- data/lib/pingram/models/voice_browser_call_request_config_any_of.rb +104 -0
- data/lib/pingram/models/voice_call_request.rb +35 -44
- data/lib/pingram/models/voice_call_response.rb +2 -27
- data/lib/pingram/models/weather.rb +190 -0
- data/lib/pingram/models/webhook_endpoint.rb +14 -5
- data/lib/pingram/models/webhook_endpoint_basic_auth.rb +193 -0
- data/lib/pingram/models/webhook_endpoint_upsert_request.rb +15 -5
- data/lib/pingram/models/{bind_number_response_agent_spec_compliance.rb → webhook_endpoint_upsert_request_basic_auth.rb} +31 -19
- data/lib/pingram/models/webhook_endpoints_response_endpoints_inner.rb +14 -5
- data/lib/pingram/models/webhook_event.rb +2 -2
- data/lib/pingram/models/xai_grok_voice_latest.rb +230 -0
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +72 -21
- data/vendor/bundle/ruby/3.2.0/cache/ethon-0.19.1.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/cache/io-console-0.9.5.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/cache/parser-3.3.13.0.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/cache/pry-0.16.1.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/cache/typhoeus-1.7.1.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.6.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{io-console-0.9.4 → io-console-0.9.5}/gem_make.out +10 -10
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.5/io/console.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{io-console-0.9.4 → io-console-0.9.5}/mkmf.log +6 -6
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.5.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/CHANGELOG.md +1120 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/README.md +261 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/curl.rb +22 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/classes.rb +337 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/curls/codes.rb +28 -9
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/curls/constants.rb +61 -4
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/curls/form_options.rb +2 -1
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/functions.rb +107 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/curls/infos.rb +104 -5
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/introspection.rb +139 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/introspection_constants.rb +42 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/mime.rb +187 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/optional.rb +14 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/curls/options.rb +298 -71
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/settings.rb +21 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/share.rb +165 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/share_constants.rb +47 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/url.rb +171 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/url_constants.rb +78 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/callbacks.rb +281 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/features.rb +4 -1
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/files.rb +113 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/form.rb +65 -6
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/header.rb +103 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/headers_api.rb +79 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/actionable.rb +25 -3
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/get.rb +5 -1
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/post.rb +1 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/postable.rb +9 -2
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/http/putable.rb +40 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http.rb +16 -4
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/informations.rb +51 -2
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/mime.rb +29 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/mirror.rb +49 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/operations.rb +317 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/options.rb +369 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/queryable.rb +59 -14
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/response_callbacks.rb +33 -12
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/share.rb +28 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/url.rb +32 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/util.rb +47 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy.rb +185 -10
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/fork_safety.rb +10 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/form_add.rb +12 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/errors/global_init.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/header.rb +12 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/errors/invalid_option.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/invalid_value.rb +15 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/mime.rb +17 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/errors/multi_add.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/multi_assign.rb +12 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/errors/multi_fdset.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/multi_perform.rb +12 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/multi_poll.rb +12 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/errors/multi_remove.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/errors/multi_timeout.rb +2 -2
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/multi_wait.rb +12 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/multi_wakeup.rb +12 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/errors/select.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/set_option.rb +27 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/share.rb +17 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/unsupported_option.rb +23 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/url.rb +17 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/errors.rb +13 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/libc.rb +50 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/loggable.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/multi/operations.rb +472 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/multi/options.rb +219 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/multi/stack.rb +220 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/multi.rb +51 -15
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/version.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon.rb +8 -9
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.4 → io-console-0.9.5}/ext/io/console/console.c +8 -3
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.4 → io-console-0.9.5}/ext/io/console/extconf.rb +7 -3
- data/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.5/lib/io/console.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/current.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/version.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/CHANGELOG.md +12 -0
- data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/ls/constants.rb +2 -1
- data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/ls/globals.rb +2 -2
- data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/ls/instance_vars.rb +2 -0
- data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/ls/local_vars.rb +2 -1
- data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/ls/ls_entity.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/editor.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/helpers/base_helpers.rb +4 -2
- data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/pager.rb +5 -4
- data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/pry_instance.rb +3 -7
- data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/version.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/CHANGELOG.md +228 -1
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.7.1/README.md +766 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/UPGRADE.md +29 -0
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.7.1/lib/rack/typhoeus/middleware/params_decoder/helper.rb +129 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/rack/typhoeus/middleware/params_decoder.rb +8 -19
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/rack/typhoeus.rb +2 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/adapters/faraday.rb +89 -28
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/cache/dalli.rb +2 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/cache/rails.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/cache/redis.rb +2 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/config.rb +51 -7
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/easy_factory.rb +129 -23
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.7.1/lib/typhoeus/errors/invalid_option.rb +23 -0
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.7.1/lib/typhoeus/errors/no_response.rb +18 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/errors/no_stub.rb +8 -1
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/errors/typhoeus_error.rb +2 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/errors.rb +4 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/expectation.rb +33 -1
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/hydra/queueable.rb +29 -4
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.7.1/lib/typhoeus/hydra.rb +423 -0
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.7.1/lib/typhoeus/pool.rb +133 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/railtie.rb +4 -2
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/request/actions.rb +2 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/request/callbacks.rb +11 -4
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/request/marshal.rb +5 -2
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/request/streamable.rb +2 -0
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.7.1/lib/typhoeus/request.rb +510 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/response/cacheable.rb +2 -0
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.7.1/lib/typhoeus/response/header.rb +325 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/response/informations.rb +75 -12
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/response/status.rb +4 -13
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/response.rb +35 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/version.rb +3 -1
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.7.1/lib/typhoeus.rb +206 -0
- data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/typhoeus.gemspec +15 -3
- data/vendor/bundle/ruby/3.2.0/specifications/{ethon-0.18.0.gemspec → ethon-0.19.1.gemspec} +4 -4
- data/vendor/bundle/ruby/3.2.0/specifications/{io-console-0.9.4.gemspec → io-console-0.9.5.gemspec} +3 -3
- data/vendor/bundle/ruby/3.2.0/specifications/{parser-3.3.12.0.gemspec → parser-3.3.13.0.gemspec} +4 -4
- data/vendor/bundle/ruby/3.2.0/specifications/{pry-0.16.0.gemspec → pry-0.16.1.gemspec} +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/{typhoeus-1.6.0.gemspec → typhoeus-1.7.1.gemspec} +5 -5
- metadata +439 -374
- data/lib/pingram/models/bind_number_response_agent_spec.rb +0 -376
- data/lib/pingram/models/chained.rb +0 -401
- data/vendor/bundle/ruby/3.2.0/cache/ethon-0.18.0.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/cache/io-console-0.9.4.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/cache/parser-3.3.12.0.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/cache/pry-0.16.0.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/cache/typhoeus-1.6.0.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.4/io/console.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/CHANGELOG.md +0 -417
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/README.md +0 -118
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/curls/classes.rb +0 -65
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/curls/functions.rb +0 -58
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/curls/settings.rb +0 -12
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/easy/callbacks.rb +0 -155
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/easy/header.rb +0 -61
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/easy/http/putable.rb +0 -25
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/easy/mirror.rb +0 -36
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/easy/operations.rb +0 -64
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/easy/options.rb +0 -50
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/easy/util.rb +0 -28
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/errors/invalid_value.rb +0 -13
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/libc.rb +0 -21
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/multi/operations.rb +0 -228
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/multi/options.rb +0 -117
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/multi/stack.rb +0 -49
- data/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.4/lib/io/console.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/README.md +0 -588
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/rack/typhoeus/middleware/params_decoder/helper.rb +0 -76
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/hydra/addable.rb +0 -23
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/hydra/before.rb +0 -31
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/hydra/block_connection.rb +0 -35
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/hydra/cacheable.rb +0 -15
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/hydra/memoizable.rb +0 -56
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/hydra/runnable.rb +0 -19
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/hydra/stubbable.rb +0 -28
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/hydra.rb +0 -95
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/pool.rb +0 -70
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/request/before.rb +0 -30
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/request/block_connection.rb +0 -52
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/request/cacheable.rb +0 -38
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/request/memoizable.rb +0 -38
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/request/operations.rb +0 -40
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/request/responseable.rb +0 -29
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/request/stubbable.rb +0 -30
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/request.rb +0 -223
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/response/header.rb +0 -105
- data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus.rb +0 -143
- /data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{io-console-0.9.4 → io-console-0.9.5}/gem.build_complete +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/LICENSE +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/ethon.gemspec +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/curls/messages.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/debug_info.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/custom.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/delete.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/head.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/options.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/patch.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/put.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/params.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/errors/ethon_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.4 → io-console-0.9.5}/.document +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.4 → io-console-0.9.5}/BSDL +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.4 → io-console-0.9.5}/COPYING +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.4 → io-console-0.9.5}/README.md +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.4 → io-console-0.9.5}/ext/io/console/Makefile +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.4 → io-console-0.9.5}/ext/io/console/win32_vk.inc +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.4 → io-console-0.9.5}/lib/io/console/size.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/bin/ruby-parse +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/bin/ruby-rewrite +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/gauntlet_parser.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/all.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/ast/node.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/ast/processor.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/base.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/builders/default.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/clobbering_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/color.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/context.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/current_arg_stack.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/deprecation.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/diagnostic/engine.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/diagnostic.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/lexer/dedenter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/lexer/explanation.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/lexer/literal.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/lexer/stack_state.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/lexer-F0.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/lexer-F1.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/lexer-strings.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/macruby.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/max_numparam_stack.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/messages.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/meta.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/rewriter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/ruby18.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/ruby19.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/ruby20.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/ruby21.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/ruby22.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/ruby23.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/ruby24.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/ruby25.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/ruby26.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/ruby27.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/ruby30.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/ruby31.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/ruby32.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/ruby33.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/ruby34.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/rubymotion.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/runner/ruby_parse.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/runner/ruby_rewrite.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/runner.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/buffer.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/comment/associator.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/comment.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/map/collection.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/map/condition.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/map/constant.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/map/definition.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/map/for.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/map/heredoc.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/map/index.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/map/keyword.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/map/method_definition.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/map/objc_kwarg.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/map/operator.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/map/rescue_body.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/map/send.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/map/ternary.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/map/variable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/map.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/range.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/rewriter/action.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/rewriter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/tree_rewriter/action.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/source/tree_rewriter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/static_environment.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/syntax_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/tree_rewriter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/unknown_encoding_in_magic_comment_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser/variables_stack.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/lib/parser.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.3.12.0 → parser-3.3.13.0}/parser.gemspec +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/LICENSE +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/README.md +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/bin/pry +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/basic_object.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/block_command.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/class_command.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/cli.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/code/code_file.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/code/code_range.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/code/loc.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/code.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/code_object.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/color_printer.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/command.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/command_set.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/command_state.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/amend_line.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/bang.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/bang_pry.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/cat/abstract_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/cat/exception_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/cat/file_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/cat/input_expression_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/cat.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/cd.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/change_inspector.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/change_prompt.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/clear_screen.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/code_collector.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/disable_pry.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/easter_eggs.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/edit/exception_patcher.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/edit/file_and_line_locator.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/edit.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/exit.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/exit_all.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/exit_program.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/find_method.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/fix_indent.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/help.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/hist.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/import_set.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/jump_to.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/list_inspectors.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/ls/config.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/ls/formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/ls/grep.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/ls/interrogatable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/ls/jruby_hacks.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/ls/local_names.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/ls/methods.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/ls/methods_helper.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/ls/self_methods.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/ls.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/nesting.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/play.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/pry_backtrace.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/pry_version.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/raise_up.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/reload_code.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/reset.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/ri.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/save_file.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/shell_command.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/shell_mode.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/show_doc.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/show_info.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/show_input.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/show_source.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/stat.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/switch_to.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/toggle_color.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/watch_expression/expression.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/watch_expression.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/whereami.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/commands/wtf.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/config/attributable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/config/lazy_value.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/config/memoized_value.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/config/value.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/config.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/control_d_handler.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/core_extensions.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/env.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/exception_handler.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/exceptions.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/forwardable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/helpers/command_helpers.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/helpers/documentation_helpers.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/helpers/options_helpers.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/helpers/platform.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/helpers/table.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/helpers/text.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/helpers.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/history.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/hooks.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/indent.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/input/simple_stdio.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/input_completer.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/input_lock.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/inspector.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/last_exception.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/method/disowned.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/method/patcher.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/method/weird_method_locator.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/method.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/object_path.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/output.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/prompt.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/pry_class.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/repl.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/repl_file_loader.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/ring.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/slop/LICENSE +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/slop/commands.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/slop/option.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/slop.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/syntax_highlighter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/system_command_handler.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/testable/evalable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/testable/mockable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/testable/pry_tester.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/testable/utility.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/testable/variables.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/testable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/warning.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/wrapped_module/candidate.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry/wrapped_module.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{pry-0.16.0 → pry-0.16.1}/lib/pry.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/CONTRIBUTING.md +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/LICENSE +0 -0
|
@@ -0,0 +1,766 @@
|
|
|
1
|
+
# Typhoeus [](https://badge.fury.io/rb/typhoeus) [](https://github.com/typhoeus/typhoeus/actions/workflows/ci.yml) [](https://github.com/typhoeus/typhoeus/actions/workflows/experimental.yml)
|
|
2
|
+
|
|
3
|
+
Typhoeus is a Ruby HTTP client built on [libcurl](https://curl.se/libcurl/).
|
|
4
|
+
Run individual requests, or queue many on `Typhoeus::Hydra` to execute them in
|
|
5
|
+
parallel. It supports redirects, timeouts, streaming, caching, memoization,
|
|
6
|
+
stubbing, and callbacks while still exposing libcurl's options.
|
|
7
|
+
|
|
8
|
+
- `Typhoeus::Request` and `Typhoeus::Response` model a single transfer.
|
|
9
|
+
- `Typhoeus::Hydra` queues requests and runs them concurrently.
|
|
10
|
+
- `Typhoeus.get`, `.post`, and the other shortcuts cover common cases.
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
A single request:
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
Typhoeus.get("www.example.com", followlocation: true)
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Parallel requests:
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
hydra = Typhoeus::Hydra.new
|
|
24
|
+
10.times do
|
|
25
|
+
hydra.queue(Typhoeus::Request.new("www.example.com", followlocation: true))
|
|
26
|
+
end
|
|
27
|
+
hydra.run
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Installation
|
|
31
|
+
|
|
32
|
+
Add the gem to your bundle:
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
bundle add typhoeus
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Or install it directly:
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
gem install typhoeus
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Typhoeus requires Ruby 2.6 or later and Ethon 0.19.
|
|
45
|
+
|
|
46
|
+
## Documentation
|
|
47
|
+
|
|
48
|
+
- [API documentation](https://rubydoc.info/github/typhoeus/typhoeus) (master)
|
|
49
|
+
- [Changelog](https://github.com/typhoeus/typhoeus/blob/master/CHANGELOG.md)
|
|
50
|
+
|
|
51
|
+
## Usage
|
|
52
|
+
|
|
53
|
+
### Introduction
|
|
54
|
+
|
|
55
|
+
Typhoeus's primary interface consists of three classes: `Request`, `Response`,
|
|
56
|
+
and `Hydra`. A request describes an HTTP call, a response exposes its result,
|
|
57
|
+
and a hydra runs requests in parallel.
|
|
58
|
+
|
|
59
|
+
```ruby
|
|
60
|
+
request = Typhoeus::Request.new(
|
|
61
|
+
"www.example.com",
|
|
62
|
+
method: :post,
|
|
63
|
+
body: "this is a request body",
|
|
64
|
+
params: { field1: "a field" },
|
|
65
|
+
headers: { Accept: "text/html" }
|
|
66
|
+
)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
The first argument is the URL and the second is an options hash. All options
|
|
70
|
+
are optional, and the method defaults to `:get`.
|
|
71
|
+
|
|
72
|
+
URL parameters go in `:params`. Form-encoded body parameters go in `:body`.
|
|
73
|
+
`:params` are appended to the URL; `:body` becomes the request body.
|
|
74
|
+
|
|
75
|
+
#### Sending requests through the proxy
|
|
76
|
+
|
|
77
|
+
Add `proxy` to the options:
|
|
78
|
+
|
|
79
|
+
```ruby
|
|
80
|
+
options = { proxy: "http://myproxy.org" }
|
|
81
|
+
request = Typhoeus::Request.new(url, options)
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
If the proxy requires authentication, set `proxyuserpwd` to `user:password`,
|
|
85
|
+
just like the basic-auth `userpwd` option:
|
|
86
|
+
|
|
87
|
+
```ruby
|
|
88
|
+
options = { proxy: "http://proxyurl.com", proxyuserpwd: "user:password" }
|
|
89
|
+
request = Typhoeus::Request.new(url, options)
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Run the request directly or queue it on a hydra:
|
|
93
|
+
|
|
94
|
+
```ruby
|
|
95
|
+
request.run
|
|
96
|
+
#=> <Typhoeus::Response ... >
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
```ruby
|
|
100
|
+
hydra = Typhoeus::Hydra.hydra
|
|
101
|
+
hydra.queue(request)
|
|
102
|
+
hydra.run
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
After the request finishes, read the response:
|
|
106
|
+
|
|
107
|
+
```ruby
|
|
108
|
+
response = request.response
|
|
109
|
+
response.code
|
|
110
|
+
response.total_time
|
|
111
|
+
response.headers
|
|
112
|
+
response.body
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Making Quick Requests
|
|
116
|
+
|
|
117
|
+
Typhoeus provides convenience methods for single requests. They take the same
|
|
118
|
+
URL and options as `Request.new`.
|
|
119
|
+
|
|
120
|
+
```ruby
|
|
121
|
+
Typhoeus.get("www.example.com")
|
|
122
|
+
Typhoeus.head("www.example.com")
|
|
123
|
+
Typhoeus.put("www.example.com/posts/1", body: "a body")
|
|
124
|
+
Typhoeus.patch("www.example.com/posts/1", body: "a new body")
|
|
125
|
+
Typhoeus.post("www.example.com/posts", body: { title: "test post", content: "this is my test" })
|
|
126
|
+
Typhoeus.delete("www.example.com/posts/1")
|
|
127
|
+
Typhoeus.options("www.example.com")
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
#### Sending params in the body with PUT
|
|
131
|
+
|
|
132
|
+
POST sets `Content-Type` to `application/x-www-form-urlencoded` when the body
|
|
133
|
+
is a hash. Other methods, including PUT, PATCH, and HEAD, do not. To receive a
|
|
134
|
+
PUT hash as form parameters, set the header yourself:
|
|
135
|
+
|
|
136
|
+
```ruby
|
|
137
|
+
Typhoeus.put(
|
|
138
|
+
"www.example.com/posts/1",
|
|
139
|
+
headers: { "Content-Type" => "application/x-www-form-urlencoded" },
|
|
140
|
+
body: { title: "test post updated title", content: "this is my updated content" }
|
|
141
|
+
)
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Before callbacks
|
|
145
|
+
|
|
146
|
+
Use `Typhoeus.before` for every request, or `request.before` for a single
|
|
147
|
+
request. Callbacks receive the request, run before it is performed, and can
|
|
148
|
+
modify it. Returning `nil` or `false` skips the request and returns its current
|
|
149
|
+
response; returning a `Typhoeus::Response` skips the request and returns that
|
|
150
|
+
response. The returned response is treated as a mock, so it is not cached.
|
|
151
|
+
|
|
152
|
+
```ruby
|
|
153
|
+
Typhoeus.before { |request| request.options[:timeout] ||= 5 }
|
|
154
|
+
|
|
155
|
+
request = Typhoeus::Request.new("www.example.com")
|
|
156
|
+
request.before { |request| request.options[:headers] ||= {} }
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
To skip before callbacks globally, for example when your application does not
|
|
160
|
+
use them:
|
|
161
|
+
|
|
162
|
+
```ruby
|
|
163
|
+
Typhoeus::Config.exclude_features = [:before]
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Handling HTTP errors
|
|
167
|
+
|
|
168
|
+
After the request completes, inspect the response. `success?` covers both
|
|
169
|
+
transport and HTTP failures, `timed_out?` identifies timeouts, and a zero code
|
|
170
|
+
means no HTTP response was received. Define callbacks before running the
|
|
171
|
+
request.
|
|
172
|
+
|
|
173
|
+
```ruby
|
|
174
|
+
request = Typhoeus::Request.new("www.example.com", followlocation: true)
|
|
175
|
+
|
|
176
|
+
request.on_complete do |response|
|
|
177
|
+
if response.success?
|
|
178
|
+
# Request succeeded
|
|
179
|
+
elsif response.timed_out?
|
|
180
|
+
log("request timed out")
|
|
181
|
+
elsif response.code == 0
|
|
182
|
+
log(response.return_message)
|
|
183
|
+
else
|
|
184
|
+
log("HTTP request failed: #{response.code}")
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
request.run
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
This works for blocking and parallel requests; both return a `Response`.
|
|
192
|
+
|
|
193
|
+
### Handling file uploads
|
|
194
|
+
|
|
195
|
+
Pass a `File` in the body to upload a file with a POST request. Typhoeus sends
|
|
196
|
+
the original file name and detects the content type with Mime::Types when the
|
|
197
|
+
optional `mime-types` gem is installed. Without that gem, it uses
|
|
198
|
+
`application/octet-stream`.
|
|
199
|
+
|
|
200
|
+
```ruby
|
|
201
|
+
Typhoeus.post(
|
|
202
|
+
"http://localhost:3000/posts",
|
|
203
|
+
body: {
|
|
204
|
+
title: "test post",
|
|
205
|
+
content: "this is my test",
|
|
206
|
+
file: File.open("thesis.txt", "r")
|
|
207
|
+
}
|
|
208
|
+
)
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### Streaming the response body
|
|
212
|
+
|
|
213
|
+
Set `on_body` to receive response chunks as they arrive. This is useful for
|
|
214
|
+
large responses, and Typhoeus does not retain the complete body.
|
|
215
|
+
|
|
216
|
+
```ruby
|
|
217
|
+
downloaded_file = File.open("huge.iso", "wb")
|
|
218
|
+
request = Typhoeus::Request.new("www.example.com/huge.iso")
|
|
219
|
+
request.on_headers do |response|
|
|
220
|
+
raise "Request failed" if response.code != 200
|
|
221
|
+
end
|
|
222
|
+
request.on_body do |chunk|
|
|
223
|
+
downloaded_file.write(chunk)
|
|
224
|
+
end
|
|
225
|
+
request.on_complete do |response|
|
|
226
|
+
downloaded_file.close
|
|
227
|
+
# response.body is empty
|
|
228
|
+
end
|
|
229
|
+
request.run
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
Return `:abort` from the `on_body` block to stop the transfer cleanly:
|
|
233
|
+
|
|
234
|
+
```ruby
|
|
235
|
+
request.on_body do |chunk|
|
|
236
|
+
buffer << chunk
|
|
237
|
+
:abort if buffer.size > 1024 * 1024
|
|
238
|
+
end
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
Returning `:abort` stops the transfer without buffering the rest of the
|
|
242
|
+
response. Leaving the block with `return`, `throw`, or `raise` can leave the
|
|
243
|
+
transfer in an inconsistent state.
|
|
244
|
+
|
|
245
|
+
### Progress callbacks
|
|
246
|
+
|
|
247
|
+
Set `on_progress` to observe the transfer. The callback receives the total and
|
|
248
|
+
current number of downloaded and uploaded bytes:
|
|
249
|
+
|
|
250
|
+
```ruby
|
|
251
|
+
request = Typhoeus::Request.new("www.example.com/huge.iso")
|
|
252
|
+
request.on_progress do |dltotal, dlnow, ultotal, ulnow|
|
|
253
|
+
puts "#{dlnow}/#{dltotal} bytes"
|
|
254
|
+
end
|
|
255
|
+
request.run
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
Progress callbacks run during the transfer. Use `on_complete` for completion.
|
|
259
|
+
|
|
260
|
+
### Making Parallel Requests
|
|
261
|
+
|
|
262
|
+
Use `Hydra` to run requests in parallel. `hydra.run` blocks until all queued
|
|
263
|
+
requests finish.
|
|
264
|
+
|
|
265
|
+
```ruby
|
|
266
|
+
hydra = Typhoeus::Hydra.hydra
|
|
267
|
+
|
|
268
|
+
first_request = Typhoeus::Request.new("http://example.com/posts/1")
|
|
269
|
+
first_request.on_complete do |response|
|
|
270
|
+
third_request = Typhoeus::Request.new(response.body)
|
|
271
|
+
hydra.queue(third_request)
|
|
272
|
+
end
|
|
273
|
+
second_request = Typhoeus::Request.new("http://example.com/posts/2")
|
|
274
|
+
|
|
275
|
+
hydra.queue(first_request)
|
|
276
|
+
hydra.queue(second_request)
|
|
277
|
+
hydra.run # blocks until all requests are complete
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
`hydra.run` starts the first two requests. When the first completes, its
|
|
281
|
+
`on_complete` callback queues a third request, which starts immediately while
|
|
282
|
+
the second request continues. `hydra.run` returns when all three finish.
|
|
283
|
+
|
|
284
|
+
Collect responses from the requests after the run:
|
|
285
|
+
|
|
286
|
+
```ruby
|
|
287
|
+
hydra = Typhoeus::Hydra.new
|
|
288
|
+
requests = 10.times.map do
|
|
289
|
+
request = Typhoeus::Request.new("www.example.com", followlocation: true)
|
|
290
|
+
hydra.queue(request)
|
|
291
|
+
request
|
|
292
|
+
end
|
|
293
|
+
hydra.run
|
|
294
|
+
|
|
295
|
+
responses = requests.map { |request| request.response.body }
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
To handle responses as they complete, use `on_complete` instead:
|
|
299
|
+
|
|
300
|
+
```ruby
|
|
301
|
+
hydra = Typhoeus::Hydra.new
|
|
302
|
+
10.times do
|
|
303
|
+
request = Typhoeus::Request.new("www.example.com", followlocation: true)
|
|
304
|
+
request.on_complete do |response|
|
|
305
|
+
# handle response
|
|
306
|
+
end
|
|
307
|
+
hydra.queue(request)
|
|
308
|
+
end
|
|
309
|
+
hydra.run
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
### Making Parallel Requests with Faraday + Typhoeus
|
|
313
|
+
|
|
314
|
+
Typhoeus ships a Faraday adapter that supports Faraday 1.x and 2.x.
|
|
315
|
+
|
|
316
|
+
```ruby
|
|
317
|
+
require "faraday"
|
|
318
|
+
|
|
319
|
+
conn = Faraday.new(url: "http://httppage.com") do |builder|
|
|
320
|
+
builder.request :url_encoded
|
|
321
|
+
builder.response :logger
|
|
322
|
+
builder.adapter :typhoeus
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
conn.in_parallel do
|
|
326
|
+
response1 = conn.get("/first")
|
|
327
|
+
response2 = conn.get("/second")
|
|
328
|
+
|
|
329
|
+
# Inside in_parallel, the responses are not complete yet.
|
|
330
|
+
response1.body
|
|
331
|
+
response2.body
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
# After in_parallel returns, the responses are populated.
|
|
335
|
+
response1.body
|
|
336
|
+
response2.body
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
### Specifying Max Concurrency
|
|
340
|
+
|
|
341
|
+
Hydra runs at most 200 requests concurrently by default. Additional queued
|
|
342
|
+
requests wait until a running request finishes. Set a lower or higher limit on
|
|
343
|
+
the constructor:
|
|
344
|
+
|
|
345
|
+
```ruby
|
|
346
|
+
Typhoeus::Hydra.new(max_concurrency: 20)
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
### Memoization
|
|
350
|
+
|
|
351
|
+
With memoization enabled, Hydra sends a single request for identical GET
|
|
352
|
+
requests in a run and executes each request's `on_complete` callback.
|
|
353
|
+
Memoization is disabled by default:
|
|
354
|
+
|
|
355
|
+
```ruby
|
|
356
|
+
Typhoeus::Config.memoize = true
|
|
357
|
+
|
|
358
|
+
hydra = Typhoeus::Hydra.new(max_concurrency: 1)
|
|
359
|
+
2.times do
|
|
360
|
+
hydra.queue(Typhoeus::Request.new("www.example.com"))
|
|
361
|
+
end
|
|
362
|
+
hydra.run
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
With memoization disabled, Hydra sends both requests:
|
|
366
|
+
|
|
367
|
+
```ruby
|
|
368
|
+
Typhoeus::Config.memoize = false
|
|
369
|
+
|
|
370
|
+
hydra = Typhoeus::Hydra.new(max_concurrency: 1)
|
|
371
|
+
2.times do
|
|
372
|
+
hydra.queue(Typhoeus::Request.new("www.example.com"))
|
|
373
|
+
end
|
|
374
|
+
hydra.run
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
### Caching
|
|
378
|
+
|
|
379
|
+
Typhoeus can cache responses. A cache store implements `get(request)` and
|
|
380
|
+
`set(request, response)`, and a cache hit is delivered through the request's
|
|
381
|
+
`on_complete` callback.
|
|
382
|
+
|
|
383
|
+
```ruby
|
|
384
|
+
class Cache
|
|
385
|
+
def initialize
|
|
386
|
+
@memory = {}
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
def get(request)
|
|
390
|
+
@memory[request]
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
def set(request, response)
|
|
394
|
+
@memory[request] = response
|
|
395
|
+
end
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
Typhoeus::Config.cache = Cache.new
|
|
399
|
+
|
|
400
|
+
Typhoeus.get("www.example.com").cached?
|
|
401
|
+
#=> false
|
|
402
|
+
Typhoeus.get("www.example.com").cached?
|
|
403
|
+
#=> true
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
Typhoeus ships adapters for [Dalli](https://github.com/mperham/dalli), Rails,
|
|
407
|
+
and [Redis](https://github.com/redis/redis-rb):
|
|
408
|
+
|
|
409
|
+
```ruby
|
|
410
|
+
require "typhoeus/cache/dalli"
|
|
411
|
+
|
|
412
|
+
dalli = Dalli::Client.new(...)
|
|
413
|
+
Typhoeus::Config.cache = Typhoeus::Cache::Dalli.new(dalli)
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
```ruby
|
|
417
|
+
require "typhoeus/cache/rails"
|
|
418
|
+
|
|
419
|
+
Typhoeus::Config.cache = Typhoeus::Cache::Rails.new
|
|
420
|
+
```
|
|
421
|
+
|
|
422
|
+
```ruby
|
|
423
|
+
require "typhoeus/cache/redis"
|
|
424
|
+
|
|
425
|
+
redis = Redis.new(...)
|
|
426
|
+
Typhoeus::Config.cache = Typhoeus::Cache::Redis.new(redis)
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
Each adapter accepts a `default_ttl` in seconds for requests without a
|
|
430
|
+
`cache_ttl`:
|
|
431
|
+
|
|
432
|
+
```ruby
|
|
433
|
+
Typhoeus::Config.cache = Typhoeus::Cache::Dalli.new(dalli, default_ttl: 3600)
|
|
434
|
+
```
|
|
435
|
+
|
|
436
|
+
Disable caching for one request with `cache: false`, or pass a different store:
|
|
437
|
+
|
|
438
|
+
```ruby
|
|
439
|
+
Typhoeus.get("www.example.com", cache: false)
|
|
440
|
+
Typhoeus.get("www.example.com", cache: Cache.new)
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
The cache key includes the URL and all request options except the cache store
|
|
444
|
+
and `cache_ttl`. The store decides where a response is cached and the TTL
|
|
445
|
+
decides how long it is cached; neither changes which response is cached.
|
|
446
|
+
|
|
447
|
+
### Stubbing
|
|
448
|
+
|
|
449
|
+
Stub URLs or patterns to keep tests off the network. A stub matches the
|
|
450
|
+
request's base URL.
|
|
451
|
+
|
|
452
|
+
```ruby
|
|
453
|
+
response = Typhoeus::Response.new(code: 200, body: "{'name' : 'paul'}")
|
|
454
|
+
Typhoeus.stub("www.example.com").and_return(response)
|
|
455
|
+
|
|
456
|
+
Typhoeus.get("www.example.com") == response
|
|
457
|
+
#=> true
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
Pass a regexp to match multiple URLs:
|
|
461
|
+
|
|
462
|
+
```ruby
|
|
463
|
+
response = Typhoeus::Response.new(code: 200, body: "{'name' : 'paul'}")
|
|
464
|
+
Typhoeus.stub(/example/).and_return(response)
|
|
465
|
+
|
|
466
|
+
Typhoeus.get("www.example.com") == response
|
|
467
|
+
#=> true
|
|
468
|
+
```
|
|
469
|
+
|
|
470
|
+
Pass an array to return responses in sequence:
|
|
471
|
+
|
|
472
|
+
```ruby
|
|
473
|
+
Typhoeus.stub("www.example.com").and_return([response1, response2])
|
|
474
|
+
|
|
475
|
+
Typhoeus.get("www.example.com") == response1 #=> true
|
|
476
|
+
Typhoeus.get("www.example.com") == response2 #=> true
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
To make a real request while `Typhoeus::Config.block_connection` is enabled,
|
|
480
|
+
wrap it in `Typhoeus.with_connection`. Stubs are bypassed inside the block,
|
|
481
|
+
which lets a stub forward to a real service:
|
|
482
|
+
|
|
483
|
+
```ruby
|
|
484
|
+
Typhoeus::Config.block_connection = true
|
|
485
|
+
Typhoeus.stub("http://elastic:9200") do |request|
|
|
486
|
+
Typhoeus.with_connection { request.run }
|
|
487
|
+
end
|
|
488
|
+
```
|
|
489
|
+
|
|
490
|
+
Clear expectations between tests, or stubs will leak into later examples:
|
|
491
|
+
|
|
492
|
+
```ruby
|
|
493
|
+
RSpec.configure do |config|
|
|
494
|
+
config.before :each do
|
|
495
|
+
Typhoeus::Expectation.clear
|
|
496
|
+
end
|
|
497
|
+
end
|
|
498
|
+
```
|
|
499
|
+
|
|
500
|
+
### Timeouts
|
|
501
|
+
|
|
502
|
+
Typhoeus does not raise on HTTP timeouts. Check the response instead:
|
|
503
|
+
|
|
504
|
+
```ruby
|
|
505
|
+
response = Typhoeus.get("www.example.com", timeout: 1)
|
|
506
|
+
response.timed_out? #=> true
|
|
507
|
+
response.success? #=> false
|
|
508
|
+
```
|
|
509
|
+
|
|
510
|
+
Two timeouts are available: [`timeout`](http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTTIMEOUT)
|
|
511
|
+
and [`connecttimeout`](http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTCONNECTTIMEOUT).
|
|
512
|
+
`timeout` limits the entire request, while `connecttimeout` limits only the
|
|
513
|
+
connection phase. Both are in seconds.
|
|
514
|
+
|
|
515
|
+
`timeout_ms` and `connecttimeout_ms` offer millisecond precision, but are not
|
|
516
|
+
available on every platform (for example, Linux without `nosignal: true`).
|
|
517
|
+
When a timeout is a float, Typhoeus also sets the corresponding `*_ms` option
|
|
518
|
+
and rounds the seconds value up.
|
|
519
|
+
|
|
520
|
+
DNS timeouts under one second require libcurl built with an asynchronous
|
|
521
|
+
resolver.
|
|
522
|
+
|
|
523
|
+
`timeout` defaults to 0, which means no transfer timeout. `connecttimeout`
|
|
524
|
+
defaults to 300 seconds; passing 0 also uses 300 seconds.
|
|
525
|
+
|
|
526
|
+
### Threads and forking
|
|
527
|
+
|
|
528
|
+
Typhoeus delegates handle management to Ethon. Ethon raises
|
|
529
|
+
`Ethon::Errors::ForkSafety` for `Ethon::Easy` and `Ethon::Multi` handles
|
|
530
|
+
inherited across `fork`. Typhoeus clears its easy pool in the child process and
|
|
531
|
+
creates a hydra's native multi handle lazily, so creating or memoizing a hydra
|
|
532
|
+
during boot does not initialize libcurl. Typhoeus cannot reset libcurl's
|
|
533
|
+
process-global state. If libcurl is initialized before forking, for example by
|
|
534
|
+
making a request during boot, use `fork` followed by `exec`, or fork before the
|
|
535
|
+
first request.
|
|
536
|
+
|
|
537
|
+
On macOS, libcurl's global initialization can touch Objective-C and crash a
|
|
538
|
+
forked child with `objc_initializeAfterForkError`. Initialize libcurl in the
|
|
539
|
+
parent before the workers fork:
|
|
540
|
+
|
|
541
|
+
```ruby
|
|
542
|
+
# config/initializers/ethon.rb in Rails, or before_fork in Puma
|
|
543
|
+
require "ethon"
|
|
544
|
+
Ethon::Curl.init
|
|
545
|
+
```
|
|
546
|
+
|
|
547
|
+
If you cannot initialize libcurl before forking, set
|
|
548
|
+
`OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES` in the environment. It skips the
|
|
549
|
+
safety check in the child, so prefer initializing libcurl before the fork.
|
|
550
|
+
|
|
551
|
+
Typhoeus keeps at most `Typhoeus::Config.max_idle_easies` idle easy handles in
|
|
552
|
+
the pool (20 by default). Handles beyond that limit are cleaned up instead of
|
|
553
|
+
pooled. Set it to `nil` to keep every handle or `0` to disable pooling.
|
|
554
|
+
|
|
555
|
+
Exceptions raised by `on_body` and `on_complete` callbacks are propagated by
|
|
556
|
+
Ethon. Typhoeus releases the underlying easy handle before re-raising.
|
|
557
|
+
|
|
558
|
+
### Ethon 0.19
|
|
559
|
+
|
|
560
|
+
Typhoeus requires Ethon 0.19. Ethon 0.19 makes several previously
|
|
561
|
+
silent errors visible:
|
|
562
|
+
|
|
563
|
+
- Unknown enum and bitmask option values raise `Ethon::Errors::InvalidValue`,
|
|
564
|
+
and options the loaded libcurl does not know raise
|
|
565
|
+
`Ethon::Errors::UnsupportedOption`. Guard optional options with
|
|
566
|
+
`Ethon::Curl.supports_option?` when you need to support older libcurl builds.
|
|
567
|
+
- Exceptions raised by `on_body` and `on_complete` callbacks are re-raised.
|
|
568
|
+
- Multipart PUT requests are sent as `multipart/form-data`.
|
|
569
|
+
- Pass `errorbuffer: true` to expose libcurl's detailed error as
|
|
570
|
+
`response.error_message`.
|
|
571
|
+
|
|
572
|
+
### Following Redirections
|
|
573
|
+
|
|
574
|
+
Enable redirects with `followlocation: true`:
|
|
575
|
+
|
|
576
|
+
```ruby
|
|
577
|
+
Typhoeus.get("www.example.com", followlocation: true)
|
|
578
|
+
```
|
|
579
|
+
|
|
580
|
+
### Basic Authentication
|
|
581
|
+
|
|
582
|
+
Pass `userpwd` as `username:password`:
|
|
583
|
+
|
|
584
|
+
```ruby
|
|
585
|
+
Typhoeus::Request.get("www.example.com", userpwd: "user:password")
|
|
586
|
+
```
|
|
587
|
+
|
|
588
|
+
### Compression
|
|
589
|
+
|
|
590
|
+
Use `accept_encoding` to request and decompress a compressed response:
|
|
591
|
+
|
|
592
|
+
```ruby
|
|
593
|
+
Typhoeus.get("www.example.com", accept_encoding: "gzip")
|
|
594
|
+
```
|
|
595
|
+
|
|
596
|
+
Setting the `Accept-Encoding` header directly does not add libcurl's automatic
|
|
597
|
+
decompression, so the response stays compressed:
|
|
598
|
+
|
|
599
|
+
```ruby
|
|
600
|
+
Typhoeus.get("www.example.com", headers: { "Accept-Encoding" => "gzip" })
|
|
601
|
+
```
|
|
602
|
+
|
|
603
|
+
### Cookies
|
|
604
|
+
|
|
605
|
+
Pass a file to read cookies from and a file to write them to:
|
|
606
|
+
|
|
607
|
+
```ruby
|
|
608
|
+
Typhoeus::Request.get(
|
|
609
|
+
"www.example.com",
|
|
610
|
+
cookiefile: "/path/to/file",
|
|
611
|
+
cookiejar: "/path/to/file"
|
|
612
|
+
)
|
|
613
|
+
```
|
|
614
|
+
|
|
615
|
+
`cookiefile` is read before the request and `cookiejar` is written after it.
|
|
616
|
+
Use the same path for both if you want one file for reading and writing.
|
|
617
|
+
|
|
618
|
+
### Other curl options
|
|
619
|
+
|
|
620
|
+
Any libcurl option can be passed as a request option. See the
|
|
621
|
+
[Ethon option documentation](http://rubydoc.info/github/typhoeus/ethon/Ethon/Easy/Options).
|
|
622
|
+
|
|
623
|
+
An empty header value suppresses libcurl's default header. To send a header
|
|
624
|
+
with an empty value, end the key with a semicolon:
|
|
625
|
+
|
|
626
|
+
```ruby
|
|
627
|
+
Typhoeus.get("www.example.com", headers: { "X-Empty;" => "" })
|
|
628
|
+
```
|
|
629
|
+
|
|
630
|
+
Typhoeus sends an empty `Expect` header by default to suppress the
|
|
631
|
+
`100-continue` handshake. Pass `nil` to leave the decision to libcurl, which
|
|
632
|
+
adds the header for uploads with an unknown size and for multipart bodies:
|
|
633
|
+
|
|
634
|
+
```ruby
|
|
635
|
+
Typhoeus.post("www.example.com", headers: { "Expect" => nil }, body: data)
|
|
636
|
+
```
|
|
637
|
+
|
|
638
|
+
### SSL
|
|
639
|
+
|
|
640
|
+
SSL is handled by libcurl. HTTPS URLs work when libcurl was built with SSL
|
|
641
|
+
support and the [CA bundle](http://curl.haxx.se/docs/caextract.html) is valid.
|
|
642
|
+
If `SSL_CERT_FILE` or `SSL_CERT_DIR` is set, Typhoeus uses it as the default CA
|
|
643
|
+
bundle or directory; explicit `:cainfo` and `:capath` options take precedence.
|
|
644
|
+
Check libcurl's build with:
|
|
645
|
+
|
|
646
|
+
```sh
|
|
647
|
+
curl --version
|
|
648
|
+
```
|
|
649
|
+
|
|
650
|
+
If a certificate cannot be verified, disable peer verification:
|
|
651
|
+
|
|
652
|
+
```ruby
|
|
653
|
+
Typhoeus.get("https://www.example.com", ssl_verifypeer: false)
|
|
654
|
+
```
|
|
655
|
+
|
|
656
|
+
If the certificate does not match the host, disable host verification:
|
|
657
|
+
|
|
658
|
+
```ruby
|
|
659
|
+
# Verify the host name (default)
|
|
660
|
+
Typhoeus.get("https://www.example.com", ssl_verifyhost: 2)
|
|
661
|
+
# Do not verify the host name
|
|
662
|
+
Typhoeus.get("https://www.example.com", ssl_verifyhost: 0)
|
|
663
|
+
```
|
|
664
|
+
|
|
665
|
+
Only disable these checks in controlled environments.
|
|
666
|
+
|
|
667
|
+
### Verbose debug output
|
|
668
|
+
|
|
669
|
+
Enable verbose output per request:
|
|
670
|
+
|
|
671
|
+
```ruby
|
|
672
|
+
Typhoeus.get("http://example.com", verbose: true)
|
|
673
|
+
```
|
|
674
|
+
|
|
675
|
+
Or globally:
|
|
676
|
+
|
|
677
|
+
```ruby
|
|
678
|
+
Typhoeus::Config.verbose = true
|
|
679
|
+
```
|
|
680
|
+
|
|
681
|
+
Ethon routes libcurl's verbose output through `Ethon.logger` at the debug
|
|
682
|
+
level, so it no longer prints to STDERR directly. Enable debug logging to see
|
|
683
|
+
it:
|
|
684
|
+
|
|
685
|
+
```ruby
|
|
686
|
+
require "logger"
|
|
687
|
+
Ethon.logger = Logger.new(STDERR)
|
|
688
|
+
Ethon.logger.level = Logger::DEBUG
|
|
689
|
+
```
|
|
690
|
+
|
|
691
|
+
### Thread safety
|
|
692
|
+
|
|
693
|
+
`Typhoeus::Request` and `Typhoeus::Hydra` instances are not thread-safe. An
|
|
694
|
+
`Ethon::Easy` handle is checked out of the process-wide pool for the duration
|
|
695
|
+
of a request and checked back in when it completes, so create requests and
|
|
696
|
+
hydras per thread. `Typhoeus::Hydra.hydra` is memoized per thread.
|
|
697
|
+
`Typhoeus.with_connection` only changes the setting for the current thread.
|
|
698
|
+
|
|
699
|
+
These are process-wide and should be configured during boot rather than while
|
|
700
|
+
requests are running:
|
|
701
|
+
|
|
702
|
+
- `Typhoeus::Config` (`block_connection`, `cache`, `exclude_features`,
|
|
703
|
+
`max_idle_easies`, `memoize`, timeouts, `proxy`, `user_agent`, `verbose`)
|
|
704
|
+
- `Typhoeus.before`, `Typhoeus.on_complete`, `Typhoeus.on_success`,
|
|
705
|
+
`Typhoeus.on_failure`, `Typhoeus.on_progress`, and `Typhoeus.on_headers`
|
|
706
|
+
- `Typhoeus.stub` and `Typhoeus::Expectation.all`
|
|
707
|
+
- the easy pool used by `Typhoeus::Pool`
|
|
708
|
+
|
|
709
|
+
The easy pool belongs to the process that created it. It keeps at most
|
|
710
|
+
`Typhoeus::Config.max_idle_easies` idle handles (20 by default) and is cleared
|
|
711
|
+
after `fork`.
|
|
712
|
+
|
|
713
|
+
### Default User Agent Header
|
|
714
|
+
|
|
715
|
+
Set a User-Agent for every request:
|
|
716
|
+
|
|
717
|
+
```ruby
|
|
718
|
+
Typhoeus::Config.user_agent = "custom user agent"
|
|
719
|
+
```
|
|
720
|
+
|
|
721
|
+
### Running the specs
|
|
722
|
+
|
|
723
|
+
Install dependencies and run the suite:
|
|
724
|
+
|
|
725
|
+
```sh
|
|
726
|
+
bundle install
|
|
727
|
+
bundle exec rake
|
|
728
|
+
```
|
|
729
|
+
|
|
730
|
+
Run `COVERAGE=true bundle exec rake` to write an HTML report to `coverage/`.
|
|
731
|
+
|
|
732
|
+
Run `bundle exec rake perf` to benchmark the request hot path. It reports
|
|
733
|
+
throughput, allocations, and retained memory for building, queueing, adding,
|
|
734
|
+
and performing requests.
|
|
735
|
+
|
|
736
|
+
## Semantic Versioning
|
|
737
|
+
|
|
738
|
+
This project conforms to [semver](http://semver.org/).
|
|
739
|
+
|
|
740
|
+
## License
|
|
741
|
+
|
|
742
|
+
(The MIT License)
|
|
743
|
+
|
|
744
|
+
Copyright © 2009-2010 [Paul Dix](http://www.pauldix.net/)
|
|
745
|
+
|
|
746
|
+
Copyright © 2011-2012 [David Balatero](https://github.com/dbalatero/)
|
|
747
|
+
|
|
748
|
+
Copyright © 2012-2016 [Hans Hasselberg](http://github.com/i0rek/)
|
|
749
|
+
|
|
750
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
751
|
+
copy of this software and associated documentation files (the "Software"),
|
|
752
|
+
to deal in the Software without restriction, including without
|
|
753
|
+
limitation the rights to use, copy, modify, merge, publish, distribute,
|
|
754
|
+
sublicense, and/or sell copies of the Software, and to permit persons
|
|
755
|
+
to whom the Software is furnished to do so, subject to the following conditions:
|
|
756
|
+
|
|
757
|
+
The above copyright notice and this permission notice shall be included
|
|
758
|
+
in all copies or substantial portions of the Software.
|
|
759
|
+
|
|
760
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
761
|
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
762
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
763
|
+
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
764
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
765
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
766
|
+
OTHER DEALINGS IN THE SOFTWARE.
|