Added component dir namespaces as a way to specify multiple, ordered, independent namespace rules within a given component dir. This replaces and expands upon the namespace support we previously provided via the singular default_namespace component dir setting (@timriley in #181)
Changed
default_namespace setting on component dirs has been deprecated. Add a component dir namespace instead, e.g. instead of:
# Inside Dry::System::Container.configure
config.component_dirs.add "lib" do |dir|
dir.default_namespace = "admin"
end
Add this:
config.component_dirs.add "lib" do |dir|
dir.namespaces.add "admin", key: nil
end
Added component dir namespaces as a way to specify multiple, ordered, independent namespace rules within a given component dir. This replaces and expands upon the namespace support we previously provided via the singular default_namespace component dir setting (@timriley in #181)
Changed
default_namespace setting on component dirs has been deprecated. Add a component dir namespace instead, e.g. instead of:
# Inside Dry::System::Container.configure
config.component_dirs.add "lib" do |dir|
dir.default_namespace = "admin"
end
Add this:
config.component_dirs.add "lib" do |dir|
dir.namespaces.add "admin", key: nil
end
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps dry-system from 0.20.0 to 0.21.0.
Release notes
Sourced from dry-system's releases.
Changelog
Sourced from dry-system's changelog.
Commits
cea4c8e
Bump dry-system to 0.21.0867f35f
[devtools] sync1ac4749
Fix wording in changelogfe2f736
[devtools] sync062728e
Add changelog entry for 0.21.013b9502
Fix rubocop issues in examples4f8a18f
Fix settings component example code (#183)4db6bd2
Fix examples (#188)5855fc2
Update docs6a208ba
Merge pull request #181 from dry-rb/explicit-two-way-component-dir-namespacesDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)