rails-rfc6570 3.2.0 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/rails/rfc6570/version.rb +1 -1
- data/rails-rfc6570.gemspec +1 -1
- data/spec/dummy/log/test.log +432 -0
- metadata +10 -262
- data/vendor/bundle/ruby/3.3.0/bundler/gems/rubocop-config-943facea9d8f/LICENSE +0 -21
- data/vendor/bundle/ruby/3.3.0/bundler/gems/rubocop-config-943facea9d8f/README.md +0 -23
- data/vendor/bundle/ruby/3.3.0/bundler/gems/rubocop-config-943facea9d8f/rubocop-config.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/gems/actionpack-7.2.1/CHANGELOG.md +0 -154
- data/vendor/bundle/ruby/3.3.0/gems/actionpack-7.2.1/MIT-LICENSE +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/actionpack-7.2.1/README.rdoc +0 -57
- data/vendor/bundle/ruby/3.3.0/gems/actionview-7.2.1/CHANGELOG.md +0 -113
- data/vendor/bundle/ruby/3.3.0/gems/actionview-7.2.1/MIT-LICENSE +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/actionview-7.2.1/README.rdoc +0 -40
- data/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.1/CHANGELOG.md +0 -258
- data/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.1/MIT-LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.1/README.rdoc +0 -40
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/CHANGELOG.md +0 -301
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/LICENSE.txt +0 -202
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/README.md +0 -121
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/addressable.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/gems/appraisal-2.5.0/MIT-LICENSE +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/appraisal-2.5.0/README.md +0 -243
- data/vendor/bundle/ruby/3.3.0/gems/appraisal-2.5.0/appraisal.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.2/LICENSE.MIT +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.2/README.YARD.md +0 -12
- data/vendor/bundle/ruby/3.3.0/gems/benchmark-ips-2.13.0/LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/benchmark-ips-2.13.0/README.md +0 -279
- data/vendor/bundle/ruby/3.3.0/gems/bigdecimal-3.1.8/LICENSE +0 -56
- data/vendor/bundle/ruby/3.3.0/gems/bigdecimal-3.1.8/bigdecimal.gemspec +0 -57
- data/vendor/bundle/ruby/3.3.0/gems/builder-3.3.0/MIT-LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/builder-3.3.0/README.md +0 -258
- data/vendor/bundle/ruby/3.3.0/gems/builder-3.3.0/builder.gemspec +0 -49
- data/vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/CHANGELOG.md +0 -934
- data/vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/LICENSE +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/README.md +0 -199
- data/vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/MIT-LICENSE +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/README_INDEX.rdoc +0 -123
- data/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/CHANGELOG.md +0 -593
- data/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/LICENSE.txt +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/README.md +0 -407
- data/vendor/bundle/ruby/3.3.0/gems/connection_pool-2.4.1/LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/connection_pool-2.4.1/README.md +0 -135
- data/vendor/bundle/ruby/3.3.0/gems/connection_pool-2.4.1/connection_pool.gemspec +0 -24
- data/vendor/bundle/ruby/3.3.0/gems/crass-1.0.6/LICENSE +0 -18
- data/vendor/bundle/ruby/3.3.0/gems/crass-1.0.6/README.md +0 -192
- data/vendor/bundle/ruby/3.3.0/gems/crass-1.0.6/crass.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/README.rdoc +0 -84
- data/vendor/bundle/ruby/3.3.0/gems/docile-1.4.1/LICENSE +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/docile-1.4.1/README.md +0 -409
- data/vendor/bundle/ruby/3.3.0/gems/docile-1.4.1/docile.gemspec +0 -36
- data/vendor/bundle/ruby/3.3.0/gems/drb-2.2.1/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/drb-2.2.1/drb.gemspec +0 -41
- data/vendor/bundle/ruby/3.3.0/gems/erubi-1.13.0/CHANGELOG +0 -107
- data/vendor/bundle/ruby/3.3.0/gems/erubi-1.13.0/MIT-LICENSE +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/erubi-1.13.0/README.rdoc +0 -151
- data/vendor/bundle/ruby/3.3.0/gems/i18n-1.14.5/MIT-LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/i18n-1.14.5/README.md +0 -127
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.7.2/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.7.2/README.md +0 -46
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.14.0/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.14.0/README.md +0 -405
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.14.0/irb.gemspec +0 -46
- data/vendor/bundle/ruby/3.3.0/gems/json-2.7.2/LICENSE +0 -56
- data/vendor/bundle/ruby/3.3.0/gems/json-2.7.2/README.md +0 -416
- data/vendor/bundle/ruby/3.3.0/gems/json-2.7.2/json.gemspec +0 -68
- data/vendor/bundle/ruby/3.3.0/gems/language_server-protocol-3.17.0.3/LICENSE.txt +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/language_server-protocol-3.17.0.3/README.md +0 -88
- data/vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/CHANGELOG.md +0 -566
- data/vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/MIT-LICENSE.txt +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/README.md +0 -363
- data/vendor/bundle/ruby/3.3.0/gems/method_source-1.1.0/CHANGELOG.md +0 -15
- data/vendor/bundle/ruby/3.3.0/gems/method_source-1.1.0/LICENSE +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/method_source-1.1.0/README.markdown +0 -101
- data/vendor/bundle/ruby/3.3.0/gems/method_source-1.1.0/method_source.gemspec +0 -19
- data/vendor/bundle/ruby/3.3.0/gems/minitest-5.25.1/README.rdoc +0 -835
- data/vendor/bundle/ruby/3.3.0/gems/nokogiri-1.16.7-x86_64-linux/LICENSE-DEPENDENCIES.md +0 -2224
- data/vendor/bundle/ruby/3.3.0/gems/nokogiri-1.16.7-x86_64-linux/LICENSE.md +0 -9
- data/vendor/bundle/ruby/3.3.0/gems/nokogiri-1.16.7-x86_64-linux/README.md +0 -290
- data/vendor/bundle/ruby/3.3.0/gems/parallel-1.26.3/MIT-LICENSE.txt +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.4.2/LICENSE.txt +0 -25
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.4.2/parser.gemspec +0 -43
- data/vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/CHANGELOG.md +0 -1141
- data/vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/LICENSE +0 -25
- data/vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/README.md +0 -466
- data/vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/slop/LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/CHANGELOG.md +0 -230
- data/vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/README.md +0 -189
- data/vendor/bundle/ruby/3.3.0/gems/public_suffix-6.0.1/CHANGELOG.md +0 -491
- data/vendor/bundle/ruby/3.3.0/gems/public_suffix-6.0.1/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/public_suffix-6.0.1/README.md +0 -222
- data/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/README.ja.rdoc +0 -58
- data/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/README.rdoc +0 -60
- data/vendor/bundle/ruby/3.3.0/gems/rack-3.1.7/CHANGELOG.md +0 -994
- data/vendor/bundle/ruby/3.3.0/gems/rack-3.1.7/MIT-LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/rack-3.1.7/README.md +0 -328
- data/vendor/bundle/ruby/3.3.0/gems/rack-test-2.1.0/MIT-LICENSE.txt +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/rack-test-2.1.0/README.md +0 -139
- data/vendor/bundle/ruby/3.3.0/gems/rails-dom-testing-2.2.0/MIT-LICENSE +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/rails-dom-testing-2.2.0/README.md +0 -91
- data/vendor/bundle/ruby/3.3.0/gems/rails-html-sanitizer-1.6.0/CHANGELOG.md +0 -201
- data/vendor/bundle/ruby/3.3.0/gems/rails-html-sanitizer-1.6.0/MIT-LICENSE +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/rails-html-sanitizer-1.6.0/README.md +0 -271
- data/vendor/bundle/ruby/3.3.0/gems/railties-7.2.1/CHANGELOG.md +0 -361
- data/vendor/bundle/ruby/3.3.0/gems/railties-7.2.1/MIT-LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/railties-7.2.1/README.rdoc +0 -39
- data/vendor/bundle/ruby/3.3.0/gems/railties-7.2.1/lib/rails/generators/rails/app/templates/README.md.tt +0 -24
- data/vendor/bundle/ruby/3.3.0/gems/railties-7.2.1/lib/rails/generators/rails/plugin/templates/%name%.gemspec.tt +0 -28
- data/vendor/bundle/ruby/3.3.0/gems/railties-7.2.1/lib/rails/generators/rails/plugin/templates/MIT-LICENSE.tt +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/railties-7.2.1/lib/rails/generators/rails/plugin/templates/README.md.tt +0 -28
- data/vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/README.markdown +0 -227
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/MIT-LICENSE +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/README.rdoc +0 -155
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/rake.gemspec +0 -101
- data/vendor/bundle/ruby/3.3.0/gems/rake-release-1.3.0/LICENSE +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/rake-release-1.3.0/README.md +0 -107
- data/vendor/bundle/ruby/3.3.0/gems/rake-release-1.3.0/rake-release.gemspec +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.7.0/LICENSE.rdoc +0 -57
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.7.0/README.rdoc +0 -129
- data/vendor/bundle/ruby/3.3.0/gems/regexp_parser-2.9.2/LICENSE +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/regexp_parser-2.9.2/regexp_parser.gemspec +0 -34
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.5.9/README.md +0 -94
- data/vendor/bundle/ruby/3.3.0/gems/rexml-3.3.6/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/rexml-3.3.6/README.md +0 -57
- data/vendor/bundle/ruby/3.3.0/gems/rspec-3.13.0/LICENSE.md +0 -27
- data/vendor/bundle/ruby/3.3.0/gems/rspec-3.13.0/README.md +0 -47
- data/vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.0/LICENSE.md +0 -26
- data/vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.0/README.md +0 -389
- data/vendor/bundle/ruby/3.3.0/gems/rspec-expectations-3.13.2/LICENSE.md +0 -25
- data/vendor/bundle/ruby/3.3.0/gems/rspec-expectations-3.13.2/README.md +0 -326
- data/vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.1/LICENSE.md +0 -25
- data/vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.1/README.md +0 -465
- data/vendor/bundle/ruby/3.3.0/gems/rspec-rails-6.1.4/LICENSE.md +0 -25
- data/vendor/bundle/ruby/3.3.0/gems/rspec-rails-6.1.4/README.md +0 -381
- data/vendor/bundle/ruby/3.3.0/gems/rspec-support-3.13.1/LICENSE.md +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/rspec-support-3.13.1/README.md +0 -40
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-1.65.1/LICENSE.txt +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-1.65.1/README.md +0 -251
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-ast-1.32.1/LICENSE.txt +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-ast-1.32.1/README.md +0 -56
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-capybara-2.21.0/CHANGELOG.md +0 -85
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-capybara-2.21.0/MIT-LICENSE.md +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-capybara-2.21.0/README.md +0 -88
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-factory_bot-2.26.1/CHANGELOG.md +0 -116
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-factory_bot-2.26.1/MIT-LICENSE.md +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-factory_bot-2.26.1/README.md +0 -88
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-performance-1.21.1/LICENSE.txt +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-performance-1.21.1/README.md +0 -97
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec-3.0.4/CHANGELOG.md +0 -1028
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec-3.0.4/MIT-LICENSE.md +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec-3.0.4/README.md +0 -109
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec_rails-2.30.0/CHANGELOG.md +0 -84
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec_rails-2.30.0/MIT-LICENSE.md +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec_rails-2.30.0/README.md +0 -90
- data/vendor/bundle/ruby/3.3.0/gems/ruby-progressbar-1.13.0/LICENSE.txt +0 -19
- data/vendor/bundle/ruby/3.3.0/gems/ruby-progressbar-1.13.0/README.md +0 -131
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-0.22.0/CHANGELOG.md +0 -191
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-0.22.0/LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-0.22.0/README.md +0 -974
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-cobertura-2.1.0/LICENSE +0 -202
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-cobertura-2.1.0/README.md +0 -62
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-cobertura-2.1.0/simplecov-cobertura.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-html-0.12.3/CHANGELOG.md +0 -81
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-html-0.12.3/LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-html-0.12.3/README.md +0 -30
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-html-0.12.3/simplecov-html.gemspec +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/simplecov_json_formatter-0.1.4/CHANGELOG.md +0 -13
- data/vendor/bundle/ruby/3.3.0/gems/simplecov_json_formatter-0.1.4/README.md +0 -29
- data/vendor/bundle/ruby/3.3.0/gems/strscan-3.1.0/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/thor-1.3.1/LICENSE.md +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/thor-1.3.1/README.md +0 -45
- data/vendor/bundle/ruby/3.3.0/gems/thor-1.3.1/thor.gemspec +0 -33
- data/vendor/bundle/ruby/3.3.0/gems/tzinfo-2.0.6/LICENSE +0 -19
- data/vendor/bundle/ruby/3.3.0/gems/tzinfo-2.0.6/README.md +0 -406
- data/vendor/bundle/ruby/3.3.0/gems/unicode-display_width-2.5.0/CHANGELOG.md +0 -196
- data/vendor/bundle/ruby/3.3.0/gems/unicode-display_width-2.5.0/MIT-LICENSE.txt +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/unicode-display_width-2.5.0/README.md +0 -171
- data/vendor/bundle/ruby/3.3.0/gems/useragent-0.16.10/LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/useragent-0.16.10/README.md +0 -42
- data/vendor/bundle/ruby/3.3.0/gems/webrick-1.8.1/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/webrick-1.8.1/README.md +0 -61
- data/vendor/bundle/ruby/3.3.0/gems/webrick-1.8.1/webrick.gemspec +0 -70
- data/vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.17/MIT-LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.17/README.md +0 -1494
- data/vendor/bundle/ruby/3.3.0/specifications/actionpack-7.2.1.gemspec +0 -37
- data/vendor/bundle/ruby/3.3.0/specifications/actionview-7.2.1.gemspec +0 -33
- data/vendor/bundle/ruby/3.3.0/specifications/activesupport-7.2.1.gemspec +0 -36
- data/vendor/bundle/ruby/3.3.0/specifications/addressable-2.8.7.gemspec +0 -30
- data/vendor/bundle/ruby/3.3.0/specifications/appraisal-2.5.0.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/ast-2.4.2.gemspec +0 -30
- data/vendor/bundle/ruby/3.3.0/specifications/benchmark-ips-2.13.0.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/bigdecimal-3.1.8.gemspec +0 -25
- data/vendor/bundle/ruby/3.3.0/specifications/builder-3.3.0.gemspec +0 -22
- data/vendor/bundle/ruby/3.3.0/specifications/byebug-11.1.3.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/coderay-1.1.3.gemspec +0 -25
- data/vendor/bundle/ruby/3.3.0/specifications/concurrent-ruby-1.3.4.gemspec +0 -24
- data/vendor/bundle/ruby/3.3.0/specifications/connection_pool-2.4.1.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/crass-1.0.6.gemspec +0 -27
- data/vendor/bundle/ruby/3.3.0/specifications/diff-lcs-1.5.1.gemspec +0 -37
- data/vendor/bundle/ruby/3.3.0/specifications/docile-1.4.1.gemspec +0 -22
- data/vendor/bundle/ruby/3.3.0/specifications/drb-2.2.1.gemspec +0 -22
- data/vendor/bundle/ruby/3.3.0/specifications/erubi-1.13.0.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/specifications/i18n-1.14.5.gemspec +0 -26
- data/vendor/bundle/ruby/3.3.0/specifications/io-console-0.7.2.gemspec +0 -25
- data/vendor/bundle/ruby/3.3.0/specifications/irb-1.14.0.gemspec +0 -30
- data/vendor/bundle/ruby/3.3.0/specifications/json-2.7.2.gemspec +0 -0
- data/vendor/bundle/ruby/3.3.0/specifications/language_server-protocol-3.17.0.3.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/loofah-2.22.0.gemspec +0 -27
- data/vendor/bundle/ruby/3.3.0/specifications/method_source-1.1.0.gemspec +0 -21
- data/vendor/bundle/ruby/3.3.0/specifications/minitest-5.25.1.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/nokogiri-1.16.7-x86_64-linux.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/parallel-1.26.3.gemspec +0 -21
- data/vendor/bundle/ruby/3.3.0/specifications/parser-3.3.4.2.gemspec +0 -37
- data/vendor/bundle/ruby/3.3.0/specifications/pry-0.14.2.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/specifications/pry-byebug-3.10.1.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/public_suffix-6.0.1.gemspec +0 -24
- data/vendor/bundle/ruby/3.3.0/specifications/racc-1.8.1.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/rack-3.1.7.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/rack-session-2.0.0.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/rack-test-2.1.0.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/specifications/rackup-2.1.0.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/rails-dom-testing-2.2.0.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/rails-html-sanitizer-1.6.0.gemspec +0 -27
- data/vendor/bundle/ruby/3.3.0/specifications/railties-7.2.1.gemspec +0 -37
- data/vendor/bundle/ruby/3.3.0/specifications/rainbow-3.1.1.gemspec +0 -25
- data/vendor/bundle/ruby/3.3.0/specifications/rake-13.2.1.gemspec +0 -26
- data/vendor/bundle/ruby/3.3.0/specifications/rake-release-1.3.0.gemspec +0 -26
- data/vendor/bundle/ruby/3.3.0/specifications/rdoc-6.7.0.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/regexp_parser-2.9.2.gemspec +0 -22
- data/vendor/bundle/ruby/3.3.0/specifications/reline-0.5.9.gemspec +0 -26
- data/vendor/bundle/ruby/3.3.0/specifications/rexml-3.3.6.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/specifications/rspec-3.13.0.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/rspec-core-3.13.0.gemspec +0 -39
- data/vendor/bundle/ruby/3.3.0/specifications/rspec-expectations-3.13.2.gemspec +0 -33
- data/vendor/bundle/ruby/3.3.0/specifications/rspec-mocks-3.13.1.gemspec +0 -33
- data/vendor/bundle/ruby/3.3.0/specifications/rspec-rails-6.1.4.gemspec +0 -37
- data/vendor/bundle/ruby/3.3.0/specifications/rspec-support-3.13.1.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-1.65.1.gemspec +0 -39
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-ast-1.32.1.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-capybara-2.21.0.gemspec +0 -27
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-factory_bot-2.26.1.gemspec +0 -27
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-performance-1.21.1.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-rspec-3.0.4.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-rspec_rails-2.30.0.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/ruby-progressbar-1.13.0.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/specifications/simplecov-0.22.0.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/simplecov-cobertura-2.1.0.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/specifications/simplecov-html-0.12.3.gemspec +0 -21
- data/vendor/bundle/ruby/3.3.0/specifications/simplecov_json_formatter-0.1.4.gemspec +0 -21
- data/vendor/bundle/ruby/3.3.0/specifications/strscan-3.1.0.gemspec +0 -24
- data/vendor/bundle/ruby/3.3.0/specifications/thor-1.3.1.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/tzinfo-2.0.6.gemspec +0 -30
- data/vendor/bundle/ruby/3.3.0/specifications/unicode-display_width-2.5.0.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/specifications/useragent-0.16.10.gemspec +0 -25
- data/vendor/bundle/ruby/3.3.0/specifications/webrick-1.8.1.gemspec +0 -22
- data/vendor/bundle/ruby/3.3.0/specifications/zeitwerk-2.6.17.gemspec +0 -22
@@ -1,407 +0,0 @@
|
|
1
|
-
# Concurrent Ruby
|
2
|
-
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/concurrent-ruby.svg)](http://badge.fury.io/rb/concurrent-ruby)
|
4
|
-
[![License](https://img.shields.io/badge/license-MIT-green.svg)](http://opensource.org/licenses/MIT)
|
5
|
-
[![Gitter chat](https://img.shields.io/badge/IRC%20(gitter)-devs%20%26%20users-brightgreen.svg)](https://gitter.im/ruby-concurrency/concurrent-ruby)
|
6
|
-
|
7
|
-
Modern concurrency tools for Ruby. Inspired by
|
8
|
-
[Erlang](http://www.erlang.org/doc/reference_manual/processes.html),
|
9
|
-
[Clojure](http://clojure.org/concurrent_programming),
|
10
|
-
[Scala](http://akka.io/),
|
11
|
-
[Haskell](http://www.haskell.org/haskellwiki/Applications_and_libraries/Concurrency_and_parallelism#Concurrent_Haskell),
|
12
|
-
[F#](http://blogs.msdn.com/b/dsyme/archive/2010/02/15/async-and-parallel-design-patterns-in-f-part-3-agents.aspx),
|
13
|
-
[C#](http://msdn.microsoft.com/en-us/library/vstudio/hh191443.aspx),
|
14
|
-
[Java](http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/package-summary.html),
|
15
|
-
and classic concurrency patterns.
|
16
|
-
|
17
|
-
<img src="https://raw.githubusercontent.com/ruby-concurrency/concurrent-ruby/master/docs-source/logo/concurrent-ruby-logo-300x300.png" align="right" style="margin-left: 20px;" />
|
18
|
-
|
19
|
-
The design goals of this gem are:
|
20
|
-
|
21
|
-
* Be an 'unopinionated' toolbox that provides useful utilities without debating which is better
|
22
|
-
or why
|
23
|
-
* Remain free of external gem dependencies
|
24
|
-
* Stay true to the spirit of the languages providing inspiration
|
25
|
-
* But implement in a way that makes sense for Ruby
|
26
|
-
* Keep the semantics as idiomatic Ruby as possible
|
27
|
-
* Support features that make sense in Ruby
|
28
|
-
* Exclude features that don't make sense in Ruby
|
29
|
-
* Be small, lean, and loosely coupled
|
30
|
-
* Thread-safety
|
31
|
-
* Backward compatibility
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
**This gem depends on
|
36
|
-
[contributions](https://github.com/ruby-concurrency/concurrent-ruby/graphs/contributors) and we
|
37
|
-
appreciate your help. Would you like to contribute? Great! Have a look at
|
38
|
-
[issues with `looking-for-contributor` label](https://github.com/ruby-concurrency/concurrent-ruby/issues?q=is%3Aissue+is%3Aopen+label%3Alooking-for-contributor).** And if you pick something up let us know on the issue.
|
39
|
-
|
40
|
-
You can also get started by triaging issues which may include reproducing bug reports or asking for vital information, such as version numbers or reproduction instructions. If you would like to start triaging issues, one easy way to get started is to [subscribe to concurrent-ruby on CodeTriage](https://www.codetriage.com/ruby-concurrency/concurrent-ruby). [![Open Source Helpers](https://www.codetriage.com/ruby-concurrency/concurrent-ruby/badges/users.svg)](https://www.codetriage.com/ruby-concurrency/concurrent-ruby)
|
41
|
-
|
42
|
-
## Thread Safety
|
43
|
-
|
44
|
-
*Concurrent Ruby makes one of the strongest thread safety guarantees of any Ruby concurrency
|
45
|
-
library, providing consistent behavior and guarantees on all three main Ruby interpreters
|
46
|
-
(MRI/CRuby, JRuby, TruffleRuby).*
|
47
|
-
|
48
|
-
Every abstraction in this library is thread safe. Specific thread safety guarantees are documented
|
49
|
-
with each abstraction.
|
50
|
-
|
51
|
-
It is critical to remember, however, that Ruby is a language of mutable references. *No*
|
52
|
-
concurrency library for Ruby can ever prevent the user from making thread safety mistakes (such as
|
53
|
-
sharing a mutable object between threads and modifying it on both threads) or from creating
|
54
|
-
deadlocks through incorrect use of locks. All the library can do is provide safe abstractions which
|
55
|
-
encourage safe practices. Concurrent Ruby provides more safe concurrency abstractions than any
|
56
|
-
other Ruby library, many of which support the mantra of
|
57
|
-
["Do not communicate by sharing memory; instead, share memory by communicating"](https://blog.golang.org/share-memory-by-communicating).
|
58
|
-
Concurrent Ruby is also the only Ruby library which provides a full suite of thread safe and
|
59
|
-
immutable variable types and data structures.
|
60
|
-
|
61
|
-
We've also initiated discussion to document the [memory model](docs-source/synchronization.md) of Ruby which
|
62
|
-
would provide consistent behaviour and guarantees on all three main Ruby interpreters
|
63
|
-
(MRI/CRuby, JRuby, TruffleRuby).
|
64
|
-
|
65
|
-
## Features & Documentation
|
66
|
-
|
67
|
-
**The primary site for documentation is the automatically generated
|
68
|
-
[API documentation](http://ruby-concurrency.github.io/concurrent-ruby/index.html) which is up to
|
69
|
-
date with latest release.** This readme matches the master so may contain new stuff not yet
|
70
|
-
released.
|
71
|
-
|
72
|
-
We also have a [IRC (gitter)](https://gitter.im/ruby-concurrency/concurrent-ruby).
|
73
|
-
|
74
|
-
### Versioning
|
75
|
-
|
76
|
-
* `concurrent-ruby` uses [Semantic Versioning](http://semver.org/)
|
77
|
-
* `concurrent-ruby-ext` has always same version as `concurrent-ruby`
|
78
|
-
* `concurrent-ruby-edge` will always be 0.y.z therefore following
|
79
|
-
[point 4](http://semver.org/#spec-item-4) applies *"Major version zero
|
80
|
-
(0.y.z) is for initial development. Anything may change at any time. The
|
81
|
-
public API should not be considered stable."* However we additionally use
|
82
|
-
following rules:
|
83
|
-
* Minor version increment means incompatible changes were made
|
84
|
-
* Patch version increment means only compatible changes were made
|
85
|
-
|
86
|
-
|
87
|
-
#### General-purpose Concurrency Abstractions
|
88
|
-
|
89
|
-
* [Async](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Async.html):
|
90
|
-
A mixin module that provides simple asynchronous behavior to a class. Loosely based on Erlang's
|
91
|
-
[gen_server](http://www.erlang.org/doc/man/gen_server.html).
|
92
|
-
* [ScheduledTask](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/ScheduledTask.html):
|
93
|
-
Like a Future scheduled for a specific future time.
|
94
|
-
* [TimerTask](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/TimerTask.html):
|
95
|
-
A Thread that periodically wakes up to perform work at regular intervals.
|
96
|
-
* [Promises](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Promises.html):
|
97
|
-
Unified implementation of futures and promises which combines features of previous `Future`,
|
98
|
-
`Promise`, `IVar`, `Event`, `dataflow`, `Delay`, and (partially) `TimerTask` into a single
|
99
|
-
framework. It extensively uses the new synchronization layer to make all the features
|
100
|
-
**non-blocking** and **lock-free**, with the exception of obviously blocking operations like
|
101
|
-
`#wait`, `#value`. It also offers better performance.
|
102
|
-
|
103
|
-
#### Thread-safe Value Objects, Structures, and Collections
|
104
|
-
|
105
|
-
Collection classes that were originally part of the (deprecated) `thread_safe` gem:
|
106
|
-
|
107
|
-
* [Array](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Array.html) A thread-safe
|
108
|
-
subclass of Ruby's standard [Array](http://ruby-doc.org/core/Array.html).
|
109
|
-
* [Hash](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Hash.html) A thread-safe
|
110
|
-
subclass of Ruby's standard [Hash](http://ruby-doc.org/core/Hash.html).
|
111
|
-
* [Set](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Set.html) A thread-safe
|
112
|
-
subclass of Ruby's standard [Set](http://ruby-doc.org/stdlib-2.4.0/libdoc/set/rdoc/Set.html).
|
113
|
-
* [Map](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Map.html) A hash-like object
|
114
|
-
that should have much better performance characteristics, especially under high concurrency,
|
115
|
-
than `Concurrent::Hash`.
|
116
|
-
* [Tuple](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Tuple.html) A fixed size
|
117
|
-
array with volatile (synchronized, thread safe) getters/setters.
|
118
|
-
|
119
|
-
Value objects inspired by other languages:
|
120
|
-
|
121
|
-
* [Maybe](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Maybe.html) A thread-safe,
|
122
|
-
immutable object representing an optional value, based on
|
123
|
-
[Haskell Data.Maybe](https://hackage.haskell.org/package/base-4.2.0.1/docs/Data-Maybe.html).
|
124
|
-
|
125
|
-
Structure classes derived from Ruby's [Struct](http://ruby-doc.org/core/Struct.html):
|
126
|
-
|
127
|
-
* [ImmutableStruct](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/ImmutableStruct.html)
|
128
|
-
Immutable struct where values are set at construction and cannot be changed later.
|
129
|
-
* [MutableStruct](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/MutableStruct.html)
|
130
|
-
Synchronized, mutable struct where values can be safely changed at any time.
|
131
|
-
* [SettableStruct](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/SettableStruct.html)
|
132
|
-
Synchronized, write-once struct where values can be set at most once, either at construction
|
133
|
-
or any time thereafter.
|
134
|
-
|
135
|
-
Thread-safe variables:
|
136
|
-
|
137
|
-
* [Agent](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Agent.html): A way to
|
138
|
-
manage shared, mutable, *asynchronous*, independent state. Based on Clojure's
|
139
|
-
[Agent](http://clojure.org/agents).
|
140
|
-
* [Atom](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Atom.html): A way to manage
|
141
|
-
shared, mutable, *synchronous*, independent state. Based on Clojure's
|
142
|
-
[Atom](http://clojure.org/atoms).
|
143
|
-
* [AtomicBoolean](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/AtomicBoolean.html)
|
144
|
-
A boolean value that can be updated atomically.
|
145
|
-
* [AtomicFixnum](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/AtomicFixnum.html)
|
146
|
-
A numeric value that can be updated atomically.
|
147
|
-
* [AtomicReference](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/AtomicReference.html)
|
148
|
-
An object reference that may be updated atomically.
|
149
|
-
* [Exchanger](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Exchanger.html)
|
150
|
-
A synchronization point at which threads can pair and swap elements within pairs. Based on
|
151
|
-
Java's [Exchanger](http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Exchanger.html).
|
152
|
-
* [MVar](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/MVar.html) A synchronized
|
153
|
-
single element container. Based on Haskell's
|
154
|
-
[MVar](https://hackage.haskell.org/package/base-4.8.1.0/docs/Control-Concurrent-MVar.html) and
|
155
|
-
Scala's [MVar](http://docs.typelevel.org/api/scalaz/nightly/index.html#scalaz.concurrent.MVar$).
|
156
|
-
* [ThreadLocalVar](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/ThreadLocalVar.html)
|
157
|
-
A variable where the value is different for each thread.
|
158
|
-
* [TVar](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/TVar.html) A transactional
|
159
|
-
variable implementing software transactional memory (STM). Based on Clojure's
|
160
|
-
[Ref](http://clojure.org/refs).
|
161
|
-
|
162
|
-
#### Java-inspired ThreadPools and Other Executors
|
163
|
-
|
164
|
-
* See the [thread pool](http://ruby-concurrency.github.io/concurrent-ruby/master/file.thread_pools.html)
|
165
|
-
overview, which also contains a list of other Executors available.
|
166
|
-
|
167
|
-
#### Thread Synchronization Classes and Algorithms
|
168
|
-
|
169
|
-
* [CountDownLatch](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/CountDownLatch.html)
|
170
|
-
A synchronization object that allows one thread to wait on multiple other threads.
|
171
|
-
* [CyclicBarrier](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/CyclicBarrier.html)
|
172
|
-
A synchronization aid that allows a set of threads to all wait for each other to reach a common barrier point.
|
173
|
-
* [Event](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Event.html) Old school
|
174
|
-
kernel-style event.
|
175
|
-
* [ReadWriteLock](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/ReadWriteLock.html)
|
176
|
-
A lock that supports multiple readers but only one writer.
|
177
|
-
* [ReentrantReadWriteLock](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/ReentrantReadWriteLock.html)
|
178
|
-
A read/write lock with reentrant and upgrade features.
|
179
|
-
* [Semaphore](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Semaphore.html)
|
180
|
-
A counting-based locking mechanism that uses permits.
|
181
|
-
* [AtomicMarkableReference](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/AtomicMarkableReference.html)
|
182
|
-
|
183
|
-
#### Deprecated
|
184
|
-
|
185
|
-
Deprecated features are still available and bugs are being fixed, but new features will not be added.
|
186
|
-
|
187
|
-
* ~~[Future](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Future.html):
|
188
|
-
An asynchronous operation that produces a value.~~ Replaced by
|
189
|
-
[Promises](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Promises.html).
|
190
|
-
* ~~[.dataflow](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent.html#dataflow-class_method):
|
191
|
-
Built on Futures, Dataflow allows you to create a task that will be scheduled when all of
|
192
|
-
its data dependencies are available.~~ Replaced by
|
193
|
-
[Promises](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Promises.html).
|
194
|
-
* ~~[Promise](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Promise.html): Similar
|
195
|
-
to Futures, with more features.~~ Replaced by
|
196
|
-
[Promises](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Promises.html).
|
197
|
-
* ~~[Delay](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Delay.html) Lazy evaluation
|
198
|
-
of a block yielding an immutable result. Based on Clojure's
|
199
|
-
[delay](https://clojuredocs.org/clojure.core/delay).~~ Replaced by
|
200
|
-
[Promises](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Promises.html).
|
201
|
-
* ~~[IVar](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/IVar.html) Similar to a
|
202
|
-
"future" but can be manually assigned once, after which it becomes immutable.~~ Replaced by
|
203
|
-
[Promises](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Promises.html).
|
204
|
-
|
205
|
-
### Edge Features
|
206
|
-
|
207
|
-
These are available in the `concurrent-ruby-edge` companion gem.
|
208
|
-
|
209
|
-
These features are under active development and may change frequently. They are expected not to
|
210
|
-
keep backward compatibility (there may also lack tests and documentation). Semantic versions will
|
211
|
-
be obeyed though. Features developed in `concurrent-ruby-edge` are expected to move to
|
212
|
-
`concurrent-ruby` when final.
|
213
|
-
|
214
|
-
* [Actor](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Actor.html): Implements
|
215
|
-
the Actor Model, where concurrent actors exchange messages.
|
216
|
-
*Status: Partial documentation and tests; depends on new future/promise framework; stability is good.*
|
217
|
-
* [Channel](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Channel.html):
|
218
|
-
Communicating Sequential Processes ([CSP](https://en.wikipedia.org/wiki/Communicating_sequential_processes)).
|
219
|
-
Functionally equivalent to Go [channels](https://tour.golang.org/concurrency/2) with additional
|
220
|
-
inspiration from Clojure [core.async](https://clojure.github.io/core.async/).
|
221
|
-
*Status: Partial documentation and tests.*
|
222
|
-
* [LazyRegister](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/LazyRegister.html)
|
223
|
-
* [LockFreeLinkedSet](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Edge/LockFreeLinkedSet.html)
|
224
|
-
*Status: will be moved to core soon.*
|
225
|
-
* [LockFreeStack](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/LockFreeStack.html)
|
226
|
-
*Status: missing documentation and tests.*
|
227
|
-
* [Promises::Channel](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Promises/Channel.html)
|
228
|
-
A first in first out channel that accepts messages with push family of methods and returns
|
229
|
-
messages with pop family of methods.
|
230
|
-
Pop and push operations can be represented as futures, see `#pop_op` and `#push_op`.
|
231
|
-
The capacity of the channel can be limited to support back pressure, use capacity option in `#initialize`.
|
232
|
-
`#pop` method blocks ans `#pop_op` returns pending future if there is no message in the channel.
|
233
|
-
If the capacity is limited the `#push` method blocks and `#push_op` returns pending future.
|
234
|
-
* [Cancellation](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Cancellation.html)
|
235
|
-
The Cancellation abstraction provides cooperative cancellation.
|
236
|
-
|
237
|
-
The standard methods `Thread#raise` of `Thread#kill` available in Ruby
|
238
|
-
are very dangerous (see linked the blog posts bellow).
|
239
|
-
Therefore concurrent-ruby provides an alternative.
|
240
|
-
|
241
|
-
* <https://jvns.ca/blog/2015/11/27/why-rubys-timeout-is-dangerous-and-thread-dot-raise-is-terrifying/>
|
242
|
-
* <http://www.mikeperham.com/2015/05/08/timeout-rubys-most-dangerous-api/>
|
243
|
-
* <http://blog.headius.com/2008/02/rubys-threadraise-threadkill-timeoutrb.html>
|
244
|
-
|
245
|
-
It provides an object which represents a task which can be executed,
|
246
|
-
the task has to get the reference to the object and periodically cooperatively check that it is not cancelled.
|
247
|
-
Good practices to make tasks cancellable:
|
248
|
-
* check cancellation every cycle of a loop which does significant work,
|
249
|
-
* do all blocking actions in a loop with a timeout then on timeout check cancellation
|
250
|
-
and if ok block again with the timeout
|
251
|
-
* [Throttle](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Throttle.html)
|
252
|
-
A tool managing concurrency level of tasks.
|
253
|
-
* [ErlangActor](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/ErlangActor.html)
|
254
|
-
Actor implementation which precisely matches Erlang actor behaviour.
|
255
|
-
Requires at least Ruby 2.1 otherwise it's not loaded.
|
256
|
-
* [WrappingExecutor](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/WrappingExecutor.html)
|
257
|
-
A delegating executor which modifies each task before the task is given to
|
258
|
-
the target executor it delegates to.
|
259
|
-
|
260
|
-
## Supported Ruby versions
|
261
|
-
|
262
|
-
* MRI 2.3 and above
|
263
|
-
* Latest JRuby 9000
|
264
|
-
* Latest TruffleRuby
|
265
|
-
|
266
|
-
## Usage
|
267
|
-
|
268
|
-
Everything within this gem can be loaded simply by requiring it:
|
269
|
-
|
270
|
-
```ruby
|
271
|
-
require 'concurrent'
|
272
|
-
```
|
273
|
-
|
274
|
-
You can also require a specific abstraction [part of the public documentation](https://ruby-concurrency.github.io/concurrent-ruby/master/index.html) since concurrent-ruby 1.2.0, for example:
|
275
|
-
```ruby
|
276
|
-
require 'concurrent/map'
|
277
|
-
require 'concurrent/atomic/atomic_reference'
|
278
|
-
require 'concurrent/executor/fixed_thread_pool'
|
279
|
-
```
|
280
|
-
|
281
|
-
To use the tools in the Edge gem it must be required separately:
|
282
|
-
|
283
|
-
```ruby
|
284
|
-
require 'concurrent-edge'
|
285
|
-
```
|
286
|
-
|
287
|
-
If the library does not behave as expected, `Concurrent.use_stdlib_logger(Logger::DEBUG)` could
|
288
|
-
help to reveal the problem.
|
289
|
-
|
290
|
-
## Installation
|
291
|
-
|
292
|
-
```shell
|
293
|
-
gem install concurrent-ruby
|
294
|
-
```
|
295
|
-
|
296
|
-
or add the following line to Gemfile:
|
297
|
-
|
298
|
-
```ruby
|
299
|
-
gem 'concurrent-ruby', require: 'concurrent'
|
300
|
-
```
|
301
|
-
|
302
|
-
and run `bundle install` from your shell.
|
303
|
-
|
304
|
-
### Edge Gem Installation
|
305
|
-
|
306
|
-
The Edge gem must be installed separately from the core gem:
|
307
|
-
|
308
|
-
```shell
|
309
|
-
gem install concurrent-ruby-edge
|
310
|
-
```
|
311
|
-
|
312
|
-
or add the following line to Gemfile:
|
313
|
-
|
314
|
-
```ruby
|
315
|
-
gem 'concurrent-ruby-edge', require: 'concurrent-edge'
|
316
|
-
```
|
317
|
-
|
318
|
-
and run `bundle install` from your shell.
|
319
|
-
|
320
|
-
|
321
|
-
### C Extensions for MRI
|
322
|
-
|
323
|
-
Potential performance improvements may be achieved under MRI by installing optional C extensions.
|
324
|
-
To minimise installation errors the C extensions are available in the `concurrent-ruby-ext`
|
325
|
-
extension gem. `concurrent-ruby` and `concurrent-ruby-ext` are always released together with same
|
326
|
-
version. Simply install the extension gem too:
|
327
|
-
|
328
|
-
```ruby
|
329
|
-
gem install concurrent-ruby-ext
|
330
|
-
```
|
331
|
-
|
332
|
-
or add the following line to Gemfile:
|
333
|
-
|
334
|
-
```ruby
|
335
|
-
gem 'concurrent-ruby-ext'
|
336
|
-
```
|
337
|
-
|
338
|
-
and run `bundle install` from your shell.
|
339
|
-
|
340
|
-
In code it is only necessary to
|
341
|
-
|
342
|
-
```ruby
|
343
|
-
require 'concurrent'
|
344
|
-
```
|
345
|
-
|
346
|
-
The `concurrent-ruby` gem will automatically detect the presence of the `concurrent-ruby-ext` gem
|
347
|
-
and load the appropriate C extensions.
|
348
|
-
|
349
|
-
#### Note For gem developers
|
350
|
-
|
351
|
-
No gems should depend on `concurrent-ruby-ext`. Doing so will force C extensions on your users. The
|
352
|
-
best practice is to depend on `concurrent-ruby` and let users to decide if they want C extensions.
|
353
|
-
|
354
|
-
## Building the gem
|
355
|
-
|
356
|
-
### Requirements
|
357
|
-
|
358
|
-
* Recent CRuby
|
359
|
-
* JRuby, `rbenv install jruby-9.2.17.0`
|
360
|
-
* Set env variable `CONCURRENT_JRUBY_HOME` to point to it, e.g. `/usr/local/opt/rbenv/versions/jruby-9.2.17.0`
|
361
|
-
* Install Docker, required for Windows builds
|
362
|
-
|
363
|
-
### Publishing the Gem
|
364
|
-
|
365
|
-
* Update `version.rb`
|
366
|
-
* Update the CHANGELOG
|
367
|
-
* Add the new version to `docs-source/signpost.md`. Needs to be done only if there are visible changes in the documentation.
|
368
|
-
* Commit (and push) the changes.
|
369
|
-
* Use `bundle exec rake release` to release the gem.
|
370
|
-
It consists of `['release:checks', 'release:build', 'release:test', 'release:publish']` steps.
|
371
|
-
It will ask at the end before publishing anything. Steps can also be executed individually.
|
372
|
-
|
373
|
-
## Maintainers
|
374
|
-
|
375
|
-
* [Benoit Daloze](https://github.com/eregon)
|
376
|
-
* [Matthew Draper](https://github.com/matthewd)
|
377
|
-
* [Rafael França](https://github.com/rafaelfranca)
|
378
|
-
* [Charles Oliver Nutter](https://github.com/headius)
|
379
|
-
* [Ben Sheldon](https://github.com/bensheldon)
|
380
|
-
* [Samuel Williams](https://github.com/ioquatix)
|
381
|
-
|
382
|
-
### Special Thanks to
|
383
|
-
|
384
|
-
* [Jerry D'Antonio](https://github.com/jdantonio) for creating the gem
|
385
|
-
* [Brian Durand](https://github.com/bdurand) for the `ref` gem
|
386
|
-
* [Charles Oliver Nutter](https://github.com/headius) for the `atomic` and `thread_safe` gems
|
387
|
-
* [thedarkone](https://github.com/thedarkone) for the `thread_safe` gem
|
388
|
-
|
389
|
-
to the past maintainers
|
390
|
-
|
391
|
-
* [Chris Seaton](https://github.com/chrisseaton)
|
392
|
-
* [Petr Chalupa](https://github.com/pitr-ch)
|
393
|
-
* [Michele Della Torre](https://github.com/mighe)
|
394
|
-
* [Paweł Obrok](https://github.com/obrok)
|
395
|
-
* [Lucas Allan](https://github.com/lucasallan)
|
396
|
-
|
397
|
-
and to [Ruby Association](https://www.ruby.or.jp/en/) for sponsoring a project
|
398
|
-
["Enhancing Ruby’s concurrency tooling"](https://www.ruby.or.jp/en/news/20181106) in 2018.
|
399
|
-
|
400
|
-
## License and Copyright
|
401
|
-
|
402
|
-
*Concurrent Ruby* is free software released under the
|
403
|
-
[MIT License](http://www.opensource.org/licenses/MIT).
|
404
|
-
|
405
|
-
The *Concurrent Ruby* [logo](https://raw.githubusercontent.com/ruby-concurrency/concurrent-ruby/master/docs-source/logo/concurrent-ruby-logo-300x300.png) was
|
406
|
-
designed by [David Jones](https://twitter.com/zombyboy). It is Copyright © 2014
|
407
|
-
[Jerry D'Antonio](https://twitter.com/jerrydantonio). All Rights Reserved.
|
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2011 Mike Perham
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -1,135 +0,0 @@
|
|
1
|
-
connection\_pool
|
2
|
-
=================
|
3
|
-
[![Build Status](https://github.com/mperham/connection_pool/actions/workflows/ci.yml/badge.svg)](https://github.com/mperham/connection_pool/actions/workflows/ci.yml)
|
4
|
-
|
5
|
-
Generic connection pooling for Ruby.
|
6
|
-
|
7
|
-
MongoDB has its own connection pool.
|
8
|
-
ActiveRecord has its own connection pool.
|
9
|
-
This is a generic connection pool that can be used with anything, e.g. Redis, Dalli and other Ruby network clients.
|
10
|
-
|
11
|
-
Usage
|
12
|
-
-----
|
13
|
-
|
14
|
-
Create a pool of objects to share amongst the fibers or threads in your Ruby application:
|
15
|
-
|
16
|
-
``` ruby
|
17
|
-
$memcached = ConnectionPool.new(size: 5, timeout: 5) { Dalli::Client.new }
|
18
|
-
```
|
19
|
-
|
20
|
-
Then use the pool in your application:
|
21
|
-
|
22
|
-
``` ruby
|
23
|
-
$memcached.with do |conn|
|
24
|
-
conn.get('some-count')
|
25
|
-
end
|
26
|
-
```
|
27
|
-
|
28
|
-
If all the objects in the connection pool are in use, `with` will block
|
29
|
-
until one becomes available.
|
30
|
-
If no object is available within `:timeout` seconds,
|
31
|
-
`with` will raise a `ConnectionPool::TimeoutError` (a subclass of `Timeout::Error`).
|
32
|
-
|
33
|
-
You can also use `ConnectionPool#then` to support _both_ a
|
34
|
-
connection pool and a raw client.
|
35
|
-
|
36
|
-
```ruby
|
37
|
-
# Compatible with a raw Redis::Client, and ConnectionPool Redis
|
38
|
-
$redis.then { |r| r.set 'foo' 'bar' }
|
39
|
-
```
|
40
|
-
|
41
|
-
Optionally, you can specify a timeout override using the with-block semantics:
|
42
|
-
|
43
|
-
``` ruby
|
44
|
-
$memcached.with(timeout: 2.0) do |conn|
|
45
|
-
conn.get('some-count')
|
46
|
-
end
|
47
|
-
```
|
48
|
-
|
49
|
-
This will only modify the resource-get timeout for this particular
|
50
|
-
invocation.
|
51
|
-
This is useful if you want to fail-fast on certain non-critical
|
52
|
-
sections when a resource is not available, or conversely if you are comfortable blocking longer on a particular resource.
|
53
|
-
This is not implemented in the `ConnectionPool::Wrapper` class.
|
54
|
-
|
55
|
-
## Migrating to a Connection Pool
|
56
|
-
|
57
|
-
You can use `ConnectionPool::Wrapper` to wrap a single global connection, making it easier to migrate existing connection code over time:
|
58
|
-
|
59
|
-
``` ruby
|
60
|
-
$redis = ConnectionPool::Wrapper.new(size: 5, timeout: 3) { Redis.new }
|
61
|
-
$redis.sadd('foo', 1)
|
62
|
-
$redis.smembers('foo')
|
63
|
-
```
|
64
|
-
|
65
|
-
The wrapper uses `method_missing` to checkout a connection, run the requested method and then immediately check the connection back into the pool.
|
66
|
-
It's **not** high-performance so you'll want to port your performance sensitive code to use `with` as soon as possible.
|
67
|
-
|
68
|
-
``` ruby
|
69
|
-
$redis.with do |conn|
|
70
|
-
conn.sadd('foo', 1)
|
71
|
-
conn.smembers('foo')
|
72
|
-
end
|
73
|
-
```
|
74
|
-
|
75
|
-
Once you've ported your entire system to use `with`, you can simply remove `Wrapper` and use the simpler and faster `ConnectionPool`.
|
76
|
-
|
77
|
-
|
78
|
-
## Shutdown
|
79
|
-
|
80
|
-
You can shut down a ConnectionPool instance once it should no longer be used.
|
81
|
-
Further checkout attempts will immediately raise an error but existing checkouts will work.
|
82
|
-
|
83
|
-
```ruby
|
84
|
-
cp = ConnectionPool.new { Redis.new }
|
85
|
-
cp.shutdown { |c| c.close }
|
86
|
-
```
|
87
|
-
|
88
|
-
Shutting down a connection pool will block until all connections are checked in and closed.
|
89
|
-
**Note that shutting down is completely optional**; Ruby's garbage collector will reclaim unreferenced pools under normal circumstances.
|
90
|
-
|
91
|
-
## Reload
|
92
|
-
|
93
|
-
You can reload a ConnectionPool instance in the case it is desired to close all connections to the pool and, unlike `shutdown`, afterwards recreate connections so the pool may continue to be used.
|
94
|
-
Reloading may be useful after forking the process.
|
95
|
-
|
96
|
-
```ruby
|
97
|
-
cp = ConnectionPool.new { Redis.new }
|
98
|
-
cp.reload { |conn| conn.quit }
|
99
|
-
cp.with { |conn| conn.get('some-count') }
|
100
|
-
```
|
101
|
-
|
102
|
-
Like `shutdown`, this will block until all connections are checked in and closed.
|
103
|
-
|
104
|
-
## Current State
|
105
|
-
|
106
|
-
There are several methods that return information about a pool.
|
107
|
-
|
108
|
-
```ruby
|
109
|
-
cp = ConnectionPool.new(size: 10) { Redis.new }
|
110
|
-
cp.size # => 10
|
111
|
-
cp.available # => 10
|
112
|
-
|
113
|
-
cp.with do |conn|
|
114
|
-
cp.size # => 10
|
115
|
-
cp.available # => 9
|
116
|
-
end
|
117
|
-
```
|
118
|
-
|
119
|
-
Notes
|
120
|
-
-----
|
121
|
-
|
122
|
-
- Connections are lazily created as needed.
|
123
|
-
- There is no provision for repairing or checking the health of a connection;
|
124
|
-
connections should be self-repairing. This is true of the Dalli and Redis
|
125
|
-
clients.
|
126
|
-
- **WARNING**: Don't ever use `Timeout.timeout` in your Ruby code or you will see
|
127
|
-
occasional silent corruption and mysterious errors. The Timeout API is unsafe
|
128
|
-
and cannot be used correctly, ever. Use proper socket timeout options as
|
129
|
-
exposed by Net::HTTP, Redis, Dalli, etc.
|
130
|
-
|
131
|
-
|
132
|
-
Author
|
133
|
-
------
|
134
|
-
|
135
|
-
Mike Perham, [@getajobmike](https://twitter.com/getajobmike), <https://www.mikeperham.com>
|
@@ -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,18 +0,0 @@
|
|
1
|
-
Copyright (c) 2020 Ryan Grove (ryan@wonko.com)
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
-
this software and associated documentation files (the ‘Software’), to deal in
|
5
|
-
the Software without restriction, including without limitation the rights to
|
6
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
7
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
8
|
-
subject to the following conditions:
|
9
|
-
|
10
|
-
The above copyright notice and this permission notice shall be included in all
|
11
|
-
copies or substantial portions of the Software.
|
12
|
-
|
13
|
-
THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
15
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
16
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
17
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
18
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|