Skip to content

Commit

Permalink
Update paths in docs and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-gordon committed Aug 27, 2023
1 parent cb1f6e2 commit 4e7c18f
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docsite/source/component-dirs.html.md
Expand Up @@ -201,7 +201,7 @@ Set this to false if you’re using dry-container with an autoloader.
When using a class autoloader, consider setting this to `Dry::System::Loader::Autoloading`:

```ruby
require "dry/system/loader/autoloading"
require "dry/system"

class Application < Dry::System::Container
configure do |config|
Expand Down
4 changes: 2 additions & 2 deletions docsite/source/container.html.md
Expand Up @@ -9,7 +9,7 @@ The main API of dry-system is the abstract container that you inherit from. It a
Let's say you want to define an application container that will provide a logger:

``` ruby
require 'dry/system/container'
require 'dry/system'

class Application < Dry::System::Container
configure do |config|
Expand All @@ -32,7 +32,7 @@ By using simple naming conventions we can automatically register objects within
Let's provide a custom logger object and put it under a custom load-path that we will configure:

``` ruby
require 'dry/system/container'
require 'dry/system'

class Application < Dry::System::Container
configure do |config|
Expand Down
2 changes: 1 addition & 1 deletion docsite/source/dependency-auto-injection.html.md
Expand Up @@ -41,7 +41,7 @@ Here's a sample setup for this scenario:

``` ruby
# system/container.rb
require "dry/system/container"
require "dry/system"

class Application < Dry::System::Container
configure do |config|
Expand Down
2 changes: 1 addition & 1 deletion docsite/source/external-provider-sources.html.md
Expand Up @@ -39,7 +39,7 @@ Then you can use this provider source when you register a provider in a dry-syst
``` ruby
# system/app/container.rb

require "dry/system/container"
require "dry/system"
require "my_gem/provider_sources"

module App
Expand Down
2 changes: 1 addition & 1 deletion docsite/source/settings.html.md
Expand Up @@ -11,7 +11,7 @@ dry-system provides a `:settings` provider source that you can use to load setti
```ruby
# system/providers/settings.rb:

require "dry/system/provider_sources"
require "dry/system"

Application.register_provider(:settings, from: :dry_system) do
before :prepare do
Expand Down
2 changes: 1 addition & 1 deletion docsite/source/test-mode.html.md
Expand Up @@ -8,7 +8,7 @@ In some cases it is useful to stub a component in your tests. To enable this, dr
in which a container will not be frozen during finalization. This allows you to use `stub` API to stub a given component.

``` ruby
require 'dry/system/container'
require 'dry/system'

class Application < Dry::System::Container
configure do |config|
Expand Down
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require "dry/system/container"
require "dry/system"

class App < Dry::System::Container
configure do |config|
Expand Down
2 changes: 1 addition & 1 deletion examples/standalone/system/container.rb
Expand Up @@ -2,7 +2,7 @@

require "dry/events"
require "dry/monitor/notifications"
require "dry/system/container"
require "dry/system"

class App < Dry::System::Container
use :dependency_graph
Expand Down
2 changes: 1 addition & 1 deletion examples/zeitwerk/system/container.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require "dry/system/container"
require "dry/system"

class App < Dry::System::Container
use :env, inferrer: -> { ENV.fetch("RACK_ENV", :development).to_sym }
Expand Down
2 changes: 1 addition & 1 deletion lib/dry/system/container.rb
Expand Up @@ -148,7 +148,7 @@ def configured?
#
# @example
# # system/container.rb
# require "dry/system/container"
# require "dry/system"
# require "logger"
#
# class Core < Dry::System::Container
Expand Down

0 comments on commit 4e7c18f

Please sign in to comment.