acfs 2.2.1 → 3.0.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 (232) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/acfs.gemspec +4 -4
  4. data/lib/acfs/errors.rb +6 -6
  5. data/lib/acfs/global.rb +3 -1
  6. data/lib/acfs/resource/attributes.rb +5 -6
  7. data/lib/acfs/resource/locatable.rb +4 -4
  8. data/lib/acfs/resource/persistence.rb +7 -7
  9. data/lib/acfs/resource/service.rb +2 -2
  10. data/lib/acfs/runner.rb +5 -0
  11. data/lib/acfs/version.rb +3 -3
  12. data/spec/acfs/adapter/typhoeus_spec.rb +2 -1
  13. data/spec/acfs/global_spec.rb +21 -2
  14. data/spec/acfs/runner_spec.rb +16 -2
  15. data/vendor/bundle/ruby/4.0.0/bundler/gems/{rubocop-config-2b861962124a → rubocop-config-9832479830d9}/README.md +3 -3
  16. data/vendor/bundle/ruby/4.0.0/bundler/gems/{rubocop-config-2b861962124a → rubocop-config-9832479830d9}/rubocop-config.gemspec +8 -8
  17. data/vendor/bundle/ruby/4.0.0/gems/{actionpack-8.1.3 → actionpack-8.1.4.1}/CHANGELOG.md +216 -0
  18. data/vendor/bundle/ruby/4.0.0/gems/{actionview-8.1.3 → actionview-8.1.4.1}/CHANGELOG.md +107 -0
  19. data/vendor/bundle/ruby/4.0.0/gems/{activemodel-8.1.3 → activemodel-8.1.4.1}/CHANGELOG.md +48 -0
  20. data/vendor/bundle/ruby/4.0.0/gems/{activesupport-8.1.3 → activesupport-8.1.4.1}/CHANGELOG.md +242 -0
  21. data/vendor/bundle/ruby/4.0.0/gems/{addressable-2.9.0 → addressable-2.9.2}/CHANGELOG.md +97 -0
  22. data/vendor/bundle/ruby/4.0.0/gems/{bigdecimal-4.1.2 → bigdecimal-4.1.3}/bigdecimal.gemspec +2 -0
  23. data/vendor/bundle/ruby/4.0.0/gems/{concurrent-ruby-1.3.7 → concurrent-ruby-1.3.8}/CHANGELOG.md +6 -0
  24. data/vendor/bundle/ruby/4.0.0/gems/{connection_pool-3.0.2 → connection_pool-3.0.3}/connection_pool.gemspec +1 -0
  25. data/vendor/bundle/ruby/4.0.0/gems/{crass-1.0.6 → crass-1.0.8}/LICENSE +1 -1
  26. data/vendor/bundle/ruby/4.0.0/gems/crass-1.0.8/README.md +153 -0
  27. data/vendor/bundle/ruby/4.0.0/gems/crass-1.0.8/crass.gemspec +32 -0
  28. data/vendor/bundle/ruby/4.0.0/gems/ethon-0.19.2/CHANGELOG.md +1164 -0
  29. data/vendor/bundle/ruby/4.0.0/gems/ethon-0.19.2/README.md +308 -0
  30. data/vendor/bundle/ruby/4.0.0/gems/{hashdiff-1.2.1 → hashdiff-1.2.2}/changelog.md +5 -0
  31. data/vendor/bundle/ruby/4.0.0/gems/{json-2.19.9 → json-3.1.0}/README.md +9 -91
  32. data/vendor/bundle/ruby/4.0.0/gems/{loofah-2.25.1 → loofah-2.25.3}/CHANGELOG.md +42 -0
  33. data/vendor/bundle/ruby/4.0.0/gems/{minitest-6.0.6 → minitest-6.1.0}/README.rdoc +19 -10
  34. data/vendor/bundle/ruby/4.0.0/gems/{msgpack-1.8.3 → msgpack-1.8.7}/ChangeLog +25 -1
  35. data/vendor/bundle/ruby/4.0.0/gems/{msgpack-1.8.3 → msgpack-1.8.7}/msgpack.gemspec +0 -9
  36. data/vendor/bundle/ruby/4.0.0/gems/{multi_json-1.21.1 → multi_json-1.21.2}/README.md +6 -6
  37. data/vendor/bundle/ruby/4.0.0/gems/{nokogiri-1.19.4-x86_64-linux-gnu → nokogiri-1.19.7-x86_64-linux-gnu}/LICENSE-DEPENDENCIES.md +29 -0
  38. data/vendor/bundle/ruby/4.0.0/gems/{opentelemetry-api-1.10.0 → opentelemetry-api-1.11.1}/CHANGELOG.md +13 -3
  39. data/vendor/bundle/ruby/4.0.0/gems/{opentelemetry-common-0.25.0 → opentelemetry-common-0.25.2}/CHANGELOG.md +8 -0
  40. data/vendor/bundle/ruby/4.0.0/gems/{prism-1.9.0 → prism-2.1.0-x86_64-linux-gnu}/CHANGELOG.md +144 -40
  41. data/vendor/bundle/ruby/4.0.0/gems/{prism-1.9.0 → prism-2.1.0-x86_64-linux-gnu}/LICENSE.md +1 -1
  42. data/vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/README.md +83 -0
  43. data/vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/prism.gemspec +251 -0
  44. data/vendor/bundle/ruby/4.0.0/gems/{rack-3.2.6 → rack-3.2.9}/CHANGELOG.md +137 -1
  45. data/vendor/bundle/ruby/4.0.0/gems/{rack-test-2.2.0 → rack-test-2.3.0}/MIT-LICENSE.txt +1 -1
  46. data/vendor/bundle/ruby/4.0.0/gems/{rack-test-2.2.0 → rack-test-2.3.0}/README.md +16 -0
  47. data/vendor/bundle/ruby/4.0.0/gems/{rails-html-sanitizer-1.7.0 → rails-html-sanitizer-1.7.2}/CHANGELOG.md +54 -0
  48. data/vendor/bundle/ruby/4.0.0/gems/{rails-html-sanitizer-1.7.0 → rails-html-sanitizer-1.7.2}/README.md +3 -2
  49. data/vendor/bundle/ruby/4.0.0/gems/{regexp_parser-2.12.0 → regexp_parser-2.13.4}/LICENSE +1 -1
  50. data/vendor/bundle/ruby/4.0.0/gems/{regexp_parser-2.12.0 → regexp_parser-2.13.4}/regexp_parser.gemspec +3 -9
  51. data/vendor/bundle/ruby/4.0.0/gems/{rspec-core-3.13.6 → rspec-core-3.13.7}/Changelog.md +10 -2
  52. data/vendor/bundle/ruby/4.0.0/gems/{rspec-expectations-3.13.5 → rspec-expectations-3.13.6}/Changelog.md +11 -2
  53. data/vendor/bundle/ruby/4.0.0/gems/{rspec-mocks-3.13.8 → rspec-mocks-3.13.9}/Changelog.md +17 -3
  54. data/vendor/bundle/ruby/4.0.0/gems/{rspec-support-3.13.7 → rspec-support-3.13.8}/Changelog.md +12 -2
  55. data/vendor/bundle/ruby/4.0.0/gems/{rubocop-1.88.0 → rubocop-1.92.3}/README.md +1 -1
  56. data/vendor/bundle/ruby/4.0.0/gems/rubocop-ast-1.53.0/lib/rubocop/ast/vendor/parser/LICENSE.txt +26 -0
  57. data/vendor/bundle/ruby/4.0.0/gems/{rubocop-capybara-2.23.0 → rubocop-capybara-3.1.0}/CHANGELOG.md +53 -0
  58. data/vendor/bundle/ruby/4.0.0/gems/{rubocop-capybara-2.23.0 → rubocop-capybara-3.1.0}/README.md +1 -1
  59. data/vendor/bundle/ruby/4.0.0/gems/{rubocop-performance-1.26.1 → rubocop-performance-1.27.0}/LICENSE.txt +1 -1
  60. data/vendor/bundle/ruby/4.0.0/gems/{rubocop-rspec_rails-2.32.0 → rubocop-rspec_rails-2.33.0}/CHANGELOG.md +21 -0
  61. data/vendor/bundle/ruby/4.0.0/gems/{simplecov-0.22.0 → simplecov-1.3.2}/LICENSE +1 -1
  62. data/vendor/bundle/ruby/4.0.0/gems/simplecov-1.3.2/README.md +272 -0
  63. data/vendor/bundle/ruby/4.0.0/gems/{simplecov-cobertura-3.2.0 → simplecov-cobertura-4.0.0}/README.md +2 -3
  64. data/vendor/bundle/ruby/4.0.0/gems/{simplecov-cobertura-3.2.0 → simplecov-cobertura-4.0.0}/simplecov-cobertura.gemspec +2 -2
  65. data/vendor/bundle/ruby/4.0.0/gems/{typhoeus-1.6.0 → typhoeus-1.8.0}/CHANGELOG.md +297 -3
  66. data/vendor/bundle/ruby/4.0.0/gems/typhoeus-1.8.0/README.md +825 -0
  67. data/vendor/bundle/ruby/4.0.0/gems/{typhoeus-1.6.0 → typhoeus-1.8.0}/typhoeus.gemspec +15 -3
  68. data/vendor/bundle/ruby/4.0.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/CHANGELOG.md +6 -0
  69. data/vendor/bundle/ruby/4.0.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/MIT-LICENSE.txt +1 -1
  70. data/vendor/bundle/ruby/4.0.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/README.md +2 -2
  71. data/vendor/bundle/ruby/4.0.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/CHANGELOG.md +4 -0
  72. data/vendor/bundle/ruby/4.0.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/MIT-LICENSE.txt +1 -1
  73. data/vendor/bundle/ruby/4.0.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/README.md +4 -4
  74. data/vendor/bundle/ruby/4.0.0/gems/{webmock-3.26.2 → webmock-3.38.0}/CHANGELOG.md +406 -0
  75. data/vendor/bundle/ruby/4.0.0/gems/{webmock-3.26.2 → webmock-3.38.0}/README.md +271 -5
  76. data/vendor/bundle/ruby/4.0.0/specifications/{actionpack-8.1.3.gemspec → actionpack-8.1.4.1.gemspec} +8 -8
  77. data/vendor/bundle/ruby/4.0.0/specifications/{actionview-8.1.3.gemspec → actionview-8.1.4.1.gemspec} +9 -9
  78. data/vendor/bundle/ruby/4.0.0/specifications/{activemodel-8.1.3.gemspec → activemodel-8.1.4.1.gemspec} +6 -6
  79. data/vendor/bundle/ruby/4.0.0/specifications/{activesupport-8.1.3.gemspec → activesupport-8.1.4.1.gemspec} +5 -5
  80. data/vendor/bundle/ruby/4.0.0/specifications/{addressable-2.9.0.gemspec → addressable-2.9.2.gemspec} +5 -5
  81. data/vendor/bundle/ruby/4.0.0/specifications/appraisal-2.5.0.gemspec +1 -1
  82. data/vendor/bundle/ruby/4.0.0/specifications/ast-2.4.3.gemspec +1 -1
  83. data/vendor/bundle/ruby/4.0.0/specifications/base64-0.3.0.gemspec +1 -1
  84. data/vendor/bundle/ruby/4.0.0/specifications/{bigdecimal-4.1.2.gemspec → bigdecimal-4.1.3.gemspec} +3 -3
  85. data/vendor/bundle/ruby/4.0.0/specifications/builder-3.3.0.gemspec +1 -1
  86. data/vendor/bundle/ruby/4.0.0/specifications/{concurrent-ruby-1.3.7.gemspec → concurrent-ruby-1.3.8.gemspec} +4 -4
  87. data/vendor/bundle/ruby/4.0.0/specifications/{connection_pool-3.0.2.gemspec → connection_pool-3.0.3.gemspec} +5 -4
  88. data/vendor/bundle/ruby/4.0.0/specifications/crack-1.0.1.gemspec +1 -1
  89. data/vendor/bundle/ruby/4.0.0/specifications/{crass-1.0.6.gemspec → crass-1.0.8.gemspec} +8 -8
  90. data/vendor/bundle/ruby/4.0.0/specifications/diff-lcs-1.6.2.gemspec +1 -1
  91. data/vendor/bundle/ruby/4.0.0/specifications/drb-2.2.3.gemspec +1 -1
  92. data/vendor/bundle/ruby/4.0.0/specifications/erubi-1.13.1.gemspec +1 -1
  93. data/vendor/bundle/ruby/4.0.0/specifications/{ethon-0.18.0.gemspec → ethon-0.19.2.gemspec} +6 -6
  94. data/vendor/bundle/ruby/4.0.0/specifications/ffi-1.17.4-x86_64-linux-gnu.gemspec +1 -1
  95. data/vendor/bundle/ruby/4.0.0/specifications/{hashdiff-1.2.1.gemspec → hashdiff-1.2.2.gemspec} +4 -4
  96. data/vendor/bundle/ruby/4.0.0/specifications/i18n-1.15.2.gemspec +1 -1
  97. data/vendor/bundle/ruby/4.0.0/specifications/{json-2.19.9.gemspec → json-3.1.0.gemspec} +0 -0
  98. data/vendor/bundle/ruby/4.0.0/specifications/{language_server-protocol-3.17.0.5.gemspec → language_server-protocol-3.17.0.6.gemspec} +4 -4
  99. data/vendor/bundle/ruby/4.0.0/specifications/lint_roller-1.1.0.gemspec +1 -1
  100. data/vendor/bundle/ruby/4.0.0/specifications/logger-1.7.0.gemspec +1 -1
  101. data/vendor/bundle/ruby/4.0.0/specifications/{loofah-2.25.1.gemspec → loofah-2.25.3.gemspec} +6 -6
  102. data/vendor/bundle/ruby/4.0.0/specifications/{minitest-6.0.6.gemspec → minitest-6.1.0.gemspec} +8 -9
  103. data/vendor/bundle/ruby/4.0.0/specifications/{msgpack-1.8.3.gemspec → msgpack-1.8.7.gemspec} +4 -15
  104. data/vendor/bundle/ruby/4.0.0/specifications/{multi_json-1.21.1.gemspec → multi_json-1.21.2.gemspec} +5 -5
  105. data/vendor/bundle/ruby/4.0.0/specifications/{nokogiri-1.19.4-x86_64-linux-gnu.gemspec → nokogiri-1.19.7-x86_64-linux-gnu.gemspec} +3 -3
  106. data/vendor/bundle/ruby/4.0.0/specifications/opentelemetry-api-1.11.1.gemspec +27 -0
  107. data/vendor/bundle/ruby/4.0.0/specifications/opentelemetry-common-0.25.2.gemspec +26 -0
  108. data/vendor/bundle/ruby/4.0.0/specifications/{parallel-2.1.0.gemspec → parallel-2.3.0.gemspec} +4 -4
  109. data/vendor/bundle/ruby/4.0.0/specifications/{parser-3.3.11.1.gemspec → parser-3.3.14.0.gemspec} +5 -5
  110. data/vendor/bundle/ruby/4.0.0/specifications/prism-2.1.0-x86_64-linux-gnu.gemspec +22 -0
  111. data/vendor/bundle/ruby/4.0.0/specifications/public_suffix-7.0.5.gemspec +1 -1
  112. data/vendor/bundle/ruby/4.0.0/specifications/racc-1.8.1.gemspec +1 -1
  113. data/vendor/bundle/ruby/4.0.0/specifications/{rack-3.2.6.gemspec → rack-3.2.9.gemspec} +4 -4
  114. data/vendor/bundle/ruby/4.0.0/specifications/rack-session-2.1.2.gemspec +1 -1
  115. data/vendor/bundle/ruby/4.0.0/specifications/{rack-test-2.2.0.gemspec → rack-test-2.3.0.gemspec} +5 -5
  116. data/vendor/bundle/ruby/4.0.0/specifications/rails-dom-testing-2.3.0.gemspec +1 -1
  117. data/vendor/bundle/ruby/4.0.0/specifications/{rails-html-sanitizer-1.7.0.gemspec → rails-html-sanitizer-1.7.2.gemspec} +7 -7
  118. data/vendor/bundle/ruby/4.0.0/specifications/rainbow-3.1.1.gemspec +1 -1
  119. data/vendor/bundle/ruby/4.0.0/specifications/rake-13.4.2.gemspec +1 -1
  120. data/vendor/bundle/ruby/4.0.0/specifications/rake-release-1.4.0.gemspec +1 -1
  121. data/vendor/bundle/ruby/4.0.0/specifications/{regexp_parser-2.12.0.gemspec → regexp_parser-2.13.4.gemspec} +5 -5
  122. data/vendor/bundle/ruby/4.0.0/specifications/rexml-3.4.4.gemspec +1 -1
  123. data/vendor/bundle/ruby/4.0.0/specifications/rspec-3.13.2.gemspec +1 -1
  124. data/vendor/bundle/ruby/4.0.0/specifications/{rspec-core-3.13.6.gemspec → rspec-core-3.13.7.gemspec} +7 -7
  125. data/vendor/bundle/ruby/4.0.0/specifications/{rspec-expectations-3.13.5.gemspec → rspec-expectations-3.13.6.gemspec} +7 -7
  126. data/vendor/bundle/ruby/4.0.0/specifications/{rspec-mocks-3.13.8.gemspec → rspec-mocks-3.13.9.gemspec} +6 -6
  127. data/vendor/bundle/ruby/4.0.0/specifications/{rspec-support-3.13.7.gemspec → rspec-support-3.13.8.gemspec} +7 -7
  128. data/vendor/bundle/ruby/4.0.0/specifications/{rubocop-1.88.0.gemspec → rubocop-1.92.3.gemspec} +7 -7
  129. data/vendor/bundle/ruby/4.0.0/specifications/{rubocop-ast-1.49.1.gemspec → rubocop-ast-1.53.0.gemspec} +7 -5
  130. data/vendor/bundle/ruby/4.0.0/specifications/{rubocop-capybara-2.23.0.gemspec → rubocop-capybara-3.1.0.gemspec} +5 -5
  131. data/vendor/bundle/ruby/4.0.0/specifications/rubocop-factory_bot-2.28.0.gemspec +1 -1
  132. data/vendor/bundle/ruby/4.0.0/specifications/{rubocop-performance-1.26.1.gemspec → rubocop-performance-1.27.0.gemspec} +7 -7
  133. data/vendor/bundle/ruby/4.0.0/specifications/rubocop-rspec-3.10.2.gemspec +1 -1
  134. data/vendor/bundle/ruby/4.0.0/specifications/{rubocop-rspec_rails-2.32.0.gemspec → rubocop-rspec_rails-2.33.0.gemspec} +5 -5
  135. data/vendor/bundle/ruby/4.0.0/specifications/ruby-progressbar-1.13.0.gemspec +1 -1
  136. data/vendor/bundle/ruby/4.0.0/specifications/securerandom-0.4.1.gemspec +1 -1
  137. data/vendor/bundle/ruby/4.0.0/specifications/simplecov-1.3.2.gemspec +25 -0
  138. data/vendor/bundle/ruby/4.0.0/specifications/{simplecov-cobertura-3.2.0.gemspec → simplecov-cobertura-4.0.0.gemspec} +5 -5
  139. data/vendor/bundle/ruby/4.0.0/specifications/thor-1.5.0.gemspec +1 -1
  140. data/vendor/bundle/ruby/4.0.0/specifications/{typhoeus-1.6.0.gemspec → typhoeus-1.8.0.gemspec} +7 -7
  141. data/vendor/bundle/ruby/4.0.0/specifications/tzinfo-2.0.6.gemspec +1 -1
  142. data/vendor/bundle/ruby/4.0.0/specifications/{unicode-display_width-3.2.0.gemspec → unicode-display_width-3.3.0.gemspec} +8 -8
  143. data/vendor/bundle/ruby/4.0.0/specifications/{unicode-emoji-4.2.0.gemspec → unicode-emoji-4.3.0.gemspec} +6 -6
  144. data/vendor/bundle/ruby/4.0.0/specifications/{uri-1.1.1.gemspec → uri-1.1.2.gemspec} +3 -3
  145. data/vendor/bundle/ruby/4.0.0/specifications/useragent-0.16.11.gemspec +1 -1
  146. data/vendor/bundle/ruby/4.0.0/specifications/{webmock-3.26.2.gemspec → webmock-3.38.0.gemspec} +5 -5
  147. metadata +174 -185
  148. data/vendor/bundle/ruby/4.0.0/gems/crass-1.0.6/README.md +0 -192
  149. data/vendor/bundle/ruby/4.0.0/gems/crass-1.0.6/crass.gemspec +0 -31
  150. data/vendor/bundle/ruby/4.0.0/gems/docile-1.4.1/LICENSE +0 -21
  151. data/vendor/bundle/ruby/4.0.0/gems/docile-1.4.1/README.md +0 -409
  152. data/vendor/bundle/ruby/4.0.0/gems/docile-1.4.1/docile.gemspec +0 -36
  153. data/vendor/bundle/ruby/4.0.0/gems/ethon-0.18.0/CHANGELOG.md +0 -417
  154. data/vendor/bundle/ruby/4.0.0/gems/ethon-0.18.0/README.md +0 -118
  155. data/vendor/bundle/ruby/4.0.0/gems/prism-1.9.0/README.md +0 -143
  156. data/vendor/bundle/ruby/4.0.0/gems/prism-1.9.0/prism.gemspec +0 -172
  157. data/vendor/bundle/ruby/4.0.0/gems/simplecov-0.22.0/CHANGELOG.md +0 -191
  158. data/vendor/bundle/ruby/4.0.0/gems/simplecov-0.22.0/README.md +0 -974
  159. data/vendor/bundle/ruby/4.0.0/gems/simplecov-html-0.13.2/CHANGELOG.md +0 -114
  160. data/vendor/bundle/ruby/4.0.0/gems/simplecov-html-0.13.2/LICENSE +0 -20
  161. data/vendor/bundle/ruby/4.0.0/gems/simplecov-html-0.13.2/README.md +0 -30
  162. data/vendor/bundle/ruby/4.0.0/gems/simplecov_json_formatter-0.1.4/CHANGELOG.md +0 -13
  163. data/vendor/bundle/ruby/4.0.0/gems/simplecov_json_formatter-0.1.4/README.md +0 -29
  164. data/vendor/bundle/ruby/4.0.0/gems/typhoeus-1.6.0/README.md +0 -588
  165. data/vendor/bundle/ruby/4.0.0/specifications/docile-1.4.1.gemspec +0 -22
  166. data/vendor/bundle/ruby/4.0.0/specifications/opentelemetry-api-1.10.0.gemspec +0 -35
  167. data/vendor/bundle/ruby/4.0.0/specifications/opentelemetry-common-0.25.0.gemspec +0 -33
  168. data/vendor/bundle/ruby/4.0.0/specifications/prism-1.9.0.gemspec +0 -24
  169. data/vendor/bundle/ruby/4.0.0/specifications/simplecov-0.22.0.gemspec +0 -28
  170. data/vendor/bundle/ruby/4.0.0/specifications/simplecov-html-0.13.2.gemspec +0 -22
  171. data/vendor/bundle/ruby/4.0.0/specifications/simplecov_json_formatter-0.1.4.gemspec +0 -21
  172. /data/vendor/bundle/ruby/4.0.0/bundler/gems/{rubocop-config-2b861962124a → rubocop-config-9832479830d9}/LICENSE +0 -0
  173. /data/vendor/bundle/ruby/4.0.0/gems/{actionpack-8.1.3 → actionpack-8.1.4.1}/MIT-LICENSE +0 -0
  174. /data/vendor/bundle/ruby/4.0.0/gems/{actionpack-8.1.3 → actionpack-8.1.4.1}/README.rdoc +0 -0
  175. /data/vendor/bundle/ruby/4.0.0/gems/{actionview-8.1.3 → actionview-8.1.4.1}/MIT-LICENSE +0 -0
  176. /data/vendor/bundle/ruby/4.0.0/gems/{actionview-8.1.3 → actionview-8.1.4.1}/README.rdoc +0 -0
  177. /data/vendor/bundle/ruby/4.0.0/gems/{activemodel-8.1.3 → activemodel-8.1.4.1}/MIT-LICENSE +0 -0
  178. /data/vendor/bundle/ruby/4.0.0/gems/{activemodel-8.1.3 → activemodel-8.1.4.1}/README.rdoc +0 -0
  179. /data/vendor/bundle/ruby/4.0.0/gems/{activesupport-8.1.3 → activesupport-8.1.4.1}/MIT-LICENSE +0 -0
  180. /data/vendor/bundle/ruby/4.0.0/gems/{activesupport-8.1.3 → activesupport-8.1.4.1}/README.rdoc +0 -0
  181. /data/vendor/bundle/ruby/4.0.0/gems/{addressable-2.9.0 → addressable-2.9.2}/LICENSE.txt +0 -0
  182. /data/vendor/bundle/ruby/4.0.0/gems/{addressable-2.9.0 → addressable-2.9.2}/README.md +0 -0
  183. /data/vendor/bundle/ruby/4.0.0/gems/{bigdecimal-4.1.2 → bigdecimal-4.1.3}/LICENSE +0 -0
  184. /data/vendor/bundle/ruby/4.0.0/gems/{concurrent-ruby-1.3.7 → concurrent-ruby-1.3.8}/LICENSE.txt +0 -0
  185. /data/vendor/bundle/ruby/4.0.0/gems/{concurrent-ruby-1.3.7 → concurrent-ruby-1.3.8}/README.md +0 -0
  186. /data/vendor/bundle/ruby/4.0.0/gems/{connection_pool-3.0.2 → connection_pool-3.0.3}/LICENSE +0 -0
  187. /data/vendor/bundle/ruby/4.0.0/gems/{connection_pool-3.0.2 → connection_pool-3.0.3}/README.md +0 -0
  188. /data/vendor/bundle/ruby/4.0.0/gems/{ethon-0.18.0 → ethon-0.19.2}/LICENSE +0 -0
  189. /data/vendor/bundle/ruby/4.0.0/gems/{ethon-0.18.0 → ethon-0.19.2}/ethon.gemspec +0 -0
  190. /data/vendor/bundle/ruby/4.0.0/gems/{hashdiff-1.2.1 → hashdiff-1.2.2}/LICENSE +0 -0
  191. /data/vendor/bundle/ruby/4.0.0/gems/{hashdiff-1.2.1 → hashdiff-1.2.2}/README.md +0 -0
  192. /data/vendor/bundle/ruby/4.0.0/gems/{hashdiff-1.2.1 → hashdiff-1.2.2}/hashdiff.gemspec +0 -0
  193. /data/vendor/bundle/ruby/4.0.0/gems/{json-2.19.9 → json-3.1.0}/json.gemspec +0 -0
  194. /data/vendor/bundle/ruby/4.0.0/gems/{language_server-protocol-3.17.0.5 → language_server-protocol-3.17.0.6}/LICENSE.txt +0 -0
  195. /data/vendor/bundle/ruby/4.0.0/gems/{language_server-protocol-3.17.0.5 → language_server-protocol-3.17.0.6}/README.md +0 -0
  196. /data/vendor/bundle/ruby/4.0.0/gems/{loofah-2.25.1 → loofah-2.25.3}/MIT-LICENSE.txt +0 -0
  197. /data/vendor/bundle/ruby/4.0.0/gems/{loofah-2.25.1 → loofah-2.25.3}/README.md +0 -0
  198. /data/vendor/bundle/ruby/4.0.0/gems/{msgpack-1.8.3 → msgpack-1.8.7}/LICENSE +0 -0
  199. /data/vendor/bundle/ruby/4.0.0/gems/{msgpack-1.8.3 → msgpack-1.8.7}/README.md +0 -0
  200. /data/vendor/bundle/ruby/4.0.0/gems/{multi_json-1.21.1 → multi_json-1.21.2}/LICENSE.md +0 -0
  201. /data/vendor/bundle/ruby/4.0.0/gems/{nokogiri-1.19.4-x86_64-linux-gnu → nokogiri-1.19.7-x86_64-linux-gnu}/LICENSE.md +0 -0
  202. /data/vendor/bundle/ruby/4.0.0/gems/{nokogiri-1.19.4-x86_64-linux-gnu → nokogiri-1.19.7-x86_64-linux-gnu}/README.md +0 -0
  203. /data/vendor/bundle/ruby/4.0.0/gems/{opentelemetry-api-1.10.0 → opentelemetry-api-1.11.1}/LICENSE +0 -0
  204. /data/vendor/bundle/ruby/4.0.0/gems/{opentelemetry-api-1.10.0 → opentelemetry-api-1.11.1}/README.md +0 -0
  205. /data/vendor/bundle/ruby/4.0.0/gems/{opentelemetry-common-0.25.0 → opentelemetry-common-0.25.2}/LICENSE +0 -0
  206. /data/vendor/bundle/ruby/4.0.0/gems/{opentelemetry-common-0.25.0 → opentelemetry-common-0.25.2}/README.md +0 -0
  207. /data/vendor/bundle/ruby/4.0.0/gems/{parallel-2.1.0 → parallel-2.3.0}/MIT-LICENSE.txt +0 -0
  208. /data/vendor/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.14.0}/LICENSE.txt +0 -0
  209. /data/vendor/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.14.0}/parser.gemspec +0 -0
  210. /data/vendor/bundle/ruby/4.0.0/gems/{rack-3.2.6 → rack-3.2.9}/MIT-LICENSE +0 -0
  211. /data/vendor/bundle/ruby/4.0.0/gems/{rack-3.2.6 → rack-3.2.9}/README.md +0 -0
  212. /data/vendor/bundle/ruby/4.0.0/gems/{rails-html-sanitizer-1.7.0 → rails-html-sanitizer-1.7.2}/MIT-LICENSE +0 -0
  213. /data/vendor/bundle/ruby/4.0.0/gems/{rspec-core-3.13.6 → rspec-core-3.13.7}/LICENSE.md +0 -0
  214. /data/vendor/bundle/ruby/4.0.0/gems/{rspec-core-3.13.6 → rspec-core-3.13.7}/README.md +0 -0
  215. /data/vendor/bundle/ruby/4.0.0/gems/{rspec-expectations-3.13.5 → rspec-expectations-3.13.6}/LICENSE.md +0 -0
  216. /data/vendor/bundle/ruby/4.0.0/gems/{rspec-expectations-3.13.5 → rspec-expectations-3.13.6}/README.md +0 -0
  217. /data/vendor/bundle/ruby/4.0.0/gems/{rspec-mocks-3.13.8 → rspec-mocks-3.13.9}/LICENSE.md +0 -0
  218. /data/vendor/bundle/ruby/4.0.0/gems/{rspec-mocks-3.13.8 → rspec-mocks-3.13.9}/README.md +0 -0
  219. /data/vendor/bundle/ruby/4.0.0/gems/{rspec-support-3.13.7 → rspec-support-3.13.8}/LICENSE.md +0 -0
  220. /data/vendor/bundle/ruby/4.0.0/gems/{rspec-support-3.13.7 → rspec-support-3.13.8}/README.md +0 -0
  221. /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-1.88.0 → rubocop-1.92.3}/LICENSE.txt +0 -0
  222. /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-ast-1.49.1 → rubocop-ast-1.53.0}/LICENSE.txt +0 -0
  223. /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-ast-1.49.1 → rubocop-ast-1.53.0}/README.md +0 -0
  224. /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-capybara-2.23.0 → rubocop-capybara-3.1.0}/MIT-LICENSE.md +0 -0
  225. /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-performance-1.26.1 → rubocop-performance-1.27.0}/README.md +0 -0
  226. /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-rspec_rails-2.32.0 → rubocop-rspec_rails-2.33.0}/MIT-LICENSE.md +0 -0
  227. /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-rspec_rails-2.32.0 → rubocop-rspec_rails-2.33.0}/README.md +0 -0
  228. /data/vendor/bundle/ruby/4.0.0/gems/{simplecov-cobertura-3.2.0 → simplecov-cobertura-4.0.0}/LICENSE +0 -0
  229. /data/vendor/bundle/ruby/4.0.0/gems/{typhoeus-1.6.0 → typhoeus-1.8.0}/LICENSE +0 -0
  230. /data/vendor/bundle/ruby/4.0.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/unicode-emoji.gemspec +0 -0
  231. /data/vendor/bundle/ruby/4.0.0/gems/{uri-1.1.1 → uri-1.1.2}/README.md +0 -0
  232. /data/vendor/bundle/ruby/4.0.0/gems/{webmock-3.26.2 → webmock-3.38.0}/LICENSE +0 -0
@@ -1,4 +1,5 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
+
2
3
  lib = File.expand_path('../lib/', __FILE__)
3
4
  $:.unshift lib unless $:.include?(lib)
4
5
 
@@ -24,10 +25,21 @@ Gem::Specification.new do |s|
24
25
  'source_code_uri' => "https://github.com/typhoeus/typhoeus/tree/v#{s.version}"
25
26
  }
26
27
 
27
- s.add_dependency('ethon', [">= 0.18.0"])
28
+ s.add_dependency('ethon', [">= 0.19.2", "< 0.20.0"])
28
29
 
29
30
  s.files = Dir.chdir(__dir__) do
30
- `git ls-files -z`.split("\x0").reject do |file|
31
+ files = begin
32
+ IO.popen(["git", "ls-files", "-z"], :err => File::NULL, &:read).split("\x0")
33
+ rescue SystemCallError
34
+ []
35
+ end
36
+ # Building from a source tarball or a container without git must still
37
+ # produce a working gem.
38
+ if files.empty?
39
+ files = Dir["lib/**/*", "*.md", "LICENSE", "typhoeus.gemspec"].
40
+ select { |file| File.file?(file) }
41
+ end
42
+ files.reject do |file|
31
43
  file.start_with?(*%w[. Gemfile Guardfile Rakefile perf spec])
32
44
  end
33
45
  end
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 3.3.0
4
+
5
+ - Unicode 18.0
6
+ - Fix bug that emoji handling could not be deactivated when using config object
7
+ - Fix edge case to not modify string when failing parsing binary input as UTF-8
8
+
3
9
  ## 3.2.0
4
10
 
5
11
  - Unicode 17.0
@@ -1,6 +1,6 @@
1
1
  The MIT LICENSE
2
2
 
3
- Copyright (c) 2011, 2015-2024 Jan Lelis
3
+ Copyright (c) 2011, 2015-2026 Jan Lelis
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
@@ -2,7 +2,7 @@
2
2
 
3
3
  Determines the monospace display width of a string in Ruby, which is useful for all kinds of terminal-based applications. The implementation is based on [EastAsianWidth.txt](https://www.unicode.org/Public/UNIDATA/EastAsianWidth.txt), the [Emoji specfication](https://www.unicode.org/reports/tr51/) and other data, 100% in Ruby. It does not rely on the OS vendor ([wcwidth](https://github.com/janlelis/wcswidth-ruby)) to provide an up-to-date method for measuring string width in terminals.
4
4
 
5
- Unicode version: **17.0.0** (September 2025)
5
+ Unicode version: **18.0.0** (September 2026)
6
6
 
7
7
  ## Gem Version 3 — Improved Emoji Support
8
8
 
@@ -188,7 +188,7 @@ See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related
188
188
 
189
189
  ## Copyright & Info
190
190
 
191
- - Copyright (c) 2011, 2015-2025 Jan Lelis, https://janlelis.com, released under the MIT
191
+ - Copyright (c) 2011, 2015-2026 Jan Lelis, https://janlelis.com, released under the MIT
192
192
  license
193
193
  - Early versions based on runpaint's unicode-data interface: Copyright (c) 2009 Run Paint Run Run
194
194
  - Unicode data: https://www.unicode.org/copyright.html#Exhibit1
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 4.3.0
4
+
5
+ - Unicode / Emoji 18.0
6
+
3
7
  ## 4.2.0
4
8
 
5
9
  - Allow Ruby 4.0
@@ -1,4 +1,4 @@
1
- Copyright (c) 2017-2024 Jan Lelis, https://janlelis.com
1
+ Copyright (c) 2017-2026 Jan Lelis, https://janlelis.com
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
@@ -8,9 +8,9 @@ Additional features:
8
8
  - A categorized list of Emoji (RGI: Recommended for General Interchange)
9
9
  - Retrieve Emoji properties info about specific codepoints (Emoji_Modifier, Emoji_Presentation, etc.)
10
10
 
11
- Emoji version: **17.0** (September 2025)
11
+ Emoji version: **18.0** (September 2026)
12
12
 
13
- CLDR version (used for sub-region flags): **47** (March 2025)
13
+ CLDR version (used for sub-region flags): **48** (October 2025)
14
14
 
15
15
  ## Gemfile
16
16
 
@@ -184,7 +184,7 @@ A list of all Emoji (generated from this gem) can be found at [character.constru
184
184
 
185
185
  ## Usage – Properties Data
186
186
 
187
- Allows you to access the codepoint data for a single character form Unicode's [emoji-data.txt](https://www.unicode.org/Public/16.0.0/ucd/emoji/emoji-data.txt) file:
187
+ Allows you to access the codepoint data for a single character form Unicode's [emoji-data.txt](https://www.unicode.org/Public/18.0.0/ucd/emoji/emoji-data.txt) file:
188
188
 
189
189
  ```ruby
190
190
  require "unicode/emoji"
@@ -201,5 +201,5 @@ Unicode::Emoji.properties "☝" # => ["Emoji", "Emoji_Modifier_Base"]
201
201
 
202
202
  ## MIT
203
203
 
204
- - Copyright (C) 2017-2025 Jan Lelis <https://janlelis.com>. Released under the MIT license.
204
+ - Copyright (C) 2017-2026 Jan Lelis <https://janlelis.com>. Released under the MIT license.
205
205
  - Unicode data: https://www.unicode.org/copyright.html#Exhibit1
@@ -1,5 +1,411 @@
1
1
  # Changelog
2
2
 
3
+ # 3.38.0
4
+
5
+ * Allow or disable real requests only within a block (#1110)
6
+
7
+ `WebMock.allow_net_connect!` and `WebMock.disable_net_connect!` now take a block, for example `WebMock.disable_net_connect!(allow: "api.example.com") { ... }`. The settings apply only while the block runs. When it ends, even with an exception, the settings from before the call come back.
8
+
9
+ Previously, either method ignored a block. In `WebMock.allow_net_connect! { Net::HTTP.get(uri) }`, the request never ran, and real requests stayed allowed until the settings changed again. Code in such a block now runs.
10
+
11
+ The settings are global, so other threads see them while the block runs. Don't run such blocks in several threads at once, because they can restore each other's settings in the wrong order.
12
+
13
+ Thanks to [Yegor Bugayenko](https://github.com/yegor256) for the suggestion
14
+
15
+ * Record the form Content-Type of Typhoeus requests with a hash body (#463)
16
+
17
+ Previously, `Typhoeus.post(url, body: {page: 2})` sent `Content-Type: application/x-www-form-urlencoded`, but WebMock recorded the request without it. A stub with `with(body: {page: 2})` didn't match, and neither did a stub that required that header.
18
+
19
+ WebMock now records the header whenever Typhoeus sends it for a hash body: for a POST, even with an empty hash, and for any other method except PUT and HEAD, unless the form is empty.
20
+
21
+ A request that sets its own Content-Type keeps it. Multipart forms, such as a hash with a file or a request with `multipart: true`, still have no Content-Type recorded, except an empty POST, which Typhoeus sends URL encoded even then. Requests with `nobody: true` have none either.
22
+
23
+ Callbacks, `WebMock.executed_requests` and VCR see the header too, and the stub suggested for an unmatched request includes it and shows a form body as a hash. Update assertions that compare all the headers of such a request. If VCR, hooked into WebMock, matches requests on their headers, record the affected cassettes again.
24
+
25
+ * Keep a `with` block when `with` is called again with options only
26
+
27
+ Previously, `stub_request(:post, url).with { |request| request.body == "yes" }.with(headers: {"X-A" => "1"})` dropped the block, so the stub also matched a request with that header and the body `"no"`. A later `with` call already kept the options it didn't give, such as `body:`, and now keeps the block too. The same applies to `a_request`.
28
+
29
+ A stub or request expectation that matched only because the block was dropped no longer matches. Calling `with` again with a block, or with an option given before, still replaces it.
30
+
31
+ * Match numbers and boolean values in query patterns (#371)
32
+
33
+ Previously, `with(query: hash_including(page: 2))` never matched `?page=2`, because query values in a request are strings and WebMock compared them with the Integer `2`. A plain hash had the same problem when the stub's URI was a regexp, a template or a lambda, as in `stub_request(:get, /example/).with(query: {page: 2})`. With a string URI, an array of numbers such as `{tag: [2, 10]}` didn't match `?tag[]=2&tag[]=10`.
34
+
35
+ WebMock now compares numbers, `true` and `false` in query patterns as strings, including inside nested `hash_including` and `hash_excluding` matchers.
36
+
37
+ This also makes `hash_excluding` work with such values. Previously, `with(query: hash_excluding(page: 2))` matched `?page=2`. A test that passed only because of this will now fail.
38
+
39
+ * Fix nested `hash_including` and `hash_excluding` with symbol keys in RSpec (#900)
40
+
41
+ Previously, in RSpec, `with(body: {user: hash_including(role: "admin")})` never matched the JSON body `{"user":{"role":"admin"}}`. WebMock converted the keys of the outer hash to strings, but not those of a matcher inside it, and the parsed body has string keys. For the same reason, a nested `hash_excluding` with symbol keys never excluded anything, so `with(body: {user: hash_excluding(role: "admin")})` matched that body too.
42
+
43
+ The same applied to query patterns: `with(query: hash_including(filter: hash_excluding(role: "admin")))` matched `?filter[role]=admin`.
44
+
45
+ Nested matchers now get string keys too, as do hashes inside RSpec's `array_including` and `array_excluding`. A test that passed only because a nested `hash_excluding` excluded nothing will now fail.
46
+
47
+ * Fix `hash_including` and `hash_excluding` nested in a query hash
48
+
49
+ Previously, `stub_request(:get, "www.example.com").with(query: {filter: hash_including("role" => "admin")})` never matched `?filter[role]=admin&filter[active]=true`, because WebMock wrote the matcher into the stub's URL as text. With a regexp, a template or a lambda URI, such a stub never matched in RSpec, where `hash_including` and `hash_excluding` are RSpec's own matchers.
50
+
51
+ Such stubs now match with every kind of URI.
52
+
53
+ * Ignore letter case in allowed host names (#819)
54
+
55
+ Previously, `WebMock.disable_net_connect!(allow: "Anachronic.local")` blocked requests to that host, because WebMock compared the allowed name with the request's host, which it writes in lowercase. The same applied to a host with a port, such as `"Anachronic.local:8080"`, and to host names given as `net_http_connect_on_start`.
56
+
57
+ Such requests are now allowed and reach the real server. Host names are not case sensitive, and allowed URLs have ignored the letter case of the host since 3.30.0.
58
+
59
+ * Fix URI templates not matching encoded characters in query values (#468)
60
+
61
+ Previously, `stub_request(:get, Addressable::Template.new("https://example.com/test{?q}"))` didn't match `https://example.com/test?q=env%3Aproduction`, although the template itself matches that URL. The same happened with `?q=env:production`, and with other punctuation such as `/`, `@` or `=`, encoded or not.
62
+
63
+ Both now match. As with string URIs, a stub can't tell such an encoded character from the character itself.
64
+
65
+ * Fix stubs with a hash body pattern raising on binary request bodies (#333)
66
+
67
+ Previously, a stub such as `stub_request(:post, url).with(body: {"name" => "x"})` raised `ArgumentError: invalid byte sequence in UTF-8` when the request body was binary data, such as an uploaded image. Since WebMock checks the newest stub first, this also broke requests that an older stub would have answered.
68
+
69
+ Such a body now doesn't match the hash pattern, so WebMock moves on to the next stub, as it already did for a body that isn't valid JSON.
70
+
71
+ * Fix unstubbed requests with some form bodies raising `ArgumentError` instead of WebMock's error
72
+
73
+ Previously, when a request with a URL encoded body matched no stub, WebMock could raise `ArgumentError` while it built the suggested stub for its error message. This happened when the body was binary data, or when it repeated a key, as in `a=1&a=2`, with `query_values_notation` set to `:flat`.
74
+
75
+ WebMock now raises its usual error, and the suggested stub shows such a body as a string.
76
+
77
+ * Fix Net::HTTP `OPTIONS *` requests raising `Addressable::URI::InvalidURIError` (#982)
78
+
79
+ Previously, `http.request(Net::HTTP::Options.new("*"))` raised `Invalid port number`, even with real connections allowed, because WebMock could not build a URI from the `*` request target.
80
+
81
+ WebMock now records such a request with the path `/*`, so stub it as `stub_request(:options, "www.example.com/*")`. Real requests still send `OPTIONS *`. Stubs and `assert_requested` can't tell such a request from an `OPTIONS` request for the path `/*`.
82
+
83
+ * Apply a changed `query_values_notation` to URLs that WebMock has already seen
84
+
85
+ Previously, after `WebMock::Config.instance.query_values_notation = :flat_array`, a URL that WebMock had already seen kept the query it got with the earlier notation, so `?a=1&a=2` still became `?a=2`. Whether a stub matched depended on which tests ran first.
86
+
87
+ WebMock now reads each request's URL with the current notation. A stub keeps the query as WebMock read it when the stub was declared, so set the notation before declaring stubs.
88
+
89
+ * Match `with(query: "...")` pairs in any order with `:flat_array`
90
+
91
+ Previously, with `WebMock::Config.instance.query_values_notation = :flat_array`, `with(query: "b=2&a=1")` didn't match a request for `?b=2&a=1`, and `with(query: "a=2&a=1")` didn't match `?a=2&a=1`. Only patterns with their pairs in sorted order matched.
92
+
93
+ Such patterns now match their pairs in any order, as a query in the stub's URL already did. A stub can't tell `?a=1&a=2` from `?a=2&a=1`.
94
+
95
+ * Fix URLs that repeat a query key without a value raising with `:flat_array`
96
+
97
+ Previously, with `:flat_array`, any request for a URL such as `?a&a=2` raised `ArgumentError`. It now matches `with(query: "a&a=2")`, but not `with(query: "a=&a=2")`, since the key has no value rather than an empty one.
98
+
99
+ # 3.37.0
100
+
101
+ * Add `executed_requests` to inspect the requests made (#1069)
102
+
103
+ `WebMock.executed_requests` returns every request made since the last reset, in order, including repeated ones. You can assert on each one's body or headers, for example `JSON.parse(WebMock.executed_requests.last.body)`.
104
+
105
+ Previously, this needed WebMock internals such as `WebMock::RequestRegistry.instance.requested_signatures.hash.keys`, which list each distinct request only once.
106
+
107
+ Thanks to [John Gallagher](https://github.com/johngallagher) for the idea, which we started pairing on at EuRuKo 2024 in Sarajevo.
108
+
109
+ * Fix stub matching for consecutive Curb PUT requests on the same handle
110
+
111
+ After `curl.http_put("first")`, WebMock could match a subsequent `curl.http_put` against the previous body. It now matches the second request with an empty body.
112
+
113
+ * Run HTTPClient request filters once per attempt on real requests
114
+
115
+ Previously, WebMock could run a filter twice, so a filter that generated a request ID could send a different ID to the server than the one WebMock recorded.
116
+
117
+ * Fix async HTTPClient requests hanging when an `after_request` callback is registered
118
+
119
+ Previously, with real connections allowed, WebMock read the response body for the callback from the same stream as your code, so reading part of a `get_async` response before calling `join` could hang.
120
+
121
+ * Match file and stream uploads by their content
122
+
123
+ Previously, a body pattern such as `with(body: "abc")` never matched a Curb, Patron or em-http-request request that uploaded a file or stream, because WebMock compared the pattern with the file object. Stubs now compare it with the uploaded bytes for Curb and Patron, and `assert_requested` does so for all three.
124
+
125
+ Blocks given to `stub_request(...).with` still receive the original file or stream.
126
+
127
+ * Count em-http-request requests blocked by `disable_net_connect!`
128
+
129
+ Previously, WebMock did not record them, so `assert_requested` did not count them. They are now counted, as with other HTTP clients.
130
+
131
+ # 3.36.0
132
+
133
+ * Fix matching of indexed arrays nested inside arrays of hashes (#1144)
134
+
135
+ Previously, WebMock read indexed arrays nested inside an array of hashes, such as `a[][b][0][c]=1`, as hashes with `"0"`, `"1"` keys. WebMock writes that form itself, so `with(query: {"a" => [{"b" => [{"c" => "1"}]}]})` with a regexp URI did not match `?a[][b][][c]=1`, and a Typhoeus request with that hash as its body did not match a stub with the same hash.
136
+
137
+ If a stub uses the old shape, such as `{"a" => [{"b" => {"0" => {"c" => "1"}}}]}`, for example one copied from WebMock's suggested stub, use arrays instead.
138
+
139
+ Thanks to [Hamza Tarar](https://github.com/ihamzatarar)
140
+
141
+ * Fix matching of arrays of hashes that repeat a nested key
142
+
143
+ Previously, WebMock put a nested key repeated under `[]` into the first hash of the array, so `items[][address][city]=X&items[][address][city]=Y` was read as one item with the city `Y`. A stub listing both items did not match, and a stub for `X` and `Y` also matched a request for `Z` and `Y`. Rails and Faraday encode arrays of nested hashes this way.
144
+
145
+ Such keys now go into a new hash, as in Rack. If a stub lists such an array as one item, for example one copied from WebMock's suggested stub, list every item.
146
+
147
+ Queries that mix a value and nested keys under the same name, such as `a[][b]=1&a[][b][c]=2` or `a[c]=1&a[c][]=2`, no longer raise `IndexError` or join the values into one string.
148
+
149
+ * Apply Net::HTTP `response_body_encoding` to stubbed response bodies (#1138)
150
+
151
+ Previously, stubbed Net::HTTP responses ignored `Net::HTTP#response_body_encoding=` and `Net::HTTPResponse#body_encoding=`. A body stubbed as binary, for example from a raw response file, stayed `ASCII-8BIT` even with `http.response_body_encoding = true` and a `Content-Type` of `text/plain; charset=utf-8`.
152
+
153
+ Stubbed bodies now get the encoding real responses get: with `true`, the charset from the `Content-Type` header or an HTML `<meta>` tag, and otherwise the encoding the setting names. Without the setting, a body keeps the encoding it was stubbed with.
154
+
155
+ Thanks to [Yang Bai](https://github.com/ybai08)
156
+
157
+ * Give each stubbed Net::HTTP response its own copy of the body
158
+
159
+ Previously, a stubbed Net::HTTP response returned the stubbed body string itself. A body stubbed with a frozen string, such as a literal in a file with `# frozen_string_literal: true`, made `response.body.force_encoding("UTF-8")` raise `FrozenError`, which a real response never does. Changing the body in place, for example with `response.body << "!"`, changed it for later requests to the same stub too.
160
+
161
+ * Keep the size of async-http responses to HEAD requests (#1143)
162
+
163
+ async-http gives the size of a response to a HEAD request as `response.body.length`, not as a header. Previously, a response stubbed with `stub_request(:head, url).to_return(headers: {"Content-Length" => "42"})` ignored the `Content-Length`: its body was `nil` over HTTP/1 and had a length of 0 over HTTP/2. A real response lost its size, with a `nil` body, when a `WebMock.after_request` callback was registered, for example while VCR was recording, and the recorded response had no `Content-Length`.
164
+
165
+ A stubbed response now takes its size from the stubbed `Content-Length`, or from the stubbed body without one, as before. A real response keeps its size when a callback is registered, and the recorded response has it as its `Content-Length`.
166
+
167
+ Thanks to [Andrew K. Fader](https://github.com/andrewfader)
168
+
169
+ * Keep the URI query of HTTPClient requests that pass a query argument (#1145)
170
+
171
+ Previously, WebMock dropped the query in the URI when an HTTPClient request also passed the query argument. `HTTPClient.new.get("http://example.com/?a=1", {"b" => "2"})` requests `/?a=1&b=2`, but WebMock saw `/?b=2`, and with `{}` as the query argument it saw no query at all. A stub or `a_request` expectation could match a URL that was never requested.
172
+
173
+ If a stub or expectation for such a request leaves out the query in the URI, add it, for example `stub_request(:get, "http://example.com/?a=1&b=2")`. Record VCR cassettes with such requests again.
174
+
175
+ Thanks to [AmeenKhan12345](https://github.com/AmeenKhan12345)
176
+
177
+ # 3.35.0
178
+
179
+ * Fix `get_file` with Patron 1.1 (#1147)
180
+
181
+ Previously, with Patron 1.1, `get_file` ignored stubs: it made a real request and wrote the real response to the file, even when real connections were disabled.
182
+
183
+ With Patron 1.1, a stubbed `get_file` returns a response with a `nil` body, as Patron does. Read the body from the file.
184
+
185
+ Thanks to [Bob Aman](https://github.com/sporkmonger)
186
+
187
+ * Stub and block streamed requests with Patron 1.1 (#1147)
188
+
189
+ Previously, WebMock did not see requests made with `Session#stream` or the `get_stream`, `post_stream`, `put_stream` and `patch_stream` methods added in Patron 1.1, so they always reached the network.
190
+
191
+ A stubbed streamed request yields a stream that reads the stubbed body, and returns a `Patron::TransferStats`. After-request callbacks run before the block, so they also run when the block exits early. For a real streamed request, callbacks receive the status and headers without the body.
192
+
193
+ Thanks to [Bob Aman](https://github.com/sporkmonger)
194
+
195
+ * Fix Patron digest authentication when real requests are allowed
196
+
197
+ Previously, when a Patron session had a username and password and a request reached the network, WebMock added an `Authorization: Basic ...` header to it. A session with `auth_type: :digest` sent the password in that header instead of waiting for the server's digest challenge.
198
+
199
+ * Fix a deprecation warning with Patron 1.0 and later (#1142)
200
+
201
+ Previously, the first stubbed request printed `Patron::Response.new with positional arguments is deprecated`.
202
+
203
+ Thanks to [Julik Tarkhanov](https://github.com/julik)
204
+
205
+ * Fix `require "webmock"` failing next to other libraries that define `HTTP::VERSION` (#1139)
206
+
207
+ Previously, WebMock loaded its adapter for the `http` gem whenever a top-level `HTTP` with a `VERSION` was defined. Other libraries define one too, such as the gem published on RubyGems as `http.rb` (a different gem from `http`, which is also called http.rb). With such a library installed, `require "webmock"` raised `NameError: undefined method 'perform' for class 'HTTP::Client'`.
208
+
209
+ Thanks to [thoran](https://github.com/thoran)
210
+
211
+ * Fix matching of indexed params with more than ten entries (#1141)
212
+
213
+ Previously, WebMock ordered indexed params such as `a[0]` to `a[10]` as text, so `a[10]` came right after `a[1]`. A stub with the values in index order, such as `with(body: {"a" => [...]})`, did not match a form body with more than ten indexed values, or a query with more than ten indexed hashes.
214
+
215
+ If a stub lists such values in the old order, for example one copied from WebMock's suggested stub, put them in index order.
216
+
217
+ Thanks to [Andrii Furmanets](https://github.com/afurm)
218
+
219
+ # 3.34.0
220
+
221
+ * Allow `with(query: :any)` to match any query string (#1099)
222
+
223
+ `stub_request(:get, "www.example.com").with(query: :any)` matches requests with any query string, or none. RSpec's `anything` works the same way. Previously, this raised `NoMethodError`, and you had to write `with(query: hash_including({}))`.
224
+
225
+ Use a URL without query parameters when passing `query: :any`. Otherwise, WebMock raises `ArgumentError`.
226
+
227
+ Thanks to [nightpool](https://github.com/nightpool)
228
+
229
+ * Raise a clear `ArgumentError` for an unsupported `query` option
230
+
231
+ Previously, a value such as `with(query: :all)` raised `NoMethodError` (undefined method `split`). The new error lists the supported values.
232
+
233
+ * Show `anything` for keys given without a value to `hash_including` or `hash_excluding` outside RSpec
234
+
235
+ Previously, with Minitest or Test::Unit, messages showed `#<WebMock::Matchers::AnyArgMatcher:0x...>`, for example for `with(query: hash_including(:a))`. RSpec's own matchers already showed `anything`.
236
+
237
+ * Provide `HTTP_HOST` to `to_rack` apps when the client has not supplied a Host header (#1084)
238
+
239
+ Previously, requests from some HTTP clients reached the Rack app without `HTTP_HOST`. This caused host checks such as Sinatra's `HostAuthorization` to see an empty host.
240
+
241
+ WebMock now fills in the host from the request URL, including the port when it is not the default. An explicit Host header is preserved.
242
+
243
+ Thanks to [Benoit Tigeot](https://github.com/benoittgt)
244
+
245
+ * Fix Rack compatibility for `to_rack` apps
246
+
247
+ The request environment now passes `Rack::Lint`.
248
+
249
+ `SERVER_PORT` and `CONTENT_LENGTH` are now strings. If your app or tests read them directly, use string comparisons, such as `env['SERVER_PORT'] == "80"`. The environment also includes `SERVER_PROTOCOL`.
250
+
251
+ `CONTENT_TYPE` is omitted when the request has no content type. The `Content-Length` header is passed only as `CONTENT_LENGTH`, without an extra `HTTP_CONTENT_LENGTH` entry. `Transfer-Encoding` is removed because the body has already been decoded.
252
+
253
+ Repeated header values are joined into one string. Header values and the body read from `rack.input` now use binary (`ASCII-8BIT`) strings.
254
+
255
+ # 3.33.0
256
+
257
+ * Return `effective_url` as a String for stubbed Typhoeus responses (#869)
258
+
259
+ Previously, this was an `Addressable::URI`. If your code calls methods such as `effective_url.host`, parse the returned string into a URI first.
260
+
261
+ The URL keeps the request's port, query order and encoding. It follows curl's formatting: for example, `http://example.com:80` becomes `http://example.com:80/`. Stubbed timeouts now provide an `effective_url` too.
262
+
263
+ Thanks to [Tom Brammar](https://github.com/tbrammar)
264
+
265
+ * Fix incorrect removal of default ports from displayed URLs
266
+
267
+ WebMock could accidentally remove `:80` or `:443` from a URL's path or query. For example, an error message could show `/foo/bar` instead of `/foo:80/bar`.
268
+
269
+ Only the host's default port is now removed. This also works when the port is immediately followed by a query string, as in `http://example.com:80?a=b`.
270
+
271
+ * Set `return_code` to `:ok` for completed stubbed Typhoeus requests (#736)
272
+
273
+ `return_code` is now `:ok` and `return_message` is now `"No error"`; both were previously `nil`. This includes HTTP error responses such as 404: `:ok` means the transfer completed. Stubbed timeouts still return `:operation_timedout`.
274
+
275
+ Thanks to [Michael Spiz](https://github.com/spizm)
276
+
277
+ * Fix the raw headers returned by stubbed Typhoeus responses
278
+
279
+ The `response_headers` string now uses the stubbed HTTP status. For example, a 404 stub no longer reports `HTTP/1.1 200 OK`.
280
+
281
+ Stubs without headers now return an empty `headers` hash (`{}`) instead of `nil`. Their `response_headers` contains the status line instead of being `nil`.
282
+
283
+ The raw headers use binary string encoding, matching real responses. For timeouts, `response_headers` is now an empty string.
284
+
285
+ # 3.32.0
286
+
287
+ * Make a `Net::HTTP` object created while WebMock was enabled behave like any other `Net::HTTP` object after `WebMock.disable!` (#1067)
288
+
289
+ Such an object, like a connection cached by net-http-persistent or by Capybara with Selenium, used to raise `ArgumentError` on `start` or a stubbed request, and `WebMock::NetConnectNotAllowedError` on any other request, after WebMock was disabled. It now sends real requests until WebMock is enabled again.
290
+
291
+ Thanks to [Mike Taylor](https://github.com/sealabcore) and [James Rodovich](https://github.com/rodovich)
292
+
293
+ * Connect again when a request is retried on a `Net::HTTP` object that WebMock started without connecting and whose first real connection failed
294
+
295
+ Such a retry used to raise `NoMethodError` (undefined method `closed?` for nil). It now tries to connect again, and raises the connection error if that fails too.
296
+
297
+ * Drop the `Transfer-Encoding` header from stubbed async-http responses, as WebMock already does with `Content-Length` (#1044)
298
+
299
+ A stub with a `Transfer-Encoding` header, such as `chunked`, used to fail with "Message contains both transfer encoding and content length". async-http sets both headers itself from the body, and its responses from real servers don't include them either.
300
+
301
+ Thanks to [Tim Mertens](https://github.com/tmertens)
302
+
303
+ * Record requests made with curb's `http_patch` as PATCH requests with their body (#1112)
304
+
305
+ curb has `http_patch` since 1.0.8. WebMock recorded such a request as a GET, or as a POST after `post_body=`, so a PATCH stub never matched it.
306
+
307
+ Thanks to [Andy Williams](https://github.com/sobakasu)
308
+
309
+ * Record a curb request sent without a body as having none, even after an earlier `http_post` or `http_patch` call with a body on the same `Curl::Easy` object
310
+
311
+ For example, after `c.http_post("a=1")`, `c.reset` and `c.http(:POST)`, the second request was recorded with the body `a=1`, so a stub for that body matched it.
312
+
313
+ # 3.31.0
314
+
315
+ * Return the contents of a `File` or `Pathname` body given to `to_return_json`, or returned by its body lambda, instead of encoding the object as a JSON string (#1119)
316
+
317
+ The file is read and closed as it is for `to_return`: when the stub is declared, or on each request when it comes from a lambda.
318
+
319
+ Thanks to [Alex](https://github.com/ac1982)
320
+
321
+ * Match HTTP methods given as a string or in upper case, as in `stub_request("get", ...)`, `a_request("GET", ...)` or `assert_requested("post", ...)` (#821)
322
+
323
+ Before, such a method never matched, so the stub never applied and negative expectations like `assert_not_requested("get", ...)` always passed. A test that passed only because of this can now fail.
324
+
325
+ The method of a request is now always a lower case Symbol too. A request made with an upper case method, as Typhoeus does with `method: :POST`, now matches a `:post` stub, and callbacks and `with` blocks see `:post`.
326
+
327
+ Thanks to [Euisan Kim](https://github.com/euisan)
328
+
329
+ # 3.30.0
330
+
331
+ * Allow narrowing an RSpec expectation on a stub with `with`, as in `expect(stub).to have_been_requested.once.with(body: "abc")` (#1128)
332
+
333
+ The expectation counts only the requests that match both the stub and the conditions given to `with`. The stub itself does not change.
334
+
335
+ Thanks to [Sébastien S.](https://github.com/inkstak)
336
+
337
+ * Show the JSON body hint for expectations narrowed with `with` too, and no longer show it when a block is given to the stub or expectation, since checking would mean calling the block
338
+
339
+ * Allow a full URL with a path in `disable_net_connect!(allow: ...)`, as in `allow: "https://github.com/mozilla/geckodriver/releases/latest"` (#977)
340
+
341
+ URLs are compared the same way as in stubs, so the default port, letter case in the host, and the order and encoding of query parameters don't matter. A URL without a path or query allows every path on that scheme, host and port; a trailing slash restricts requests to `/` with no query string. Credentials in either URL are ignored.
342
+
343
+ Thanks to [Henry Blyth](https://github.com/henrahmagix)
344
+
345
+ # 3.29.0
346
+
347
+ * Show a body diff for JSON requests whose content type has a `+json` suffix, such as `application/vnd.api+json`, and for the other content types WebMock already matches as JSON (#734)
348
+
349
+ Thanks to [Olivier Brisse](https://github.com/ouranos)
350
+
351
+ * Ignore the case of JSON, XML and url-encoded content types when matching request bodies, and match bodies of any `+json` or `+xml` media type, such as `image/svg+xml`, as JSON or XML
352
+
353
+ * Suggest declaring a JSON body as a hash when a request fails to match only because the JSON is formatted differently (#649)
354
+
355
+ A body declared as a string must match the request body exactly, including key order and whitespace. When that is the only difference, the error for an unregistered request and the failure message of a request expectation now say so, and suggest `with(body: JSON.parse(json_string))`. Matching JSON strings regardless of key order by default is planned for the next major version (#485).
356
+
357
+ # 3.28.0
358
+
359
+ * Fix `to_rack` apps receiving a `rack.session` they did not set up (#985)
360
+
361
+ WebMock used to add a session hash to the Rack env, shared by every request to the same stub. This confused apps that check whether a session is present, such as Rails API-only apps, and carried session data over between requests. WebMock now leaves `rack.session` and `rack.session.options` unset, as a real server does. If your app needs a session, include session middleware in the app you pass to `to_rack`. `RackResponse#session` and `RackResponse#session_options` have been removed.
362
+
363
+ Thanks to [Jan Graichen](https://github.com/jgraichen)
364
+
365
+ * Fix crash when matching a hash body pattern against a JSON or XML request that has no body
366
+
367
+ Thanks to [Chris](https://github.com/ChrisJr404)
368
+
369
+ * No longer warn about curb versions newer than the last one tested
370
+
371
+ * Document regexp values in `hash_including`
372
+
373
+ Thanks to [Christian Bruckmayer](https://github.com/ChrisBr)
374
+
375
+ * Remove unused `RequestSignatureSnippet#request_params`
376
+
377
+ Thanks to [Daniel Pepper](https://github.com/dpep)
378
+
379
+ # 3.27.0
380
+
381
+ * Fix crash in async-http adapter when a request header has a nil value
382
+
383
+ Thanks to [hikmetba-bit](https://github.com/hikmetba-bit)
384
+
385
+ * The async-http adapter now matches stubs against raw request header values instead of values parsed by protocol-http, consistent with the other adapters
386
+
387
+ * Add RSpec `hash_excluding` support to body matching
388
+
389
+ Thanks to [Chris Gunther](https://github.com/cgunther)
390
+
391
+ * Fix `hash_excluding` ignoring keys given without a value and regexp values, in both query and body matching
392
+
393
+ * Fix crash when matching a request that has more than one `Content-Type` header
394
+
395
+ # 3.26.4
396
+
397
+ * Fix race condition in `HTTPClient` adapter async requests by @koic in #1131
398
+
399
+ # 3.26.3
400
+
401
+ * Confirm to work with curb 1.3.7
402
+
403
+ Thanks to [Josch Bockler](https://github.com/jbockler)
404
+
405
+ * Fix NameError in async-http adapter on protocol-http1 >= 0.40
406
+
407
+ Thanks to [Leslie Hoare](https://github.com/lesleh)
408
+
3
409
  # 3.26.2
4
410
 
5
411
  * Add support to parse http/2 request on curb adapter