yegor256 / zache

Zero-footprint Ruby In-Memory Thread-Safe Cache: when a naive implementation is enough
https://www.yegor256.com/2019/02/05/zache.html
MIT License
41 stars 6 forks source link

dirty get() without a block must return the value #27

Closed yegor256 closed 5 years ago

yegor256 commented 5 years ago

Let's fix and test.

yegor256 commented 5 years ago

@rultor release, tag is 0.7.1

rultor commented 5 years ago

@rultor release, tag is 0.7.1

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 5 years ago

@rultor release, tag is 0.7.1

@yegor256 Oops, I failed. You can see the full log here (spent 2min)


# Running:

......................

Finished in 2.137161s, 10.2940 runs/s, 67.8470 assertions/s.

22 runs, 145 assertions, 0 failures, 0 errors, 0 skips
Running RuboCop...
unknown keywords: whitelist_classes, whitelist_symbols
/usr/local/rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0/psych.rb:328:in `safe_load'
/home/r/.ruby/gems/rubocop-0.60.0/lib/rubocop/config_loader.rb:185:in `yaml_safe_load'
/home/r/.ruby/gems/rubocop-0.60.0/lib/rubocop/config_loader.rb:159:in `load_yaml_configuration'
/home/r/.ruby/gems/rubocop-rspec-1.30.1/lib/rubocop/rspec/inject.rb:8:in `defaults!'
/home/r/.ruby/gems/rubocop-rspec-1.30.1/lib/rubocop-rspec.rb:24:in `<top (required)>'
/home/r/.ruby/gems/rubocop-0.60.0/lib/rubocop/options.rb:65:in `require'
/home/r/.ruby/gems/rubocop-0.60.0/lib/rubocop/options.rb:65:in `block (2 levels) in define_options'
/home/r/.ruby/gems/rubocop-0.60.0/lib/rubocop/options.rb:196:in `block in option'
/usr/local/rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0/optparse.rb:1582:in `block in parse_in_order'
/usr/local/rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0/optparse.rb:1568:in `catch'
/usr/local/rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0/optparse.rb:1568:in `parse_in_order'
/usr/local/rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0/optparse.rb:1562:in `order!'
/usr/local/rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0/optparse.rb:1656:in `permute!'
/usr/local/rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0/optparse.rb:1678:in `parse!'
/home/r/.ruby/gems/rubocop-0.60.0/lib/rubocop/options.rb:22:in `parse'
/home/r/.ruby/gems/rubocop-0.60.0/lib/rubocop/cli.rb:37:in `run'
/home/r/.ruby/gems/rubocop-0.60.0/lib/rubocop/rake_task.rb:44:in `run_cli'
/home/r/.ruby/gems/rubocop-0.60.0/lib/rubocop/rake_task.rb:28:in `block (2 levels) in initialize'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/file_utils_ext.rb:59:in `verbose'
/home/r/.ruby/gems/rubocop-0.60.0/lib/rubocop/rake_task.rb:26:in `block in initialize'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/task.rb:271:in `block in execute'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/task.rb:271:in `each'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/task.rb:271:in `execute'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/task.rb:213:in `block in invoke_with_call_chain'
/usr/local/rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0/monitor.rb:230:in `mon_synchronize'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/task.rb:193:in `invoke_with_call_chain'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/task.rb:237:in `block in invoke_prerequisites'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/task.rb:235:in `each'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/task.rb:235:in `invoke_prerequisites'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/task.rb:212:in `block in invoke_with_call_chain'
/usr/local/rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0/monitor.rb:230:in `mon_synchronize'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/task.rb:193:in `invoke_with_call_chain'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/task.rb:182:in `invoke'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/application.rb:160:in `invoke_task'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/application.rb:116:in `each'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/application.rb:116:in `block in top_level'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/application.rb:125:in `run_with_threads'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/application.rb:110:in `top_level'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/application.rb:83:in `block in run'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/application.rb:186:in `standard_exception_handling'
/home/r/.ruby/gems/rake-12.3.1/lib/rake/application.rb:80:in `run'
/home/r/.ruby/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/usr/local/rvm/rubies/ruby-2.6.0/bin/rake:29:in `load'
/usr/local/rvm/rubies/ruby-2.6.0/bin/rake:29:in `<main>'
/usr/local/rvm/gems/ruby-2.6.0/bin/ruby_executable_hooks:24:in `eval'
/usr/local/rvm/gems/ruby-2.6.0/bin/ruby_executable_hooks:24:in `<main>'
RuboCop failed!
container 419a5d28a6df6c3c498655cf8df3a315380a26a4f1435263c4eebc30507fbdf7 is dead
Tue Jan  8 13:27:04 CET 2019
yegor256 commented 5 years ago

@rultor release, tag is 0.8.0

rultor commented 5 years ago

@rultor release, tag is 0.8.0

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 5 years ago

@rultor release, tag is 0.8.0

@yegor256 Done! FYI, the full log is here (took me 2min)