Open dmitry-goncharuk opened 2 years ago
Middleware interface introduced in AnyCable 1.1 is absolutely essential for this gem to work.
So the only way to get it working in Rails before 6 is to convince @palkan to add support for Rails < 6 to anycable-rails 1.1.x :stuck_out_tongue_winking_eye:
anycable-rails
1.1.x supports Rails 5; see also https://github.com/anycable/anycable-rails/issues/164
@Envek I totally get it. Issue is that you can install yabeda-anycable
along with anycable-rails
1.0.x, which leads to an error.
anycable
andanycabe-rails
gems version below 1.1 do not haveanycable-core
as its dependencies. This causes errors, when addingyabeda-anycabl
to a project with those gems installed.This is caused because of a few things:
anycable
introduces breaking changes at v 1.1 - https://github.com/anycable/anycable/blob/master/CHANGELOG.md#110rc1-2021-05-12yabeda-anycable
middleware relies on an interface that is introduced inanycable
1.1yabeda-anycable
adds its middleware it causesAnyCable::Rails::Middlewares::LogTagging
to throwundefined method
metadata' for #It is most likely to be common for Rails projects below version 6, as
anycable-rails
1.1 can not be added to Rails <6 projects.I guess it should be at least, mentioned in the Readme.