pingram 1.0.40 → 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 +5 -5
- data/lib/pingram/api/account_api.rb +191 -4
- 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/assign_payment_method_request.rb +216 -0
- data/lib/pingram/models/billing_post_response_body.rb +1 -1
- 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_payment_method_setup_request.rb +191 -0
- data/lib/pingram/models/list_invoices_response_invoices_inner.rb +1 -1
- data/lib/pingram/models/logs_get_response_logs_inner.rb +10 -1
- data/lib/pingram/models/password_status_response.rb +195 -0
- data/lib/pingram/models/payment_method_setup.rb +191 -0
- data/lib/pingram/models/sign_in_username_request.rb +164 -0
- data/lib/pingram/models/sign_in_username_response.rb +165 -0
- 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/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/webhook_endpoint_upsert_request_basic_auth.rb +176 -0
- data/lib/pingram/models/webhook_endpoints_response_endpoints_inner.rb +14 -5
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +13 -0
- 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/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/{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/{typhoeus-1.6.0.gemspec → typhoeus-1.7.1.gemspec} +5 -5
- metadata +156 -129
- 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/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/{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,206 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'digest/sha2'
|
|
4
|
+
require 'ethon'
|
|
5
|
+
|
|
6
|
+
require 'typhoeus/config'
|
|
7
|
+
require 'typhoeus/easy_factory'
|
|
8
|
+
require 'typhoeus/errors'
|
|
9
|
+
require 'typhoeus/expectation'
|
|
10
|
+
require 'typhoeus/hydra'
|
|
11
|
+
require 'typhoeus/pool'
|
|
12
|
+
require 'typhoeus/request'
|
|
13
|
+
require 'typhoeus/response'
|
|
14
|
+
require 'typhoeus/version'
|
|
15
|
+
|
|
16
|
+
# Load the optional integrations when their dependency is installed, not when
|
|
17
|
+
# the dependency happens to be loaded before Typhoeus. Requiring the adapter
|
|
18
|
+
# files is safe because they only reference the dependency at call time.
|
|
19
|
+
begin
|
|
20
|
+
require "rack"
|
|
21
|
+
require "rack/typhoeus"
|
|
22
|
+
rescue LoadError
|
|
23
|
+
# Rack is optional.
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
require "typhoeus/cache/redis"
|
|
27
|
+
require "typhoeus/cache/dalli"
|
|
28
|
+
require "typhoeus/cache/rails"
|
|
29
|
+
|
|
30
|
+
# If we are using Rails, then we will include the Typhoeus railtie.
|
|
31
|
+
# if defined?(Rails)
|
|
32
|
+
# require "typhoeus/railtie"
|
|
33
|
+
# end
|
|
34
|
+
|
|
35
|
+
# Typhoeus is a HTTP client library based on Ethon which
|
|
36
|
+
# wraps libcurl. Sitting on top of libcurl makes Typhoeus
|
|
37
|
+
# very reliable and fast.
|
|
38
|
+
#
|
|
39
|
+
# There are some gems using Typhoeus like
|
|
40
|
+
# {https://github.com/myronmarston/vcr VCR},
|
|
41
|
+
# {https://github.com/bblimke/webmock WebMock} or
|
|
42
|
+
# {https://github.com/technoweenie/faraday Faraday}. VCR
|
|
43
|
+
# and WebMock provide their own adapter whereas
|
|
44
|
+
# Faraday relies on {Faraday::Adapter::Typhoeus}
|
|
45
|
+
# since Typhoeus version 0.5.
|
|
46
|
+
#
|
|
47
|
+
# @example (see Typhoeus::Request)
|
|
48
|
+
# @example (see Typhoeus::Hydra)
|
|
49
|
+
#
|
|
50
|
+
# @see Typhoeus::Request
|
|
51
|
+
# @see Typhoeus::Hydra
|
|
52
|
+
# @see Faraday::Adapter::Typhoeus
|
|
53
|
+
#
|
|
54
|
+
# @since 0.5.0
|
|
55
|
+
module Typhoeus
|
|
56
|
+
extend Request::Actions
|
|
57
|
+
extend Request::Callbacks::Types
|
|
58
|
+
|
|
59
|
+
# The default Typhoeus user agent.
|
|
60
|
+
USER_AGENT = "Typhoeus - https://github.com/typhoeus/typhoeus"
|
|
61
|
+
|
|
62
|
+
# Set the Typhoeus configuration options by passing a block.
|
|
63
|
+
#
|
|
64
|
+
# @example (see Typhoeus::Config)
|
|
65
|
+
#
|
|
66
|
+
# @yield [ Typhoeus::Config ]
|
|
67
|
+
#
|
|
68
|
+
# @return [ Typhoeus::Config ] The configuration.
|
|
69
|
+
#
|
|
70
|
+
# @see Typhoeus::Config
|
|
71
|
+
def self.configure
|
|
72
|
+
yield Config
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Stub out a specific request.
|
|
76
|
+
#
|
|
77
|
+
# @example (see Typhoeus::Expectation)
|
|
78
|
+
#
|
|
79
|
+
# @param [ String ] base_url The url to stub out.
|
|
80
|
+
# @param [ Hash ] options The options to stub out.
|
|
81
|
+
#
|
|
82
|
+
# @return [ Typhoeus::Expectation ] The expecatation.
|
|
83
|
+
#
|
|
84
|
+
# @see Typhoeus::Expectation
|
|
85
|
+
def self.stub(base_url, options = {}, &block)
|
|
86
|
+
expectation = Expectation.all.find{ |e| e.base_url == base_url && e.options == options }
|
|
87
|
+
if expectation.nil?
|
|
88
|
+
expectation = Expectation.new(base_url, options)
|
|
89
|
+
Expectation.all << expectation
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
expectation.and_return(&block) unless block.nil?
|
|
93
|
+
expectation
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Add before callbacks.
|
|
97
|
+
#
|
|
98
|
+
# @example Add before callback.
|
|
99
|
+
# Typhoeus.before { |request| p request.base_url }
|
|
100
|
+
#
|
|
101
|
+
# @param [ Block ] block The callback.
|
|
102
|
+
#
|
|
103
|
+
# @yield [ Typhoeus::Request ]
|
|
104
|
+
#
|
|
105
|
+
# @return [ Array<Block> ] All before blocks.
|
|
106
|
+
def self.before(&block)
|
|
107
|
+
@before ||= []
|
|
108
|
+
@before << block if block_given?
|
|
109
|
+
@before
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Returns the callbacks that run before a request. Returns nil when before
|
|
113
|
+
# callbacks are skipped or when there are none, so the common path does not
|
|
114
|
+
# allocate a callback array.
|
|
115
|
+
#
|
|
116
|
+
# @param [ Typhoeus::Request ] request The request that is about to run.
|
|
117
|
+
#
|
|
118
|
+
# @return [ Array<Proc>, nil ] The callbacks or nil.
|
|
119
|
+
#
|
|
120
|
+
# @api private
|
|
121
|
+
def self.before_callbacks_for(request)
|
|
122
|
+
return unless Config.feature_enabled?(:before)
|
|
123
|
+
|
|
124
|
+
global = before
|
|
125
|
+
local = request.before
|
|
126
|
+
return if global.empty? && local.empty?
|
|
127
|
+
|
|
128
|
+
global + local
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Execute given block as if block connection is turned off.
|
|
132
|
+
# The old block connection state is restored afterwards. Stubs are bypassed
|
|
133
|
+
# inside the block, so a stub can forward to the real service without
|
|
134
|
+
# recursing into itself.
|
|
135
|
+
#
|
|
136
|
+
# @example Make a real request, no matter if it's blocked.
|
|
137
|
+
# Typhoeus::Config.block_connection = true
|
|
138
|
+
# Typhoeus.get("www.example.com").code
|
|
139
|
+
# #=> raise Typhoeus::Errors::NoStub
|
|
140
|
+
#
|
|
141
|
+
# Typhoeus.with_connection do
|
|
142
|
+
# Typhoeus.get("www.example.com").code
|
|
143
|
+
# #=> :ok
|
|
144
|
+
# end
|
|
145
|
+
#
|
|
146
|
+
# @example Let one stubbed URL reach the real service.
|
|
147
|
+
# Typhoeus.stub("http://elastic:9200") do |request|
|
|
148
|
+
# Typhoeus.with_connection { request.run }
|
|
149
|
+
# end
|
|
150
|
+
#
|
|
151
|
+
# @yield Yields control to the block after disabling block_connection for
|
|
152
|
+
# the current thread. Other threads keep their block_connection
|
|
153
|
+
# setting.
|
|
154
|
+
# @return [ Object ] Returns the return value of the block.
|
|
155
|
+
#
|
|
156
|
+
# @see Typhoeus::Config.block_connection
|
|
157
|
+
def self.with_connection
|
|
158
|
+
# Fibers on the same thread share the override. Save the previous values
|
|
159
|
+
# when the outermost call enters and restore them only when the last call
|
|
160
|
+
# leaves, so a fiber that finishes while another is still inside the block
|
|
161
|
+
# does not clear it.
|
|
162
|
+
depth = Thread.current.thread_variable_get(:typhoeus_connection_depth).to_i
|
|
163
|
+
if depth.zero?
|
|
164
|
+
Thread.current.thread_variable_set(
|
|
165
|
+
:typhoeus_previous_connection,
|
|
166
|
+
[Thread.current.thread_variable_get(:typhoeus_block_connection),
|
|
167
|
+
Thread.current.thread_variable_get(:typhoeus_stubs_disabled)]
|
|
168
|
+
)
|
|
169
|
+
end
|
|
170
|
+
Thread.current.thread_variable_set(:typhoeus_connection_depth, depth + 1)
|
|
171
|
+
Thread.current.thread_variable_set(:typhoeus_block_connection, false)
|
|
172
|
+
Thread.current.thread_variable_set(:typhoeus_stubs_disabled, true)
|
|
173
|
+
yield if block_given?
|
|
174
|
+
ensure
|
|
175
|
+
depth = Thread.current.thread_variable_get(:typhoeus_connection_depth).to_i - 1
|
|
176
|
+
Thread.current.thread_variable_set(:typhoeus_connection_depth, depth)
|
|
177
|
+
if depth.zero?
|
|
178
|
+
old_block_connection, old_stubs_disabled =
|
|
179
|
+
Thread.current.thread_variable_get(:typhoeus_previous_connection)
|
|
180
|
+
Thread.current.thread_variable_set(:typhoeus_block_connection, old_block_connection)
|
|
181
|
+
Thread.current.thread_variable_set(:typhoeus_stubs_disabled, old_stubs_disabled)
|
|
182
|
+
Thread.current.thread_variable_set(:typhoeus_previous_connection, nil)
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Whether connections are blocked for the current thread. The override is
|
|
187
|
+
# thread-local so {with_connection} cannot unblock another thread.
|
|
188
|
+
#
|
|
189
|
+
# @api private
|
|
190
|
+
#
|
|
191
|
+
# @return [ Boolean, nil ] The configured value, or the thread override.
|
|
192
|
+
def self.connection_blocked?
|
|
193
|
+
override = Thread.current.thread_variable_get(:typhoeus_block_connection)
|
|
194
|
+
override.nil? ? Config.block_connection : override
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Whether the current thread is inside {with_connection} and therefore
|
|
198
|
+
# bypasses stubs.
|
|
199
|
+
#
|
|
200
|
+
# @api private
|
|
201
|
+
#
|
|
202
|
+
# @return [ Boolean ] True when stubs should be skipped.
|
|
203
|
+
def self.stubs_disabled?
|
|
204
|
+
Thread.current.thread_variable_get(:typhoeus_stubs_disabled)
|
|
205
|
+
end
|
|
206
|
+
end
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
#
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
2
3
|
lib = File.expand_path('../lib/', __FILE__)
|
|
3
4
|
$:.unshift lib unless $:.include?(lib)
|
|
4
5
|
|
|
@@ -24,10 +25,21 @@ Gem::Specification.new do |s|
|
|
|
24
25
|
'source_code_uri' => "https://github.com/typhoeus/typhoeus/tree/v#{s.version}"
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
s.add_dependency('ethon', [">= 0.
|
|
28
|
+
s.add_dependency('ethon', [">= 0.19.1", "< 0.20.0"])
|
|
28
29
|
|
|
29
30
|
s.files = Dir.chdir(__dir__) do
|
|
30
|
-
|
|
31
|
+
files = begin
|
|
32
|
+
IO.popen(["git", "ls-files", "-z"], :err => File::NULL, &:read).split("\x0")
|
|
33
|
+
rescue SystemCallError
|
|
34
|
+
[]
|
|
35
|
+
end
|
|
36
|
+
# Building from a source tarball or a container without git must still
|
|
37
|
+
# produce a working gem.
|
|
38
|
+
if files.empty?
|
|
39
|
+
files = Dir["lib/**/*", "*.md", "LICENSE", "typhoeus.gemspec"].
|
|
40
|
+
select { |file| File.file?(file) }
|
|
41
|
+
end
|
|
42
|
+
files.reject do |file|
|
|
31
43
|
file.start_with?(*%w[. Gemfile Guardfile Rakefile perf spec])
|
|
32
44
|
end
|
|
33
45
|
end
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
# stub: ethon 0.
|
|
2
|
+
# stub: ethon 0.19.1 ruby lib
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "ethon".freeze
|
|
6
|
-
s.version = "0.
|
|
6
|
+
s.version = "0.19.1"
|
|
7
7
|
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
9
|
-
s.metadata = { "bug_tracker_uri" => "https://github.com/typhoeus/ethon/issues", "changelog_uri" => "https://github.com/typhoeus/ethon/blob/v0.
|
|
9
|
+
s.metadata = { "bug_tracker_uri" => "https://github.com/typhoeus/ethon/issues", "changelog_uri" => "https://github.com/typhoeus/ethon/blob/v0.19.1/CHANGELOG.md", "documentation_uri" => "https://www.rubydoc.info/gems/ethon/0.19.1", "rubygems_mfa_required" => "true", "source_code_uri" => "https://github.com/typhoeus/ethon/tree/v0.19.1" } if s.respond_to? :metadata=
|
|
10
10
|
s.require_paths = ["lib".freeze]
|
|
11
11
|
s.authors = ["Hans Hasselberg".freeze]
|
|
12
|
-
s.date = "
|
|
12
|
+
s.date = "2026-10-28"
|
|
13
13
|
s.description = "Very lightweight libcurl wrapper.".freeze
|
|
14
14
|
s.email = ["me@hans.io".freeze]
|
|
15
15
|
s.homepage = "https://github.com/typhoeus/ethon".freeze
|
data/vendor/bundle/ruby/3.2.0/specifications/{io-console-0.9.4.gemspec → io-console-0.9.5.gemspec}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
# stub: io-console 0.9.
|
|
2
|
+
# stub: io-console 0.9.5 ruby lib
|
|
3
3
|
# stub: ext/io/console/extconf.rb
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |s|
|
|
6
6
|
s.name = "io-console".freeze
|
|
7
|
-
s.version = "0.9.
|
|
7
|
+
s.version = "0.9.5"
|
|
8
8
|
|
|
9
9
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
10
10
|
s.metadata = { "changelog_uri" => "https://github.com/ruby/io-console/releases", "source_code_url" => "https://github.com/ruby/io-console" } if s.respond_to? :metadata=
|
|
11
11
|
s.require_paths = ["lib".freeze]
|
|
12
12
|
s.authors = ["Nobu Nakada".freeze]
|
|
13
|
-
s.date = "2026-
|
|
13
|
+
s.date = "2026-10-28"
|
|
14
14
|
s.description = "add console capabilities to IO instances.".freeze
|
|
15
15
|
s.email = "nobu@ruby-lang.org".freeze
|
|
16
16
|
s.extensions = ["ext/io/console/extconf.rb".freeze]
|
data/vendor/bundle/ruby/3.2.0/specifications/{typhoeus-1.6.0.gemspec → typhoeus-1.7.1.gemspec}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
# stub: typhoeus 1.
|
|
2
|
+
# stub: typhoeus 1.7.1 ruby lib
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "typhoeus".freeze
|
|
6
|
-
s.version = "1.
|
|
6
|
+
s.version = "1.7.1"
|
|
7
7
|
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
9
|
-
s.metadata = { "bug_tracker_uri" => "https://github.com/typhoeus/typhoeus/issues", "changelog_uri" => "https://github.com/typhoeus/typhoeus/blob/v1.
|
|
9
|
+
s.metadata = { "bug_tracker_uri" => "https://github.com/typhoeus/typhoeus/issues", "changelog_uri" => "https://github.com/typhoeus/typhoeus/blob/v1.7.1/CHANGELOG.md", "documentation_uri" => "https://www.rubydoc.info/gems/typhoeus/1.7.1", "rubygems_mfa_required" => "true", "source_code_uri" => "https://github.com/typhoeus/typhoeus/tree/v1.7.1" } if s.respond_to? :metadata=
|
|
10
10
|
s.require_paths = ["lib".freeze]
|
|
11
11
|
s.authors = ["David Balatero".freeze, "Paul Dix".freeze, "Hans Hasselberg".freeze]
|
|
12
|
-
s.date = "
|
|
12
|
+
s.date = "2026-10-28"
|
|
13
13
|
s.description = "Like a modern code version of the mythical beast with 100 serpent heads, Typhoeus runs HTTP requests in parallel while cleanly encapsulating handling logic.".freeze
|
|
14
14
|
s.email = ["hans.hasselberg@gmail.com".freeze]
|
|
15
15
|
s.homepage = "https://github.com/typhoeus/typhoeus".freeze
|
|
@@ -22,5 +22,5 @@ Gem::Specification.new do |s|
|
|
|
22
22
|
|
|
23
23
|
s.specification_version = 4
|
|
24
24
|
|
|
25
|
-
s.add_runtime_dependency(%q<ethon>.freeze, [">= 0.
|
|
25
|
+
s.add_runtime_dependency(%q<ethon>.freeze, [">= 0.19.1", "< 0.20.0"])
|
|
26
26
|
end
|