Closed zlw closed 2 years ago
Tested with my company app, everything work like a charm and removes all deprecation warning :heart_eyes:
@jodosha @timriley 👋 I saw that you had PRs with attempts at this before, maybe you could give it a look? 😄
AutoRegistrar#relative_path
private method was removed and app
-based dirs not worked with dry-system v0.20
BTW, this fixes the problem
require "dry/system/loader/autoloading"
Dry::Rails.container do
config.component_dirs.add "app/operations" do |dir|
dir.loader = Dry::System::Loader::Autoloading
end
end
@zlw Sorry, I don't have enough knowledge to judge this code, not an app to test the changes.
Sorry for the delay folks, I should be able to look at this next week. In the meantime I'll be doing another dry-system release, so hopefully that makes for the smoothest order of changes here :)
@timriley Hey! Is there anything we can help with to push this forward?
@pusewicz 👋🏻 I'll help with getting this merged in and released
@pusewicz done https://github.com/dry-rb/dry-rails/releases/tag/v0.4.0
@zlw & @solnic Thanks!
👋 Hi all,
Follow up on discussion on dry-rb discourse
This PR makes all necessary changes to support latest
dry-rb
stack (namely,dry-system
0.20.0)Dry::Rails::Container
that were removed fromDry::Sytem::Container
dry-configurable
syntax (includedefault:
key)component_dirs.add
instead ofauto_register!
rescue
in spec-s, seems like.add
is a bit more strict thanauto_register!
~ 🤔dry-system
, kept specs that check if configuration still works as expected, but I'm not re-testing what's already (I guess 😅) tested in underlying gems>=2.6.0
Thanks for the feedback 🙇♂️