acfs 2.0.0 → 2.2.1
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 +30 -0
- data/README.md +1 -1
- data/acfs.gemspec +3 -1
- data/lib/acfs/global.rb +10 -6
- data/lib/acfs/location.rb +2 -2
- data/lib/acfs/middleware/json.rb +3 -3
- data/lib/acfs/request.rb +5 -3
- data/lib/acfs/resource/attributes.rb +1 -1
- data/lib/acfs/runner.rb +46 -8
- data/lib/acfs/stub.rb +1 -1
- data/lib/acfs/telemetry.rb +19 -0
- data/lib/acfs/version.rb +2 -2
- data/lib/acfs.rb +7 -4
- data/spec/acfs/collection_spec.rb +16 -10
- data/spec/acfs/global_spec.rb +2 -2
- data/spec/acfs/middleware/json_spec.rb +16 -0
- data/spec/acfs/operation_spec.rb +2 -2
- data/spec/acfs/request/callbacks_spec.rb +2 -2
- data/spec/acfs/resource/locatable_spec.rb +5 -11
- data/spec/acfs/resource/query_methods_spec.rb +1 -1
- data/spec/acfs/resource/validation_spec.rb +3 -4
- data/spec/acfs/runner_spec.rb +6 -6
- data/spec/acfs/stub_spec.rb +6 -4
- data/spec/acfs_spec.rb +4 -4
- data/vendor/bundle/ruby/4.0.0/bundler/gems/rubocop-config-2b861962124a/README.md +23 -0
- data/vendor/bundle/ruby/{3.4.0/bundler/gems/rubocop-config-67802c9d1826 → 4.0.0/bundler/gems/rubocop-config-2b861962124a}/rubocop-config.gemspec +11 -11
- data/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.3/CHANGELOG.md +514 -0
- data/vendor/bundle/ruby/{3.4.0/gems/actionpack-8.0.1 → 4.0.0/gems/actionpack-8.1.3}/README.rdoc +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/actionview-8.1.3/CHANGELOG.md +191 -0
- data/vendor/bundle/ruby/{3.4.0/gems/actionview-8.0.1 → 4.0.0/gems/actionview-8.1.3}/README.rdoc +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/activemodel-8.1.3/CHANGELOG.md +68 -0
- data/vendor/bundle/ruby/{3.4.0/gems/activemodel-8.0.1 → 4.0.0/gems/activemodel-8.1.3}/README.rdoc +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/activesupport-8.1.3/CHANGELOG.md +561 -0
- data/vendor/bundle/ruby/{3.4.0/gems/activesupport-8.0.1 → 4.0.0/gems/activesupport-8.1.3}/README.rdoc +1 -1
- data/vendor/bundle/ruby/{3.4.0/gems/addressable-2.8.7 → 4.0.0/gems/addressable-2.9.0}/CHANGELOG.md +71 -46
- data/vendor/bundle/ruby/{3.4.0/gems/addressable-2.8.7 → 4.0.0/gems/addressable-2.9.0}/README.md +6 -6
- data/vendor/bundle/ruby/4.0.0/gems/ast-2.4.3/LICENSE.MIT +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/ast-2.4.3/README.YARD.md +12 -0
- data/vendor/bundle/ruby/{3.4.0/gems/bigdecimal-3.1.9 → 4.0.0/gems/bigdecimal-4.1.2}/bigdecimal.gemspec +6 -1
- data/vendor/bundle/ruby/{3.4.0/gems/concurrent-ruby-1.3.5 → 4.0.0/gems/concurrent-ruby-1.3.7}/CHANGELOG.md +12 -0
- data/vendor/bundle/ruby/{3.4.0/gems/concurrent-ruby-1.3.5 → 4.0.0/gems/concurrent-ruby-1.3.7}/README.md +4 -2
- data/vendor/bundle/ruby/{3.4.0/gems/connection_pool-2.5.0 → 4.0.0/gems/connection_pool-3.0.2}/README.md +49 -34
- data/vendor/bundle/ruby/4.0.0/gems/connection_pool-3.0.2/connection_pool.gemspec +35 -0
- data/vendor/bundle/ruby/4.0.0/gems/diff-lcs-1.6.2/CHANGELOG.md +518 -0
- data/vendor/bundle/ruby/4.0.0/gems/diff-lcs-1.6.2/README.md +92 -0
- data/vendor/bundle/ruby/4.0.0/gems/docile-1.4.1/LICENSE +21 -0
- data/vendor/bundle/ruby/4.0.0/gems/docile-1.4.1/README.md +409 -0
- data/vendor/bundle/ruby/4.0.0/gems/docile-1.4.1/docile.gemspec +36 -0
- data/vendor/bundle/ruby/{3.4.0/gems/drb-2.2.1 → 4.0.0/gems/drb-2.2.3}/drb.gemspec +2 -1
- data/vendor/bundle/ruby/{3.4.0/gems/ethon-0.16.0 → 4.0.0/gems/ethon-0.18.0}/CHANGELOG.md +43 -1
- data/vendor/bundle/ruby/{3.4.0/gems/ethon-0.16.0 → 4.0.0/gems/ethon-0.18.0}/README.md +1 -1
- data/vendor/bundle/ruby/4.0.0/gems/ethon-0.18.0/ethon.gemspec +37 -0
- data/vendor/bundle/ruby/{3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu → 4.0.0/gems/ffi-1.17.4-x86_64-linux-gnu}/CHANGELOG.md +42 -0
- data/vendor/bundle/ruby/{3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu → 4.0.0/gems/ffi-1.17.4-x86_64-linux-gnu}/README.md +1 -0
- data/vendor/bundle/ruby/{3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu → 4.0.0/gems/ffi-1.17.4-x86_64-linux-gnu}/ffi.gemspec +7 -6
- data/vendor/bundle/ruby/{3.4.0/gems/hashdiff-1.1.2 → 4.0.0/gems/hashdiff-1.2.1}/README.md +26 -1
- data/vendor/bundle/ruby/4.0.0/gems/hashdiff-1.2.1/changelog.md +127 -0
- data/vendor/bundle/ruby/{3.4.0/gems/i18n-1.14.6 → 4.0.0/gems/i18n-1.15.2}/README.md +13 -1
- data/vendor/bundle/ruby/{3.4.0/gems/json-2.9.1 → 4.0.0/gems/json-2.19.9}/README.md +117 -2
- data/vendor/bundle/ruby/{3.4.0/gems/json-2.9.1 → 4.0.0/gems/json-2.19.9}/json.gemspec +4 -6
- data/vendor/bundle/ruby/4.0.0/gems/language_server-protocol-3.17.0.5/LICENSE.txt +21 -0
- data/vendor/bundle/ruby/4.0.0/gems/language_server-protocol-3.17.0.5/README.md +88 -0
- data/vendor/bundle/ruby/4.0.0/gems/lint_roller-1.1.0/CHANGELOG.md +15 -0
- data/vendor/bundle/ruby/4.0.0/gems/lint_roller-1.1.0/LICENSE.txt +21 -0
- data/vendor/bundle/ruby/4.0.0/gems/lint_roller-1.1.0/README.md +173 -0
- data/vendor/bundle/ruby/{3.4.0/gems/loofah-2.24.0 → 4.0.0/gems/loofah-2.25.1}/CHANGELOG.md +17 -0
- data/vendor/bundle/ruby/{3.4.0/gems/minitest-5.25.4 → 4.0.0/gems/minitest-6.0.6}/README.rdoc +33 -105
- data/vendor/bundle/ruby/4.0.0/gems/msgpack-1.8.3/ChangeLog +383 -0
- data/vendor/bundle/ruby/4.0.0/gems/msgpack-1.8.3/LICENSE +177 -0
- data/vendor/bundle/ruby/4.0.0/gems/msgpack-1.8.3/README.md +302 -0
- data/vendor/bundle/ruby/4.0.0/gems/msgpack-1.8.3/msgpack.gemspec +41 -0
- data/vendor/bundle/ruby/4.0.0/gems/multi_json-1.21.1/LICENSE.md +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/multi_json-1.21.1/README.md +281 -0
- data/vendor/bundle/ruby/{3.4.0/gems/nokogiri-1.18.1-x86_64-linux-gnu → 4.0.0/gems/nokogiri-1.19.4-x86_64-linux-gnu}/LICENSE-DEPENDENCIES.md +187 -0
- data/vendor/bundle/ruby/{3.4.0/gems/nokogiri-1.18.1-x86_64-linux-gnu → 4.0.0/gems/nokogiri-1.19.4-x86_64-linux-gnu}/README.md +18 -3
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-api-1.10.0/CHANGELOG.md +219 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-api-1.10.0/LICENSE +201 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-api-1.10.0/README.md +68 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-common-0.25.0/CHANGELOG.md +110 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-common-0.25.0/LICENSE +201 -0
- data/vendor/bundle/ruby/4.0.0/gems/opentelemetry-common-0.25.0/README.md +62 -0
- data/vendor/bundle/ruby/4.0.0/gems/parallel-2.1.0/MIT-LICENSE.txt +20 -0
- data/vendor/bundle/ruby/{3.4.0/gems/rspec-collection_matchers-1.2.1 → 4.0.0/gems/parser-3.3.11.1}/LICENSE.txt +4 -5
- data/vendor/bundle/ruby/4.0.0/gems/parser-3.3.11.1/parser.gemspec +43 -0
- data/vendor/bundle/ruby/4.0.0/gems/prism-1.9.0/CHANGELOG.md +786 -0
- data/vendor/bundle/ruby/4.0.0/gems/prism-1.9.0/LICENSE.md +7 -0
- data/vendor/bundle/ruby/4.0.0/gems/prism-1.9.0/README.md +143 -0
- data/vendor/bundle/ruby/4.0.0/gems/prism-1.9.0/prism.gemspec +172 -0
- data/vendor/bundle/ruby/4.0.0/gems/public_suffix-7.0.5/CHANGELOG.md +649 -0
- data/vendor/bundle/ruby/{3.4.0/gems/public_suffix-6.0.1 → 4.0.0/gems/public_suffix-7.0.5}/LICENSE.txt +1 -1
- data/vendor/bundle/ruby/{3.4.0/gems/public_suffix-6.0.1 → 4.0.0/gems/public_suffix-7.0.5}/README.md +38 -29
- data/vendor/bundle/ruby/{3.4.0/gems/rack-3.1.8 → 4.0.0/gems/rack-3.2.6}/CHANGELOG.md +351 -3
- data/vendor/bundle/ruby/{3.4.0/gems/rack-3.1.8 → 4.0.0/gems/rack-3.2.6}/README.md +76 -20
- data/vendor/bundle/ruby/{3.4.0/gems/rails-dom-testing-2.2.0 → 4.0.0/gems/rails-dom-testing-2.3.0}/README.md +3 -0
- data/vendor/bundle/ruby/{3.4.0/gems/rails-html-sanitizer-1.6.2 → 4.0.0/gems/rails-html-sanitizer-1.7.0}/CHANGELOG.md +10 -0
- data/vendor/bundle/ruby/4.0.0/gems/rainbow-3.1.1/Changelog.md +101 -0
- data/vendor/bundle/ruby/4.0.0/gems/rainbow-3.1.1/LICENSE +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/rainbow-3.1.1/README.markdown +227 -0
- data/vendor/bundle/ruby/{3.4.0/gems/rake-13.2.1 → 4.0.0/gems/rake-13.4.2}/README.rdoc +5 -5
- data/vendor/bundle/ruby/{3.4.0/gems/rake-13.2.1 → 4.0.0/gems/rake-13.4.2}/rake.gemspec +3 -2
- data/vendor/bundle/ruby/{3.4.0/gems/rake-release-1.3.0 → 4.0.0/gems/rake-release-1.4.0}/rake-release.gemspec +4 -4
- data/vendor/bundle/ruby/4.0.0/gems/regexp_parser-2.12.0/LICENSE +22 -0
- data/vendor/bundle/ruby/4.0.0/gems/regexp_parser-2.12.0/regexp_parser.gemspec +36 -0
- data/vendor/bundle/ruby/{3.4.0/gems/rspec-core-3.13.2 → 4.0.0/gems/rspec-core-3.13.6}/Changelog.md +293 -261
- data/vendor/bundle/ruby/{3.4.0/gems/rspec-expectations-3.13.3 → 4.0.0/gems/rspec-expectations-3.13.5}/Changelog.md +154 -140
- data/vendor/bundle/ruby/{3.4.0/gems/rspec-mocks-3.13.2 → 4.0.0/gems/rspec-mocks-3.13.8}/Changelog.md +181 -129
- data/vendor/bundle/ruby/{3.4.0/gems/rspec-support-3.13.2 → 4.0.0/gems/rspec-support-3.13.7}/Changelog.md +101 -65
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-1.88.0/LICENSE.txt +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-1.88.0/README.md +255 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-ast-1.49.1/LICENSE.txt +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-ast-1.49.1/README.md +54 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-capybara-2.23.0/CHANGELOG.md +116 -0
- data/vendor/bundle/ruby/{3.4.0/gems/diff-lcs-1.5.1/License.md → 4.0.0/gems/rubocop-capybara-2.23.0/MIT-LICENSE.md} +2 -22
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-capybara-2.23.0/README.md +91 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-factory_bot-2.28.0/CHANGELOG.md +135 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-factory_bot-2.28.0/MIT-LICENSE.md +21 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-factory_bot-2.28.0/README.md +91 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-performance-1.26.1/LICENSE.txt +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-performance-1.26.1/README.md +100 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-rspec-3.10.2/CHANGELOG.md +1136 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-rspec-3.10.2/MIT-LICENSE.md +21 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-rspec-3.10.2/README.md +112 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-rspec_rails-2.32.0/CHANGELOG.md +98 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-rspec_rails-2.32.0/MIT-LICENSE.md +21 -0
- data/vendor/bundle/ruby/4.0.0/gems/rubocop-rspec_rails-2.32.0/README.md +93 -0
- data/vendor/bundle/ruby/4.0.0/gems/ruby-progressbar-1.13.0/LICENSE.txt +19 -0
- data/vendor/bundle/ruby/4.0.0/gems/ruby-progressbar-1.13.0/README.md +131 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-0.22.0/CHANGELOG.md +191 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-0.22.0/LICENSE +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-0.22.0/README.md +974 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-cobertura-3.2.0/LICENSE +202 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-cobertura-3.2.0/README.md +65 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-cobertura-3.2.0/simplecov-cobertura.gemspec +29 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-html-0.13.2/CHANGELOG.md +114 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-html-0.13.2/LICENSE +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov-html-0.13.2/README.md +30 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov_json_formatter-0.1.4/CHANGELOG.md +13 -0
- data/vendor/bundle/ruby/4.0.0/gems/simplecov_json_formatter-0.1.4/README.md +29 -0
- data/vendor/bundle/ruby/{3.4.0/gems/thor-1.3.2 → 4.0.0/gems/thor-1.5.0}/README.md +1 -2
- data/vendor/bundle/ruby/{3.4.0/gems/thor-1.3.2 → 4.0.0/gems/thor-1.5.0}/thor.gemspec +3 -3
- data/vendor/bundle/ruby/{3.4.0/gems/typhoeus-1.4.1 → 4.0.0/gems/typhoeus-1.6.0}/CHANGELOG.md +56 -1
- data/vendor/bundle/ruby/{3.4.0/gems/typhoeus-1.4.1 → 4.0.0/gems/typhoeus-1.6.0}/README.md +2 -2
- data/vendor/bundle/ruby/{3.4.0/gems/typhoeus-1.4.1 → 4.0.0/gems/typhoeus-1.6.0}/typhoeus.gemspec +14 -4
- data/vendor/bundle/ruby/4.0.0/gems/unicode-display_width-3.2.0/CHANGELOG.md +299 -0
- data/vendor/bundle/ruby/4.0.0/gems/unicode-display_width-3.2.0/MIT-LICENSE.txt +22 -0
- data/vendor/bundle/ruby/4.0.0/gems/unicode-display_width-3.2.0/README.md +194 -0
- data/vendor/bundle/ruby/4.0.0/gems/unicode-emoji-4.2.0/CHANGELOG.md +202 -0
- data/vendor/bundle/ruby/4.0.0/gems/unicode-emoji-4.2.0/MIT-LICENSE.txt +20 -0
- data/vendor/bundle/ruby/4.0.0/gems/unicode-emoji-4.2.0/README.md +205 -0
- data/vendor/bundle/ruby/4.0.0/gems/unicode-emoji-4.2.0/unicode-emoji.gemspec +22 -0
- data/vendor/bundle/ruby/{3.4.0/gems/uri-1.0.2 → 4.0.0/gems/uri-1.1.1}/README.md +1 -1
- data/vendor/bundle/ruby/{3.4.0/gems/webmock-3.24.0 → 4.0.0/gems/webmock-3.26.2}/CHANGELOG.md +44 -0
- data/vendor/bundle/ruby/{3.4.0/gems/webmock-3.24.0 → 4.0.0/gems/webmock-3.26.2}/README.md +7 -0
- data/vendor/bundle/ruby/{3.4.0/specifications/actionpack-8.0.1.gemspec → 4.0.0/specifications/actionpack-8.1.3.gemspec} +9 -9
- data/vendor/bundle/ruby/{3.4.0/specifications/actionview-8.0.1.gemspec → 4.0.0/specifications/actionview-8.1.3.gemspec} +9 -9
- data/vendor/bundle/ruby/{3.4.0/specifications/activemodel-8.0.1.gemspec → 4.0.0/specifications/activemodel-8.1.3.gemspec} +7 -7
- data/vendor/bundle/ruby/{3.4.0/specifications/activesupport-8.0.1.gemspec → 4.0.0/specifications/activesupport-8.1.3.gemspec} +7 -7
- data/vendor/bundle/ruby/{3.4.0/specifications/addressable-2.8.7.gemspec → 4.0.0/specifications/addressable-2.9.0.gemspec} +7 -8
- data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/specifications/appraisal-2.5.0.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/ast-2.4.3.gemspec +29 -0
- data/vendor/bundle/ruby/{3.4.0/specifications/base64-0.2.0.gemspec → 4.0.0/specifications/base64-0.3.0.gemspec} +6 -6
- data/vendor/bundle/ruby/{3.4.0/specifications/bigdecimal-3.1.9.gemspec → 4.0.0/specifications/bigdecimal-4.1.2.gemspec} +6 -6
- data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/specifications/builder-3.3.0.gemspec +1 -1
- data/vendor/bundle/ruby/{3.4.0/specifications/concurrent-ruby-1.3.5.gemspec → 4.0.0/specifications/concurrent-ruby-1.3.7.gemspec} +6 -6
- data/vendor/bundle/ruby/{3.4.0/specifications/connection_pool-2.5.0.gemspec → 4.0.0/specifications/connection_pool-3.0.2.gemspec} +8 -8
- data/vendor/bundle/ruby/{3.4.0/specifications/crack-1.0.0.gemspec → 4.0.0/specifications/crack-1.0.1.gemspec} +4 -4
- data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/specifications/crass-1.0.6.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/diff-lcs-1.6.2.gemspec +35 -0
- data/vendor/bundle/ruby/4.0.0/specifications/docile-1.4.1.gemspec +22 -0
- data/vendor/bundle/ruby/{3.4.0/specifications/drb-2.2.1.gemspec → 4.0.0/specifications/drb-2.2.3.gemspec} +6 -6
- data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/specifications/erubi-1.13.1.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/ethon-0.18.0.gemspec +27 -0
- data/vendor/bundle/ruby/{3.4.0/specifications/ffi-1.17.1-x86_64-linux-gnu.gemspec → 4.0.0/specifications/ffi-1.17.4-x86_64-linux-gnu.gemspec} +7 -14
- data/vendor/bundle/ruby/{3.4.0/specifications/hashdiff-1.1.2.gemspec → 4.0.0/specifications/hashdiff-1.2.1.gemspec} +4 -4
- data/vendor/bundle/ruby/{3.4.0/specifications/i18n-1.14.6.gemspec → 4.0.0/specifications/i18n-1.15.2.gemspec} +6 -7
- data/vendor/bundle/ruby/{3.4.0/specifications/json-2.9.1.gemspec → 4.0.0/specifications/json-2.19.9.gemspec} +0 -0
- data/vendor/bundle/ruby/4.0.0/specifications/language_server-protocol-3.17.0.5.gemspec +31 -0
- data/vendor/bundle/ruby/4.0.0/specifications/lint_roller-1.1.0.gemspec +22 -0
- data/vendor/bundle/ruby/{3.4.0/specifications/logger-1.6.5.gemspec → 4.0.0/specifications/logger-1.7.0.gemspec} +4 -4
- data/vendor/bundle/ruby/{3.4.0/specifications/loofah-2.24.0.gemspec → 4.0.0/specifications/loofah-2.25.1.gemspec} +5 -5
- data/vendor/bundle/ruby/4.0.0/specifications/minitest-6.0.6.gemspec +35 -0
- data/vendor/bundle/ruby/4.0.0/specifications/msgpack-1.8.3.gemspec +36 -0
- data/vendor/bundle/ruby/4.0.0/specifications/multi_json-1.21.1.gemspec +22 -0
- data/vendor/bundle/ruby/{3.4.0/specifications/nokogiri-1.18.1-x86_64-linux-gnu.gemspec → 4.0.0/specifications/nokogiri-1.19.4-x86_64-linux-gnu.gemspec} +7 -7
- data/vendor/bundle/ruby/4.0.0/specifications/opentelemetry-api-1.10.0.gemspec +35 -0
- data/vendor/bundle/ruby/4.0.0/specifications/opentelemetry-common-0.25.0.gemspec +33 -0
- data/vendor/bundle/ruby/4.0.0/specifications/parallel-2.1.0.gemspec +21 -0
- data/vendor/bundle/ruby/4.0.0/specifications/parser-3.3.11.1.gemspec +37 -0
- data/vendor/bundle/ruby/4.0.0/specifications/prism-1.9.0.gemspec +24 -0
- data/vendor/bundle/ruby/{3.4.0/specifications/public_suffix-6.0.1.gemspec → 4.0.0/specifications/public_suffix-7.0.5.gemspec} +7 -7
- data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/specifications/racc-1.8.1.gemspec +1 -1
- data/vendor/bundle/ruby/{3.4.0/specifications/rack-3.1.8.gemspec → 4.0.0/specifications/rack-3.2.6.gemspec} +7 -7
- data/vendor/bundle/ruby/{3.4.0/specifications/rack-session-2.1.0.gemspec → 4.0.0/specifications/rack-session-2.1.2.gemspec} +5 -5
- data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/specifications/rack-test-2.2.0.gemspec +1 -1
- data/vendor/bundle/ruby/{3.4.0/specifications/rails-dom-testing-2.2.0.gemspec → 4.0.0/specifications/rails-dom-testing-2.3.0.gemspec} +5 -5
- data/vendor/bundle/ruby/{3.4.0/specifications/rails-html-sanitizer-1.6.2.gemspec → 4.0.0/specifications/rails-html-sanitizer-1.7.0.gemspec} +7 -7
- data/vendor/bundle/ruby/4.0.0/specifications/rainbow-3.1.1.gemspec +25 -0
- data/vendor/bundle/ruby/{3.4.0/specifications/rake-13.2.1.gemspec → 4.0.0/specifications/rake-13.4.2.gemspec} +6 -6
- data/vendor/bundle/ruby/{3.4.0/specifications/rake-release-1.3.0.gemspec → 4.0.0/specifications/rake-release-1.4.0.gemspec} +7 -7
- data/vendor/bundle/ruby/4.0.0/specifications/regexp_parser-2.12.0.gemspec +22 -0
- data/vendor/bundle/ruby/{3.4.0/specifications/rexml-3.4.0.gemspec → 4.0.0/specifications/rexml-3.4.4.gemspec} +6 -6
- data/vendor/bundle/ruby/{3.4.0/specifications/rspec-3.13.0.gemspec → 4.0.0/specifications/rspec-3.13.2.gemspec} +9 -9
- data/vendor/bundle/ruby/4.0.0/specifications/rspec-core-3.13.6.gemspec +31 -0
- data/vendor/bundle/ruby/4.0.0/specifications/rspec-expectations-3.13.5.gemspec +29 -0
- data/vendor/bundle/ruby/4.0.0/specifications/rspec-mocks-3.13.8.gemspec +29 -0
- data/vendor/bundle/ruby/{3.4.0/specifications/rspec-support-3.13.2.gemspec → 4.0.0/specifications/rspec-support-3.13.7.gemspec} +9 -9
- data/vendor/bundle/ruby/4.0.0/specifications/rubocop-1.88.0.gemspec +39 -0
- data/vendor/bundle/ruby/4.0.0/specifications/rubocop-ast-1.49.1.gemspec +29 -0
- data/vendor/bundle/ruby/4.0.0/specifications/rubocop-capybara-2.23.0.gemspec +28 -0
- data/vendor/bundle/ruby/4.0.0/specifications/rubocop-factory_bot-2.28.0.gemspec +28 -0
- data/vendor/bundle/ruby/4.0.0/specifications/rubocop-performance-1.26.1.gemspec +30 -0
- data/vendor/bundle/ruby/4.0.0/specifications/rubocop-rspec-3.10.2.gemspec +30 -0
- data/vendor/bundle/ruby/4.0.0/specifications/rubocop-rspec_rails-2.32.0.gemspec +29 -0
- data/vendor/bundle/ruby/4.0.0/specifications/ruby-progressbar-1.13.0.gemspec +29 -0
- data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/specifications/securerandom-0.4.1.gemspec +1 -1
- data/vendor/bundle/ruby/4.0.0/specifications/simplecov-0.22.0.gemspec +28 -0
- data/vendor/bundle/ruby/4.0.0/specifications/simplecov-cobertura-3.2.0.gemspec +29 -0
- data/vendor/bundle/ruby/4.0.0/specifications/simplecov-html-0.13.2.gemspec +22 -0
- data/vendor/bundle/ruby/4.0.0/specifications/simplecov_json_formatter-0.1.4.gemspec +21 -0
- data/vendor/bundle/ruby/{3.4.0/specifications/thor-1.3.2.gemspec → 4.0.0/specifications/thor-1.5.0.gemspec} +8 -8
- data/vendor/bundle/ruby/4.0.0/specifications/typhoeus-1.6.0.gemspec +26 -0
- data/vendor/bundle/ruby/{3.4.0 → 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 +30 -0
- data/vendor/bundle/ruby/4.0.0/specifications/unicode-emoji-4.2.0.gemspec +22 -0
- data/vendor/bundle/ruby/{3.4.0/specifications/uri-1.0.2.gemspec → 4.0.0/specifications/uri-1.1.1.gemspec} +5 -5
- data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/specifications/useragent-0.16.11.gemspec +1 -1
- data/vendor/bundle/ruby/{3.4.0/specifications/webmock-3.24.0.gemspec → 4.0.0/specifications/webmock-3.26.2.gemspec} +7 -8
- metadata +304 -196
- data/vendor/bundle/ruby/3.4.0/bundler/gems/rubocop-config-67802c9d1826/README.md +0 -23
- data/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.1/CHANGELOG.md +0 -205
- data/vendor/bundle/ruby/3.4.0/gems/actionview-8.0.1/CHANGELOG.md +0 -67
- data/vendor/bundle/ruby/3.4.0/gems/activemodel-8.0.1/CHANGELOG.md +0 -110
- data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.1/CHANGELOG.md +0 -157
- data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/addressable.gemspec +0 -28
- data/vendor/bundle/ruby/3.4.0/gems/benchmark-0.4.0/README.md +0 -138
- data/vendor/bundle/ruby/3.4.0/gems/benchmark-0.4.0/benchmark.gemspec +0 -32
- data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.0/connection_pool.gemspec +0 -24
- data/vendor/bundle/ruby/3.4.0/gems/diff-lcs-1.5.1/README.rdoc +0 -84
- data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/ethon.gemspec +0 -26
- data/vendor/bundle/ruby/3.4.0/gems/hashdiff-1.1.2/changelog.md +0 -119
- data/vendor/bundle/ruby/3.4.0/gems/logger-1.6.5/logger.gemspec +0 -28
- data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/CHANGELOG.md +0 -275
- data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/LICENSE.md +0 -20
- data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/README.md +0 -121
- data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.1/CHANGELOG.md +0 -491
- data/vendor/bundle/ruby/3.4.0/gems/rexml-3.4.0/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/Changelog.md +0 -68
- data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/README.md +0 -76
- data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/rspec-collection_matchers.gemspec +0 -33
- data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/Changelog.md +0 -73
- data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/LICENSE.txt +0 -27
- data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/README.md +0 -104
- data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/rspec-its.gemspec +0 -31
- data/vendor/bundle/ruby/3.4.0/specifications/benchmark-0.4.0.gemspec +0 -23
- data/vendor/bundle/ruby/3.4.0/specifications/diff-lcs-1.5.1.gemspec +0 -37
- data/vendor/bundle/ruby/3.4.0/specifications/ethon-0.16.0.gemspec +0 -24
- data/vendor/bundle/ruby/3.4.0/specifications/minitest-5.25.4.gemspec +0 -31
- data/vendor/bundle/ruby/3.4.0/specifications/multi_json-1.15.0.gemspec +0 -26
- data/vendor/bundle/ruby/3.4.0/specifications/rspec-collection_matchers-1.2.1.gemspec +0 -27
- data/vendor/bundle/ruby/3.4.0/specifications/rspec-core-3.13.2.gemspec +0 -39
- data/vendor/bundle/ruby/3.4.0/specifications/rspec-expectations-3.13.3.gemspec +0 -33
- data/vendor/bundle/ruby/3.4.0/specifications/rspec-its-2.0.0.gemspec +0 -27
- data/vendor/bundle/ruby/3.4.0/specifications/rspec-mocks-3.13.2.gemspec +0 -33
- data/vendor/bundle/ruby/3.4.0/specifications/typhoeus-1.4.1.gemspec +0 -24
- /data/vendor/bundle/ruby/{3.4.0/bundler/gems/rubocop-config-67802c9d1826 → 4.0.0/bundler/gems/rubocop-config-2b861962124a}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/actionpack-8.0.1 → 4.0.0/gems/actionpack-8.1.3}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/actionview-8.0.1 → 4.0.0/gems/actionview-8.1.3}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/activemodel-8.0.1 → 4.0.0/gems/activemodel-8.1.3}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/activesupport-8.0.1 → 4.0.0/gems/activesupport-8.1.3}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/addressable-2.8.7 → 4.0.0/gems/addressable-2.9.0}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/appraisal-2.5.0/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/appraisal-2.5.0/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/appraisal-2.5.0/appraisal.gemspec +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/base64-0.2.0 → 4.0.0/gems/base64-0.3.0}/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/bigdecimal-3.1.9 → 4.0.0/gems/bigdecimal-4.1.2}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/builder-3.3.0/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/builder-3.3.0/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/builder-3.3.0/builder.gemspec +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/concurrent-ruby-1.3.5 → 4.0.0/gems/concurrent-ruby-1.3.7}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/connection_pool-2.5.0 → 4.0.0/gems/connection_pool-3.0.2}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/crack-1.0.0 → 4.0.0/gems/crack-1.0.1}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/crack-1.0.0 → 4.0.0/gems/crack-1.0.1}/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/crass-1.0.6/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/crass-1.0.6/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/crass-1.0.6/crass.gemspec +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/base64-0.2.0 → 4.0.0/gems/drb-2.2.3}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/erubi-1.13.1/CHANGELOG +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/erubi-1.13.1/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/erubi-1.13.1/README.rdoc +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/ethon-0.16.0 → 4.0.0/gems/ethon-0.18.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu → 4.0.0/gems/ffi-1.17.4-x86_64-linux-gnu}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu → 4.0.0/gems/ffi-1.17.4-x86_64-linux-gnu}/LICENSE.SPECS +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/hashdiff-1.1.2 → 4.0.0/gems/hashdiff-1.2.1}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/hashdiff-1.1.2 → 4.0.0/gems/hashdiff-1.2.1}/hashdiff.gemspec +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/i18n-1.14.6 → 4.0.0/gems/i18n-1.15.2}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/logger-1.6.5 → 4.0.0/gems/logger-1.7.0}/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/loofah-2.24.0 → 4.0.0/gems/loofah-2.25.1}/MIT-LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/loofah-2.24.0 → 4.0.0/gems/loofah-2.25.1}/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/nokogiri-1.18.1-x86_64-linux-gnu → 4.0.0/gems/nokogiri-1.19.4-x86_64-linux-gnu}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/racc-1.8.1/ChangeLog +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/racc-1.8.1/README.ja.rdoc +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/racc-1.8.1/README.rdoc +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rack-3.1.8 → 4.0.0/gems/rack-3.2.6}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rack-session-2.1.0 → 4.0.0/gems/rack-session-2.1.2}/license.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rack-session-2.1.0 → 4.0.0/gems/rack-session-2.1.2}/readme.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/rack-test-2.2.0/MIT-LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/rack-test-2.2.0/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rails-dom-testing-2.2.0 → 4.0.0/gems/rails-dom-testing-2.3.0}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rails-html-sanitizer-1.6.2 → 4.0.0/gems/rails-html-sanitizer-1.7.0}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rails-html-sanitizer-1.6.2 → 4.0.0/gems/rails-html-sanitizer-1.7.0}/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rake-13.2.1 → 4.0.0/gems/rake-13.4.2}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rake-release-1.3.0 → 4.0.0/gems/rake-release-1.4.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rake-release-1.3.0 → 4.0.0/gems/rake-release-1.4.0}/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/drb-2.2.1 → 4.0.0/gems/rexml-3.4.4}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rexml-3.4.0 → 4.0.0/gems/rexml-3.4.4}/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rspec-3.13.0 → 4.0.0/gems/rspec-3.13.2}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rspec-3.13.0 → 4.0.0/gems/rspec-3.13.2}/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rspec-core-3.13.2 → 4.0.0/gems/rspec-core-3.13.6}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rspec-core-3.13.2 → 4.0.0/gems/rspec-core-3.13.6}/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rspec-expectations-3.13.3 → 4.0.0/gems/rspec-expectations-3.13.5}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rspec-expectations-3.13.3 → 4.0.0/gems/rspec-expectations-3.13.5}/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rspec-mocks-3.13.2 → 4.0.0/gems/rspec-mocks-3.13.8}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rspec-mocks-3.13.2 → 4.0.0/gems/rspec-mocks-3.13.8}/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rspec-support-3.13.2 → 4.0.0/gems/rspec-support-3.13.7}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/rspec-support-3.13.2 → 4.0.0/gems/rspec-support-3.13.7}/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/securerandom-0.4.1/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/thor-1.3.2 → 4.0.0/gems/thor-1.5.0}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/typhoeus-1.4.1 → 4.0.0/gems/typhoeus-1.6.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/tzinfo-2.0.6/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/tzinfo-2.0.6/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/useragent-0.16.11/LICENSE +0 -0
- /data/vendor/bundle/ruby/{3.4.0 → 4.0.0}/gems/useragent-0.16.11/README.md +0 -0
- /data/vendor/bundle/ruby/{3.4.0/gems/webmock-3.24.0 → 4.0.0/gems/webmock-3.26.2}/LICENSE +0 -0
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
# Benchmark
|
|
2
|
-
|
|
3
|
-
The Benchmark module provides methods for benchmarking Ruby code, giving detailed reports on the time taken for each task.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
Add this line to your application's Gemfile:
|
|
8
|
-
|
|
9
|
-
```ruby
|
|
10
|
-
gem 'benchmark'
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
And then execute:
|
|
14
|
-
|
|
15
|
-
$ bundle
|
|
16
|
-
|
|
17
|
-
Or install it yourself as:
|
|
18
|
-
|
|
19
|
-
$ gem install benchmark
|
|
20
|
-
|
|
21
|
-
## Usage
|
|
22
|
-
|
|
23
|
-
The Benchmark module provides methods to measure and report the time used to execute Ruby code.
|
|
24
|
-
|
|
25
|
-
Measure the time to construct the string given by the expression <code>"a"*1_000_000_000</code>:
|
|
26
|
-
|
|
27
|
-
```ruby
|
|
28
|
-
require 'benchmark'
|
|
29
|
-
puts Benchmark.measure { "a"*1_000_000_000 }
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
On my machine (OSX 10.8.3 on i5 1.7 GHz) this generates:
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
0.350000 0.400000 0.750000 ( 0.835234)
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
This report shows the user CPU time, system CPU time, the sum of the user and system CPU times, and the elapsed real time. The unit of time is seconds.
|
|
39
|
-
|
|
40
|
-
Do some experiments sequentially using the #bm method:
|
|
41
|
-
|
|
42
|
-
```ruby
|
|
43
|
-
require 'benchmark'
|
|
44
|
-
n = 5000000
|
|
45
|
-
Benchmark.bm do |x|
|
|
46
|
-
x.report { for i in 1..n; a = "1"; end }
|
|
47
|
-
x.report { n.times do ; a = "1"; end }
|
|
48
|
-
x.report { 1.upto(n) do ; a = "1"; end }
|
|
49
|
-
end
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
The result:
|
|
53
|
-
|
|
54
|
-
```
|
|
55
|
-
user system total real
|
|
56
|
-
1.010000 0.000000 1.010000 ( 1.014479)
|
|
57
|
-
1.000000 0.000000 1.000000 ( 0.998261)
|
|
58
|
-
0.980000 0.000000 0.980000 ( 0.981335)
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Continuing the previous example, put a label in each report:
|
|
62
|
-
|
|
63
|
-
```ruby
|
|
64
|
-
require 'benchmark'
|
|
65
|
-
n = 5000000
|
|
66
|
-
Benchmark.bm(7) do |x|
|
|
67
|
-
x.report("for:") { for i in 1..n; a = "1"; end }
|
|
68
|
-
x.report("times:") { n.times do ; a = "1"; end }
|
|
69
|
-
x.report("upto:") { 1.upto(n) do ; a = "1"; end }
|
|
70
|
-
end
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
The result:
|
|
74
|
-
|
|
75
|
-
```
|
|
76
|
-
user system total real
|
|
77
|
-
for: 1.010000 0.000000 1.010000 ( 1.015688)
|
|
78
|
-
times: 1.000000 0.000000 1.000000 ( 1.003611)
|
|
79
|
-
upto: 1.030000 0.000000 1.030000 ( 1.028098)
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
The times for some benchmarks depend on the order in which items are run. These differences are due to the cost of memory allocation and garbage collection. To avoid these discrepancies, the #bmbm method is provided. For example, to compare ways to sort an array of floats:
|
|
83
|
-
|
|
84
|
-
```ruby
|
|
85
|
-
require 'benchmark'
|
|
86
|
-
array = (1..1000000).map { rand }
|
|
87
|
-
Benchmark.bmbm do |x|
|
|
88
|
-
x.report("sort!") { array.dup.sort! }
|
|
89
|
-
x.report("sort") { array.dup.sort }
|
|
90
|
-
end
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
The result:
|
|
94
|
-
|
|
95
|
-
```
|
|
96
|
-
Rehearsal -----------------------------------------
|
|
97
|
-
sort! 1.490000 0.010000 1.500000 ( 1.490520)
|
|
98
|
-
sort 1.460000 0.000000 1.460000 ( 1.463025)
|
|
99
|
-
-------------------------------- total: 2.960000sec
|
|
100
|
-
user system total real
|
|
101
|
-
sort! 1.460000 0.000000 1.460000 ( 1.460465)
|
|
102
|
-
sort 1.450000 0.010000 1.460000 ( 1.448327)
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
Report statistics of sequential experiments with unique labels, using the #benchmark method:
|
|
106
|
-
|
|
107
|
-
```ruby
|
|
108
|
-
require 'benchmark'
|
|
109
|
-
include Benchmark # we need the CAPTION and FORMAT constants
|
|
110
|
-
n = 5000000
|
|
111
|
-
Benchmark.benchmark(CAPTION, 7, FORMAT, ">total:", ">avg:") do |x|
|
|
112
|
-
tf = x.report("for:") { for i in 1..n; a = "1"; end }
|
|
113
|
-
tt = x.report("times:") { n.times do ; a = "1"; end }
|
|
114
|
-
tu = x.report("upto:") { 1.upto(n) do ; a = "1"; end }
|
|
115
|
-
[tf+tt+tu, (tf+tt+tu)/3]
|
|
116
|
-
end
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
The result:
|
|
120
|
-
|
|
121
|
-
```
|
|
122
|
-
user system total real
|
|
123
|
-
for: 0.950000 0.000000 0.950000 ( 0.952039)
|
|
124
|
-
times: 0.980000 0.000000 0.980000 ( 0.984938)
|
|
125
|
-
upto: 0.950000 0.000000 0.950000 ( 0.946787)
|
|
126
|
-
>total: 2.880000 0.000000 2.880000 ( 2.883764)
|
|
127
|
-
>avg: 0.960000 0.000000 0.960000 ( 0.961255)
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
## Development
|
|
131
|
-
|
|
132
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
133
|
-
|
|
134
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
135
|
-
|
|
136
|
-
## Contributing
|
|
137
|
-
|
|
138
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/benchmark.
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
name = File.basename(__FILE__, ".gemspec")
|
|
2
|
-
version = ["lib", Array.new(name.count("-")+1, ".").join("/")].find do |dir|
|
|
3
|
-
break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
|
|
4
|
-
/^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
|
|
5
|
-
end rescue nil
|
|
6
|
-
end
|
|
7
|
-
|
|
8
|
-
Gem::Specification.new do |spec|
|
|
9
|
-
spec.name = name
|
|
10
|
-
spec.version = version
|
|
11
|
-
spec.authors = ["Yukihiro Matsumoto"]
|
|
12
|
-
spec.email = ["matz@ruby-lang.org"]
|
|
13
|
-
|
|
14
|
-
spec.summary = %q{a performance benchmarking library}
|
|
15
|
-
spec.description = spec.summary
|
|
16
|
-
spec.homepage = "https://github.com/ruby/benchmark"
|
|
17
|
-
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
|
18
|
-
|
|
19
|
-
spec.required_ruby_version = ">= 2.1.0"
|
|
20
|
-
|
|
21
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
|
22
|
-
spec.metadata["source_code_uri"] = spec.homepage
|
|
23
|
-
|
|
24
|
-
# Specify which files should be added to the gem when it is released.
|
|
25
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
26
|
-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
27
|
-
`git ls-files -z 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
28
|
-
end
|
|
29
|
-
spec.bindir = "exe"
|
|
30
|
-
spec.executables = []
|
|
31
|
-
spec.require_paths = ["lib"]
|
|
32
|
-
end
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
require "./lib/connection_pool/version"
|
|
2
|
-
|
|
3
|
-
Gem::Specification.new do |s|
|
|
4
|
-
s.name = "connection_pool"
|
|
5
|
-
s.version = ConnectionPool::VERSION
|
|
6
|
-
s.platform = Gem::Platform::RUBY
|
|
7
|
-
s.authors = ["Mike Perham", "Damian Janowski"]
|
|
8
|
-
s.email = ["mperham@gmail.com", "damian@educabilia.com"]
|
|
9
|
-
s.homepage = "https://github.com/mperham/connection_pool"
|
|
10
|
-
s.description = s.summary = "Generic connection pool for Ruby"
|
|
11
|
-
|
|
12
|
-
s.files = ["Changes.md", "LICENSE", "README.md", "connection_pool.gemspec",
|
|
13
|
-
"lib/connection_pool.rb", "lib/connection_pool/timed_stack.rb",
|
|
14
|
-
"lib/connection_pool/version.rb", "lib/connection_pool/wrapper.rb"]
|
|
15
|
-
s.executables = []
|
|
16
|
-
s.require_paths = ["lib"]
|
|
17
|
-
s.license = "MIT"
|
|
18
|
-
s.add_development_dependency "bundler"
|
|
19
|
-
s.add_development_dependency "minitest", ">= 5.0.0"
|
|
20
|
-
s.add_development_dependency "rake"
|
|
21
|
-
s.required_ruby_version = ">= 2.5.0"
|
|
22
|
-
|
|
23
|
-
s.metadata = {"changelog_uri" => "https://github.com/mperham/connection_pool/blob/main/Changes.md", "rubygems_mfa_required" => "true"}
|
|
24
|
-
end
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
= Diff::LCS
|
|
2
|
-
|
|
3
|
-
home :: https://github.com/halostatue/diff-lcs
|
|
4
|
-
code :: https://github.com/halostatue/diff-lcs
|
|
5
|
-
bugs :: https://github.com/halostatue/diff-lcs/issues
|
|
6
|
-
rdoc :: http://rubydoc.info/github/halostatue/diff-lcs
|
|
7
|
-
continuous integration :: {<img src="https://github.com/halostatue/diff-lcs/workflows/CI/badge.svg" />}[https://github.com/halostatue/diff-lcs/actions]
|
|
8
|
-
|
|
9
|
-
== Description
|
|
10
|
-
|
|
11
|
-
Diff::LCS computes the difference between two Enumerable sequences using the
|
|
12
|
-
McIlroy-Hunt longest common subsequence (LCS) algorithm. It includes utilities
|
|
13
|
-
to create a simple HTML diff output format and a standard diff-like tool.
|
|
14
|
-
|
|
15
|
-
This is release 1.4.3, providing a simple extension that allows for
|
|
16
|
-
Diff::LCS::Change objects to be treated implicitly as arrays and fixes a
|
|
17
|
-
number of formatting issues.
|
|
18
|
-
|
|
19
|
-
Ruby versions below 2.5 are soft-deprecated, which means that older versions
|
|
20
|
-
are no longer part of the CI test suite. If any changes have been introduced
|
|
21
|
-
that break those versions, bug reports and patches will be accepted, but it
|
|
22
|
-
will be up to the reporter to verify any fixes prior to release. The next
|
|
23
|
-
major release will completely break compatibility.
|
|
24
|
-
|
|
25
|
-
== Synopsis
|
|
26
|
-
|
|
27
|
-
Using this module is quite simple. By default, Diff::LCS does not extend
|
|
28
|
-
objects with the Diff::LCS interface, but will be called as if it were a
|
|
29
|
-
function:
|
|
30
|
-
|
|
31
|
-
require 'diff/lcs'
|
|
32
|
-
|
|
33
|
-
seq1 = %w(a b c e h j l m n p)
|
|
34
|
-
seq2 = %w(b c d e f j k l m r s t)
|
|
35
|
-
|
|
36
|
-
lcs = Diff::LCS.LCS(seq1, seq2)
|
|
37
|
-
diffs = Diff::LCS.diff(seq1, seq2)
|
|
38
|
-
sdiff = Diff::LCS.sdiff(seq1, seq2)
|
|
39
|
-
seq = Diff::LCS.traverse_sequences(seq1, seq2, callback_obj)
|
|
40
|
-
bal = Diff::LCS.traverse_balanced(seq1, seq2, callback_obj)
|
|
41
|
-
seq2 == Diff::LCS.patch!(seq1, diffs)
|
|
42
|
-
seq1 == Diff::LCS.unpatch!(seq2, diffs)
|
|
43
|
-
seq2 == Diff::LCS.patch!(seq1, sdiff)
|
|
44
|
-
seq1 == Diff::LCS.unpatch!(seq2, sdiff)
|
|
45
|
-
|
|
46
|
-
Objects can be extended with Diff::LCS:
|
|
47
|
-
|
|
48
|
-
seq1.extend(Diff::LCS)
|
|
49
|
-
lcs = seq1.lcs(seq2)
|
|
50
|
-
diffs = seq1.diff(seq2)
|
|
51
|
-
sdiff = seq1.sdiff(seq2)
|
|
52
|
-
seq = seq1.traverse_sequences(seq2, callback_obj)
|
|
53
|
-
bal = seq1.traverse_balanced(seq2, callback_obj)
|
|
54
|
-
seq2 == seq1.patch!(diffs)
|
|
55
|
-
seq1 == seq2.unpatch!(diffs)
|
|
56
|
-
seq2 == seq1.patch!(sdiff)
|
|
57
|
-
seq1 == seq2.unpatch!(sdiff)
|
|
58
|
-
|
|
59
|
-
By requiring 'diff/lcs/array' or 'diff/lcs/string', Array or String will be
|
|
60
|
-
extended for use this way.
|
|
61
|
-
|
|
62
|
-
Note that Diff::LCS requires a sequenced enumerable container, which means that
|
|
63
|
-
the order of enumeration is both predictable and consistent for the same set of
|
|
64
|
-
data. While it is theoretically possible to generate a diff for an unordered
|
|
65
|
-
hash, it will only be meaningful if the enumeration of the hashes is
|
|
66
|
-
consistent. In general, this will mean that containers that behave like String
|
|
67
|
-
or Array will perform best.
|
|
68
|
-
|
|
69
|
-
== History
|
|
70
|
-
|
|
71
|
-
Diff::LCS is a port of Perl's Algorithm::Diff that uses the McIlroy-Hunt
|
|
72
|
-
longest common subsequence (LCS) algorithm to compute intelligent differences
|
|
73
|
-
between two sequenced enumerable containers. The implementation is based on
|
|
74
|
-
Mario I. Wolczko's
|
|
75
|
-
{Smalltalk version 1.2}[ftp://st.cs.uiuc.edu/pub/Smalltalk/MANCHESTER/manchester/4.0/diff.st]
|
|
76
|
-
(1993) and Ned Konz's Perl version
|
|
77
|
-
{Algorithm::Diff 1.15}[http://search.cpan.org/~nedkonz/Algorithm-Diff-1.15/].
|
|
78
|
-
Diff::LCS#sdiff and Diff::LCS#traverse_balanced were originally written for the
|
|
79
|
-
Perl version by Mike Schilli.
|
|
80
|
-
|
|
81
|
-
The algorithm is described in <em>A Fast Algorithm for Computing Longest Common
|
|
82
|
-
Subsequences</em>, CACM, vol.20, no.5, pp.350-353, May 1977, with a few minor
|
|
83
|
-
improvements to improve the speed. A simplified description of the algorithm,
|
|
84
|
-
originally written for the Perl version, was written by Mark-Jason Dominus.
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# encoding: utf-8
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
lib = File.expand_path('../lib/', __FILE__)
|
|
4
|
-
$:.unshift lib unless $:.include?(lib)
|
|
5
|
-
|
|
6
|
-
require 'ethon/version'
|
|
7
|
-
|
|
8
|
-
Gem::Specification.new do |s|
|
|
9
|
-
s.name = "ethon"
|
|
10
|
-
s.version = Ethon::VERSION
|
|
11
|
-
s.platform = Gem::Platform::RUBY
|
|
12
|
-
s.authors = ["Hans Hasselberg"]
|
|
13
|
-
s.email = ["me@hans.io"]
|
|
14
|
-
s.homepage = "https://github.com/typhoeus/ethon"
|
|
15
|
-
s.summary = "Libcurl wrapper."
|
|
16
|
-
s.description = "Very lightweight libcurl wrapper."
|
|
17
|
-
|
|
18
|
-
s.required_rubygems_version = ">= 1.3.6"
|
|
19
|
-
s.license = 'MIT'
|
|
20
|
-
|
|
21
|
-
s.add_dependency('ffi', ['>= 1.15.0'])
|
|
22
|
-
|
|
23
|
-
s.files = `git ls-files`.split("\n")
|
|
24
|
-
s.test_files = `git ls-files -- spec/*`.split("\n")
|
|
25
|
-
s.require_path = 'lib'
|
|
26
|
-
end
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
## v1.1.2 2024-11-12
|
|
4
|
-
|
|
5
|
-
* Fix bundler cache #96 (@olleolleolle)
|
|
6
|
-
* Quote the '3.0' in YAML #95 (@olleolleolle)
|
|
7
|
-
* Fix version in source code #97 (@liufengyun)
|
|
8
|
-
|
|
9
|
-
## v1.1.1 2024-08-02
|
|
10
|
-
|
|
11
|
-
* Fix bug in ignore_keys option #88 (@Matzfan)
|
|
12
|
-
* Exclude spec files from gem package #94 (@amatsuda)
|
|
13
|
-
|
|
14
|
-
## v1.1.0 2023-12-14
|
|
15
|
-
|
|
16
|
-
* Add ignore_keys option (#86 @Matzfan)
|
|
17
|
-
* Remove pinned version of rake < 11
|
|
18
|
-
* Bump rspec dep ~> 3.5
|
|
19
|
-
* Bump rubocop dep >= 1.52.1
|
|
20
|
-
* Bump rubocop-rspec dep > 1.16.0
|
|
21
|
-
|
|
22
|
-
## v1.0.1 2020-02-25
|
|
23
|
-
|
|
24
|
-
* Add indifferent option
|
|
25
|
-
|
|
26
|
-
## v1.0.0 2019-06-06
|
|
27
|
-
|
|
28
|
-
* Fix typo in readme (#72 @koic)
|
|
29
|
-
* Fix Rubocop offence (#73 @koic)
|
|
30
|
-
* Bumps version to v1.0.0 (#74 @jfelchner)
|
|
31
|
-
|
|
32
|
-
## v1.0.0.beta1 2019-06-06
|
|
33
|
-
|
|
34
|
-
* fix warnings in ci (#69 @y-yagi)
|
|
35
|
-
* drop warnings of the constant change (#70 @jfelchner)
|
|
36
|
-
|
|
37
|
-
## v0.4.0 2019-05-28
|
|
38
|
-
|
|
39
|
-
* refactoring (#56 #57 #59 #61 krzysiek1507)
|
|
40
|
-
* fix typo in README (#64 @pboling)
|
|
41
|
-
* change HashDiff to Hashdiff (#65 @jfelchner)
|
|
42
|
-
|
|
43
|
-
## v0.3.9 2019-04-22
|
|
44
|
-
|
|
45
|
-
* Performance tweak (thanks @krzysiek1507: #51 #52 #53)
|
|
46
|
-
|
|
47
|
-
## v0.3.8 2018-12-30
|
|
48
|
-
|
|
49
|
-
* Add Rubocop and drops Ruby 1.9 support #47
|
|
50
|
-
|
|
51
|
-
## v0.3.7 2017-10-08
|
|
52
|
-
|
|
53
|
-
* remove 1.8.7 support from gemspec #39
|
|
54
|
-
|
|
55
|
-
## v0.3.6 2017-08-22
|
|
56
|
-
|
|
57
|
-
* add option `use_lcs` #35
|
|
58
|
-
|
|
59
|
-
## v0.3.5 2017-08-06
|
|
60
|
-
|
|
61
|
-
* add option `array_path` #34
|
|
62
|
-
|
|
63
|
-
## v0.3.4 2017-05-01
|
|
64
|
-
|
|
65
|
-
* performance improvement of `#similar?` #31
|
|
66
|
-
|
|
67
|
-
## v0.3.2 2016-12-27
|
|
68
|
-
|
|
69
|
-
* replace `Fixnum` by `Integer` #28
|
|
70
|
-
|
|
71
|
-
## v0.3.1 2016-11-24
|
|
72
|
-
|
|
73
|
-
* fix an error when a hash has mixed types #26
|
|
74
|
-
|
|
75
|
-
## v0.3.0 2016-2-11
|
|
76
|
-
|
|
77
|
-
* support `:case_insensitive` option
|
|
78
|
-
|
|
79
|
-
## v0.2.3 2015-11-5
|
|
80
|
-
|
|
81
|
-
* improve performance of LCS algorithm #12
|
|
82
|
-
|
|
83
|
-
## v0.2.2 2014-10-6
|
|
84
|
-
|
|
85
|
-
* make library 1.8.7 compatible
|
|
86
|
-
|
|
87
|
-
## v0.2.1 2014-7-13
|
|
88
|
-
|
|
89
|
-
* yield added/deleted keys for custom comparison
|
|
90
|
-
|
|
91
|
-
## v0.2.0 2014-3-29
|
|
92
|
-
|
|
93
|
-
* support custom comparison blocks
|
|
94
|
-
* support `:strip`, `:numeric_tolerance` and `:strict` options
|
|
95
|
-
|
|
96
|
-
## v0.1.0 2013-8-25
|
|
97
|
-
|
|
98
|
-
* use options for parameters `:delimiter` and `:similarity` in interfaces
|
|
99
|
-
|
|
100
|
-
## v0.0.6 2013-3-2
|
|
101
|
-
|
|
102
|
-
* Add parameter for custom property-path delimiter.
|
|
103
|
-
|
|
104
|
-
## v0.0.5 2012-7-1
|
|
105
|
-
|
|
106
|
-
* fix a bug in judging whehter two objects are similiar.
|
|
107
|
-
* add more spec test for `.best_diff`
|
|
108
|
-
|
|
109
|
-
## v0.0.4 2012-6-24
|
|
110
|
-
|
|
111
|
-
Main changes in this version is to output the whole object in addition & deletion, instead of recursely add/deletes the object.
|
|
112
|
-
|
|
113
|
-
For example, `diff({a:2, c:[4, 5]}, {a:2}) will generate following output:
|
|
114
|
-
|
|
115
|
-
[['-', 'c', [4, 5]]]
|
|
116
|
-
|
|
117
|
-
instead of following:
|
|
118
|
-
|
|
119
|
-
[['-', 'c[0]', 4], ['-', 'c[1]', 5], ['-', 'c', []]]
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
begin
|
|
2
|
-
require_relative "lib/logger/version"
|
|
3
|
-
rescue LoadError # Fallback to load version file in ruby core repository
|
|
4
|
-
require_relative "version"
|
|
5
|
-
end
|
|
6
|
-
|
|
7
|
-
Gem::Specification.new do |spec|
|
|
8
|
-
spec.name = "logger"
|
|
9
|
-
spec.version = Logger::VERSION
|
|
10
|
-
spec.authors = ["Naotoshi Seo", "SHIBATA Hiroshi"]
|
|
11
|
-
spec.email = ["sonots@gmail.com", "hsbt@ruby-lang.org"]
|
|
12
|
-
|
|
13
|
-
spec.summary = %q{Provides a simple logging utility for outputting messages.}
|
|
14
|
-
spec.description = %q{Provides a simple logging utility for outputting messages.}
|
|
15
|
-
spec.homepage = "https://github.com/ruby/logger"
|
|
16
|
-
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
|
17
|
-
|
|
18
|
-
# Specify which files should be added to the gem when it is released.
|
|
19
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
20
|
-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
21
|
-
`git ls-files -z 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
22
|
-
end
|
|
23
|
-
spec.require_paths = ["lib"]
|
|
24
|
-
|
|
25
|
-
spec.required_ruby_version = ">= 2.5.0"
|
|
26
|
-
|
|
27
|
-
spec.metadata["changelog_uri"] = spec.homepage + "/releases"
|
|
28
|
-
end
|