ory-hydra-client 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +5 -5
  4. data/docs/OAuth2TokenExchange.md +1 -1
  5. data/docs/TokenPaginationResponseHeaders.md +1 -1
  6. data/lib/ory-hydra-client/api/jwk_api.rb +1 -1
  7. data/lib/ory-hydra-client/api/metadata_api.rb +1 -1
  8. data/lib/ory-hydra-client/api/o_auth2_api.rb +1 -1
  9. data/lib/ory-hydra-client/api/oidc_api.rb +1 -1
  10. data/lib/ory-hydra-client/api/wellknown_api.rb +1 -1
  11. data/lib/ory-hydra-client/api_client.rb +1 -1
  12. data/lib/ory-hydra-client/api_error.rb +1 -1
  13. data/lib/ory-hydra-client/configuration.rb +1 -1
  14. data/lib/ory-hydra-client/models/accept_o_auth2_consent_request.rb +1 -1
  15. data/lib/ory-hydra-client/models/accept_o_auth2_consent_request_session.rb +1 -1
  16. data/lib/ory-hydra-client/models/accept_o_auth2_login_request.rb +1 -1
  17. data/lib/ory-hydra-client/models/create_json_web_key_set.rb +1 -1
  18. data/lib/ory-hydra-client/models/error_o_auth2.rb +1 -1
  19. data/lib/ory-hydra-client/models/generic_error.rb +1 -1
  20. data/lib/ory-hydra-client/models/get_version200_response.rb +1 -1
  21. data/lib/ory-hydra-client/models/health_not_ready_status.rb +1 -1
  22. data/lib/ory-hydra-client/models/health_status.rb +1 -1
  23. data/lib/ory-hydra-client/models/introspected_o_auth2_token.rb +1 -1
  24. data/lib/ory-hydra-client/models/is_ready200_response.rb +1 -1
  25. data/lib/ory-hydra-client/models/is_ready503_response.rb +1 -1
  26. data/lib/ory-hydra-client/models/json_patch.rb +1 -1
  27. data/lib/ory-hydra-client/models/json_web_key.rb +1 -1
  28. data/lib/ory-hydra-client/models/json_web_key_set.rb +1 -1
  29. data/lib/ory-hydra-client/models/o_auth2_client.rb +1 -1
  30. data/lib/ory-hydra-client/models/o_auth2_client_token_lifespans.rb +1 -1
  31. data/lib/ory-hydra-client/models/o_auth2_consent_request.rb +1 -1
  32. data/lib/ory-hydra-client/models/o_auth2_consent_request_open_id_connect_context.rb +1 -1
  33. data/lib/ory-hydra-client/models/o_auth2_consent_session.rb +1 -1
  34. data/lib/ory-hydra-client/models/o_auth2_consent_session_expires_at.rb +1 -1
  35. data/lib/ory-hydra-client/models/o_auth2_login_request.rb +1 -1
  36. data/lib/ory-hydra-client/models/o_auth2_logout_request.rb +1 -1
  37. data/lib/ory-hydra-client/models/o_auth2_redirect_to.rb +1 -1
  38. data/lib/ory-hydra-client/models/o_auth2_token_exchange.rb +2 -2
  39. data/lib/ory-hydra-client/models/oidc_configuration.rb +1 -1
  40. data/lib/ory-hydra-client/models/oidc_user_info.rb +1 -1
  41. data/lib/ory-hydra-client/models/pagination.rb +1 -1
  42. data/lib/ory-hydra-client/models/pagination_headers.rb +1 -1
  43. data/lib/ory-hydra-client/models/reject_o_auth2_request.rb +1 -1
  44. data/lib/ory-hydra-client/models/token_pagination.rb +1 -1
  45. data/lib/ory-hydra-client/models/token_pagination_headers.rb +1 -1
  46. data/lib/ory-hydra-client/models/token_pagination_request_parameters.rb +2 -2
  47. data/lib/ory-hydra-client/models/token_pagination_response_headers.rb +3 -3
  48. data/lib/ory-hydra-client/models/trust_o_auth2_jwt_grant_issuer.rb +1 -1
  49. data/lib/ory-hydra-client/models/trusted_o_auth2_jwt_grant_issuer.rb +1 -1
  50. data/lib/ory-hydra-client/models/trusted_o_auth2_jwt_grant_json_web_key.rb +1 -1
  51. data/lib/ory-hydra-client/models/version.rb +1 -1
  52. data/lib/ory-hydra-client/version.rb +2 -2
  53. data/lib/ory-hydra-client.rb +1 -1
  54. data/ory-hydra-client.gemspec +1 -1
  55. data/spec/api/jwk_api_spec.rb +1 -1
  56. data/spec/api/metadata_api_spec.rb +1 -1
  57. data/spec/api/o_auth2_api_spec.rb +1 -1
  58. data/spec/api/oidc_api_spec.rb +1 -1
  59. data/spec/api/wellknown_api_spec.rb +1 -1
  60. data/spec/api_client_spec.rb +1 -1
  61. data/spec/configuration_spec.rb +1 -1
  62. data/spec/models/accept_o_auth2_consent_request_session_spec.rb +1 -1
  63. data/spec/models/accept_o_auth2_consent_request_spec.rb +1 -1
  64. data/spec/models/accept_o_auth2_login_request_spec.rb +1 -1
  65. data/spec/models/create_json_web_key_set_spec.rb +1 -1
  66. data/spec/models/error_o_auth2_spec.rb +1 -1
  67. data/spec/models/generic_error_spec.rb +1 -1
  68. data/spec/models/get_version200_response_spec.rb +1 -1
  69. data/spec/models/health_not_ready_status_spec.rb +1 -1
  70. data/spec/models/health_status_spec.rb +1 -1
  71. data/spec/models/introspected_o_auth2_token_spec.rb +1 -1
  72. data/spec/models/is_ready200_response_spec.rb +1 -1
  73. data/spec/models/is_ready503_response_spec.rb +1 -1
  74. data/spec/models/json_patch_spec.rb +1 -1
  75. data/spec/models/json_web_key_set_spec.rb +1 -1
  76. data/spec/models/json_web_key_spec.rb +1 -1
  77. data/spec/models/o_auth2_client_spec.rb +1 -1
  78. data/spec/models/o_auth2_client_token_lifespans_spec.rb +1 -1
  79. data/spec/models/o_auth2_consent_request_open_id_connect_context_spec.rb +1 -1
  80. data/spec/models/o_auth2_consent_request_spec.rb +1 -1
  81. data/spec/models/o_auth2_consent_session_expires_at_spec.rb +1 -1
  82. data/spec/models/o_auth2_consent_session_spec.rb +1 -1
  83. data/spec/models/o_auth2_login_request_spec.rb +1 -1
  84. data/spec/models/o_auth2_logout_request_spec.rb +1 -1
  85. data/spec/models/o_auth2_redirect_to_spec.rb +1 -1
  86. data/spec/models/o_auth2_token_exchange_spec.rb +1 -1
  87. data/spec/models/oidc_configuration_spec.rb +1 -1
  88. data/spec/models/oidc_user_info_spec.rb +1 -1
  89. data/spec/models/pagination_headers_spec.rb +1 -1
  90. data/spec/models/pagination_spec.rb +1 -1
  91. data/spec/models/reject_o_auth2_request_spec.rb +1 -1
  92. data/spec/models/token_pagination_headers_spec.rb +1 -1
  93. data/spec/models/token_pagination_request_parameters_spec.rb +1 -1
  94. data/spec/models/token_pagination_response_headers_spec.rb +1 -1
  95. data/spec/models/token_pagination_spec.rb +1 -1
  96. data/spec/models/trust_o_auth2_jwt_grant_issuer_spec.rb +1 -1
  97. data/spec/models/trusted_o_auth2_jwt_grant_issuer_spec.rb +1 -1
  98. data/spec/models/trusted_o_auth2_jwt_grant_json_web_key_spec.rb +1 -1
  99. data/spec/models/version_spec.rb +1 -1
  100. data/spec/spec_helper.rb +1 -1
  101. data/vendor/bundle/ruby/2.5.0/cache/ethon-0.16.0.gem +0 -0
  102. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
  103. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.5/gem_make.out +2 -2
  104. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/jaro_winkler-1.5.4/gem_make.out +2 -2
  105. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.6/gem_make.out +2 -2
  106. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.2/gem_make.out +2 -2
  107. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.2/mkmf.log +1 -1
  108. data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
  109. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/.github/workflows/ruby.yml +2 -2
  110. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/.gitignore +0 -0
  111. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/.rspec +0 -0
  112. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/CHANGELOG.md +3 -0
  113. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/Gemfile +0 -0
  114. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/Guardfile +0 -0
  115. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/LICENSE +0 -0
  116. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/README.md +23 -0
  117. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/Rakefile +0 -0
  118. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/ethon.gemspec +0 -0
  119. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curl.rb +0 -0
  120. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/classes.rb +12 -2
  121. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/codes.rb +0 -0
  122. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/constants.rb +0 -0
  123. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/form_options.rb +0 -0
  124. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/functions.rb +0 -0
  125. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/infos.rb +0 -0
  126. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/messages.rb +0 -0
  127. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/options.rb +4 -3
  128. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/curls/settings.rb +0 -0
  129. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/callbacks.rb +2 -1
  130. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/debug_info.rb +0 -0
  131. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/features.rb +0 -0
  132. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/form.rb +0 -0
  133. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/header.rb +0 -0
  134. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/actionable.rb +0 -0
  135. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/custom.rb +0 -0
  136. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/delete.rb +0 -0
  137. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/get.rb +0 -0
  138. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/head.rb +0 -0
  139. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/options.rb +0 -0
  140. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/patch.rb +0 -0
  141. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/post.rb +0 -0
  142. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/postable.rb +0 -0
  143. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/put.rb +0 -0
  144. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http/putable.rb +0 -0
  145. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/http.rb +0 -0
  146. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/informations.rb +3 -0
  147. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/mirror.rb +0 -0
  148. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/operations.rb +0 -0
  149. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/options.rb +0 -0
  150. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/params.rb +0 -0
  151. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/queryable.rb +0 -0
  152. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/response_callbacks.rb +6 -1
  153. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy/util.rb +0 -0
  154. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/easy.rb +0 -0
  155. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/ethon_error.rb +0 -0
  156. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/global_init.rb +0 -0
  157. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/invalid_option.rb +0 -0
  158. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/invalid_value.rb +0 -0
  159. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/multi_add.rb +0 -0
  160. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/multi_fdset.rb +0 -0
  161. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/multi_remove.rb +0 -0
  162. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/multi_timeout.rb +0 -0
  163. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors/select.rb +0 -0
  164. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/errors.rb +0 -0
  165. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/libc.rb +0 -0
  166. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/loggable.rb +0 -0
  167. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/multi/operations.rb +0 -0
  168. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/multi/options.rb +0 -0
  169. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/multi/stack.rb +0 -0
  170. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/multi.rb +0 -0
  171. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon/version.rb +1 -1
  172. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/lib/ethon.rb +0 -0
  173. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/benchmarks.rb +0 -0
  174. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/memory_leaks.rb +0 -0
  175. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/perf_spec_helper.rb +0 -0
  176. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/support/memory_test_helpers.rb +0 -0
  177. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/support/os_memory_leak_tracker.rb +0 -0
  178. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/profile/support/ruby_object_leak_tracker.rb +0 -0
  179. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/curl_spec.rb +0 -0
  180. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/callbacks_spec.rb +22 -0
  181. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/debug_info_spec.rb +0 -0
  182. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/features_spec.rb +0 -0
  183. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/form_spec.rb +0 -0
  184. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/header_spec.rb +0 -0
  185. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/custom_spec.rb +0 -0
  186. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/delete_spec.rb +0 -0
  187. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/get_spec.rb +0 -0
  188. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/head_spec.rb +0 -0
  189. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/options_spec.rb +0 -0
  190. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/patch_spec.rb +0 -0
  191. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/post_spec.rb +0 -0
  192. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http/put_spec.rb +0 -0
  193. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/http_spec.rb +0 -0
  194. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/informations_spec.rb +6 -0
  195. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/mirror_spec.rb +1 -1
  196. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/operations_spec.rb +3 -0
  197. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/options_spec.rb +0 -0
  198. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/queryable_spec.rb +0 -0
  199. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/response_callbacks_spec.rb +0 -0
  200. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy/util_spec.rb +0 -0
  201. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/easy_spec.rb +0 -0
  202. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/libc_spec.rb +0 -0
  203. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/loggable_spec.rb +0 -0
  204. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/multi/operations_spec.rb +0 -0
  205. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/multi/options_spec.rb +0 -0
  206. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/multi/stack_spec.rb +0 -0
  207. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/ethon/multi_spec.rb +0 -0
  208. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/spec_helper.rb +0 -0
  209. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/support/localhost_server.rb +0 -0
  210. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.15.0 → ethon-0.16.0}/spec/support/server.rb +0 -0
  211. data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
  212. data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
  213. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/Makefile +2 -2
  214. data/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.2/ext/stringio/Makefile +2 -2
  215. data/vendor/bundle/ruby/2.5.0/specifications/{ethon-0.15.0.gemspec → ethon-0.16.0.gemspec} +3 -3
  216. metadata +106 -106
  217. data/vendor/bundle/ruby/2.5.0/cache/ethon-0.15.0.gem +0 -0
@@ -32,8 +32,18 @@ module Ethon
32
32
 
33
33
  def clear; self[:fd_count] = 0; end
34
34
  else
35
- # FD Set size.
36
- FD_SETSIZE = ::Ethon::Libc.getdtablesize
35
+ # https://github.com/typhoeus/ethon/issues/182
36
+ FD_SETSIZE = begin
37
+ # Allow to override the (new) default cap
38
+ if ENV['ETHON_FD_SIZE']
39
+ ENV['ETHON_FD_SIZE']
40
+
41
+ # auto-detect ulimit, but cap at 2^16
42
+ else
43
+ [::Ethon::Libc.getdtablesize, 65_536].min
44
+ end
45
+ end
46
+
37
47
  layout :fds_bits, [:long, FD_SETSIZE / ::FFI::Type::LONG.size]
38
48
 
39
49
  # :nodoc:
@@ -307,6 +307,7 @@ module Ethon
307
307
  option :easy, :port, :int, 3
308
308
  option :easy, :tcp_nodelay, :bool, 121
309
309
  option :easy, :address_scope, :int, 171
310
+ option :easy, :tcp_fastopen, :bool, 212
310
311
  option :easy, :tcp_keepalive, :bool, 213
311
312
  option :easy, :tcp_keepidle, :int, 214
312
313
  option :easy, :tcp_keepintvl, :int, 215
@@ -352,7 +353,7 @@ module Ethon
352
353
  option :easy, :cookiesession, :bool, 96
353
354
  option :easy, :cookielist, :string, 135
354
355
  option :easy, :httpget, :bool, 80
355
- option :easy, :http_version, :enum, 84, [:none, :httpv1_0, :httpv1_1, :httpv2_0]
356
+ option :easy, :http_version, :enum, 84, [:none, :httpv1_0, :httpv1_1, :httpv2_0, :httpv2_tls, :httpv2_prior_knowledge]
356
357
  option :easy, :ignore_content_length, :bool, 136
357
358
  option :easy, :http_content_decoding, :bool, 158
358
359
  option :easy, :http_transfer_decoding, :bool, 157
@@ -440,7 +441,7 @@ module Ethon
440
441
  option_alias :easy, :keypasswd, :sslkeypasswd
441
442
  option :easy, :sslengine, :string, 89
442
443
  option :easy, :sslengine_default, :none, 90
443
- option :easy, :sslversion, :enum, 32, [:default, :tlsv1, :sslv2, :sslv3, :tlsv1_0, :tlsv1_1, :tlsv1_2]
444
+ option :easy, :sslversion, :enum, 32, [:default, :tlsv1, :sslv2, :sslv3, :tlsv1_0, :tlsv1_1, :tlsv1_2, :tlsv1_3]
444
445
  option :easy, :ssl_verifypeer, :bool, 64
445
446
  option :easy, :cainfo, :string, 65
446
447
  option :easy, :issuercert, :string, 170
@@ -463,7 +464,7 @@ module Ethon
463
464
  option :easy, :proxy_capath, :string, 247
464
465
  option :easy, :proxy_ssl_verifypeer, :bool, 248
465
466
  option :easy, :proxy_ssl_verifyhost, :int, 249
466
- option :easy, :proxy_sslversion, :enum, 250, [:default, :tlsv1, :sslv2, :sslv3, :tlsv1_0, :tlsv1_1, :tlsv1_2]
467
+ option :easy, :proxy_sslversion, :enum, 250, [:default, :tlsv1, :sslv2, :sslv3, :tlsv1_0, :tlsv1_1, :tlsv1_2, :tlsv1_3]
467
468
  option :easy, :proxy_tlsauth_username, :string, 251
468
469
  option :easy, :proxy_tlsauth_password, :string, 252
469
470
  option :easy, :proxy_tlsauth_type, :enum, 253, [:none, :srp]
@@ -52,8 +52,9 @@ module Ethon
52
52
  # @return [ Proc ] The callback.
53
53
  def header_write_callback
54
54
  @header_write_callback ||= proc {|stream, size, num, object|
55
+ result = headers
55
56
  @response_headers << stream.read_string(size * num)
56
- size * num
57
+ result != :abort ? size * num : -1
57
58
  }
58
59
  end
59
60
 
@@ -73,6 +73,9 @@ module Ethon
73
73
  # actually followed.
74
74
  :redirect_count => :long,
75
75
 
76
+ # URL a redirect would take you to, had you enabled redirects (Added in 7.18.2)
77
+ :redirect_url => :string,
78
+
76
79
  # Return the bytes, the total amount of bytes that were uploaded
77
80
  :size_upload => :double,
78
81
 
@@ -43,7 +43,12 @@ module Ethon
43
43
  return if @headers_called
44
44
  @headers_called = true
45
45
  if defined?(@on_headers) and not @on_headers.nil?
46
- @on_headers.each{ |callback| callback.call(self) }
46
+ result = nil
47
+ @on_headers.each do |callback|
48
+ result = callback.call(self)
49
+ break if result == :abort
50
+ end
51
+ result
47
52
  end
48
53
  end
49
54
 
@@ -2,5 +2,5 @@
2
2
  module Ethon
3
3
 
4
4
  # Ethon version.
5
- VERSION = '0.15.0'
5
+ VERSION = '0.16.0'
6
6
  end
@@ -56,4 +56,26 @@ describe Ethon::Easy::Callbacks do
56
56
  end
57
57
  end
58
58
  end
59
+
60
+ describe "#header_write_callback" do
61
+ let(:header_write_callback) { easy.instance_variable_get(:@header_write_callback) }
62
+ let(:stream) { double(:read_string => "") }
63
+ context "when header returns not :abort" do
64
+ it "returns number bigger than 0" do
65
+ expect(header_write_callback.call(stream, 1, 1, nil) > 0).to be(true)
66
+ end
67
+ end
68
+
69
+ context "when header returns :abort" do
70
+ before do
71
+ easy.on_headers.clear
72
+ easy.on_headers { :abort }
73
+ end
74
+ let(:header_write_callback) { easy.instance_variable_get(:@header_write_callback) }
75
+
76
+ it "returns -1 to indicate abort to libcurl" do
77
+ expect(header_write_callback.call(stream, 1, 1, nil)).to eq(-1)
78
+ end
79
+ end
80
+ end
59
81
  end
@@ -81,6 +81,12 @@ describe Ethon::Easy::Informations do
81
81
  end
82
82
  end
83
83
 
84
+ describe "#redirect_url" do
85
+ it "returns nil as there is no redirect" do
86
+ expect(easy.redirect_url).to be(nil)
87
+ end
88
+ end
89
+
84
90
  describe "#request_size" do
85
91
  it "returns 53" do
86
92
  expect(easy.request_size).to eq(53)
@@ -11,7 +11,7 @@ describe Ethon::Easy::Mirror do
11
11
  :total_time, :starttransfer_time, :appconnect_time,
12
12
  :pretransfer_time, :connect_time, :namelookup_time, :redirect_time,
13
13
  :size_upload, :size_download, :speed_upload, :speed_upload,
14
- :effective_url, :primary_ip, :redirect_count, :debug_info
14
+ :effective_url, :primary_ip, :redirect_count, :redirect_url, :debug_info
15
15
  ].each do |name|
16
16
  it "contains #{name}" do
17
17
  expect(described_class::INFORMATIONS_TO_MIRROR).to include(name)
@@ -106,6 +106,7 @@ describe Ethon::Easy::Operations do
106
106
 
107
107
  it "doesn't follow" do
108
108
  expect(easy.response_code).to eq(302)
109
+ expect(easy.redirect_url).to eq("http://localhost:3001/")
109
110
  end
110
111
  end
111
112
 
@@ -115,6 +116,7 @@ describe Ethon::Easy::Operations do
115
116
 
116
117
  it "follows" do
117
118
  expect(easy.response_code).to eq(200)
119
+ expect(easy.redirect_url).to eq(nil)
118
120
  end
119
121
 
120
122
  context "when infinite redirect loop" do
@@ -124,6 +126,7 @@ describe Ethon::Easy::Operations do
124
126
  context "when max redirect set" do
125
127
  it "follows only x times" do
126
128
  expect(easy.response_code).to eq(302)
129
+ expect(easy.redirect_url).to eq("http://localhost:3001/bad_redirect")
127
130
  end
128
131
  end
129
132
  end
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
31
  vendorarchdir = $(rubysitearchprefix)/vendor_ruby/$(ruby_version)
32
32
  vendorlibdir = $(vendordir)/$(ruby_version)
33
33
  vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(DESTDIR)./.gem.20221027-4541-1io2nzh
35
- sitelibdir = $(DESTDIR)./.gem.20221027-4541-1io2nzh
34
+ sitearchdir = $(DESTDIR)./.gem.20221110-4556-1qgybs6
35
+ sitelibdir = $(DESTDIR)./.gem.20221110-4556-1qgybs6
36
36
  sitedir = $(DESTDIR)/usr/local/lib/site_ruby
37
37
  rubyarchdir = $(rubyarchprefix)/$(ruby_version)
38
38
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
31
  vendorarchdir = $(rubysitearchprefix)/vendor_ruby/$(ruby_version)
32
32
  vendorlibdir = $(vendordir)/$(ruby_version)
33
33
  vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(DESTDIR)./.gem.20221027-4541-fgozsf
35
- sitelibdir = $(DESTDIR)./.gem.20221027-4541-fgozsf
34
+ sitearchdir = $(DESTDIR)./.gem.20221110-4556-qjshol
35
+ sitelibdir = $(DESTDIR)./.gem.20221110-4556-qjshol
36
36
  sitedir = $(DESTDIR)/usr/local/lib/site_ruby
37
37
  rubyarchdir = $(rubyarchprefix)/$(ruby_version)
38
38
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
31
  vendorarchdir = $(rubysitearchprefix)/vendor_ruby/$(ruby_version)
32
32
  vendorlibdir = $(vendordir)/$(ruby_version)
33
33
  vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(DESTDIR)./.gem.20221027-4541-1dnn8rd
35
- sitelibdir = $(DESTDIR)./.gem.20221027-4541-1dnn8rd
34
+ sitearchdir = $(DESTDIR)./.gem.20221110-4556-owszyu
35
+ sitelibdir = $(DESTDIR)./.gem.20221110-4556-owszyu
36
36
  sitedir = $(DESTDIR)/usr/local/lib/site_ruby
37
37
  rubyarchdir = $(rubyarchprefix)/$(ruby_version)
38
38
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
31
  vendorarchdir = $(rubysitearchprefix)/vendor_ruby/$(ruby_version)
32
32
  vendorlibdir = $(vendordir)/$(ruby_version)
33
33
  vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(DESTDIR)./.gem.20221027-4541-1fqgydv
35
- sitelibdir = $(DESTDIR)./.gem.20221027-4541-1fqgydv
34
+ sitearchdir = $(DESTDIR)./.gem.20221110-4556-1j3ozon
35
+ sitelibdir = $(DESTDIR)./.gem.20221110-4556-1j3ozon
36
36
  sitedir = $(DESTDIR)/usr/local/lib/site_ruby
37
37
  rubyarchdir = $(rubyarchprefix)/$(ruby_version)
38
38
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: ethon 0.15.0 ruby lib
2
+ # stub: ethon 0.16.0 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "ethon".freeze
6
- s.version = "0.15.0"
6
+ s.version = "0.16.0"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 1.3.6".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Hans Hasselberg".freeze]
11
- s.date = "2021-10-12"
11
+ s.date = "2022-11-04"
12
12
  s.description = "Very lightweight libcurl wrapper.".freeze
13
13
  s.email = ["me@hans.io".freeze]
14
14
  s.homepage = "https://github.com/typhoeus/ethon".freeze