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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/acfs.gemspec +4 -4
- data/lib/acfs/errors.rb +6 -6
- data/lib/acfs/global.rb +3 -1
- data/lib/acfs/resource/attributes.rb +5 -6
- data/lib/acfs/resource/locatable.rb +4 -4
- data/lib/acfs/resource/persistence.rb +7 -7
- data/lib/acfs/resource/service.rb +2 -2
- data/lib/acfs/runner.rb +5 -0
- data/lib/acfs/version.rb +3 -3
- data/spec/acfs/adapter/typhoeus_spec.rb +2 -1
- data/spec/acfs/global_spec.rb +21 -2
- data/spec/acfs/runner_spec.rb +16 -2
- data/vendor/bundle/ruby/4.0.0/bundler/gems/{rubocop-config-2b861962124a → rubocop-config-9832479830d9}/README.md +3 -3
- data/vendor/bundle/ruby/4.0.0/bundler/gems/{rubocop-config-2b861962124a → rubocop-config-9832479830d9}/rubocop-config.gemspec +8 -8
- data/vendor/bundle/ruby/4.0.0/gems/{actionpack-8.1.3 → actionpack-8.1.4.1}/CHANGELOG.md +216 -0
- data/vendor/bundle/ruby/4.0.0/gems/{actionview-8.1.3 → actionview-8.1.4.1}/CHANGELOG.md +107 -0
- data/vendor/bundle/ruby/4.0.0/gems/{activemodel-8.1.3 → activemodel-8.1.4.1}/CHANGELOG.md +48 -0
- data/vendor/bundle/ruby/4.0.0/gems/{activesupport-8.1.3 → activesupport-8.1.4.1}/CHANGELOG.md +242 -0
- data/vendor/bundle/ruby/4.0.0/gems/{addressable-2.9.0 → addressable-2.9.2}/CHANGELOG.md +97 -0
- data/vendor/bundle/ruby/4.0.0/gems/{bigdecimal-4.1.2 → bigdecimal-4.1.3}/bigdecimal.gemspec +2 -0
- data/vendor/bundle/ruby/4.0.0/gems/{concurrent-ruby-1.3.7 → concurrent-ruby-1.3.8}/CHANGELOG.md +6 -0
- data/vendor/bundle/ruby/4.0.0/gems/{connection_pool-3.0.2 → connection_pool-3.0.3}/connection_pool.gemspec +1 -0
- data/vendor/bundle/ruby/4.0.0/gems/{crass-1.0.6 → crass-1.0.8}/LICENSE +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/crass-1.0.8/README.md +153 -0
- data/vendor/bundle/ruby/4.0.0/gems/crass-1.0.8/crass.gemspec +32 -0
- data/vendor/bundle/ruby/4.0.0/gems/ethon-0.19.2/CHANGELOG.md +1164 -0
- data/vendor/bundle/ruby/4.0.0/gems/ethon-0.19.2/README.md +308 -0
- data/vendor/bundle/ruby/4.0.0/gems/{hashdiff-1.2.1 → hashdiff-1.2.2}/changelog.md +5 -0
- data/vendor/bundle/ruby/4.0.0/gems/{json-2.19.9 → json-3.1.0}/README.md +9 -91
- data/vendor/bundle/ruby/4.0.0/gems/{loofah-2.25.1 → loofah-2.25.3}/CHANGELOG.md +42 -0
- data/vendor/bundle/ruby/4.0.0/gems/{minitest-6.0.6 → minitest-6.1.0}/README.rdoc +19 -10
- data/vendor/bundle/ruby/4.0.0/gems/{msgpack-1.8.3 → msgpack-1.8.7}/ChangeLog +25 -1
- data/vendor/bundle/ruby/4.0.0/gems/{msgpack-1.8.3 → msgpack-1.8.7}/msgpack.gemspec +0 -9
- data/vendor/bundle/ruby/4.0.0/gems/{multi_json-1.21.1 → multi_json-1.21.2}/README.md +6 -6
- 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
- data/vendor/bundle/ruby/4.0.0/gems/{opentelemetry-api-1.10.0 → opentelemetry-api-1.11.1}/CHANGELOG.md +13 -3
- data/vendor/bundle/ruby/4.0.0/gems/{opentelemetry-common-0.25.0 → opentelemetry-common-0.25.2}/CHANGELOG.md +8 -0
- data/vendor/bundle/ruby/4.0.0/gems/{prism-1.9.0 → prism-2.1.0-x86_64-linux-gnu}/CHANGELOG.md +144 -40
- data/vendor/bundle/ruby/4.0.0/gems/{prism-1.9.0 → prism-2.1.0-x86_64-linux-gnu}/LICENSE.md +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/README.md +83 -0
- data/vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/prism.gemspec +251 -0
- data/vendor/bundle/ruby/4.0.0/gems/{rack-3.2.6 → rack-3.2.9}/CHANGELOG.md +137 -1
- data/vendor/bundle/ruby/4.0.0/gems/{rack-test-2.2.0 → rack-test-2.3.0}/MIT-LICENSE.txt +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/{rack-test-2.2.0 → rack-test-2.3.0}/README.md +16 -0
- data/vendor/bundle/ruby/4.0.0/gems/{rails-html-sanitizer-1.7.0 → rails-html-sanitizer-1.7.2}/CHANGELOG.md +54 -0
- data/vendor/bundle/ruby/4.0.0/gems/{rails-html-sanitizer-1.7.0 → rails-html-sanitizer-1.7.2}/README.md +3 -2
- data/vendor/bundle/ruby/4.0.0/gems/{regexp_parser-2.12.0 → regexp_parser-2.13.4}/LICENSE +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/{regexp_parser-2.12.0 → regexp_parser-2.13.4}/regexp_parser.gemspec +3 -9
- data/vendor/bundle/ruby/4.0.0/gems/{rspec-core-3.13.6 → rspec-core-3.13.7}/Changelog.md +10 -2
- data/vendor/bundle/ruby/4.0.0/gems/{rspec-expectations-3.13.5 → rspec-expectations-3.13.6}/Changelog.md +11 -2
- data/vendor/bundle/ruby/4.0.0/gems/{rspec-mocks-3.13.8 → rspec-mocks-3.13.9}/Changelog.md +17 -3
- data/vendor/bundle/ruby/4.0.0/gems/{rspec-support-3.13.7 → rspec-support-3.13.8}/Changelog.md +12 -2
- data/vendor/bundle/ruby/4.0.0/gems/{rubocop-1.88.0 → rubocop-1.92.3}/README.md +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-ast-1.53.0/lib/rubocop/ast/vendor/parser/LICENSE.txt +26 -0
- data/vendor/bundle/ruby/4.0.0/gems/{rubocop-capybara-2.23.0 → rubocop-capybara-3.1.0}/CHANGELOG.md +53 -0
- data/vendor/bundle/ruby/4.0.0/gems/{rubocop-capybara-2.23.0 → rubocop-capybara-3.1.0}/README.md +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/{rubocop-performance-1.26.1 → rubocop-performance-1.27.0}/LICENSE.txt +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/{rubocop-rspec_rails-2.32.0 → rubocop-rspec_rails-2.33.0}/CHANGELOG.md +21 -0
- data/vendor/bundle/ruby/4.0.0/gems/{simplecov-0.22.0 → simplecov-1.3.2}/LICENSE +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-1.3.2/README.md +272 -0
- data/vendor/bundle/ruby/4.0.0/gems/{simplecov-cobertura-3.2.0 → simplecov-cobertura-4.0.0}/README.md +2 -3
- data/vendor/bundle/ruby/4.0.0/gems/{simplecov-cobertura-3.2.0 → simplecov-cobertura-4.0.0}/simplecov-cobertura.gemspec +2 -2
- data/vendor/bundle/ruby/4.0.0/gems/{typhoeus-1.6.0 → typhoeus-1.8.0}/CHANGELOG.md +297 -3
- data/vendor/bundle/ruby/4.0.0/gems/typhoeus-1.8.0/README.md +825 -0
- data/vendor/bundle/ruby/4.0.0/gems/{typhoeus-1.6.0 → typhoeus-1.8.0}/typhoeus.gemspec +15 -3
- data/vendor/bundle/ruby/4.0.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/CHANGELOG.md +6 -0
- 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
- data/vendor/bundle/ruby/4.0.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/README.md +2 -2
- data/vendor/bundle/ruby/4.0.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/CHANGELOG.md +4 -0
- data/vendor/bundle/ruby/4.0.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/MIT-LICENSE.txt +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/README.md +4 -4
- data/vendor/bundle/ruby/4.0.0/gems/{webmock-3.26.2 → webmock-3.38.0}/CHANGELOG.md +406 -0
- data/vendor/bundle/ruby/4.0.0/gems/{webmock-3.26.2 → webmock-3.38.0}/README.md +271 -5
- data/vendor/bundle/ruby/4.0.0/specifications/{actionpack-8.1.3.gemspec → actionpack-8.1.4.1.gemspec} +8 -8
- data/vendor/bundle/ruby/4.0.0/specifications/{actionview-8.1.3.gemspec → actionview-8.1.4.1.gemspec} +9 -9
- data/vendor/bundle/ruby/4.0.0/specifications/{activemodel-8.1.3.gemspec → activemodel-8.1.4.1.gemspec} +6 -6
- data/vendor/bundle/ruby/4.0.0/specifications/{activesupport-8.1.3.gemspec → activesupport-8.1.4.1.gemspec} +5 -5
- data/vendor/bundle/ruby/4.0.0/specifications/{addressable-2.9.0.gemspec → addressable-2.9.2.gemspec} +5 -5
- data/vendor/bundle/ruby/4.0.0/specifications/appraisal-2.5.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/ast-2.4.3.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/base64-0.3.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{bigdecimal-4.1.2.gemspec → bigdecimal-4.1.3.gemspec} +3 -3
- data/vendor/bundle/ruby/4.0.0/specifications/builder-3.3.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{concurrent-ruby-1.3.7.gemspec → concurrent-ruby-1.3.8.gemspec} +4 -4
- data/vendor/bundle/ruby/4.0.0/specifications/{connection_pool-3.0.2.gemspec → connection_pool-3.0.3.gemspec} +5 -4
- data/vendor/bundle/ruby/4.0.0/specifications/crack-1.0.1.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{crass-1.0.6.gemspec → crass-1.0.8.gemspec} +8 -8
- data/vendor/bundle/ruby/4.0.0/specifications/diff-lcs-1.6.2.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/drb-2.2.3.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/erubi-1.13.1.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{ethon-0.18.0.gemspec → ethon-0.19.2.gemspec} +6 -6
- data/vendor/bundle/ruby/4.0.0/specifications/ffi-1.17.4-x86_64-linux-gnu.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{hashdiff-1.2.1.gemspec → hashdiff-1.2.2.gemspec} +4 -4
- data/vendor/bundle/ruby/4.0.0/specifications/i18n-1.15.2.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{json-2.19.9.gemspec → json-3.1.0.gemspec} +0 -0
- 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
- data/vendor/bundle/ruby/4.0.0/specifications/lint_roller-1.1.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/logger-1.7.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{loofah-2.25.1.gemspec → loofah-2.25.3.gemspec} +6 -6
- data/vendor/bundle/ruby/4.0.0/specifications/{minitest-6.0.6.gemspec → minitest-6.1.0.gemspec} +8 -9
- data/vendor/bundle/ruby/4.0.0/specifications/{msgpack-1.8.3.gemspec → msgpack-1.8.7.gemspec} +4 -15
- data/vendor/bundle/ruby/4.0.0/specifications/{multi_json-1.21.1.gemspec → multi_json-1.21.2.gemspec} +5 -5
- 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
- data/vendor/bundle/ruby/4.0.0/specifications/opentelemetry-api-1.11.1.gemspec +27 -0
- data/vendor/bundle/ruby/4.0.0/specifications/opentelemetry-common-0.25.2.gemspec +26 -0
- data/vendor/bundle/ruby/4.0.0/specifications/{parallel-2.1.0.gemspec → parallel-2.3.0.gemspec} +4 -4
- data/vendor/bundle/ruby/4.0.0/specifications/{parser-3.3.11.1.gemspec → parser-3.3.14.0.gemspec} +5 -5
- data/vendor/bundle/ruby/4.0.0/specifications/prism-2.1.0-x86_64-linux-gnu.gemspec +22 -0
- data/vendor/bundle/ruby/4.0.0/specifications/public_suffix-7.0.5.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/racc-1.8.1.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{rack-3.2.6.gemspec → rack-3.2.9.gemspec} +4 -4
- data/vendor/bundle/ruby/4.0.0/specifications/rack-session-2.1.2.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{rack-test-2.2.0.gemspec → rack-test-2.3.0.gemspec} +5 -5
- data/vendor/bundle/ruby/4.0.0/specifications/rails-dom-testing-2.3.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{rails-html-sanitizer-1.7.0.gemspec → rails-html-sanitizer-1.7.2.gemspec} +7 -7
- data/vendor/bundle/ruby/4.0.0/specifications/rainbow-3.1.1.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/rake-13.4.2.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/rake-release-1.4.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{regexp_parser-2.12.0.gemspec → regexp_parser-2.13.4.gemspec} +5 -5
- data/vendor/bundle/ruby/4.0.0/specifications/rexml-3.4.4.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/rspec-3.13.2.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{rspec-core-3.13.6.gemspec → rspec-core-3.13.7.gemspec} +7 -7
- data/vendor/bundle/ruby/4.0.0/specifications/{rspec-expectations-3.13.5.gemspec → rspec-expectations-3.13.6.gemspec} +7 -7
- data/vendor/bundle/ruby/4.0.0/specifications/{rspec-mocks-3.13.8.gemspec → rspec-mocks-3.13.9.gemspec} +6 -6
- data/vendor/bundle/ruby/4.0.0/specifications/{rspec-support-3.13.7.gemspec → rspec-support-3.13.8.gemspec} +7 -7
- data/vendor/bundle/ruby/4.0.0/specifications/{rubocop-1.88.0.gemspec → rubocop-1.92.3.gemspec} +7 -7
- data/vendor/bundle/ruby/4.0.0/specifications/{rubocop-ast-1.49.1.gemspec → rubocop-ast-1.53.0.gemspec} +7 -5
- data/vendor/bundle/ruby/4.0.0/specifications/{rubocop-capybara-2.23.0.gemspec → rubocop-capybara-3.1.0.gemspec} +5 -5
- data/vendor/bundle/ruby/4.0.0/specifications/rubocop-factory_bot-2.28.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{rubocop-performance-1.26.1.gemspec → rubocop-performance-1.27.0.gemspec} +7 -7
- data/vendor/bundle/ruby/4.0.0/specifications/rubocop-rspec-3.10.2.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{rubocop-rspec_rails-2.32.0.gemspec → rubocop-rspec_rails-2.33.0.gemspec} +5 -5
- data/vendor/bundle/ruby/4.0.0/specifications/ruby-progressbar-1.13.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/securerandom-0.4.1.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/simplecov-1.3.2.gemspec +25 -0
- data/vendor/bundle/ruby/4.0.0/specifications/{simplecov-cobertura-3.2.0.gemspec → simplecov-cobertura-4.0.0.gemspec} +5 -5
- data/vendor/bundle/ruby/4.0.0/specifications/thor-1.5.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{typhoeus-1.6.0.gemspec → typhoeus-1.8.0.gemspec} +7 -7
- data/vendor/bundle/ruby/4.0.0/specifications/tzinfo-2.0.6.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{unicode-display_width-3.2.0.gemspec → unicode-display_width-3.3.0.gemspec} +8 -8
- data/vendor/bundle/ruby/4.0.0/specifications/{unicode-emoji-4.2.0.gemspec → unicode-emoji-4.3.0.gemspec} +6 -6
- data/vendor/bundle/ruby/4.0.0/specifications/{uri-1.1.1.gemspec → uri-1.1.2.gemspec} +3 -3
- data/vendor/bundle/ruby/4.0.0/specifications/useragent-0.16.11.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/{webmock-3.26.2.gemspec → webmock-3.38.0.gemspec} +5 -5
- metadata +174 -185
- data/vendor/bundle/ruby/4.0.0/gems/crass-1.0.6/README.md +0 -192
- data/vendor/bundle/ruby/4.0.0/gems/crass-1.0.6/crass.gemspec +0 -31
- data/vendor/bundle/ruby/4.0.0/gems/docile-1.4.1/LICENSE +0 -21
- data/vendor/bundle/ruby/4.0.0/gems/docile-1.4.1/README.md +0 -409
- data/vendor/bundle/ruby/4.0.0/gems/docile-1.4.1/docile.gemspec +0 -36
- data/vendor/bundle/ruby/4.0.0/gems/ethon-0.18.0/CHANGELOG.md +0 -417
- data/vendor/bundle/ruby/4.0.0/gems/ethon-0.18.0/README.md +0 -118
- data/vendor/bundle/ruby/4.0.0/gems/prism-1.9.0/README.md +0 -143
- data/vendor/bundle/ruby/4.0.0/gems/prism-1.9.0/prism.gemspec +0 -172
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-0.22.0/CHANGELOG.md +0 -191
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-0.22.0/README.md +0 -974
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-html-0.13.2/CHANGELOG.md +0 -114
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-html-0.13.2/LICENSE +0 -20
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-html-0.13.2/README.md +0 -30
- data/vendor/bundle/ruby/4.0.0/gems/simplecov_json_formatter-0.1.4/CHANGELOG.md +0 -13
- data/vendor/bundle/ruby/4.0.0/gems/simplecov_json_formatter-0.1.4/README.md +0 -29
- data/vendor/bundle/ruby/4.0.0/gems/typhoeus-1.6.0/README.md +0 -588
- data/vendor/bundle/ruby/4.0.0/specifications/docile-1.4.1.gemspec +0 -22
- data/vendor/bundle/ruby/4.0.0/specifications/opentelemetry-api-1.10.0.gemspec +0 -35
- data/vendor/bundle/ruby/4.0.0/specifications/opentelemetry-common-0.25.0.gemspec +0 -33
- data/vendor/bundle/ruby/4.0.0/specifications/prism-1.9.0.gemspec +0 -24
- data/vendor/bundle/ruby/4.0.0/specifications/simplecov-0.22.0.gemspec +0 -28
- data/vendor/bundle/ruby/4.0.0/specifications/simplecov-html-0.13.2.gemspec +0 -22
- data/vendor/bundle/ruby/4.0.0/specifications/simplecov_json_formatter-0.1.4.gemspec +0 -21
- /data/vendor/bundle/ruby/4.0.0/bundler/gems/{rubocop-config-2b861962124a → rubocop-config-9832479830d9}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{actionpack-8.1.3 → actionpack-8.1.4.1}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{actionpack-8.1.3 → actionpack-8.1.4.1}/README.rdoc +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{actionview-8.1.3 → actionview-8.1.4.1}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{actionview-8.1.3 → actionview-8.1.4.1}/README.rdoc +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{activemodel-8.1.3 → activemodel-8.1.4.1}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{activemodel-8.1.3 → activemodel-8.1.4.1}/README.rdoc +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{activesupport-8.1.3 → activesupport-8.1.4.1}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{activesupport-8.1.3 → activesupport-8.1.4.1}/README.rdoc +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{addressable-2.9.0 → addressable-2.9.2}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{addressable-2.9.0 → addressable-2.9.2}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{bigdecimal-4.1.2 → bigdecimal-4.1.3}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{concurrent-ruby-1.3.7 → concurrent-ruby-1.3.8}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{concurrent-ruby-1.3.7 → concurrent-ruby-1.3.8}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{connection_pool-3.0.2 → connection_pool-3.0.3}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{connection_pool-3.0.2 → connection_pool-3.0.3}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{ethon-0.18.0 → ethon-0.19.2}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{ethon-0.18.0 → ethon-0.19.2}/ethon.gemspec +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{hashdiff-1.2.1 → hashdiff-1.2.2}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{hashdiff-1.2.1 → hashdiff-1.2.2}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{hashdiff-1.2.1 → hashdiff-1.2.2}/hashdiff.gemspec +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{json-2.19.9 → json-3.1.0}/json.gemspec +0 -0
- /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
- /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
- /data/vendor/bundle/ruby/4.0.0/gems/{loofah-2.25.1 → loofah-2.25.3}/MIT-LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{loofah-2.25.1 → loofah-2.25.3}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{msgpack-1.8.3 → msgpack-1.8.7}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{msgpack-1.8.3 → msgpack-1.8.7}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{multi_json-1.21.1 → multi_json-1.21.2}/LICENSE.md +0 -0
- /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
- /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
- /data/vendor/bundle/ruby/4.0.0/gems/{opentelemetry-api-1.10.0 → opentelemetry-api-1.11.1}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{opentelemetry-api-1.10.0 → opentelemetry-api-1.11.1}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{opentelemetry-common-0.25.0 → opentelemetry-common-0.25.2}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{opentelemetry-common-0.25.0 → opentelemetry-common-0.25.2}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{parallel-2.1.0 → parallel-2.3.0}/MIT-LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.14.0}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.14.0}/parser.gemspec +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rack-3.2.6 → rack-3.2.9}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rack-3.2.6 → rack-3.2.9}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rails-html-sanitizer-1.7.0 → rails-html-sanitizer-1.7.2}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rspec-core-3.13.6 → rspec-core-3.13.7}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rspec-core-3.13.6 → rspec-core-3.13.7}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rspec-expectations-3.13.5 → rspec-expectations-3.13.6}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rspec-expectations-3.13.5 → rspec-expectations-3.13.6}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rspec-mocks-3.13.8 → rspec-mocks-3.13.9}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rspec-mocks-3.13.8 → rspec-mocks-3.13.9}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rspec-support-3.13.7 → rspec-support-3.13.8}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rspec-support-3.13.7 → rspec-support-3.13.8}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-1.88.0 → rubocop-1.92.3}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-ast-1.49.1 → rubocop-ast-1.53.0}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-ast-1.49.1 → rubocop-ast-1.53.0}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-capybara-2.23.0 → rubocop-capybara-3.1.0}/MIT-LICENSE.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-performance-1.26.1 → rubocop-performance-1.27.0}/README.md +0 -0
- /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
- /data/vendor/bundle/ruby/4.0.0/gems/{rubocop-rspec_rails-2.32.0 → rubocop-rspec_rails-2.33.0}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{simplecov-cobertura-3.2.0 → simplecov-cobertura-4.0.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{typhoeus-1.6.0 → typhoeus-1.8.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/unicode-emoji.gemspec +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{uri-1.1.1 → uri-1.1.2}/README.md +0 -0
- /data/vendor/bundle/ruby/4.0.0/gems/{webmock-3.26.2 → webmock-3.38.0}/LICENSE +0 -0
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
[](https://badge.fury.io/rb/ethon)
|
|
2
|
+
[](https://github.com/typhoeus/ethon/actions/workflows/ruby.yml)
|
|
3
|
+
|
|
4
|
+
# Ethon
|
|
5
|
+
|
|
6
|
+
Ethon is a lightweight Ruby wrapper around [libcurl](https://curl.se/libcurl/),
|
|
7
|
+
built with [FFI](https://github.com/ffi/ffi). It exposes:
|
|
8
|
+
|
|
9
|
+
- `Ethon::Easy` for a single transfer.
|
|
10
|
+
- `Ethon::Multi` for concurrent transfers.
|
|
11
|
+
- libcurl options, callbacks, response streaming, debug output, and optional
|
|
12
|
+
lower-level URL, MIME, share, and header APIs.
|
|
13
|
+
|
|
14
|
+
The name comes from Greek mythology: Ethon was a gigantic eagle and the son of
|
|
15
|
+
Typhoeus and Echidna.
|
|
16
|
+
|
|
17
|
+
* [API documentation](https://rubydoc.info/github/typhoeus/ethon)
|
|
18
|
+
* [Changelog](https://github.com/typhoeus/ethon/blob/master/CHANGELOG.md)
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
Add the gem to your bundle:
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
bundle add ethon
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Or install it directly:
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
gem install ethon
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Ethon requires Ruby 2.6 or newer and a libcurl shared library. Install libcurl
|
|
35
|
+
with your system package manager, or point `ETHON_CURL_LIBS` at a specific
|
|
36
|
+
build (see [Older libcurl versions](#older-libcurl-versions)).
|
|
37
|
+
|
|
38
|
+
## Usage
|
|
39
|
+
|
|
40
|
+
Create an `Easy` handle for a single transfer. The constructor accepts libcurl
|
|
41
|
+
options such as `followlocation`:
|
|
42
|
+
|
|
43
|
+
```ruby
|
|
44
|
+
easy = Ethon::Easy.new(url: "www.example.com", followlocation: true)
|
|
45
|
+
easy.perform
|
|
46
|
+
#=> :ok
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
After `perform` returns, read the response:
|
|
50
|
+
|
|
51
|
+
```ruby
|
|
52
|
+
easy.response_code
|
|
53
|
+
#=> 200
|
|
54
|
+
easy.response_body
|
|
55
|
+
#=> "<!doctype html><html ..."
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## HTTP helpers
|
|
59
|
+
|
|
60
|
+
`http_request` configures the URL, method, query parameters, and body:
|
|
61
|
+
|
|
62
|
+
```ruby
|
|
63
|
+
easy = Ethon::Easy.new
|
|
64
|
+
easy.http_request("www.example.com", :get, { params: { a: 1 } })
|
|
65
|
+
easy.perform
|
|
66
|
+
#=> :ok
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
```ruby
|
|
70
|
+
easy = Ethon::Easy.new
|
|
71
|
+
easy.http_request("www.example.com", :post, { params: { a: 1 }, body: { b: 2 } })
|
|
72
|
+
easy.perform
|
|
73
|
+
#=> :ok
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
File values in a `:body` hash are sent as `multipart/form-data`. Ethon loads
|
|
77
|
+
the optional `mime-types` gem on the first upload to detect each part's content
|
|
78
|
+
type; with it absent, files fall back to `application/octet-stream`.
|
|
79
|
+
|
|
80
|
+
Wrap a value in `Ethon::Multipart::Part` to set the content type for that part,
|
|
81
|
+
and optionally the filename. A String with a filename is sent as an in-memory
|
|
82
|
+
upload.
|
|
83
|
+
|
|
84
|
+
```ruby
|
|
85
|
+
easy.http_request(
|
|
86
|
+
"www.example.com",
|
|
87
|
+
:post,
|
|
88
|
+
body: {
|
|
89
|
+
metadata: Ethon::Multipart::Part.new(
|
|
90
|
+
'{"a":1}',
|
|
91
|
+
content_type: "application/json"
|
|
92
|
+
),
|
|
93
|
+
file: Ethon::Multipart::Part.new(
|
|
94
|
+
File.open("photo.jpg"),
|
|
95
|
+
filename: "avatar.png",
|
|
96
|
+
content_type: "image/png"
|
|
97
|
+
)
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Parallel requests
|
|
103
|
+
|
|
104
|
+
Add `Easy` handles to a `Multi` and call `perform`:
|
|
105
|
+
|
|
106
|
+
```ruby
|
|
107
|
+
multi = Ethon::Multi.new
|
|
108
|
+
2.times do
|
|
109
|
+
easy = Ethon::Easy.new(url: "www.example.com")
|
|
110
|
+
multi.add(easy)
|
|
111
|
+
end
|
|
112
|
+
multi.perform
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## HTTP/2
|
|
116
|
+
|
|
117
|
+
Use `:http_version` to request HTTP/2. `:httpv2_tls` negotiates HTTP/2 over
|
|
118
|
+
TLS and uses HTTP/1.1 for plain HTTP. `:httpv2_0` also attempts the HTTP/2
|
|
119
|
+
Upgrade handshake on plain HTTP, which many older servers do not support.
|
|
120
|
+
`:httpv2_prior_knowledge` starts HTTP/2 without negotiation. See the
|
|
121
|
+
[libcurl HTTP/2 documentation](https://everything.curl.dev/http/versions/http2.html)
|
|
122
|
+
for details.
|
|
123
|
+
|
|
124
|
+
HTTP/2 works with a single easy handle. A multi handle lets several requests
|
|
125
|
+
share the connection and multiplex them:
|
|
126
|
+
|
|
127
|
+
```ruby
|
|
128
|
+
multi = Ethon::Multi.new
|
|
129
|
+
easy = Ethon::Easy.new
|
|
130
|
+
|
|
131
|
+
easy.http_request(
|
|
132
|
+
"https://www.example.com/get",
|
|
133
|
+
:get,
|
|
134
|
+
{ http_version: :httpv2_tls }
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
multi.add(easy)
|
|
138
|
+
multi.perform
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
## Lower-level libcurl APIs
|
|
142
|
+
|
|
143
|
+
Ethon exposes wrappers for some of libcurl's newer APIs. Optional bindings are
|
|
144
|
+
attached only when the loaded libcurl exports them. Wrappers for the URL, MIME,
|
|
145
|
+
share, header, and transfer helpers raise `NotImplementedError` when the
|
|
146
|
+
underlying function is missing; introspection helpers return `nil` or `[]`.
|
|
147
|
+
|
|
148
|
+
```ruby
|
|
149
|
+
# URL API
|
|
150
|
+
url = Ethon::Curl::Url.new("https://example.com/a")
|
|
151
|
+
url.get(:host) #=> "example.com"
|
|
152
|
+
url.set(:path, "/b")
|
|
153
|
+
url.to_s #=> "https://example.com/b"
|
|
154
|
+
|
|
155
|
+
# MIME API
|
|
156
|
+
easy = Ethon::Easy.new(url: "http://example.com/upload")
|
|
157
|
+
mime = Ethon::Curl::Mime.new(easy)
|
|
158
|
+
part = mime.addpart
|
|
159
|
+
part.name = "file"
|
|
160
|
+
part.file = "/tmp/example.txt"
|
|
161
|
+
part.headers = { "X-Checksum" => "abc123" }
|
|
162
|
+
easy.mime = mime
|
|
163
|
+
|
|
164
|
+
# Share cookies or DNS data between easy handles
|
|
165
|
+
share = Ethon::Curl::Share.new.share(:cookie)
|
|
166
|
+
easy.share = share
|
|
167
|
+
|
|
168
|
+
# Structured response headers and option metadata
|
|
169
|
+
easy.perform
|
|
170
|
+
easy.header("Content-Type")
|
|
171
|
+
easy.each_header { |header| puts "#{header.name}: #{header.value}" }
|
|
172
|
+
Ethon::Curl.easy_option("URL")
|
|
173
|
+
Ethon::Curl.protocols
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
When a share handle is used from more than one thread, set
|
|
177
|
+
`Share#lockfunction=` and `Share#unlockfunction=` so libcurl can synchronize
|
|
178
|
+
access to the shared data.
|
|
179
|
+
|
|
180
|
+
## Older libcurl versions
|
|
181
|
+
|
|
182
|
+
Ethon attaches some functions only when the loaded libcurl exports them.
|
|
183
|
+
Wrappers that check for a missing function raise `NotImplementedError`; the
|
|
184
|
+
introspection helpers return `nil` or `[]`. This keeps the gem loadable with
|
|
185
|
+
libcurl versions that predate the URL, MIME, share, or structured-header APIs.
|
|
186
|
+
|
|
187
|
+
libcurl silently ignores unknown options, which can make a request run with a
|
|
188
|
+
different configuration than intended. Ethon therefore raises
|
|
189
|
+
`Ethon::Errors::UnsupportedOption` when `curl_easy_setopt` reports
|
|
190
|
+
`CURLE_UNKNOWN_OPTION`, and `Ethon::Errors::SetOption` for other rejected
|
|
191
|
+
values. Guard optional settings when supporting older runtimes:
|
|
192
|
+
|
|
193
|
+
```ruby
|
|
194
|
+
easy.tcp_keepcnt = 30 if Ethon::Curl.supports_option?(:tcp_keepcnt)
|
|
195
|
+
easy.httpsig_key = key if Ethon::Curl.version_at_least?("8.23.0")
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
`Curl.supports_option?` asks libcurl's own option table on 7.73.0 and newer.
|
|
199
|
+
Older versions cannot answer that question, so it returns `true` for every
|
|
200
|
+
option Ethon knows; setting an unsupported option still raises. Multi options
|
|
201
|
+
are only checked against Ethon's table, because libcurl does not expose their
|
|
202
|
+
metadata.
|
|
203
|
+
|
|
204
|
+
The deprecated form API is attached only when the loaded libcurl exports it,
|
|
205
|
+
because libcurl can be built with `--disable-form-api`. Multipart bodies use the
|
|
206
|
+
MIME API when available and fall back to the form API otherwise.
|
|
207
|
+
|
|
208
|
+
Point `ETHON_CURL_LIBS` at a specific libcurl build to test against it:
|
|
209
|
+
|
|
210
|
+
```sh
|
|
211
|
+
ETHON_CURL_LIBS=/opt/curl/lib/libcurl.so bundle exec rake
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
CI builds libcurl 7.88 in addition to the system package and 8.23 to catch
|
|
215
|
+
accidental use of newer symbols and options. The 8.23 build uses
|
|
216
|
+
`--disable-form-api`, so the missing form API path is exercised too.
|
|
217
|
+
|
|
218
|
+
## Debugging
|
|
219
|
+
|
|
220
|
+
Set `verbose: true` on an `Easy` to collect libcurl's debug messages.
|
|
221
|
+
`Easy#debug_info` returns a `DebugInfo` object; use `#to_a` for every message
|
|
222
|
+
or `#to_h` to group them by type (such as `:text`, `:header_in`, and
|
|
223
|
+
`:header_out`). `Easy#debugfunction` registers an observer. The messages are
|
|
224
|
+
also written through `Ethon.logger` at the debug level, so configure it to see
|
|
225
|
+
them:
|
|
226
|
+
|
|
227
|
+
```ruby
|
|
228
|
+
Ethon.logger.level = Logger::DEBUG
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Response body data is not written to the log; it stays available through
|
|
232
|
+
`Easy#debug_info` and the `debugfunction` observer.
|
|
233
|
+
|
|
234
|
+
## Thread and fork safety
|
|
235
|
+
|
|
236
|
+
Ethon can be used from multiple threads, but it does not synchronize access to
|
|
237
|
+
individual handles. Follow [libcurl's thread-safety rules](https://curl.se/libcurl/c/threadsafe.html):
|
|
238
|
+
|
|
239
|
+
* Separate `Ethon::Easy` and `Ethon::Multi` instances may run concurrently in
|
|
240
|
+
different threads.
|
|
241
|
+
* Do not use the same `Easy` or `Multi` instance from more than one thread at a
|
|
242
|
+
time. This includes changing its options while a transfer is running.
|
|
243
|
+
* Callbacks run on the thread performing the transfer. Synchronize any shared
|
|
244
|
+
application state accessed by a callback.
|
|
245
|
+
* When using threads, set `nosignal: true` unless your libcurl uses a threaded
|
|
246
|
+
or c-ares resolver. See libcurl's signal guidance for the associated DNS
|
|
247
|
+
timeout and `SIGPIPE` considerations.
|
|
248
|
+
|
|
249
|
+
With libcurl older than 7.84.0, create an Ethon handle before starting other
|
|
250
|
+
application threads so libcurl's global initialization happens while the
|
|
251
|
+
process is still single-threaded.
|
|
252
|
+
|
|
253
|
+
Ethon handles and, by default, initialized libcurl state must not be inherited
|
|
254
|
+
across a `fork`. If any `Easy` or `Multi` was created before forking, libcurl
|
|
255
|
+
is already initialized and the child cannot create new handles either; use
|
|
256
|
+
`fork` followed by `exec` in that case, or opt in as described below. If
|
|
257
|
+
libcurl was not initialized before forking, create all `Easy` and `Multi`
|
|
258
|
+
instances after the fork. Ethon raises `Ethon::Errors::ForkSafety` when a child
|
|
259
|
+
process tries to use an inherited handle, or to use inherited libcurl state
|
|
260
|
+
without opting in.
|
|
261
|
+
|
|
262
|
+
A server that forks workers from a process that has already used libcurl, such
|
|
263
|
+
as Pitchfork with reforking or Puma with `fork_worker`, cannot `exec` without
|
|
264
|
+
losing the memory its workers share with that process. Instead, each worker can
|
|
265
|
+
opt in to creating new handles on the libcurl state it inherited. Call
|
|
266
|
+
`Ethon::Curl.allow_handles_after_fork!` in the worker before it creates its
|
|
267
|
+
first handle and before any other thread uses Ethon, for example from
|
|
268
|
+
Pitchfork's `after_worker_fork` hook:
|
|
269
|
+
|
|
270
|
+
```ruby
|
|
271
|
+
after_worker_fork do |_server, _worker|
|
|
272
|
+
Ethon::Curl.allow_handles_after_fork!
|
|
273
|
+
end
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
Puma's equivalent hook is `before_worker_boot` (`on_worker_boot` before
|
|
277
|
+
Puma 7). Repeat calls in the same worker do nothing. The worker does not
|
|
278
|
+
initialize libcurl again, and it cannot clean up the libcurl state it
|
|
279
|
+
inherited: `Ethon::Curl.cleanup` raises `Ethon::Errors::ForkSafety` there, as
|
|
280
|
+
handles created before the fork still do. On macOS, system frameworks are not
|
|
281
|
+
safe to use after `fork` without `exec`, and libcurl can use them, for example
|
|
282
|
+
for TLS. The opt-in is not supported there and raises
|
|
283
|
+
`Ethon::Errors::ForkSafety` in a worker whose parent initialized libcurl, so
|
|
284
|
+
use `fork` followed by `exec` on macOS.
|
|
285
|
+
|
|
286
|
+
## License
|
|
287
|
+
|
|
288
|
+
(The MIT License)
|
|
289
|
+
|
|
290
|
+
Copyright © 2012-2016 [Hans Hasselberg](http://www.hans.io)
|
|
291
|
+
|
|
292
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
293
|
+
copy of this software and associated documentation files (the "Software"),
|
|
294
|
+
to deal in the Software without restriction, including without
|
|
295
|
+
limitation the rights to use, copy, modify, merge, publish, distribute,
|
|
296
|
+
sublicense, and/or sell copies of the Software, and to permit persons
|
|
297
|
+
to whom the Software is furnished to do so, subject to the following conditions:
|
|
298
|
+
|
|
299
|
+
The above copyright notice and this permission notice shall be included
|
|
300
|
+
in all copies or substantial portions of the Software.
|
|
301
|
+
|
|
302
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
303
|
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
304
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
305
|
+
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
306
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
307
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
308
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## v1.2.2 2026-11-08
|
|
4
|
+
|
|
5
|
+
* Fix array diffs with `use_lcs: false` so that `patch!` can replay them correctly [#102](https://github.com/liufengyun/hashdiff/pull/102) ([@oboxodo](https://github.com/oboxodo))
|
|
6
|
+
* Reduce LCS memory use and improve performance for equal arrays and arrays with common leading or trailing items [#103](https://github.com/liufengyun/hashdiff/pull/103) ([@oboxodo](https://github.com/oboxodo))
|
|
7
|
+
|
|
3
8
|
## v1.2.1 2025-09-06
|
|
4
9
|
|
|
5
10
|
* Use HTTPS for the source in the Gemfile [#101](https://github.com/liufengyun/hashdiff/issues/101) ([@krzysiek1507](https://github.com/krzysiek1507))
|
|
@@ -14,10 +14,7 @@ UTF-16 surrogate pairs in order to be able to generate the whole range of
|
|
|
14
14
|
unicode code points.
|
|
15
15
|
|
|
16
16
|
All strings, that are to be encoded as JSON strings, should be UTF-8 byte
|
|
17
|
-
sequences on the Ruby side.
|
|
18
|
-
encoded, please use the to\_json\_raw\_object method of String (which produces
|
|
19
|
-
an object, that contains a byte array) and decode the result on the receiving
|
|
20
|
-
endpoint.
|
|
17
|
+
sequences on the Ruby side.
|
|
21
18
|
|
|
22
19
|
## Installation
|
|
23
20
|
|
|
@@ -49,8 +46,7 @@ JSON.generate(data)
|
|
|
49
46
|
```
|
|
50
47
|
|
|
51
48
|
You can also use the `pretty_generate` method (which formats the output more
|
|
52
|
-
verbosely and nicely)
|
|
53
|
-
checks generate performs, e. g. nesting deepness checks).
|
|
49
|
+
verbosely and nicely).
|
|
54
50
|
|
|
55
51
|
## Casting non native types
|
|
56
52
|
|
|
@@ -85,7 +81,7 @@ Both of these behavior can be disabled using the `strict: true` option:
|
|
|
85
81
|
|
|
86
82
|
```ruby
|
|
87
83
|
JSON.generate(Object.new, strict: true) # => Object not allowed in JSON (JSON::GeneratorError)
|
|
88
|
-
JSON.generate(Position.new(1, 2)) # => Position not allowed in JSON (JSON::GeneratorError)
|
|
84
|
+
JSON.generate(Position.new(1, 2), strict: true) # => Position not allowed in JSON (JSON::GeneratorError)
|
|
89
85
|
```
|
|
90
86
|
|
|
91
87
|
## JSON::Coder
|
|
@@ -117,13 +113,13 @@ It is also called for objects that do have a JSON equivalent, but are used as Ha
|
|
|
117
113
|
as well as for strings that aren't valid UTF-8:
|
|
118
114
|
|
|
119
115
|
```ruby
|
|
120
|
-
coder = JSON::
|
|
116
|
+
coder = JSON::Coder.new do |object, is_object_key|
|
|
121
117
|
case object
|
|
122
118
|
when String
|
|
123
|
-
if !
|
|
124
|
-
Base64.encode64(
|
|
119
|
+
if !object.valid_encoding? || object.encoding != Encoding::UTF_8
|
|
120
|
+
Base64.encode64(object)
|
|
125
121
|
else
|
|
126
|
-
|
|
122
|
+
object
|
|
127
123
|
end
|
|
128
124
|
else
|
|
129
125
|
object
|
|
@@ -143,84 +139,12 @@ posts_json.map! { |post_json| JSON::Fragment.new(post_json) }
|
|
|
143
139
|
JSON.generate({ posts: posts_json, count: posts_json.count })
|
|
144
140
|
```
|
|
145
141
|
|
|
146
|
-
##
|
|
147
|
-
|
|
148
|
-
> [!CAUTION]
|
|
149
|
-
> You should never use `JSON.unsafe_load` nor `JSON.parse(str, create_additions: true)` to parse untrusted user input,
|
|
150
|
-
> as it can lead to remote code execution vulnerabilities.
|
|
151
|
-
|
|
152
|
-
To create a JSON document from a ruby data structure, you can call
|
|
153
|
-
`JSON.generate` like that:
|
|
154
|
-
|
|
155
|
-
```ruby
|
|
156
|
-
json = JSON.generate [1, 2, {"a"=>3.141}, false, true, nil, 4..10]
|
|
157
|
-
# => "[1,2,{\"a\":3.141},false,true,null,\"4..10\"]"
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
To get back a ruby data structure from a JSON document, you have to call
|
|
161
|
-
JSON.parse on it:
|
|
162
|
-
|
|
163
|
-
```ruby
|
|
164
|
-
JSON.parse json
|
|
165
|
-
# => [1, 2, {"a"=>3.141}, false, true, nil, "4..10"]
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
Note, that the range from the original data structure is a simple
|
|
169
|
-
string now. The reason for this is, that JSON doesn't support ranges
|
|
170
|
-
or arbitrary classes. In this case the json library falls back to call
|
|
171
|
-
`Object#to_json`, which is the same as `#to_s.to_json`.
|
|
172
|
-
|
|
173
|
-
It's possible to add JSON support serialization to arbitrary classes by
|
|
174
|
-
simply implementing a more specialized version of the `#to_json method`, that
|
|
175
|
-
should return a JSON object (a hash converted to JSON with `#to_json`) like
|
|
176
|
-
this (don't forget the `*a` for all the arguments):
|
|
177
|
-
|
|
178
|
-
```ruby
|
|
179
|
-
class Range
|
|
180
|
-
def to_json(*a)
|
|
181
|
-
{
|
|
182
|
-
'json_class' => self.class.name, # = 'Range'
|
|
183
|
-
'data' => [ first, last, exclude_end? ]
|
|
184
|
-
}.to_json(*a)
|
|
185
|
-
end
|
|
186
|
-
end
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
The hash key `json_class` is the class, that will be asked to deserialise the
|
|
190
|
-
JSON representation later. In this case it's `Range`, but any namespace of
|
|
191
|
-
the form `A::B` or `::A::B` will do. All other keys are arbitrary and can be
|
|
192
|
-
used to store the necessary data to configure the object to be deserialised.
|
|
193
|
-
|
|
194
|
-
If the key `json_class` is found in a JSON object, the JSON parser checks
|
|
195
|
-
if the given class responds to the `json_create` class method. If so, it is
|
|
196
|
-
called with the JSON object converted to a Ruby hash. So a range can
|
|
197
|
-
be deserialised by implementing `Range.json_create` like this:
|
|
198
|
-
|
|
199
|
-
```ruby
|
|
200
|
-
class Range
|
|
201
|
-
def self.json_create(o)
|
|
202
|
-
new(*o['data'])
|
|
203
|
-
end
|
|
204
|
-
end
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
Now it possible to serialise/deserialise ranges as well:
|
|
208
|
-
|
|
209
|
-
```ruby
|
|
210
|
-
json = JSON.generate [1, 2, {"a"=>3.141}, false, true, nil, 4..10]
|
|
211
|
-
# => "[1,2,{\"a\":3.141},false,true,null,{\"json_class\":\"Range\",\"data\":[4,10,false]}]"
|
|
212
|
-
JSON.parse json
|
|
213
|
-
# => [1, 2, {"a"=>3.141}, false, true, nil, 4..10]
|
|
214
|
-
json = JSON.generate [1, 2, {"a"=>3.141}, false, true, nil, 4..10]
|
|
215
|
-
# => "[1,2,{\"a\":3.141},false,true,null,{\"json_class\":\"Range\",\"data\":[4,10,false]}]"
|
|
216
|
-
JSON.unsafe_load json
|
|
217
|
-
# => [1, 2, {"a"=>3.141}, false, true, nil, 4..10]
|
|
218
|
-
```
|
|
142
|
+
## Pretty Printing
|
|
219
143
|
|
|
220
144
|
`JSON.generate` always creates the shortest possible string representation of a
|
|
221
145
|
ruby data structure in one line. This is good for data storage or network
|
|
222
146
|
protocols, but not so good for humans to read. Fortunately there's also
|
|
223
|
-
`JSON.pretty_generate`
|
|
147
|
+
`JSON.pretty_generate` that creates a more readable
|
|
224
148
|
output:
|
|
225
149
|
|
|
226
150
|
```ruby
|
|
@@ -245,10 +169,6 @@ output:
|
|
|
245
169
|
]
|
|
246
170
|
```
|
|
247
171
|
|
|
248
|
-
There are also the methods `Kernel#j` for generate, and `Kernel#jj` for
|
|
249
|
-
`pretty_generate` output to the console, that work analogous to Core Ruby's `p` and
|
|
250
|
-
the `pp` library's `pp` methods.
|
|
251
|
-
|
|
252
172
|
## Security
|
|
253
173
|
|
|
254
174
|
When parsing or serializing untrusted input, parser and generator options should never be user controlled.
|
|
@@ -306,5 +226,3 @@ The latest version of this library can be downloaded at
|
|
|
306
226
|
Online Documentation should be located at
|
|
307
227
|
|
|
308
228
|
* https://www.rubydoc.info/gems/json
|
|
309
|
-
|
|
310
|
-
[Ragel]: http://www.colm.net/open-source/ragel/
|
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.25.3 / 2026-11-01
|
|
4
|
+
|
|
5
|
+
### Security
|
|
6
|
+
|
|
7
|
+
* Ensure `Loofah::HTML5::Scrub.allowed_uri?` rejects schemes split by a numeric character reference without a semicolon that ends at a character `allowed_uri?` strips (e.g. `javascript: alert(1)`) or at another character reference (e.g. `javascript:alert(1)`). Character references are now decoded before anything is stripped, as browsers do. See [GHSA-p9wj-w8xq-vjx6](https://github.com/flavorjones/loofah/security/advisories/GHSA-p9wj-w8xq-vjx6). @flavorjones
|
|
8
|
+
* Ensure `Loofah::HTML5::Scrub.allowed_uri?` recognizes the named character reference `/`, which `CGI.unescapeHTML` does not decode and browsers read as `/`, and rejects `data:` URIs that disguise a disallowed mediatype with it (e.g. `data:text/html,<script>alert(1)</script>`). Previously that mediatype was treated as malformed and fell back to the allowed `text/plain`. Only v2.25.2 is affected. See [GHSA-jcff-cj73-4w4f](https://github.com/flavorjones/loofah/security/advisories/GHSA-jcff-cj73-4w4f). @flavorjones
|
|
9
|
+
* Ensure `Loofah::HTML5::Scrub.scrub_css` does not decode CSS escapes in identifiers. Previously, escaped parentheses (e.g. `url\28 http://example.com/\29`) came out as a live `url()`, which could make the viewer's browser fetch an attacker-chosen URL. See [GHSA-m3x9-938q-5767](https://github.com/flavorjones/loofah/security/advisories/GHSA-m3x9-938q-5767). @flavorjones
|
|
10
|
+
* Ensure that `href` and `xlink:href` on SVG `textPath` and `mpath` elements are restricted to local (same-document) references. Previously `SVG_ALLOW_LOCAL_HREF` spelled `textPath` in lowercase, which never matched the name the HTML5 parser assigns inside `<svg>`, and omitted `mpath` entirely. See [GHSA-345x-3rq2-jfrm](https://github.com/flavorjones/loofah/security/advisories/GHSA-345x-3rq2-jfrm). @flavorjones
|
|
11
|
+
* Fix quadratic-time scrubbing of the `href` and `xlink:href` attributes of SVG elements. Only Ruby 3.1 and earlier are affected, because Ruby 3.2 introduced linear-time regexp matching. See [GHSA-mf2j-8f84-cc9q](https://github.com/flavorjones/loofah/security/advisories/GHSA-mf2j-8f84-cc9q). @flavorjones
|
|
12
|
+
* Ensure HTML5 scrubber output does not turn into new markup when a browser parses it again. The fix is in Nokogiri v1.19.5, which escapes `<` and `>` in attribute values as the HTML standard requires, so Loofah now requires Nokogiri >= 1.19.5. See [GHSA-h6v6-rg66-fqj4](https://github.com/flavorjones/loofah/security/advisories/GHSA-h6v6-rg66-fqj4). @flavorjones @hackvertor
|
|
13
|
+
|
|
14
|
+
### Dependencies
|
|
15
|
+
|
|
16
|
+
* Loofah now requires Ruby >= 3.2, the minimum that Nokogiri v1.19.x supports. We don't like dropping Ruby versions in a patch release, and we're sorry for the inconvenience, but it's the only way to make sure everyone gets the security fix in [GHSA-h6v6-rg66-fqj4](https://github.com/flavorjones/loofah/security/advisories/GHSA-h6v6-rg66-fqj4).
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
* `Loofah::HTML5::Scrub.prefixed_attribute_name` and `Loofah::HTML5::Scrub.scrub_attribute_value` expose the html5lib attribute name and value rules, so downstream consumers can apply them instead of carrying their own copy. @flavorjones
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
* Fix `:double_breakpoint`, which left document fragments unchanged despite its documented example. The scrubber now changes only paragraphs inside the scrubbed node, and its run time on a document grows linearly, not quadratically, with the paragraph count. #309 @OskarEichler
|
|
25
|
+
* Fix `:whitewash`, which passed CDATA sections through unchanged. Markup inside a CDATA section in `Loofah.xml_fragment` or `Loofah.xml_document` survived scrubbing and became live elements if the output was later parsed as HTML. The scrubber now escapes CDATA content, as `:strip`, `:prune` and `:escape` already do. On JRuby, every sanitizer now emits escaped CDATA content as a CDATA section, as on CRuby, instead of a text node that double-escaped it. #313 @flavorjones (reported by @MegaManSec)
|
|
26
|
+
* Fix `:double_breakpoint`, which raised `NoMethodError` on a paragraph that ends with a `<br>` after a double break. #314 @flavorjones (reported by @MegaManSec)
|
|
27
|
+
* Fix `Loofah::HTML5::Scrub.allowed_uri?`, which raised `Encoding::CompatibilityError` on a string in an encoding other than UTF-8 and `ArgumentError` on invalid UTF-8. It now transcodes the input to UTF-8 and returns `false` when the input has an invalid byte sequence or no UTF-8 representation. #315 @flavorjones
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## 2.25.2 / 2026-07-15
|
|
31
|
+
|
|
32
|
+
### Security
|
|
33
|
+
|
|
34
|
+
* Ensure `Loofah::HTML5::Scrub.allowed_uri?` recognizes numeric character references without semicolons (e.g. `javascript:alert(1)`), which browsers decode and execute, and rejects schemes split by them. See [GHSA-5qhf-9phg-95m2](https://github.com/flavorjones/loofah/security/advisories/GHSA-5qhf-9phg-95m2). @flavorjones
|
|
35
|
+
* Ensure `Loofah::HTML5::Scrub.allowed_uri?` recognizes the named character references `	` and `
`, which `CGI.unescapeHTML` does not decode and browsers strip from URIs, and rejects schemes split by them (e.g. `java	script:alert(1)`). See [GHSA-8whx-365g-h9vv](https://github.com/flavorjones/loofah/security/advisories/GHSA-8whx-365g-h9vv). @flavorjones
|
|
36
|
+
* Ensure that both `href` and `xlink:href` attributes on SVG elements like `use` are restricted to local (same-document) references. Previously only `xlink:href` was restricted, allowing the SVG 2 `href` attribute to reference external documents. See [GHSA-9wjq-cp2p-hrgf](https://github.com/flavorjones/loofah/security/advisories/GHSA-9wjq-cp2p-hrgf). @flavorjones
|
|
37
|
+
|
|
38
|
+
### Improved
|
|
39
|
+
|
|
40
|
+
* Harden `data:` URI mediatype parsing in `Loofah::HTML5::Scrub.allowed_uri?`. The mediatype is now parsed following the [WHATWG data: URL spec](https://fetch.spec.whatwg.org/#data-urls) and [RFC 2397](https://www.rfc-editor.org/rfc/rfc2397) instead of simply being split on a colon. A `data:` URI with an omitted or malformed mediatype is now treated as `text/plain` and allowed, and one without the required comma is now rejected. #305 @flavorjones
|
|
41
|
+
* Remove `feed` from the default set of allowed protocols. The [feed URI scheme](https://en.wikipedia.org/wiki/Feed_URI_scheme) was never accepted as a standard protocol, and no major browser supports it. Removing it reduces the attack surface particularly for non-browser contexts. #304 @flavorjones
|
|
42
|
+
* Remove a vestigial `p` alternative from `Loofah::HTML5::SafeList::PROTOCOL_SEPARATOR`. This appears to be an ancient typo dating back to pre-extraction Rails circa 2007. #305 @flavorjones
|
|
43
|
+
|
|
44
|
+
|
|
3
45
|
## 2.25.1 / 2026-03-17
|
|
4
46
|
|
|
5
47
|
* Ensure `Loofah::HTML5::Scrub.allowed_uri?` recognizes unescaped whitespace entities and rejects schemas containing them. See [GHSA-46fp-8f5p-pf2m](https://github.com/flavorjones/loofah/security/advisories/GHSA-46fp-8f5p-pf2m). #302 @flavorjones
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
home :: https://minite.st/
|
|
4
4
|
code :: https://github.com/minitest/minitest
|
|
5
5
|
bugs :: https://github.com/minitest/minitest/issues
|
|
6
|
-
rdoc :: https://
|
|
6
|
+
rdoc :: https://minite.st/docs/
|
|
7
7
|
clog :: https://github.com/minitest/minitest/blob/master/History.rdoc
|
|
8
8
|
emacs:: https://github.com/arthurnn/minitest-emacs
|
|
9
9
|
vim :: https://github.com/vim-test/vim-test
|
|
@@ -72,6 +72,12 @@ extract-method refactorings still apply.
|
|
|
72
72
|
* Incredibly small and fast runner, but no bells and whistles.
|
|
73
73
|
* Written by squishy human beings. Software can never be perfect. We will all eventually die.
|
|
74
74
|
|
|
75
|
+
== AI Policy:
|
|
76
|
+
|
|
77
|
+
AI is not allowed. Not in PRs, not in issues... just NO. See {my AI
|
|
78
|
+
policy}[https://zenspider.com/ruby/2026/07/my-ai-policy.html] for more
|
|
79
|
+
details. If it "smells of AI", it will be rejected.
|
|
80
|
+
|
|
75
81
|
== RATIONALE:
|
|
76
82
|
|
|
77
83
|
See design_rationale.rb to see how specs and tests work in minitest.
|
|
@@ -93,7 +99,7 @@ Given that you'd like to test the following class:
|
|
|
93
99
|
=== Unit tests
|
|
94
100
|
|
|
95
101
|
Define your tests as methods beginning with +test_+. Use
|
|
96
|
-
{assertions}[
|
|
102
|
+
{assertions}[Minitest/Assertions.html] to test for results
|
|
97
103
|
or state.
|
|
98
104
|
|
|
99
105
|
require "minitest/autorun"
|
|
@@ -118,7 +124,7 @@ or state.
|
|
|
118
124
|
|
|
119
125
|
=== Specs
|
|
120
126
|
|
|
121
|
-
Use {expectations}[
|
|
127
|
+
Use {expectations}[Minitest/Expectations.html] to check
|
|
122
128
|
results or state. They must be wrapped in a value call (eg +_+).
|
|
123
129
|
|
|
124
130
|
require "minitest/autorun"
|
|
@@ -148,7 +154,7 @@ For matchers support check out:
|
|
|
148
154
|
|
|
149
155
|
=== Benchmarks
|
|
150
156
|
|
|
151
|
-
Add {benchmarks}[
|
|
157
|
+
Add {benchmarks}[Minitest/Benchmark.html] to your tests.
|
|
152
158
|
|
|
153
159
|
# optionally run benchmarks, good for CI-only work!
|
|
154
160
|
require "minitest/benchmark" if ENV["BENCH"]
|
|
@@ -250,12 +256,13 @@ There are a bunch of variables you can supply to rake to modify the run.
|
|
|
250
256
|
|
|
251
257
|
MT_LIB_EXTRAS :: Extra libs to dynamically override/inject for custom runs.
|
|
252
258
|
N :: -n: Tests to run (string or /regexp/).
|
|
259
|
+
I :: -i: Tests to include (alias for N).
|
|
253
260
|
X :: -x: Tests to exclude (string or /regexp/).
|
|
254
261
|
A :: Any extra arguments. Honors shell quoting.
|
|
255
|
-
MT_CPU :: How many threads to use for parallel test runs
|
|
262
|
+
MT_CPU :: How many threads to use for parallel test runs.
|
|
256
263
|
SEED :: -s --seed Sets random seed.
|
|
257
|
-
TESTOPTS :: Deprecated, same as A
|
|
258
|
-
FILTER :: Deprecated, same as A
|
|
264
|
+
TESTOPTS :: Deprecated, same as A.
|
|
265
|
+
FILTER :: Deprecated, same as A.
|
|
259
266
|
|
|
260
267
|
== Writing Extensions
|
|
261
268
|
|
|
@@ -358,9 +365,11 @@ Current versions of ruby: (https://endoflife.date/ruby)
|
|
|
358
365
|
|
|
359
366
|
| ruby | Status | EOL Date |
|
|
360
367
|
|------+---------+------------|
|
|
361
|
-
|
|
|
362
|
-
|
|
|
363
|
-
| 3.
|
|
368
|
+
| 4.1 | (Next) | 2030-03-31 |
|
|
369
|
+
| 4.0 | Current | 2029-03-31 |
|
|
370
|
+
| 3.4 | Maint | 2028-03-31 |
|
|
371
|
+
| 3.3 | Security| 2027-03-31 |
|
|
372
|
+
| 3.2 | EOL | 2026-03-31 |
|
|
364
373
|
| 3.1 | EOL | 2025-03-31 |
|
|
365
374
|
| 3.0 | EOL | 2024-03-31 |
|
|
366
375
|
| 2.7 | EOL | 2023-03-31 |
|
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
2026-10-30 1.8.7
|
|
2
|
+
|
|
3
|
+
* Fix the Java version of the unpacker to never preallocate objects larger than
|
|
4
|
+
the buffered size (similar to the fix for the C unpacker in 1.8.1).
|
|
5
|
+
|
|
6
|
+
2026-10-27 1.8.6
|
|
7
|
+
|
|
8
|
+
* Fix use-after-free when a recursive extension proc rescues, skips or resets.
|
|
9
|
+
* Speed up decoding of oversized integers.
|
|
10
|
+
* Avoid excessive memory allocation from crafted container headers.
|
|
11
|
+
|
|
12
|
+
2026-09-11 1.8.5
|
|
13
|
+
|
|
14
|
+
* Prevent stack depth underflow when skipping from recursive unpacker.
|
|
15
|
+
* Fix `Unpacker#skip_nil` to properly consume the buffer.
|
|
16
|
+
* Fix some small difference in Factory registration of the Java implementation.
|
|
17
|
+
* Fix some Factory/ext_type optimization edge cases.
|
|
18
|
+
|
|
19
|
+
2026-07-28 1.8.4
|
|
20
|
+
|
|
21
|
+
* Fix `MessagePack::Buffer` to stop using already released memory page.
|
|
22
|
+
This could have caused data to leak across buffers when using the MessagePack::Buffer API
|
|
23
|
+
directly.
|
|
24
|
+
|
|
1
25
|
2026-06-10 1.8.3
|
|
2
26
|
|
|
3
27
|
* Fix an integer overflow when parsing maps.
|
|
@@ -6,7 +30,7 @@
|
|
|
6
30
|
|
|
7
31
|
* Fix `Buffer#clear` to properly reset memory chunks before adding them back to the pool.
|
|
8
32
|
This could have caused data to leak across buffers when using the MessagePack::Buffer API
|
|
9
|
-
directly. [CVE-
|
|
33
|
+
directly. [CVE-2026-54522].
|
|
10
34
|
|
|
11
35
|
2026-05-28 1.8.1
|
|
12
36
|
|
|
@@ -29,13 +29,4 @@ Gem::Specification.new do |s|
|
|
|
29
29
|
"documentation_uri" => "https://github.com/msgpack/msgpack/blob/master/spec.md",
|
|
30
30
|
"source_code_uri" => "https://github.com/msgpack/msgpack-ruby"
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
s.add_development_dependency 'bundler'
|
|
34
|
-
s.add_development_dependency 'rake'
|
|
35
|
-
s.add_development_dependency 'rake-compiler', ['>= 1.1.9']
|
|
36
|
-
s.add_development_dependency 'rspec', ['~> 3.3']
|
|
37
|
-
s.add_development_dependency 'ruby_memcheck'
|
|
38
|
-
s.add_development_dependency 'yard'
|
|
39
|
-
s.add_development_dependency 'json'
|
|
40
|
-
s.add_development_dependency 'benchmark-ips', ['~> 2.10.0']
|
|
41
32
|
end
|
|
@@ -179,15 +179,15 @@ MultiJSON tries to have intelligent defaulting. If any supported library is
|
|
|
179
179
|
already loaded, MultiJSON uses it before attempting to load others. When no
|
|
180
180
|
backend is preloaded, MultiJSON walks its preference list and uses the first
|
|
181
181
|
one that loads successfully. The list is split per platform — JRuby's
|
|
182
|
-
available adapter set differs from MRI's
|
|
183
|
-
ranks `json_gem` ahead of `fast_jsonparser`/`oj`/`yajl`
|
|
184
|
-
|
|
185
|
-
table below.
|
|
182
|
+
available adapter set differs from MRI's — but the bundled benchmark suite
|
|
183
|
+
ranks `json_gem` first on every engine: ahead of `fast_jsonparser`/`oj`/`yajl`
|
|
184
|
+
on Ruby 3.4+, and ahead of `jrjackson`/`gson` on JRuby 10. CI re-runs the
|
|
185
|
+
benchmark and fails if the observed ranking diverges from the table below.
|
|
186
186
|
|
|
187
187
|
| rank | MRI / TruffleRuby | JRuby |
|
|
188
188
|
| ---- | ----------------- | --------------- |
|
|
189
|
-
| 1 | The JSON gem |
|
|
190
|
-
| 2 | `fast_jsonparser` |
|
|
189
|
+
| 1 | The JSON gem | The JSON gem |
|
|
190
|
+
| 2 | `fast_jsonparser` | `jrjackson` |
|
|
191
191
|
| 3 | `oj` | `gson` |
|
|
192
192
|
| 4 | `yajl-ruby` | — |
|
|
193
193
|
|