passbase 1.0.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +15 -3
  3. data/README.md +16 -15
  4. data/docs/Cursor.md +8 -7
  5. data/docs/Identity.md +24 -17
  6. data/docs/IdentityApi.md +204 -61
  7. data/docs/IdentityOwner.md +22 -0
  8. data/docs/IdentityResource.md +10 -9
  9. data/docs/PaginatedIdentities.md +10 -9
  10. data/docs/PaginatedResources.md +10 -9
  11. data/docs/ProjectApi.md +29 -12
  12. data/docs/ProjectSettings.md +18 -17
  13. data/docs/ProjectSettingsCustomizations.md +12 -11
  14. data/docs/ProjectSettingsVerificationSteps.md +10 -9
  15. data/docs/Resource.md +18 -17
  16. data/docs/ResourceFile.md +14 -13
  17. data/docs/ResourceInput.md +16 -15
  18. data/docs/User.md +12 -11
  19. data/docs/WatchlistResponse.md +16 -15
  20. data/lib/passbase.rb +2 -1
  21. data/lib/passbase/api/identity_api.rb +109 -30
  22. data/lib/passbase/api/project_api.rb +5 -4
  23. data/lib/passbase/api_client.rb +42 -51
  24. data/lib/passbase/api_error.rb +1 -1
  25. data/lib/passbase/configuration.rb +42 -13
  26. data/lib/passbase/models/cursor.rb +18 -8
  27. data/lib/passbase/models/identity.rb +48 -9
  28. data/lib/passbase/models/identity_owner.rb +239 -0
  29. data/lib/passbase/models/identity_resource.rb +18 -8
  30. data/lib/passbase/models/paginated_identities.rb +18 -8
  31. data/lib/passbase/models/paginated_resources.rb +18 -8
  32. data/lib/passbase/models/project_settings.rb +19 -9
  33. data/lib/passbase/models/project_settings_customizations.rb +18 -42
  34. data/lib/passbase/models/project_settings_verification_steps.rb +18 -8
  35. data/lib/passbase/models/resource.rb +18 -8
  36. data/lib/passbase/models/resource_file.rb +18 -8
  37. data/lib/passbase/models/resource_input.rb +18 -8
  38. data/lib/passbase/models/user.rb +18 -8
  39. data/lib/passbase/models/watchlist_response.rb +18 -8
  40. data/lib/passbase/version.rb +3 -3
  41. data/passbase.gemspec +4 -4
  42. data/spec/api/identity_api_spec.rb +21 -7
  43. data/spec/api/project_api_spec.rb +1 -1
  44. data/spec/api_client_spec.rb +1 -1
  45. data/spec/configuration_spec.rb +4 -4
  46. data/spec/models/cursor_spec.rb +4 -11
  47. data/spec/models/identity_owner_spec.rb +46 -0
  48. data/spec/models/identity_resource_spec.rb +4 -11
  49. data/spec/models/identity_spec.rb +23 -12
  50. data/spec/models/paginated_identities_spec.rb +4 -11
  51. data/spec/models/paginated_resources_spec.rb +4 -11
  52. data/spec/models/project_settings_customizations_spec.rb +4 -15
  53. data/spec/models/project_settings_spec.rb +5 -12
  54. data/spec/models/project_settings_verification_steps_spec.rb +4 -11
  55. data/spec/models/resource_file_spec.rb +4 -11
  56. data/spec/models/resource_input_spec.rb +4 -11
  57. data/spec/models/resource_spec.rb +5 -12
  58. data/spec/models/user_spec.rb +4 -11
  59. data/spec/models/watchlist_response_spec.rb +4 -11
  60. data/spec/spec_helper.rb +1 -1
  61. data/vendor/bundle/ruby/2.7.0/bin/htmldiff +1 -1
  62. data/vendor/bundle/ruby/2.7.0/bin/ldiff +1 -1
  63. data/vendor/bundle/ruby/2.7.0/cache/faraday-1.4.2.gem +0 -0
  64. data/vendor/bundle/ruby/2.7.0/cache/faraday-em_http-1.0.0.gem +0 -0
  65. data/vendor/bundle/ruby/2.7.0/cache/faraday-em_synchrony-1.0.0.gem +0 -0
  66. data/vendor/bundle/ruby/2.7.0/cache/faraday-excon-1.1.0.gem +0 -0
  67. data/vendor/bundle/ruby/2.7.0/cache/faraday-net_http-1.0.1.gem +0 -0
  68. data/vendor/bundle/ruby/2.7.0/cache/faraday-net_http_persistent-1.1.0.gem +0 -0
  69. data/vendor/bundle/ruby/2.7.0/cache/ruby2_keywords-0.0.4.gem +0 -0
  70. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/byebug-11.1.3/byebug/byebug.so +0 -0
  71. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/{2.7.0-static → 2.7.0}/byebug-11.1.3/gem.build_complete +0 -0
  72. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/{2.7.0-static → 2.7.0}/byebug-11.1.3/gem_make.out +2 -2
  73. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/{2.7.0-static → 2.7.0}/jaro_winkler-1.5.4/gem.build_complete +0 -0
  74. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/jaro_winkler-1.5.4/gem_make.out +67 -0
  75. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/jaro_winkler-1.5.4/jaro_winkler/jaro_winkler_ext.so +0 -0
  76. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/{2.7.0-static → 2.7.0}/psych-3.2.0/gem.build_complete +0 -0
  77. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/{2.7.0-static → 2.7.0}/psych-3.2.0/gem_make.out +2 -2
  78. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/psych-3.2.0/mkmf.log +196 -0
  79. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/psych-3.2.0/psych.so +0 -0
  80. data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/Makefile +13 -13
  81. data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/breakpoint.o +0 -0
  82. data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/byebug.o +0 -0
  83. data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/byebug.so +0 -0
  84. data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/context.o +0 -0
  85. data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/locker.o +0 -0
  86. data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/threads.o +0 -0
  87. data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/lib/byebug/byebug.so +0 -0
  88. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/CHANGELOG.md +104 -0
  89. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/LICENSE.md +1 -1
  90. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/README.md +3 -5
  91. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/Rakefile +0 -0
  92. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/examples/client_spec.rb +1 -1
  93. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/examples/client_test.rb +0 -0
  94. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday.rb +55 -41
  95. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/adapter.rb +1 -8
  96. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/adapter/httpclient.rb +0 -0
  97. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/adapter/patron.rb +0 -0
  98. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/adapter/rack.rb +0 -0
  99. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/adapter/test.rb +0 -0
  100. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/adapter/typhoeus.rb +0 -0
  101. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/adapter_registry.rb +0 -0
  102. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/autoload.rb +1 -6
  103. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/connection.rb +11 -4
  104. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/dependency_loader.rb +0 -0
  105. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/encoders/flat_params_encoder.rb +9 -2
  106. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/encoders/nested_params_encoder.rb +7 -2
  107. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/error.rb +20 -0
  108. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/file_part.rb +0 -0
  109. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/logging/formatter.rb +0 -0
  110. data/vendor/bundle/ruby/2.7.0/gems/faraday-1.4.2/lib/faraday/methods.rb +6 -0
  111. data/vendor/bundle/ruby/2.7.0/gems/faraday-1.4.2/lib/faraday/middleware.rb +31 -0
  112. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/middleware_registry.rb +0 -0
  113. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/options.rb +4 -8
  114. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/options/connection_options.rb +0 -0
  115. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/options/env.rb +0 -0
  116. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/options/proxy_options.rb +4 -0
  117. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/options/request_options.rb +0 -0
  118. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/options/ssl_options.rb +0 -0
  119. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/param_part.rb +0 -0
  120. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/parameters.rb +0 -0
  121. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/rack_builder.rb +13 -12
  122. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/request.rb +20 -10
  123. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/request/authorization.rb +0 -0
  124. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/request/basic_authentication.rb +0 -0
  125. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/request/instrumentation.rb +0 -0
  126. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/request/multipart.rb +9 -2
  127. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/request/retry.rb +2 -2
  128. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/request/token_authentication.rb +0 -0
  129. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/request/url_encoded.rb +0 -0
  130. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/response.rb +0 -6
  131. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/response/logger.rb +0 -0
  132. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/response/raise_error.rb +12 -1
  133. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/utils.rb +2 -2
  134. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/utils/headers.rb +2 -2
  135. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/utils/params_hash.rb +0 -0
  136. data/vendor/bundle/ruby/2.7.0/gems/faraday-1.4.2/lib/faraday/version.rb +5 -0
  137. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/external_adapters/faraday_specs_setup.rb +0 -0
  138. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter/em_http_spec.rb +0 -0
  139. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter/em_synchrony_spec.rb +0 -0
  140. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter/excon_spec.rb +0 -0
  141. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter/httpclient_spec.rb +0 -0
  142. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter/net_http_spec.rb +0 -0
  143. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter/patron_spec.rb +0 -0
  144. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter/rack_spec.rb +0 -0
  145. data/vendor/bundle/ruby/2.7.0/gems/faraday-1.4.2/spec/faraday/adapter/test_spec.rb +260 -0
  146. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter/typhoeus_spec.rb +0 -0
  147. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter_registry_spec.rb +0 -0
  148. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter_spec.rb +0 -0
  149. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/composite_read_io_spec.rb +0 -0
  150. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/connection_spec.rb +38 -0
  151. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/error_spec.rb +15 -0
  152. data/vendor/bundle/ruby/2.7.0/gems/faraday-1.4.2/spec/faraday/middleware_spec.rb +52 -0
  153. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/options/env_spec.rb +0 -0
  154. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/options/options_spec.rb +0 -0
  155. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/options/proxy_options_spec.rb +7 -0
  156. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/options/request_options_spec.rb +0 -0
  157. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/params_encoders/flat_spec.rb +8 -0
  158. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/params_encoders/nested_spec.rb +8 -0
  159. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/rack_builder_spec.rb +149 -0
  160. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/request/authorization_spec.rb +2 -2
  161. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/request/instrumentation_spec.rb +0 -0
  162. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/request/multipart_spec.rb +41 -13
  163. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/request/retry_spec.rb +1 -1
  164. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/request/url_encoded_spec.rb +0 -0
  165. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/request_spec.rb +16 -5
  166. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/response/logger_spec.rb +0 -0
  167. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/response/middleware_spec.rb +0 -0
  168. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/response/raise_error_spec.rb +63 -0
  169. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/response_spec.rb +0 -0
  170. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/utils/headers_spec.rb +0 -0
  171. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/utils_spec.rb +0 -0
  172. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday_spec.rb +0 -0
  173. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/spec_helper.rb +0 -0
  174. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/support/disabling_stub.rb +0 -0
  175. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/support/fake_safe_buffer.rb +0 -0
  176. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/support/helper_methods.rb +0 -0
  177. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/support/shared_examples/adapter.rb +2 -1
  178. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/support/shared_examples/params_encoder.rb +0 -0
  179. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/support/shared_examples/request_method.rb +39 -11
  180. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/support/streaming_response_checker.rb +0 -0
  181. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/support/webmock_rack_app.rb +0 -0
  182. data/vendor/bundle/ruby/2.7.0/gems/faraday-em_http-1.0.0/LICENSE.md +21 -0
  183. data/vendor/bundle/ruby/2.7.0/gems/faraday-em_http-1.0.0/README.md +61 -0
  184. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-em_http-1.0.0}/lib/faraday/adapter/em_http.rb +23 -20
  185. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-em_http-1.0.0}/lib/faraday/adapter/em_http_ssl_patch.rb +0 -0
  186. data/vendor/bundle/ruby/2.7.0/gems/faraday-em_http-1.0.0/lib/faraday/em_http.rb +11 -0
  187. data/vendor/bundle/ruby/2.7.0/gems/faraday-em_http-1.0.0/lib/faraday/em_http/version.rb +7 -0
  188. data/vendor/bundle/ruby/2.7.0/gems/faraday-em_synchrony-1.0.0/LICENSE.md +21 -0
  189. data/vendor/bundle/ruby/2.7.0/gems/faraday-em_synchrony-1.0.0/README.md +65 -0
  190. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-em_synchrony-1.0.0}/lib/faraday/adapter/em_synchrony.rb +16 -13
  191. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-em_synchrony-1.0.0}/lib/faraday/adapter/em_synchrony/parallel_manager.rb +0 -0
  192. data/vendor/bundle/ruby/2.7.0/gems/faraday-em_synchrony-1.0.0/lib/faraday/em_synchrony.rb +12 -0
  193. data/vendor/bundle/ruby/2.7.0/gems/faraday-em_synchrony-1.0.0/lib/faraday/em_synchrony/version.rb +7 -0
  194. data/vendor/bundle/ruby/2.7.0/gems/faraday-excon-1.1.0/LICENSE.md +21 -0
  195. data/vendor/bundle/ruby/2.7.0/gems/faraday-excon-1.1.0/README.md +61 -0
  196. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-excon-1.1.0}/lib/faraday/adapter/excon.rb +2 -2
  197. data/vendor/bundle/ruby/2.7.0/gems/faraday-excon-1.1.0/lib/faraday/excon.rb +11 -0
  198. data/vendor/bundle/ruby/2.7.0/gems/faraday-excon-1.1.0/lib/faraday/excon/version.rb +7 -0
  199. data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http-1.0.1/LICENSE.md +21 -0
  200. data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http-1.0.1/README.md +57 -0
  201. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-net_http-1.0.1}/lib/faraday/adapter/net_http.rb +21 -27
  202. data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http-1.0.1/lib/faraday/net_http.rb +10 -0
  203. data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http-1.0.1/lib/faraday/net_http/version.rb +7 -0
  204. data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http_persistent-1.1.0/LICENSE.md +21 -0
  205. data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http_persistent-1.1.0/README.md +73 -0
  206. data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-net_http_persistent-1.1.0}/lib/faraday/adapter/net_http_persistent.rb +11 -11
  207. data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http_persistent-1.1.0/lib/faraday/net_http_persistent.rb +17 -0
  208. data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http_persistent-1.1.0/lib/faraday/net_http_persistent/version.rb +7 -0
  209. data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +14 -14
  210. data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/adj_matrix.o +0 -0
  211. data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/codepoints.o +0 -0
  212. data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/jaro.o +0 -0
  213. data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/jaro_winkler.o +0 -0
  214. data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/jaro_winkler_ext.so +0 -0
  215. data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/jaro_winkler_ext.so +0 -0
  216. data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/Makefile +14 -14
  217. data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/api.o +0 -0
  218. data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/dumper.o +0 -0
  219. data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/emitter.o +0 -0
  220. data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/loader.o +0 -0
  221. data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/parser.o +0 -0
  222. data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych.o +0 -0
  223. data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych_emitter.o +0 -0
  224. data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych_parser.o +0 -0
  225. data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych_to_ruby.o +0 -0
  226. data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych_yaml_tree.o +0 -0
  227. data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/reader.o +0 -0
  228. data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/scanner.o +0 -0
  229. data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/writer.o +0 -0
  230. data/vendor/bundle/ruby/2.7.0/gems/ruby2_keywords-0.0.4/LICENSE +22 -0
  231. data/vendor/bundle/ruby/2.7.0/gems/ruby2_keywords-0.0.4/README.md +67 -0
  232. data/vendor/bundle/ruby/2.7.0/gems/ruby2_keywords-0.0.4/lib/ruby2_keywords.rb +57 -0
  233. data/vendor/bundle/ruby/2.7.0/specifications/ast-2.4.1.gemspec +2 -2
  234. data/vendor/bundle/ruby/2.7.0/specifications/byebug-11.1.3.gemspec +2 -2
  235. data/vendor/bundle/ruby/2.7.0/specifications/coderay-1.1.3.gemspec +2 -2
  236. data/vendor/bundle/ruby/2.7.0/specifications/diff-lcs-1.4.4.gemspec +2 -2
  237. data/vendor/bundle/ruby/2.7.0/specifications/faraday-1.4.2.gemspec +0 -0
  238. data/vendor/bundle/ruby/2.7.0/specifications/faraday-em_http-1.0.0.gemspec +52 -0
  239. data/vendor/bundle/ruby/2.7.0/specifications/faraday-em_synchrony-1.0.0.gemspec +56 -0
  240. data/vendor/bundle/ruby/2.7.0/specifications/faraday-excon-1.1.0.gemspec +52 -0
  241. data/vendor/bundle/ruby/2.7.0/specifications/faraday-net_http-1.0.1.gemspec +50 -0
  242. data/vendor/bundle/ruby/2.7.0/specifications/faraday-net_http_persistent-1.1.0.gemspec +48 -0
  243. data/vendor/bundle/ruby/2.7.0/specifications/jaro_winkler-1.5.4.gemspec +2 -2
  244. data/vendor/bundle/ruby/2.7.0/specifications/method_source-1.0.0.gemspec +2 -2
  245. data/vendor/bundle/ruby/2.7.0/specifications/multipart-post-2.1.1.gemspec +2 -2
  246. data/vendor/bundle/ruby/2.7.0/specifications/parallel-1.19.2.gemspec +2 -2
  247. data/vendor/bundle/ruby/2.7.0/specifications/parser-2.7.1.4.gemspec +2 -2
  248. data/vendor/bundle/ruby/2.7.0/specifications/pry-0.13.1.gemspec +2 -2
  249. data/vendor/bundle/ruby/2.7.0/specifications/pry-byebug-3.9.0.gemspec +2 -2
  250. data/vendor/bundle/ruby/2.7.0/specifications/psych-3.2.0.gemspec +2 -2
  251. data/vendor/bundle/ruby/2.7.0/specifications/rainbow-3.0.0.gemspec +2 -2
  252. data/vendor/bundle/ruby/2.7.0/specifications/rake-13.0.1.gemspec +2 -2
  253. data/vendor/bundle/ruby/2.7.0/specifications/rspec-3.9.0.gemspec +2 -2
  254. data/vendor/bundle/ruby/2.7.0/specifications/rspec-core-3.9.2.gemspec +2 -2
  255. data/vendor/bundle/ruby/2.7.0/specifications/rspec-expectations-3.9.2.gemspec +2 -2
  256. data/vendor/bundle/ruby/2.7.0/specifications/rspec-mocks-3.9.1.gemspec +2 -2
  257. data/vendor/bundle/ruby/2.7.0/specifications/rspec-support-3.9.3.gemspec +2 -2
  258. data/vendor/bundle/ruby/2.7.0/specifications/rubocop-0.66.0.gemspec +2 -2
  259. data/vendor/bundle/ruby/2.7.0/specifications/ruby-progressbar-1.10.1.gemspec +2 -2
  260. data/vendor/bundle/ruby/2.7.0/specifications/ruby2_keywords-0.0.4.gemspec +19 -0
  261. data/vendor/bundle/ruby/2.7.0/specifications/unicode-display_width-1.5.0.gemspec +2 -2
  262. data/walkthrough.md +1 -1
  263. metadata +172 -125
  264. data/vendor/bundle/ruby/2.7.0/cache/faraday-1.0.1.gem +0 -0
  265. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/byebug-11.1.3/byebug/byebug.so +0 -0
  266. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/jaro_winkler-1.5.4/gem_make.out +0 -64
  267. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/jaro_winkler-1.5.4/jaro_winkler/jaro_winkler_ext.so +0 -0
  268. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/psych-3.2.0/mkmf.log +0 -197
  269. data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/psych-3.2.0/psych.so +0 -0
  270. data/vendor/bundle/ruby/2.7.0/gems/faraday-1.0.1/lib/faraday/middleware.rb +0 -21
  271. data/vendor/bundle/ruby/2.7.0/gems/faraday-1.0.1/spec/faraday/adapter/net_http_persistent_spec.rb +0 -57
  272. data/vendor/bundle/ruby/2.7.0/gems/faraday-1.0.1/spec/faraday/middleware_spec.rb +0 -26
  273. data/vendor/bundle/ruby/2.7.0/specifications/faraday-1.0.1.gemspec +0 -0
@@ -12,12 +12,12 @@ NULLCMD = :
12
12
  #### Start of system configuration section. ####
13
13
 
14
14
  srcdir = .
15
- topdir = /opt/hostedtoolcache/Ruby/2.7.1/x64/include/ruby-2.7.0
15
+ topdir = /opt/hostedtoolcache/Ruby/2.7.3/x64/include/ruby-2.7.0
16
16
  hdrdir = $(topdir)
17
- arch_hdrdir = /opt/hostedtoolcache/Ruby/2.7.1/x64/include/ruby-2.7.0/x86_64-linux
17
+ arch_hdrdir = /opt/hostedtoolcache/Ruby/2.7.3/x64/include/ruby-2.7.0/x86_64-linux
18
18
  PATH_SEPARATOR = :
19
19
  VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
20
- prefix = $(DESTDIR)/opt/hostedtoolcache/Ruby/2.7.1/x64
20
+ prefix = $(DESTDIR)/opt/hostedtoolcache/Ruby/2.7.3/x64
21
21
  rubysitearchprefix = $(rubylibprefix)/$(sitearch)
22
22
  rubyarchprefix = $(rubylibprefix)/$(arch)
23
23
  rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
31
  vendorarchdir = $(vendorlibdir)/$(sitearch)
32
32
  vendorlibdir = $(vendordir)/$(ruby_version)
33
33
  vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(DESTDIR)./.gem.20201015-2585-y75iu1
35
- sitelibdir = $(DESTDIR)./.gem.20201015-2585-y75iu1
34
+ sitearchdir = $(DESTDIR)./.gem.20210616-1929-todmb8
35
+ sitelibdir = $(DESTDIR)./.gem.20210616-1929-todmb8
36
36
  sitedir = $(rubylibprefix)/site_ruby
37
37
  rubyarchdir = $(rubylibdir)/$(arch)
38
38
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -67,9 +67,9 @@ archdir = $(rubyarchdir)
67
67
  CC_WRAPPER =
68
68
  CC = gcc
69
69
  CXX = g++
70
- LIBRUBY = $(LIBRUBY_A)
70
+ LIBRUBY = $(LIBRUBY_SO)
71
71
  LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
72
- LIBRUBYARG_SHARED = -Wl,-rpath,$(libdir) -L$(libdir)
72
+ LIBRUBYARG_SHARED = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)
73
73
  LIBRUBYARG_STATIC = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static $(MAINLIBS)
74
74
  empty =
75
75
  OUTFLAG = -o $(empty)
@@ -84,13 +84,13 @@ debugflags = -ggdb3
84
84
  warnflags = -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable
85
85
  cppflags =
86
86
  CCDLFLAGS = -fPIC
87
- CFLAGS = $(CCDLFLAGS) $(cflags) $(ARCH_FLAG)
87
+ CFLAGS = $(CCDLFLAGS) $(cflags) -fPIC $(ARCH_FLAG)
88
88
  INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
89
89
  DEFS =
90
- CPPFLAGS = -DENABLE_PATH_CHECK=0 $(DEFS) $(cppflags)
90
+ CPPFLAGS = -I/opt/hostedtoolcache/Ruby/2.7.3/x64/include -DENABLE_PATH_CHECK=0 $(DEFS) $(cppflags)
91
91
  CXXFLAGS = $(CCDLFLAGS) -g -O2 $(ARCH_FLAG)
92
- ldflags = -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic
93
- dldflags = -Wl,--compress-debug-sections=zlib
92
+ ldflags = -L. -L/opt/hostedtoolcache/Ruby/2.7.3/x64/lib -fstack-protector-strong -rdynamic -Wl,-export-dynamic
93
+ dldflags = -L/opt/hostedtoolcache/Ruby/2.7.3/x64/lib -Wl,--compress-debug-sections=zlib
94
94
  ARCH_FLAG =
95
95
  DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
96
96
  LDSHARED = $(CC) -shared
@@ -115,7 +115,7 @@ ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h
115
115
  RM = rm -f
116
116
  RM_RF = $(RUBY) -run -e rm -- -rf
117
117
  RMDIRS = rmdir --ignore-fail-on-non-empty -p
118
- MAKEDIRS = /bin/mkdir -p
118
+ MAKEDIRS = /usr/bin/mkdir -p
119
119
  INSTALL = /usr/bin/install -c
120
120
  INSTALL_PROG = $(INSTALL) -m 0755
121
121
  INSTALL_DATA = $(INSTALL) -m 644
@@ -137,7 +137,7 @@ extout =
137
137
  extout_prefix =
138
138
  target_prefix = /byebug
139
139
  LOCAL_LIBS =
140
- LIBS = -lm -lc
140
+ LIBS = $(LIBRUBYARG_SHARED) -lm -lc
141
141
  ORIG_SRCS = breakpoint.c byebug.c context.c locker.c threads.c
142
142
  SRCS = $(ORIG_SRCS)
143
143
  OBJS = breakpoint.o byebug.o context.o locker.o threads.o
@@ -1,5 +1,109 @@
1
1
  # Faraday Changelog
2
2
 
3
+ ## [v1.3.0](https://github.com/lostisland/faraday/releases/tag/v1.3.0) (2020-12-31)
4
+
5
+ ### Highlights
6
+ Faraday v1.3.0 is the first release to officially support Ruby 3.0 in the CI pipeline 🎉 🍾!
7
+
8
+ This is also the first release with a previously "included" adapter (Net::HTTP) being isolated into a [separate gem](https://github.com/lostisland/faraday-net_http) 🎊!
9
+ The new adapter is added to Faraday as a dependency for now, so that means full backwards-compatibility, but just to be safe be careful when upgrading!
10
+
11
+ This is a huge step towards are Faraday v2.0 objective of pushing adapters and middleware into separate gems.
12
+ Many thanks to the Faraday Team, @JanDintel and everyone who attended the [ROSS Conf remote event](https://www.rossconf.io/event/remote/)
13
+
14
+ ### Features
15
+
16
+ * Improves consistency with Faraday::Error and Faraday::RaiseError (#1229, @qsona, @iMacTia)
17
+
18
+ ### Fixes
19
+
20
+ * Don't assign to global ::Timer (#1227, @bpo)
21
+
22
+ ### Documentation
23
+
24
+ * CHANGELOG: add releases after 1.0 (#1225, @olleolleolle)
25
+ * Improves retry middleware documentation. (#1228, @iMacTia)
26
+
27
+ ### Misc
28
+
29
+ * Move out Net::HTTP adapter (#1222, @JanDintel, @iMacTia)
30
+ * Adds Ruby 3.0 to CI Matrix (#1226, @iMacTia)
31
+
32
+
33
+ ## [v1.2.0](https://github.com/lostisland/faraday/releases/tag/v1.2.0) (2020-12-23)
34
+
35
+ ### Features
36
+
37
+ * Introduces `on_request` and `on_complete` methods in `Faraday::Middleware`. (#1194, @iMacTia)
38
+
39
+ ### Fixes
40
+
41
+ * Require 'date' to avoid retry exception (#1206, @rustygeldmacher)
42
+ * Fix rdebug recursion issue (#1205, @native-api)
43
+ * Update call to `em_http_ssl_patch` (#1202, @kylekeesling)
44
+ * `EmHttp` adapter: drop superfluous loaded? check (#1213, @olleolleolle)
45
+ * Avoid 1 use of keyword hackery (#1211, @grosser)
46
+ * Fix #1219 `Net::HTTP` still uses env proxy (#1221, @iMacTia)
47
+
48
+ ### Documentation
49
+
50
+ * Add comment in gemspec to explain exposure of `examples` and `spec` folders. (#1192, @iMacTia)
51
+ * Adapters, how to create them (#1193, @olleolleolle)
52
+ * Update documentation on using the logger (#1196, @tijmenb)
53
+ * Adjust the retry documentation and spec to align with implementation (#1198, @nbeyer)
54
+
55
+ ### Misc
56
+
57
+ * Test against ruby head (#1208, @grosser)
58
+
59
+ ## [v1.1.0](https://github.com/lostisland/faraday/releases/tag/v1.1.0) (2020-10-17)
60
+
61
+ ### Features
62
+
63
+ * Makes parameters sorting configurable (#1162 @wishdev)
64
+ * Introduces `flat_encode` option for multipart adapter. (#1163 @iMacTia)
65
+ * Include request info in exceptions raised by RaiseError Middleware (#1181 @SandroDamilano)
66
+
67
+ ### Fixes
68
+
69
+ * Avoid `last arg as keyword param` warning when building user middleware on Ruby 2.7 (#1153 @dgholz)
70
+ * Limits net-http-persistent version to < 4.0 (#1156 @iMacTia)
71
+ * Update `typhoeus` to new stable version (`1.4`) (#1159 @AlexWayfer)
72
+ * Properly fix test failure with Rack 2.1+. (#1171 @voxik)
73
+
74
+ ### Documentation
75
+
76
+ * Improves documentation on how to contribute to the site by using Docker. (#1175 @iMacTia)
77
+ * Remove retry_change_requests from documentation (#1185 @stim371)
78
+
79
+ ### Misc
80
+
81
+ * Link from GitHub Actions badge to CI workflow (#1141 @olleolleolle)
82
+ * Return tests of `Test` adapter (#1147 @AlexWayfer)
83
+ * Add 1.0 release to wording in CONTRIBUTING (#1155 @olleolleolle)
84
+ * Fix linting bumping Rubocop to 0.90.0 (#1182 @iMacTia)
85
+ * Drop `git ls-files` in gemspec (#1183 @utkarsh2102)
86
+ * Upgrade CI to ruby/setup-ruby (#1187 @gogainda)
87
+
88
+ ## [v1.0.1](https://github.com/lostisland/faraday/releases/tag/v1.0.1) (2020-03-29)
89
+
90
+ ### Fixes
91
+
92
+ * Use Net::HTTP#start(&block) to ensure closed TCP connections (#1117)
93
+ * Fully qualify constants to be checked (#1122)
94
+ * Allows `parse` method to be private/protected in response middleware (#1123)
95
+ * Encode Spaces in Query Strings as '%20' Instead of '+' (#1125)
96
+ * Limits rack to v2.0.x (#1127)
97
+ * Adapter Registry reads also use mutex (#1136)
98
+
99
+ ### Documentation
100
+
101
+ * Retry middleware documentation fix (#1109)
102
+ * Docs(retry): precise usage of retry-after (#1111)
103
+ * README: Link the logo to the website (#1112)
104
+ * Website: add search bar (#1116)
105
+ * Fix request/response mix-up in docs text (#1132)
106
+
3
107
  ## v1.0
4
108
 
5
109
  Features:
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009-2019 Rick Olson, Zack Hobson
1
+ Copyright (c) 2009-2020 Rick Olson, Zack Hobson
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,9 +1,7 @@
1
1
  # [![Faraday](./docs/assets/img/repo-card-slim.png)][website]
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/faraday.svg)](https://rubygems.org/gems/faraday)
4
- ![GitHub Actions CI](https://github.com/lostisland/faraday/workflows/CI/badge.svg)
5
- [![Test Coverage](https://api.codeclimate.com/v1/badges/f869daab091ceef1da73/test_coverage)](https://codeclimate.com/github/lostisland/faraday/test_coverage)
6
- [![Maintainability](https://api.codeclimate.com/v1/badges/f869daab091ceef1da73/maintainability)](https://codeclimate.com/github/lostisland/faraday/maintainability)
4
+ [![GitHub Actions CI](https://github.com/lostisland/faraday/workflows/CI/badge.svg)](https://github.com/lostisland/faraday/actions?query=workflow%3ACI)
7
5
  [![Gitter](https://badges.gitter.im/lostisland/faraday.svg)](https://gitter.im/lostisland/faraday?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
8
6
 
9
7
 
@@ -43,12 +41,12 @@ Open the issues page and check for the `help wanted` label!
43
41
  But before you start coding, please read our [Contributing Guide][contributing]
44
42
 
45
43
  ## Copyright
46
- &copy; 2009 - 2019, the [Faraday Team][faraday_team]. Website and branding design by [Elena Lo Piccolo](https://elelopic.design).
44
+ &copy; 2009 - 2020, the [Faraday Team][faraday_team]. Website and branding design by [Elena Lo Piccolo](https://elelopic.design).
47
45
 
48
46
  [website]: https://lostisland.github.io/faraday
49
47
  [faraday_team]: https://lostisland.github.io/faraday/team
50
48
  [contributing]: https://github.com/lostisland/faraday/blob/master/.github/CONTRIBUTING.md
51
- [apidoc]: http://www.rubydoc.info/gems/faraday
49
+ [apidoc]: https://www.rubydoc.info/github/lostisland/faraday
52
50
  [actions]: https://github.com/lostisland/faraday/actions
53
51
  [jruby]: http://jruby.org/
54
52
  [rubinius]: http://rubini.us/
@@ -19,7 +19,7 @@ class Client
19
19
  end
20
20
  end
21
21
 
22
- Rspec.describe Client do
22
+ RSpec.describe Client do
23
23
  let(:stubs) { Faraday::Adapter::Test::Stubs.new }
24
24
  let(:conn) { Faraday.new { |b| b.adapter(:test, stubs) } }
25
25
  let(:client) { Client.new(conn) }
@@ -1,11 +1,38 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'cgi'
4
+ require 'date'
4
5
  require 'set'
5
6
  require 'forwardable'
6
7
  require 'faraday/middleware_registry'
7
8
  require 'faraday/dependency_loader'
8
9
 
10
+ unless defined?(::Faraday::Timer)
11
+ require 'timeout'
12
+ ::Faraday::Timer = Timeout
13
+ end
14
+
15
+ require 'faraday/version'
16
+ require 'faraday/methods'
17
+ require 'faraday/utils'
18
+ require 'faraday/options'
19
+ require 'faraday/connection'
20
+ require 'faraday/rack_builder'
21
+ require 'faraday/parameters'
22
+ require 'faraday/middleware'
23
+ require 'faraday/adapter'
24
+ require 'faraday/request'
25
+ require 'faraday/response'
26
+ require 'faraday/error'
27
+ require 'faraday/file_part'
28
+ require 'faraday/param_part'
29
+
30
+ require 'faraday/em_http'
31
+ require 'faraday/em_synchrony'
32
+ require 'faraday/excon'
33
+ require 'faraday/net_http'
34
+ require 'faraday/net_http_persistent'
35
+
9
36
  # This is the main namespace for Faraday.
10
37
  #
11
38
  # It provides methods to create {Connection} objects, and HTTP-related
@@ -19,10 +46,6 @@ require 'faraday/dependency_loader'
19
46
  # conn.get '/'
20
47
  #
21
48
  module Faraday
22
- VERSION = '1.0.1'
23
- METHODS_WITH_QUERY = %w[get head delete trace].freeze
24
- METHODS_WITH_BODY = %w[post put patch].freeze
25
-
26
49
  class << self
27
50
  # The root path that Faraday is being loaded from.
28
51
  #
@@ -107,6 +130,34 @@ module Faraday
107
130
  default_connection.respond_to?(symbol, include_private) || super
108
131
  end
109
132
 
133
+ # @overload default_connection
134
+ # Gets the default connection used for simple scripts.
135
+ # @return [Faraday::Connection] a connection configured with
136
+ # the default_adapter.
137
+ # @overload default_connection=(connection)
138
+ # @param connection [Faraday::Connection]
139
+ # Sets the default {Faraday::Connection} for simple scripts that
140
+ # access the Faraday constant directly, such as
141
+ # <code>Faraday.get "https://faraday.com"</code>.
142
+ def default_connection
143
+ @default_connection ||= Connection.new(default_connection_options)
144
+ end
145
+
146
+ # Gets the default connection options used when calling {Faraday#new}.
147
+ #
148
+ # @return [Faraday::ConnectionOptions]
149
+ def default_connection_options
150
+ @default_connection_options ||= ConnectionOptions.new
151
+ end
152
+
153
+ # Sets the default options used when calling {Faraday#new}.
154
+ #
155
+ # @param options [Hash, Faraday::ConnectionOptions]
156
+ def default_connection_options=(options)
157
+ @default_connection = nil
158
+ @default_connection_options = ConnectionOptions.from(options)
159
+ end
160
+
110
161
  private
111
162
 
112
163
  # Internal: Proxies method calls on the Faraday constant to
@@ -125,42 +176,5 @@ module Faraday
125
176
  self.lib_path = File.expand_path 'faraday', __dir__
126
177
  self.default_adapter = :net_http
127
178
 
128
- # @overload default_connection
129
- # Gets the default connection used for simple scripts.
130
- # @return [Faraday::Connection] a connection configured with
131
- # the default_adapter.
132
- # @overload default_connection=(connection)
133
- # @param connection [Faraday::Connection]
134
- # Sets the default {Faraday::Connection} for simple scripts that
135
- # access the Faraday constant directly, such as
136
- # <code>Faraday.get "https://faraday.com"</code>.
137
- def self.default_connection
138
- @default_connection ||= Connection.new(default_connection_options)
139
- end
140
-
141
- # Gets the default connection options used when calling {Faraday#new}.
142
- #
143
- # @return [Faraday::ConnectionOptions]
144
- def self.default_connection_options
145
- @default_connection_options ||= ConnectionOptions.new
146
- end
147
-
148
- # Sets the default options used when calling {Faraday#new}.
149
- #
150
- # @param options [Hash, Faraday::ConnectionOptions]
151
- def self.default_connection_options=(options)
152
- @default_connection = nil
153
- @default_connection_options = ConnectionOptions.from(options)
154
- end
155
-
156
- unless defined?(::Faraday::Timer)
157
- require 'timeout'
158
- Timer = Timeout
159
- end
160
-
161
- require_libs 'utils', 'options', 'connection', 'rack_builder', 'parameters',
162
- 'middleware', 'adapter', 'request', 'response', 'error',
163
- 'file_part', 'param_part'
164
-
165
179
  require_lib 'autoload' unless ENV['FARADAY_NO_AUTOLOAD']
166
180
  end
@@ -11,22 +11,15 @@ module Faraday
11
11
 
12
12
  register_middleware File.expand_path('adapter', __dir__),
13
13
  test: [:Test, 'test'],
14
- net_http: [:NetHttp, 'net_http'],
15
- net_http_persistent: [
16
- :NetHttpPersistent,
17
- 'net_http_persistent'
18
- ],
19
14
  typhoeus: [:Typhoeus, 'typhoeus'],
20
15
  patron: [:Patron, 'patron'],
21
- em_synchrony: [:EMSynchrony, 'em_synchrony'],
22
- em_http: [:EMHttp, 'em_http'],
23
- excon: [:Excon, 'excon'],
24
16
  rack: [:Rack, 'rack'],
25
17
  httpclient: [:HTTPClient, 'httpclient']
26
18
 
27
19
  # This module marks an Adapter as supporting parallel requests.
28
20
  module Parallelism
29
21
  attr_writer :supports_parallel
22
+
30
23
  def supports_parallel?
31
24
  @supports_parallel
32
25
  end
@@ -23,7 +23,7 @@ module Faraday
23
23
  #
24
24
  # @return [void]
25
25
  def autoload_all(prefix, options)
26
- if prefix =~ %r{^faraday(/|$)}i
26
+ if prefix.match? %r{^faraday(/|$)}i
27
27
  prefix = File.join(Faraday.root_path, prefix)
28
28
  end
29
29
 
@@ -58,13 +58,8 @@ module Faraday
58
58
  class Adapter
59
59
  extend AutoloadHelper
60
60
  autoload_all 'faraday/adapter',
61
- NetHttp: 'net_http',
62
- NetHttpPersistent: 'net_http_persistent',
63
- EMSynchrony: 'em_synchrony',
64
- EMHttp: 'em_http',
65
61
  Typhoeus: 'typhoeus',
66
62
  Patron: 'patron',
67
- Excon: 'excon',
68
63
  Test: 'test',
69
64
  Rack: 'rack',
70
65
  HTTPClient: 'httpclient'
@@ -419,6 +419,8 @@ module Faraday
419
419
  basic_auth user, password
420
420
  uri.user = uri.password = nil
421
421
  end
422
+
423
+ @proxy = proxy_from_env(url) unless @manual_proxy
422
424
  end
423
425
 
424
426
  # Sets the path prefix and ensures that it always has a leading
@@ -429,7 +431,7 @@ module Faraday
429
431
  # @return [String] the new path prefix
430
432
  def path_prefix=(value)
431
433
  url_prefix.path = if value
432
- value = '/' + value unless value[0, 1] == '/'
434
+ value = "/#{value}" unless value[0, 1] == '/'
433
435
  value
434
436
  end
435
437
  end
@@ -520,8 +522,9 @@ module Faraday
520
522
  base = url_prefix
521
523
  if url && base.path && base.path !~ %r{/$}
522
524
  base = base.dup
523
- base.path = base.path + '/' # ensure trailing slash
525
+ base.path = "#{base.path}/" # ensure trailing slash
524
526
  end
527
+ url = url && URI.parse(url.to_s).opaque ? url.to_s.gsub(':', '%3A') : url
525
528
  uri = url ? base + url : base
526
529
  if params
527
530
  uri.query = params.to_query(params_encoder || options.params_encoder)
@@ -576,7 +579,11 @@ module Faraday
576
579
  case url
577
580
  when String
578
581
  uri = Utils.URI(url)
579
- uri = URI.parse("#{uri.scheme}://#{uri.hostname}").find_proxy
582
+ uri = if uri.host.nil?
583
+ find_default_proxy
584
+ else
585
+ URI.parse("#{uri.scheme}://#{uri.host}").find_proxy
586
+ end
580
587
  when URI
581
588
  uri = url.find_proxy
582
589
  when nil
@@ -593,7 +600,7 @@ module Faraday
593
600
  uri = ENV['http_proxy']
594
601
  return unless uri && !uri.empty?
595
602
 
596
- uri = 'http://' + uri if uri !~ /^http/i
603
+ uri = "http://#{uri}" unless uri.match?(/^http/i)
597
604
  uri
598
605
  end
599
606