Skip to content

Commit

Permalink
Merge pull request #50 from dry-rb/upgrade-to-dry-system-0.21
Browse files Browse the repository at this point in the history
Upgrade to dry-system 0.21
  • Loading branch information
solnic authored Dec 23, 2021
2 parents ea07860 + e823f25 commit 60db8ad
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docsite/source/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Currently, the railtie **does not make any assumptions about your directory/file
Dry::Rails.container do
config.component_dirs.add "app/operations"
config.component_dirs.add "lib" do |dir|
dir.default_namespace = "my_super_cool_app"
dir.namespaces.add "my_super_cool_app", key: nil
end
end
```
Expand Down
2 changes: 1 addition & 1 deletion lib/dry/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module Dry
#
# Dry::Rails.container do
# config.component_dirs.add "lib" do |dir|
# dir.default_namespace = "my_super_cool_app"
# dir.namespaces.add "my_super_cool_app", key: nil
# end
#
# config.component_dirs.add "app/operations"
Expand Down
2 changes: 1 addition & 1 deletion lib/dry/rails/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class << self
#
# TODO: this should be moved to dry-system
def booted?(name)
booter.booted.map(&:identifier).include?(name)
booter.booted.map(&:name).include?(name)
end

# TODO: confirm that this is really needed
Expand Down
2 changes: 1 addition & 1 deletion project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ gemspec:
- rake
- rspec
runtime_dependencies:
- [dry-system, "~> 0.20", ">= 0.20"]
- [dry-system, "~> 0.21"]
- [dry-schema, "~> 1.7"]
- [dry-validation, "~> 1.5"]
2 changes: 1 addition & 1 deletion spec/dummy/config/initializers/system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Dry::Rails.container do
config.component_dirs.add "lib" do |dir|
dir.default_namespace = "dummy"
dir.namespaces.add "dummy", key: nil
end

config.component_dirs.add "app/operations"
Expand Down
2 changes: 1 addition & 1 deletion templates/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# enable auto-registration in the lib dir
# config.component_dirs.add "lib" do |dir|
# dir.default_namespace = "my_super_cool_app"
# dir.namespaces.add "my_super_cool_app", key: nil
# end
end
CODE

0 comments on commit 60db8ad

Please sign in to comment.