-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ruby3 #18
Support ruby3 #18
Conversation
- Changed CI GitHub Actions insted of travis mixigroup#15 - Not need others
- Update README
7cfe0c9
to
f61df56
Compare
f61df56
to
5a55213
Compare
6fa4dc6
to
6f47bf2
Compare
897d3cf
to
773ea63
Compare
@@ -364,21 +364,6 @@ def get_or_read(store, key) | |||
it_behaves_like "cache store example", one_cache_store | |||
end | |||
end | |||
|
|||
context "ActiveSupport :dalli_store in Dalli" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove these specs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test was removed in 5b0bdaa, probably because dalli_store was removed from dalli 3.0.
cf. https://stackoverflow.com/a/76655389
An error occurred while loading ./spec/double_write_cache_stores/client_spec.rb.
Failure/Error: read_and_write_store = ActiveSupport::Cache.lookup_store :dalli_store, "localhost:11211"
RuntimeError:
Could not find cache store adapter for dalli_store (cannot load such file -- active_support/cache/dalli_store)
# ./spec/double_write_cache_stores/client_spec.rb:369:in `block (3 levels) in <top (required)>'
# ./spec/double_write_cache_stores/client_spec.rb:368:in `block (2 levels) in <top (required)>'
# ./spec/double_write_cache_stores/client_spec.rb:349:in `block in <top (required)>'
# ./spec/double_write_cache_stores/client_spec.rb:11:in `<top (required)>'
# ------------------
# --- Caused by: ---
# LoadError:
# cannot load such file -- active_support/cache/dalli_store
# ./spec/double_write_cache_stores/client_spec.rb:369:in `block (3 levels) in <top (required)>'
Finished in 0.00002 seconds (files took 0.70444 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, that sounds good.
Could you update Support backend cache store
in README.md ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed README 🙏 b7255a5
@@ -3,4 +3,4 @@ | |||
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) | |||
require "double_write_cache_stores" | |||
require "dalli" | |||
require "dalli/cas/client" | |||
require "dalli/client" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a fix for the warning below:
You can remove
require 'dalli/cas/client'
as this code has been rolled into the standard 'dalli/client'.
31b04d3
to
773ea63
Compare
@hirocaster Could you please check PR? 🙇 |
@@ -364,21 +364,6 @@ def get_or_read(store, key) | |||
it_behaves_like "cache store example", one_cache_store | |||
end | |||
end | |||
|
|||
context "ActiveSupport :dalli_store in Dalli" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, that sounds good.
Could you update Support backend cache store
in README.md ?
🙏 |
Supports Ruby 3.0 based on https://github.com/matsubara0507/double_write_cache_stores/tree/support-ruby3 .
Also made fixes for RuboCop. ea4306d
@hirocaster @matsubara0507 Could you please review?