oso-cloud 1.8.0 → 1.9.1.pre.vendored.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 (113) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -1
  3. data/Gemfile +5 -0
  4. data/Gemfile.lock +31 -12
  5. data/README.md +1 -1
  6. data/lib/oso/api.rb +18 -2
  7. data/lib/oso/oso.rb +10 -7
  8. data/lib/oso/version.rb +1 -1
  9. data/vendor/gems/faraday-2.5.2/CHANGELOG.md +574 -0
  10. data/vendor/gems/faraday-2.5.2/LICENSE.md +20 -0
  11. data/vendor/gems/faraday-2.5.2/README.md +55 -0
  12. data/vendor/gems/faraday-2.5.2/Rakefile +7 -0
  13. data/vendor/gems/faraday-2.5.2/examples/client_spec.rb +119 -0
  14. data/vendor/gems/faraday-2.5.2/examples/client_test.rb +144 -0
  15. data/vendor/gems/faraday-2.5.2/lib/faraday/adapter/test.rb +298 -0
  16. data/vendor/gems/faraday-2.5.2/lib/faraday/adapter.rb +102 -0
  17. data/vendor/gems/faraday-2.5.2/lib/faraday/adapter_registry.rb +30 -0
  18. data/vendor/gems/faraday-2.5.2/lib/faraday/connection.rb +561 -0
  19. data/vendor/gems/faraday-2.5.2/lib/faraday/encoders/flat_params_encoder.rb +105 -0
  20. data/vendor/gems/faraday-2.5.2/lib/faraday/encoders/nested_params_encoder.rb +183 -0
  21. data/vendor/gems/faraday-2.5.2/lib/faraday/error.rb +147 -0
  22. data/vendor/gems/faraday-2.5.2/lib/faraday/logging/formatter.rb +106 -0
  23. data/vendor/gems/faraday-2.5.2/lib/faraday/methods.rb +6 -0
  24. data/vendor/gems/faraday-2.5.2/lib/faraday/middleware.rb +30 -0
  25. data/vendor/gems/faraday-2.5.2/lib/faraday/middleware_registry.rb +83 -0
  26. data/vendor/gems/faraday-2.5.2/lib/faraday/options/connection_options.rb +22 -0
  27. data/vendor/gems/faraday-2.5.2/lib/faraday/options/env.rb +199 -0
  28. data/vendor/gems/faraday-2.5.2/lib/faraday/options/proxy_options.rb +32 -0
  29. data/vendor/gems/faraday-2.5.2/lib/faraday/options/request_options.rb +22 -0
  30. data/vendor/gems/faraday-2.5.2/lib/faraday/options/ssl_options.rb +69 -0
  31. data/vendor/gems/faraday-2.5.2/lib/faraday/options.rb +218 -0
  32. data/vendor/gems/faraday-2.5.2/lib/faraday/parameters.rb +5 -0
  33. data/vendor/gems/faraday-2.5.2/lib/faraday/rack_builder.rb +252 -0
  34. data/vendor/gems/faraday-2.5.2/lib/faraday/request/authorization.rb +49 -0
  35. data/vendor/gems/faraday-2.5.2/lib/faraday/request/instrumentation.rb +56 -0
  36. data/vendor/gems/faraday-2.5.2/lib/faraday/request/json.rb +55 -0
  37. data/vendor/gems/faraday-2.5.2/lib/faraday/request/url_encoded.rb +60 -0
  38. data/vendor/gems/faraday-2.5.2/lib/faraday/request.rb +136 -0
  39. data/vendor/gems/faraday-2.5.2/lib/faraday/response/json.rb +54 -0
  40. data/vendor/gems/faraday-2.5.2/lib/faraday/response/logger.rb +33 -0
  41. data/vendor/gems/faraday-2.5.2/lib/faraday/response/raise_error.rb +64 -0
  42. data/vendor/gems/faraday-2.5.2/lib/faraday/response.rb +90 -0
  43. data/vendor/gems/faraday-2.5.2/lib/faraday/utils/headers.rb +139 -0
  44. data/vendor/gems/faraday-2.5.2/lib/faraday/utils/params_hash.rb +61 -0
  45. data/vendor/gems/faraday-2.5.2/lib/faraday/utils.rb +122 -0
  46. data/vendor/gems/faraday-2.5.2/lib/faraday/version.rb +5 -0
  47. data/vendor/gems/faraday-2.5.2/lib/faraday.rb +157 -0
  48. data/vendor/gems/faraday-2.5.2/spec/external_adapters/faraday_specs_setup.rb +14 -0
  49. data/vendor/gems/faraday-2.5.2/spec/faraday/adapter/test_spec.rb +413 -0
  50. data/vendor/gems/faraday-2.5.2/spec/faraday/adapter_registry_spec.rb +28 -0
  51. data/vendor/gems/faraday-2.5.2/spec/faraday/adapter_spec.rb +55 -0
  52. data/vendor/gems/faraday-2.5.2/spec/faraday/connection_spec.rb +793 -0
  53. data/vendor/gems/faraday-2.5.2/spec/faraday/error_spec.rb +60 -0
  54. data/vendor/gems/faraday-2.5.2/spec/faraday/middleware_registry_spec.rb +31 -0
  55. data/vendor/gems/faraday-2.5.2/spec/faraday/middleware_spec.rb +52 -0
  56. data/vendor/gems/faraday-2.5.2/spec/faraday/options/env_spec.rb +76 -0
  57. data/vendor/gems/faraday-2.5.2/spec/faraday/options/options_spec.rb +297 -0
  58. data/vendor/gems/faraday-2.5.2/spec/faraday/options/proxy_options_spec.rb +44 -0
  59. data/vendor/gems/faraday-2.5.2/spec/faraday/options/request_options_spec.rb +19 -0
  60. data/vendor/gems/faraday-2.5.2/spec/faraday/params_encoders/flat_spec.rb +42 -0
  61. data/vendor/gems/faraday-2.5.2/spec/faraday/params_encoders/nested_spec.rb +150 -0
  62. data/vendor/gems/faraday-2.5.2/spec/faraday/rack_builder_spec.rb +317 -0
  63. data/vendor/gems/faraday-2.5.2/spec/faraday/request/authorization_spec.rb +83 -0
  64. data/vendor/gems/faraday-2.5.2/spec/faraday/request/instrumentation_spec.rb +74 -0
  65. data/vendor/gems/faraday-2.5.2/spec/faraday/request/json_spec.rb +111 -0
  66. data/vendor/gems/faraday-2.5.2/spec/faraday/request/url_encoded_spec.rb +93 -0
  67. data/vendor/gems/faraday-2.5.2/spec/faraday/request_spec.rb +110 -0
  68. data/vendor/gems/faraday-2.5.2/spec/faraday/response/json_spec.rb +117 -0
  69. data/vendor/gems/faraday-2.5.2/spec/faraday/response/logger_spec.rb +220 -0
  70. data/vendor/gems/faraday-2.5.2/spec/faraday/response/raise_error_spec.rb +172 -0
  71. data/vendor/gems/faraday-2.5.2/spec/faraday/response_spec.rb +75 -0
  72. data/vendor/gems/faraday-2.5.2/spec/faraday/utils/headers_spec.rb +82 -0
  73. data/vendor/gems/faraday-2.5.2/spec/faraday/utils_spec.rb +118 -0
  74. data/vendor/gems/faraday-2.5.2/spec/faraday_spec.rb +37 -0
  75. data/vendor/gems/faraday-2.5.2/spec/spec_helper.rb +132 -0
  76. data/vendor/gems/faraday-2.5.2/spec/support/disabling_stub.rb +14 -0
  77. data/vendor/gems/faraday-2.5.2/spec/support/fake_safe_buffer.rb +15 -0
  78. data/vendor/gems/faraday-2.5.2/spec/support/helper_methods.rb +96 -0
  79. data/vendor/gems/faraday-2.5.2/spec/support/shared_examples/adapter.rb +105 -0
  80. data/vendor/gems/faraday-2.5.2/spec/support/shared_examples/params_encoder.rb +18 -0
  81. data/vendor/gems/faraday-2.5.2/spec/support/shared_examples/request_method.rb +263 -0
  82. data/vendor/gems/faraday-2.5.2/spec/support/streaming_response_checker.rb +35 -0
  83. data/vendor/gems/faraday-net_http-3.0.2/LICENSE.md +21 -0
  84. data/vendor/gems/faraday-net_http-3.0.2/README.md +57 -0
  85. data/vendor/gems/faraday-net_http-3.0.2/lib/faraday/adapter/net_http.rb +208 -0
  86. data/vendor/gems/faraday-net_http-3.0.2/lib/faraday/net_http/version.rb +7 -0
  87. data/vendor/gems/faraday-net_http-3.0.2/lib/faraday/net_http.rb +10 -0
  88. data/vendor/gems/faraday-net_http_persistent-2.3.0/LICENSE.md +21 -0
  89. data/vendor/gems/faraday-net_http_persistent-2.3.0/README.md +66 -0
  90. data/vendor/gems/faraday-net_http_persistent-2.3.0/lib/faraday/adapter/net_http_persistent.rb +234 -0
  91. data/vendor/gems/faraday-net_http_persistent-2.3.0/lib/faraday/net_http_persistent/version.rb +7 -0
  92. data/vendor/gems/faraday-net_http_persistent-2.3.0/lib/faraday/net_http_persistent.rb +18 -0
  93. data/vendor/gems/faraday-retry-2.0.0/CHANGELOG.md +24 -0
  94. data/vendor/gems/faraday-retry-2.0.0/LICENSE.md +21 -0
  95. data/vendor/gems/faraday-retry-2.0.0/README.md +169 -0
  96. data/vendor/gems/faraday-retry-2.0.0/lib/faraday/retriable_response.rb +8 -0
  97. data/vendor/gems/faraday-retry-2.0.0/lib/faraday/retry/middleware.rb +254 -0
  98. data/vendor/gems/faraday-retry-2.0.0/lib/faraday/retry/version.rb +7 -0
  99. data/vendor/gems/faraday-retry-2.0.0/lib/faraday/retry.rb +13 -0
  100. data/vendor/gems/net-http-persistent-4.0.5/.autotest +9 -0
  101. data/vendor/gems/net-http-persistent-4.0.5/.gemtest +0 -0
  102. data/vendor/gems/net-http-persistent-4.0.5/Gemfile +14 -0
  103. data/vendor/gems/net-http-persistent-4.0.5/History.txt +460 -0
  104. data/vendor/gems/net-http-persistent-4.0.5/Manifest.txt +13 -0
  105. data/vendor/gems/net-http-persistent-4.0.5/README.rdoc +82 -0
  106. data/vendor/gems/net-http-persistent-4.0.5/Rakefile +25 -0
  107. data/vendor/gems/net-http-persistent-4.0.5/lib/net/http/persistent/connection.rb +41 -0
  108. data/vendor/gems/net-http-persistent-4.0.5/lib/net/http/persistent/pool.rb +65 -0
  109. data/vendor/gems/net-http-persistent-4.0.5/lib/net/http/persistent/timed_stack_multi.rb +79 -0
  110. data/vendor/gems/net-http-persistent-4.0.5/lib/net/http/persistent.rb +1158 -0
  111. data/vendor/gems/net-http-persistent-4.0.5/test/test_net_http_persistent.rb +1512 -0
  112. data/vendor/gems/net-http-persistent-4.0.5/test/test_net_http_persistent_timed_stack_multi.rb +151 -0
  113. metadata +112 -8
@@ -0,0 +1,574 @@
1
+ # Faraday Changelog
2
+
3
+ ## The changelog has moved!
4
+
5
+ This file is not being updated anymore. Instead, please check the [Releases](https://github.com/lostisland/faraday/releases) page.
6
+
7
+ ## [2.2.0](https://github.com/lostisland/faraday/compare/v2.1.0...v2.2.0) (2022-02-03)
8
+
9
+ * Reintroduce the possibility to register middleware with symbols, strings or procs in [#1391](https://github.com/lostisland/faraday/pull/1391)
10
+
11
+ ## [2.1.0](https://github.com/lostisland/faraday/compare/v2.0.1...v2.1.0) (2022-01-15)
12
+
13
+ * Fix test adapter thread safety by @iMacTia in [#1380](https://github.com/lostisland/faraday/pull/1380)
14
+ * Add default adapter options by @hirasawayuki in [#1382](https://github.com/lostisland/faraday/pull/1382)
15
+ * CI: Add Ruby 3.1 to matrix by @petergoldstein in [#1374](https://github.com/lostisland/faraday/pull/1374)
16
+ * docs: fix regex pattern in logger.md examples by @hirasawayuki in [#1378](https://github.com/lostisland/faraday/pull/1378)
17
+
18
+ ## [2.0.1](https://github.com/lostisland/faraday/compare/v2.0.0...v2.0.1) (2022-01-05)
19
+
20
+ * Re-add `faraday-net_http` as default adapter by @iMacTia in [#1366](https://github.com/lostisland/faraday/pull/1366)
21
+ * Updated sample format in UPGRADING.md by @vimutter in [#1361](https://github.com/lostisland/faraday/pull/1361)
22
+ * docs: Make UPGRADING examples more copyable by @olleolleolle in [#1363](https://github.com/lostisland/faraday/pull/1363)
23
+
24
+ ## [2.0.0](https://github.com/lostisland/faraday/compare/v1.8.0...v2.0.0) (2022-01-04)
25
+
26
+ The next major release is here, and it comes almost 2 years after the release of v1.0!
27
+
28
+ This release changes the way you use Faraday and embraces a new paradigm of Faraday as an ecosystem, rather than a library.
29
+
30
+ What does that mean? It means that Faraday is less of a bundled tool and more of a framework for the community to build on top of.
31
+
32
+ As a result, all adapters and some middleware have moved out and are now shipped as standalone gems 🙌!
33
+
34
+ But this doesn't mean that upgrading from Faraday 1.x to Faraday 2.0 should be hard, in fact we've listed everything you need to do in the [UPGRADING.md](https://github.com/lostisland/faraday/blob/main/UPGRADING.md) doc.
35
+
36
+ Moreover, we've setup a new [awesome-faraday](https://github.com/lostisland/awesome-faraday) repository that will showcase a curated list of adapters and middleware 😎.
37
+
38
+ This release was the result of the efforts of the core team and all the contributors, new and old, that have helped achieve this milestone 👏.
39
+
40
+ ## What's Changed
41
+
42
+ * Autoloading, dependency loading and middleware registry cleanup by @iMacTia in [#1301](https://github.com/lostisland/faraday/pull/1301)
43
+ * Move JSON middleware (request and response) from faraday_middleware by @iMacTia in [#1300](https://github.com/lostisland/faraday/pull/1300)
44
+ * Remove deprecated `Faraday::Request#method` by @olleolleolle in [#1303](https://github.com/lostisland/faraday/pull/1303)
45
+ * Remove deprecated `Faraday::UploadIO` by @iMacTia in [#1307](https://github.com/lostisland/faraday/pull/1307)
46
+ * [1.x] Deprecate Authorization helpers in `Faraday::Connection` by @iMacTia in [#1306](https://github.com/lostisland/faraday/pull/1306)
47
+ * Drop deprecated auth helpers from Connection and refactor auth middleware by @iMacTia in [#1308](https://github.com/lostisland/faraday/pull/1308)
48
+ * Add Faraday 1.x examples in authentication.md docs by @iMacTia in [#1320](https://github.com/lostisland/faraday/pull/1320)
49
+ * Fix passing a URL with embedded basic auth by @iMacTia in [#1324](https://github.com/lostisland/faraday/pull/1324)
50
+ * Register JSON middleware by @mollerhoj in [#1331](https://github.com/lostisland/faraday/pull/1331)
51
+ * Retry middleware should handle string exception class name consistently by @jrochkind in [#1334](https://github.com/lostisland/faraday/pull/1334)
52
+ * Improve request info in exceptions raised by RaiseError Middleware by @willianzocolau in [#1335](https://github.com/lostisland/faraday/pull/1335)
53
+ * Remove net-http adapter and update docs by @iMacTia in [#1336](https://github.com/lostisland/faraday/pull/1336)
54
+ * Explain plan for faraday_middleware in UPGRADING.md by @iMacTia in [#1339](https://github.com/lostisland/faraday/pull/1339)
55
+ * Scripts folder cleanup by @iMacTia in [#1340](https://github.com/lostisland/faraday/pull/1340)
56
+ * Replace `Hash#merge` with `Utils#deep_merge` for connection options by @xkwd in [#1343](https://github.com/lostisland/faraday/pull/1343)
57
+ * Callable authorizers by @sled in [#1345](https://github.com/lostisland/faraday/pull/1345)
58
+ * Default value for exc error by @DariuszMusielak in [#1351](https://github.com/lostisland/faraday/pull/1351)
59
+ * Don't call `retry_block` unless a retry is going to happen by @jrochkind in [#1350](https://github.com/lostisland/faraday/pull/1350)
60
+ * Improve documentation for v2 by @iMacTia in [#1353](https://github.com/lostisland/faraday/pull/1353)
61
+ * Remove default `default_adapter` (yes, you read that right) by @iMacTia in [#1354](https://github.com/lostisland/faraday/pull/1354)
62
+ * Remove retry middleware by @iMacTia in [#1356](https://github.com/lostisland/faraday/pull/1356)
63
+ * Remove multipart middleware and all its documentation and tests by @iMacTia in [#1357](https://github.com/lostisland/faraday/pull/1357)
64
+
65
+ ## [1.9.3](https://github.com/lostisland/faraday/compare/v1.9.2...v1.9.3) (2022-01-06)
66
+
67
+ * Re-add support for Ruby 2.4+ by @iMacTia in [#1371](https://github.com/lostisland/faraday/pull/1371)
68
+
69
+ ## [1.9.2](https://github.com/lostisland/faraday/compare/v1.9.1...v1.9.2) (2022-01-06)
70
+
71
+ * Add alias with legacy name to gemified middleware by @iMacTia in [#1372](https://github.com/lostisland/faraday/pull/1372)
72
+
73
+ ## [1.9.1](https://github.com/lostisland/faraday/compare/v1.9.0...v1.9.1) (2022-01-06)
74
+
75
+ * Update adapter dependencies in Gemspec by @iMacTia in [#1370](https://github.com/lostisland/faraday/pull/1370)
76
+
77
+ ## [1.9.0](https://github.com/lostisland/faraday/compare/v1.8.0...v1.9.0) (2022-01-06)
78
+
79
+ * Use external multipart and retry middleware by @iMacTia in [#1367](https://github.com/lostisland/faraday/pull/1367)
80
+
81
+ ## [1.8.0](https://github.com/lostisland/faraday/releases/tag/v1.8.0) (2021-09-18)
82
+
83
+ ### Features
84
+
85
+ * Backport authorization procs (#1322, @jarl-dk)
86
+
87
+ ## [v1.7.0](https://github.com/lostisland/faraday/releases/tag/v1.7.0) (2021-08-09)
88
+
89
+ ### Features
90
+
91
+ * Add strict_mode to Test::Stubs (#1298, @yykamei)
92
+
93
+ ## [v1.6.0](https://github.com/lostisland/faraday/releases/tag/v1.6.0) (2021-08-01)
94
+
95
+ ### Misc
96
+
97
+ * Use external Rack adapter (#1296, @iMacTia)
98
+
99
+ ## [v1.5.1](https://github.com/lostisland/faraday/releases/tag/v1.5.1) (2021-07-11)
100
+
101
+ ### Fixes
102
+
103
+ * Fix JRuby incompatibility after moving out EM adapters (#1294, @ahorek)
104
+
105
+ ### Documentation
106
+
107
+ * Update YARD to follow RackBuilder (#1292, @kachick)
108
+
109
+ ## [v1.5.0](https://github.com/lostisland/faraday/releases/tag/v1.5.0) (2021-07-04)
110
+
111
+ ### Misc
112
+
113
+ * Use external httpclient adapter (#1289, @iMacTia)
114
+ * Use external patron adapter (#1290, @iMacTia)
115
+
116
+ ## [v1.4.3](https://github.com/lostisland/faraday/releases/tag/v1.4.3) (2021-06-24)
117
+
118
+ ### Fixes
119
+
120
+ * Silence warning (#1286, @gurgeous)
121
+ * Always dup url_prefix in Connection#build_exclusive_url (#1288, @alexeyds)
122
+
123
+ ## [v1.4.2](https://github.com/lostisland/faraday/releases/tag/v1.4.2) (2021-05-22)
124
+
125
+ ### Fixes
126
+ * Add proxy setting when url_prefix is changed (#1276, @ci)
127
+ * Default proxy scheme to http:// if necessary, fixes #1282 (#1283, @gurgeous)
128
+
129
+ ### Documentation
130
+ * Improve introduction page (#1273, @gurgeous)
131
+ * Docs: add more middleware examples (#1277, @gurgeous)
132
+
133
+ ### Misc
134
+ * Use external `em_http` and `em_synchrony` adapters (#1274, @iMacTia)
135
+
136
+ ## [v1.4.1](https://github.com/lostisland/faraday/releases/tag/v1.4.1) (2021-04-18)
137
+
138
+ ### Fixes
139
+
140
+ * Fix dependencies from external adapter gems (#1269, @iMacTia)
141
+
142
+ ## [v1.4.0](https://github.com/lostisland/faraday/releases/tag/v1.4.0) (2021-04-16)
143
+
144
+ ### Highlights
145
+
146
+ With this release, we continue the work of gradually moving out adapters into their own gems 🎉
147
+ Thanks to @MikeRogers0 for helping the Faraday team in progressing with this quest 👏
148
+
149
+ And thanks to @olleolleolle efforts, Faraday is becoming more inclusive than ever 🤗
150
+ Faraday's `master` branch has been renamed into `main`, we have an official policy on inclusive language and even a rubocop plugin to check for non-inclusive words ❤️!
151
+ Checkout the "Misc" section below for more details 🙌 !
152
+
153
+ ### Fixes
154
+
155
+ * Fix NoMethodError undefined method 'coverage' (#1255, @Maroo-b)
156
+
157
+ ### Documentation
158
+
159
+ * Some docs on EventMachine adapters. (#1232, @damau)
160
+ * CONTRIBUTING: Fix grammar and layout (#1261, @olleolleolle)
161
+
162
+ ### Misc
163
+
164
+ * Replacing Net::HTTP::Persistent with faraday-net_http_persistent (#1250, @MikeRogers0)
165
+ * CI: Configure the regenerated Coveralls token (#1256, @olleolleolle)
166
+ * Replace Excon adapter with Faraday::Excon gem, and fix autoloading issue with Faraday::NetHttpPersistent (#1257, @iMacTia)
167
+ * Drop CodeClimate (#1259, @olleolleolle)
168
+ * CI: Rename default branch to main (#1263, @olleolleolle)
169
+ * Drop RDoc support file .document (#1264, @olleolleolle, @iMacTia)
170
+ * CONTRIBUTING: add a policy on inclusive language (#1262, @olleolleolle)
171
+ * Add rubocop-inclusivity (#1267, @olleolleolle, @iMacTia)
172
+
173
+ ## [v1.3.1](https://github.com/lostisland/faraday/releases/tag/v1.3.1) (2021-04-16)
174
+
175
+ ### Fixes
176
+
177
+ * Escape colon in path segment (#1237, @yarafan)
178
+ * Handle IPv6 address String on Faraday::Connection#proxy_from_env (#1252, @cosmo0920)
179
+
180
+ ### Documentation
181
+
182
+ * Fix broken Rubydoc.info links (#1236, @nickcampbell18)
183
+ * Add httpx to list of external adapters (#1246, @HoneyryderChuck)
184
+
185
+ ### Misc
186
+
187
+ * Refactor CI to remove duplicated line (#1230, @tricknotes)
188
+ * Gemspec: Pick a good ruby2_keywords release (#1241, @olleolleolle)
189
+
190
+ ## [v1.3.0](https://github.com/lostisland/faraday/releases/tag/v1.3.0) (2020-12-31)
191
+
192
+ ### Highlights
193
+ Faraday v1.3.0 is the first release to officially support Ruby 3.0 in the CI pipeline 🎉 🍾!
194
+
195
+ 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) 🎊!
196
+ 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!
197
+
198
+ This is a huge step towards are Faraday v2.0 objective of pushing adapters and middleware into separate gems.
199
+ Many thanks to the Faraday Team, @JanDintel and everyone who attended the [ROSS Conf remote event](https://www.rossconf.io/event/remote/)
200
+
201
+ ### Features
202
+
203
+ * Improves consistency with Faraday::Error and Faraday::RaiseError (#1229, @qsona, @iMacTia)
204
+
205
+ ### Fixes
206
+
207
+ * Don't assign to global ::Timer (#1227, @bpo)
208
+
209
+ ### Documentation
210
+
211
+ * CHANGELOG: add releases after 1.0 (#1225, @olleolleolle)
212
+ * Improves retry middleware documentation. (#1228, @iMacTia)
213
+
214
+ ### Misc
215
+
216
+ * Move out Net::HTTP adapter (#1222, @JanDintel, @iMacTia)
217
+ * Adds Ruby 3.0 to CI Matrix (#1226, @iMacTia)
218
+
219
+
220
+ ## [v1.2.0](https://github.com/lostisland/faraday/releases/tag/v1.2.0) (2020-12-23)
221
+
222
+ ### Features
223
+
224
+ * Introduces `on_request` and `on_complete` methods in `Faraday::Middleware`. (#1194, @iMacTia)
225
+
226
+ ### Fixes
227
+
228
+ * Require 'date' to avoid retry exception (#1206, @rustygeldmacher)
229
+ * Fix rdebug recursion issue (#1205, @native-api)
230
+ * Update call to `em_http_ssl_patch` (#1202, @kylekeesling)
231
+ * `EmHttp` adapter: drop superfluous loaded? check (#1213, @olleolleolle)
232
+ * Avoid 1 use of keyword hackery (#1211, @grosser)
233
+ * Fix #1219 `Net::HTTP` still uses env proxy (#1221, @iMacTia)
234
+
235
+ ### Documentation
236
+
237
+ * Add comment in gemspec to explain exposure of `examples` and `spec` folders. (#1192, @iMacTia)
238
+ * Adapters, how to create them (#1193, @olleolleolle)
239
+ * Update documentation on using the logger (#1196, @tijmenb)
240
+ * Adjust the retry documentation and spec to align with implementation (#1198, @nbeyer)
241
+
242
+ ### Misc
243
+
244
+ * Test against ruby head (#1208, @grosser)
245
+
246
+ ## [v1.1.0](https://github.com/lostisland/faraday/releases/tag/v1.1.0) (2020-10-17)
247
+
248
+ ### Features
249
+
250
+ * Makes parameters sorting configurable (#1162 @wishdev)
251
+ * Introduces `flat_encode` option for multipart adapter. (#1163 @iMacTia)
252
+ * Include request info in exceptions raised by RaiseError Middleware (#1181 @SandroDamilano)
253
+
254
+ ### Fixes
255
+
256
+ * Avoid `last arg as keyword param` warning when building user middleware on Ruby 2.7 (#1153 @dgholz)
257
+ * Limits net-http-persistent version to < 4.0 (#1156 @iMacTia)
258
+ * Update `typhoeus` to new stable version (`1.4`) (#1159 @AlexWayfer)
259
+ * Properly fix test failure with Rack 2.1+. (#1171 @voxik)
260
+
261
+ ### Documentation
262
+
263
+ * Improves documentation on how to contribute to the site by using Docker. (#1175 @iMacTia)
264
+ * Remove retry_change_requests from documentation (#1185 @stim371)
265
+
266
+ ### Misc
267
+
268
+ * Link from GitHub Actions badge to CI workflow (#1141 @olleolleolle)
269
+ * Return tests of `Test` adapter (#1147 @AlexWayfer)
270
+ * Add 1.0 release to wording in CONTRIBUTING (#1155 @olleolleolle)
271
+ * Fix linting bumping Rubocop to 0.90.0 (#1182 @iMacTia)
272
+ * Drop `git ls-files` in gemspec (#1183 @utkarsh2102)
273
+ * Upgrade CI to ruby/setup-ruby (#1187 @gogainda)
274
+
275
+ ## [v1.0.1](https://github.com/lostisland/faraday/releases/tag/v1.0.1) (2020-03-29)
276
+
277
+ ### Fixes
278
+
279
+ * Use Net::HTTP#start(&block) to ensure closed TCP connections (#1117)
280
+ * Fully qualify constants to be checked (#1122)
281
+ * Allows `parse` method to be private/protected in response middleware (#1123)
282
+ * Encode Spaces in Query Strings as '%20' Instead of '+' (#1125)
283
+ * Limits rack to v2.0.x (#1127)
284
+ * Adapter Registry reads also use mutex (#1136)
285
+
286
+ ### Documentation
287
+
288
+ * Retry middleware documentation fix (#1109)
289
+ * Docs(retry): precise usage of retry-after (#1111)
290
+ * README: Link the logo to the website (#1112)
291
+ * Website: add search bar (#1116)
292
+ * Fix request/response mix-up in docs text (#1132)
293
+
294
+ ## [v1.0](https://github.com/lostisland/faraday/releases/tag/v1.0.0) (2020-01-22)
295
+
296
+ Features:
297
+
298
+ * Add #trace support to Faraday::Connection #861 (@technoweenie)
299
+ * Add the log formatter that is easy to override and safe to inherit #889 (@prikha)
300
+ * Support standalone adapters #941 (@iMacTia)
301
+ * Introduce Faraday::ConflictError for 409 response code #979 (@lucasmoreno)
302
+ * Add support for setting `read_timeout` option separately #1003 (@springerigor)
303
+ * Refactor and cleanup timeout settings across adapters #1022 (@technoweenie)
304
+ * Create ParamPart class to allow multipart posts with JSON content and file upload at the same time #1017 (@jeremy-israel)
305
+ * Copy UploadIO const -> FilePart for consistency with ParamPart #1018, #1021 (@technoweenie)
306
+ * Implement streaming responses in the Excon adapter #1026 (@technoweenie)
307
+ * Add default implementation of `Middleware#close`. #1069 (@ioquatix)
308
+ * Add `Adapter#close` so that derived classes can call super. #1091 (@ioquatix)
309
+ * Add log_level option to logger default formatter #1079 (@amrrbakry)
310
+ * Fix empty array for FlatParamsEncoder `{key: []} -> "key="` #1084 (@mrexox)
311
+
312
+ Bugs:
313
+
314
+ * Explicitly require date for DateTime library in Retry middleware #844 (@nickpresta)
315
+ * Refactor Adapter as final endpoints #846 (@iMacTia)
316
+ * Separate Request and Response bodies in Faraday::Env #847 (@iMacTia)
317
+ * Implement Faraday::Connection#options to make HTTP requests with the OPTIONS verb. #857 (@technoweenie)
318
+ * Multipart: Drop Ruby 1.8 String behavior compat #892 (@olleolleolle)
319
+ * Fix Ruby warnings in Faraday::Options.memoized #962 (@technoweenie)
320
+ * Allow setting min/max SSL version for a Net::HTTP::Persistent connection #972, #973 (@bdewater, @olleolleolle)
321
+ * Fix instances of frozen empty string literals #1040 (@BobbyMcWho)
322
+ * remove temp_proxy and improve proxy tests #1063 (@technoweenie)
323
+ * improve error initializer consistency #1095 (@technoweenie)
324
+
325
+ Misc:
326
+
327
+ * Convert minitest suite to RSpec #832 (@iMacTia, with help from @gaynetdinov, @Insti, @technoweenie)
328
+ * Major effort to update code to RuboCop standards. #854 (@olleolleolle, @iMacTia, @technoweenie, @htwroclau, @jherdman, @Drenmi, @Insti)
329
+ * Rubocop #1044, #1047 (@BobbyMcWho, @olleolleolle)
330
+ * Documentation tweaks (@adsteel, @Hubro, @iMacTia, @olleolleolle, @technoweenie)
331
+ * Update license year #981 (@Kevin-Kawai)
332
+ * Configure Jekyll plugin jekyll-remote-theme to support Docker usage #999 (@Lewiscowles1986)
333
+ * Fix Ruby 2.7 warnings #1009 (@tenderlove)
334
+ * Cleanup adapter connections #1023 (@technoweenie)
335
+ * Describe clearing cached stubs #1045 (@viraptor)
336
+ * Add project metadata to the gemspec #1046 (@orien)
337
+
338
+ ## v0.17.4
339
+
340
+ Fixes:
341
+
342
+ * NetHttp adapter: wrap Errno::EADDRNOTAVAIL (#1114, @embs)
343
+ * Fix === for subclasses of deprecated classes (#1243, @mervync)
344
+
345
+ ## v0.17.3
346
+
347
+ Fixes:
348
+
349
+ * Reverts changes in error classes hierarchy. #1092 (@iMacTia)
350
+ * Fix Ruby 1.9 syntax errors and improve Error class testing #1094 (@BanzaiMan,
351
+ @mrexox, @technoweenie)
352
+
353
+ Misc:
354
+
355
+ * Stops using `&Proc.new` for block forwarding. #1083 (@olleolleolle)
356
+ * Update CI to test against ruby 2.0-2.7 #1087, #1099 (@iMacTia, @olleolleolle,
357
+ @technoweenie)
358
+ * require FARADAY_DEPRECATE=warn to show Faraday v1.0 deprecation warnings
359
+ #1098 (@technoweenie)
360
+
361
+ ## v0.17.1
362
+
363
+ Final release before Faraday v1.0, with important fixes for Ruby 2.7.
364
+
365
+ Fixes:
366
+
367
+ * RaiseError response middleware raises exception if HTTP client returns a nil
368
+ status. #1042 (@jonnyom, @BobbyMcWho)
369
+
370
+ Misc:
371
+
372
+ * Fix Ruby 2.7 warnings (#1009)
373
+ * Add `Faraday::Deprecate` to warn about upcoming v1.0 changes. (#1054, #1059,
374
+ #1076, #1077)
375
+ * Add release notes up to current in CHANGELOG.md (#1066)
376
+ * Port minimal rspec suite from main branch to run backported tests. (#1058)
377
+
378
+ ## v0.17.0
379
+
380
+ This release is the same as v0.15.4. It was pushed to cover up releases
381
+ v0.16.0-v0.16.2.
382
+
383
+ ## v0.15.4
384
+
385
+ * Expose `pool_size` as a option for the NetHttpPersistent adapter (#834)
386
+
387
+ ## v0.15.3
388
+
389
+ * Make Faraday::Request serialisable with Marshal. (#803)
390
+ * Add DEFAULT_EXCEPTIONS constant to Request::Retry (#814)
391
+ * Add support for Ruby 2.6 Net::HTTP write_timeout (#824)
392
+
393
+ ## v0.15.2
394
+
395
+ * Prevents `Net::HTTP` adapters to retry request internally by setting `max_retries` to 0 if available (Ruby 2.5+). (#799)
396
+ * Fixes `NestedParamsEncoder` handling of empty array values (#801)
397
+
398
+ ## v0.15.1
399
+
400
+ * NetHttpPersistent adapter better reuse of SSL connections (#793)
401
+ * Refactor: inline cached_connection (#797)
402
+ * Logger middleware: use $stdout instead of STDOUT (#794)
403
+ * Fix: do not memoize/reuse Patron session (#796)
404
+
405
+ Also in this release:
406
+
407
+ * Allow setting min/max ssl version for Net::HTTP (#792)
408
+ * Allow setting min/max ssl version for Excon (#795)
409
+
410
+ ## v0.15.0
411
+
412
+ Features:
413
+
414
+ * Added retry block option to retry middleware. (#770)
415
+ * Retry middleware improvements (honour Retry-After header, retry statuses) (#773)
416
+ * Improve response logger middleware output (#784)
417
+
418
+ Fixes:
419
+
420
+ * Remove unused class error (#767)
421
+ * Fix minor typo in README (#760)
422
+ * Reuse persistent connections when using net-http-persistent (#778)
423
+ * Fix Retry middleware documentation (#781)
424
+ * Returns the http response when giving up on retrying by status (#783)
425
+
426
+ ## v0.14.0
427
+
428
+ Features:
429
+
430
+ * Allow overriding env proxy #754 (@iMacTia)
431
+ * Remove legacy Typhoeus adapter #715 (@olleolleolle)
432
+ * External Typhoeus Adapter Compatibility #748 (@iMacTia)
433
+ * Warn about missing adapter when making a request #743 (@antstorm)
434
+ * Faraday::Adapter::Test stubs now support entire urls (with host) #741 (@erik-escobedo)
435
+
436
+ Fixes:
437
+
438
+ * If proxy is manually provided, this takes priority over `find_proxy` #724 (@iMacTia)
439
+ * Fixes the behaviour for Excon's open_timeout (not setting write_timeout anymore) #731 (@apachelogger)
440
+ * Handle all connection timeout messages in Patron #687 (@stayhero)
441
+
442
+ ## v0.13.1
443
+
444
+ * Fixes an incompatibility with Addressable::URI being used as uri_parser
445
+
446
+ ## v0.13.0
447
+
448
+ Features:
449
+
450
+ * Dynamically reloads the proxy when performing a request on an absolute domain (#701)
451
+ * Adapter support for Net::HTTP::Persistent v3.0.0 (#619)
452
+
453
+ Fixes:
454
+
455
+ * Prefer #hostname over #host. (#714)
456
+ * Fixes an edge-case issue with response headers parsing (missing HTTP header) (#719)
457
+
458
+ ## v0.12.2
459
+
460
+ * Parse headers from aggregated proxy requests/responses (#681)
461
+ * Guard against invalid middleware configuration with warning (#685)
462
+ * Do not use :insecure option by default in Patron (#691)
463
+ * Fixes an issue with HTTPClient not raising a `Faraday::ConnectionFailed` (#702)
464
+ * Fixes YAML serialization/deserialization for `Faraday::Utils::Headers` (#690)
465
+ * Fixes an issue with Options having a nil value (#694)
466
+ * Fixes an issue with Faraday.default_connection not using Faraday.default_connection_options (#698)
467
+ * Fixes an issue with Options.merge! and Faraday instrumentation middleware (#710)
468
+
469
+ ## v0.12.1
470
+
471
+ * Fix an issue with Patron tests failing on jruby
472
+ * Fix an issue with new `rewind_files` feature that was causing an exception when the body was not an Hash
473
+ * Expose wrapped_exception in all client errors
474
+ * Add Authentication Section to the ReadMe
475
+
476
+ ## v0.12.0.1
477
+
478
+ * Hotfix release to address an issue with TravisCI deploy on Rubygems
479
+
480
+ ## v0.12.0
481
+
482
+ Features:
483
+
484
+ * Proxy feature now relies on Ruby `URI::Generic#find_proxy` and can use `no_proxy` ENV variable (not compatible with ruby < 2.0)
485
+ * Adds support for `context` request option to pass arbitrary information to middlewares
486
+
487
+ Fixes:
488
+
489
+ * Fix an issue with options that was causing new options to override defaults ones unexpectedly
490
+ * Rewind `UploadIO`s on retry to fix a compatibility issue
491
+ * Make multipart boundary unique
492
+ * Improvements in `README.md`
493
+
494
+ ## v0.11.0
495
+
496
+ Features:
497
+
498
+ * Add `filter` method to Logger middleware
499
+ * Add support for Ruby2.4 and Minitest 6
500
+ * Introduce block syntax to customise the adapter
501
+
502
+ Fixes:
503
+
504
+ * Fix an issue that was allowing to override `default_connection_options` from a connection instance
505
+ * Fix a bug that was causing newline escape characters ("\n") to be used when building the Authorization header
506
+
507
+ ## v0.10.1
508
+
509
+ - Fix an issue with HTTPClient adapter that was causing the SSL to be reset on every request
510
+ - Rescue `IOError` instead of specific subclass
511
+ - `Faraday::Utils::Headers` can now be successfully serialised in YAML
512
+ - Handle `default_connection_options` set with hash
513
+
514
+ ## v0.10.0
515
+
516
+ Breaking changes:
517
+ - Drop support for Ruby 1.8
518
+
519
+ Features:
520
+ - Include wrapped exception/reponse in ClientErrors
521
+ - Add `response.reason_phrase`
522
+ - Provide option to selectively skip logging request/response headers
523
+ - Add regex support for pattern matching in `test` adapter
524
+
525
+ Fixes:
526
+ - Add `Faraday.respond_to?` to find methods managed by `method_missing`
527
+ - em-http: `request.host` instead of `connection.host` should be taken for SSL validations
528
+ - Allow `default_connection_options` to be merged when options are passed as url parameter
529
+ - Improve splitting key-value pairs in raw HTTP headers
530
+
531
+ ## v0.9.2
532
+
533
+ Adapters:
534
+ - Enable gzip compression for httpclient
535
+ - Fixes default certificate store for httpclient not having default paths.
536
+ - Make excon adapter compatible with 0.44 excon version
537
+ - Add compatibility with Patron 0.4.20
538
+ - Determine default port numbers in Net::HTTP adapters (Addressable compatibility)
539
+ - em-http: wrap "connection closed by server" as ConnectionFailed type
540
+ - Wrap Errno::ETIMEDOUT in Faraday::Error::TimeoutError
541
+
542
+ Utils:
543
+ - Add Rack-compatible support for parsing `a[][b]=c` nested queries
544
+ - Encode nil values in queries different than empty strings. Before: `a=`; now: `a`.
545
+ - Have `Faraday::Utils::Headers#replace` clear internal key cache
546
+ - Dup the internal key cache when a Headers hash is copied
547
+
548
+ Env and middleware:
549
+ - Ensure `env` stored on middleware response has reference to the response
550
+ - Ensure that Response properties are initialized during `on_complete` (VCR compatibility)
551
+ - Copy request options in Faraday::Connection#dup
552
+ - Env custom members should be copied by Env.from(env)
553
+ - Honour per-request `request.options.params_encoder`
554
+ - Fix `interval_randomness` data type for Retry middleware
555
+ - Add maximum interval option for Retry middleware
556
+
557
+ ## v0.9.1
558
+
559
+ * Refactor Net:HTTP adapter so that with_net_http_connection can be overridden to allow pooled connections. (@Ben-M)
560
+ * Add configurable methods that bypass `retry_if` in the Retry request middleware. (@mike-bourgeous)
561
+
562
+ ## v0.9.0
563
+
564
+ * Add HTTPClient adapter (@hakanensari)
565
+ * Improve Retry handler (@mislav)
566
+ * Remove autoloading by default (@technoweenie)
567
+ * Improve internal docs (@technoweenie, @mislav)
568
+ * Respect user/password in http proxy string (@mislav)
569
+ * Adapter options are structs. Reinforces consistent options across adapters
570
+ (@technoweenie)
571
+ * Stop stripping trailing / off base URLs in a Faraday::Connection. (@technoweenie)
572
+ * Add a configurable URI parser. (@technoweenie)
573
+ * Remove need to manually autoload when using the authorization header helpers on `Faraday::Connection`. (@technoweenie)
574
+ * `Faraday::Adapter::Test` respects the `Faraday::RequestOptions#params_encoder` option. (@technoweenie)
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009-2022 Rick Olson, Zack Hobson
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,55 @@
1
+ # [![Faraday](./docs/assets/img/repo-card-slim.png)][website]
2
+
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)](https://github.com/lostisland/faraday/actions?query=workflow%3ACI)
5
+ [![GitHub Discussions](https://img.shields.io/github/discussions/lostisland/faraday?logo=github)](https://github.com/lostisland/faraday/discussions)
6
+
7
+
8
+ Faraday is an HTTP client library abstraction layer that provides a common interface over many
9
+ adapters (such as Net::HTTP) and embraces the concept of Rack middleware when processing the request/response cycle.
10
+ You probably don't want to use Faraday directly in your project, as it will lack an actual client library to perform
11
+ requests. Instead, you probably want to have a look at [Awesome Faraday][awesome] for a list of available adapters.
12
+
13
+ ## Getting Started
14
+
15
+ The best starting point is the [Faraday Website][website], with its introduction and explanation.
16
+ Need more details? See the [Faraday API Documentation][apidoc] to see how it works internally.
17
+
18
+ ## Supported Ruby versions
19
+
20
+ This library aims to support and is [tested against][actions] the currently officially supported Ruby
21
+ implementations. This means that, even without a major release, we could add or drop support for Ruby versions,
22
+ following their [EOL](https://endoflife.date/ruby).
23
+ Currently that means we support Ruby 2.6+
24
+
25
+ If something doesn't work on one of these Ruby versions, it's a bug.
26
+
27
+ This library may inadvertently work (or seem to work) on other Ruby
28
+ implementations and versions, however support will only be provided for the versions listed
29
+ above.
30
+
31
+ If you would like this library to support another Ruby version, you may
32
+ volunteer to be a maintainer. Being a maintainer entails making sure all tests
33
+ run and pass on that implementation. When something breaks on your
34
+ implementation, you will be responsible for providing patches in a timely
35
+ fashion. If critical issues for a particular implementation exist at the time
36
+ of a major release, support for that Ruby version may be dropped.
37
+
38
+ ## Contribute
39
+
40
+ Do you want to contribute to Faraday?
41
+ Open the issues page and check for the `help wanted` label!
42
+ But before you start coding, please read our [Contributing Guide][contributing]
43
+
44
+ ## Copyright
45
+ &copy; 2009 - 2022, the [Faraday Team][faraday_team]. Website and branding design by [Elena Lo Piccolo](https://elelopic.design).
46
+
47
+ [awesome]: https://github.com/lostisland/awesome-faraday/#adapters
48
+ [website]: https://lostisland.github.io/faraday
49
+ [faraday_team]: https://lostisland.github.io/faraday/team
50
+ [contributing]: https://github.com/lostisland/faraday/blob/master/.github/CONTRIBUTING.md
51
+ [apidoc]: https://www.rubydoc.info/github/lostisland/faraday
52
+ [actions]: https://github.com/lostisland/faraday/actions
53
+ [jruby]: http://jruby.org/
54
+ [rubinius]: http://rubini.us/
55
+ [license]: LICENSE.md
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rspec/core/rake_task'
4
+
5
+ RSpec::Core::RakeTask.new(:spec)
6
+
7
+ task default: :spec