dry-container icon indicating copy to clipboard operation
dry-container copied to clipboard

A simple, configurable object container implemented in Ruby

Results 7 dry-container issues
Sort by recently updated
recently updated
newest added

## Describe the bug After updating `dry-container` from 0.8.0 to 0.10.0, I'm getting an ArgumentError missing keywords in `mixin.rb` ``` dry-container-0.10.0/lib/dry/container/mixin.rb:221:in `key?': wrong number of arguments (given 2, expected 1)...

bug
help wanted

A problem reported in [this reddit thread](https://www.reddit.com/r/ruby/comments/isgjfz/drysystem_why_from_manual_dependency_injection_to/g5hvmww/?utm_source=reddit&utm_medium=web2x&context=3) > You should know that dry-container doesn't play well with activesupport tagged logging because of use of fibers. (Thread.current is fiber local, not...

bug
help wanted

I have a use-case where I have several "parser" objects registered in a namespace within a container, and I'd like to iterate over each of those objects to find the...

feature

Looking for a way to memoize by default, since for my usage, not memoizing is more of a corner case. Thanks :)

I think it'll be helpful to store some meta-information about dependency in a container. Some ideas where you can use this information: * Aliases for DI frameworks (dry-auto_inject in our...

Now we require config to be updated inside `configure` blocks only. This matches the behaviour that we're introducing in https://github.com/dry-rb/dry-configurable/pull/140.

``` Users/macbookpro/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/dry-container-0.11.0/lib/dry/container/mixin.rb:155:in `register': undefined method `call' for {:default=>#}:Hash (NoMethodError) config.registry.call(_container, key, item, options) ^^^^^ from /Users/macbookpro/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/dry-auto_inject-0.9.0/lib/dry/auto_inject/strategies/args.rb:72:in `' from /Users/macbookpro/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/dry-auto_inject-0.9.0/lib/dry/auto_inject/strategies/args.rb:8:in `' from /Users/macbookpro/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/dry-auto_inject-0.9.0/lib/dry/auto_inject/strategies/args.rb:7:in `' from /Users/macbookpro/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/dry-auto_inject-0.9.0/lib/dry/auto_inject/strategies/args.rb:6:in `' from /Users/macbookpro/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/dry-auto_inject-0.9.0/lib/dry/auto_inject/strategies.rb:19:in `require' from...

bug
help wanted