dry-container 0.7.2 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +45 -39
- data/LICENSE +1 -1
- data/README.md +18 -12
- data/dry-container.gemspec +39 -22
- data/lib/dry-container.rb +3 -1
- data/lib/dry/container.rb +10 -8
- data/lib/dry/container/error.rb +2 -0
- data/lib/dry/container/item.rb +2 -0
- data/lib/dry/container/item/callable.rb +3 -1
- data/lib/dry/container/item/factory.rb +4 -2
- data/lib/dry/container/item/memoizable.rb +4 -4
- data/lib/dry/container/mixin.rb +4 -3
- data/lib/dry/container/namespace.rb +2 -0
- data/lib/dry/container/namespace_dsl.rb +3 -1
- data/lib/dry/container/registry.rb +3 -1
- data/lib/dry/container/resolver.rb +3 -1
- data/lib/dry/container/stub.rb +3 -1
- data/lib/dry/container/version.rb +3 -1
- metadata +26 -41
- data/.codeclimate.yml +0 -32
- data/.gitignore +0 -10
- data/.rspec +0 -2
- data/.rubocop.yml +0 -24
- data/.rubocop_todo.yml +0 -6
- data/.travis.yml +0 -30
- data/CONTRIBUTING.md +0 -29
- data/Gemfile +0 -19
- data/Rakefile +0 -12
- data/rakelib/rubocop.rake +0 -18
- data/spec/integration/container_spec.rb +0 -18
- data/spec/integration/mixin_spec.rb +0 -32
- data/spec/spec_helper.rb +0 -104
- data/spec/support/shared_examples/container.rb +0 -664
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77e050044acc97600020d74da69d2b54a5788a61fcb84b7c9feba51068b2977e
|
|
4
|
+
data.tar.gz: d7aa97eea6849253f410414c12844f6c04baf4e4a3e9a58f2a26c0211f98ea89
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd18bbb80600daf28c2ce1ce5ea4a24c688a1cfd7e21b365e3486cb871d5cd2065f4484123b0c5d016a9e637fb4fdc44208c6884bb4fd24a241e7c43d26175cd
|
|
7
|
+
data.tar.gz: 19d157a7db948b4663b9ced4d5db537cd0b43407afd8e8e852b203202863f8eba279a083d6d302b8cbe05899e5036b24465186683b8d5746f3fc63d3a5debfeb
|
data/CHANGELOG.md
CHANGED
|
@@ -1,49 +1,41 @@
|
|
|
1
|
-
|
|
1
|
+
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 0.7.2 2019-07-09
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
### Added
|
|
7
|
+
|
|
8
|
+
- `.resolve` accepts an optional fallback block, similar to how `Hash#fetch` works ([flash-gordon](https://github.com/flash-gordon))
|
|
6
9
|
```ruby
|
|
7
10
|
container.resolve('missing_key') { :fallback } # => :fallback
|
|
8
11
|
```
|
|
9
|
-
|
|
12
|
+
- `.decorate` can (again) work with static values. Also, it can take a block instead of `with` ([flash-gordon](https://github.com/flash-gordon))
|
|
10
13
|
```ruby
|
|
11
14
|
container.register('key', 'value')
|
|
12
15
|
container.decorate('key') { |v| "<'#{v}'>" }
|
|
13
16
|
container.resolve('key') # => "<'value'>"
|
|
14
17
|
```
|
|
15
18
|
|
|
16
|
-
[Compare v0.7.1...0.7.2](https://github.com/dry-rb/dry-container/compare/v0.7.1...v0.7.2)
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
[Compare v0.7.1...v0.7.2](https://github.com/dry-rb/dry-container/compare/v0.7.1...v0.7.2)
|
|
19
21
|
|
|
20
|
-
##
|
|
22
|
+
## 0.7.1 2019-06-07
|
|
21
23
|
|
|
22
|
-
* Added `Mixin#dup` and `Mixin#clone`, now copies don't share underlying containers (flash-gordon)
|
|
23
24
|
|
|
24
|
-
|
|
25
|
+
### Fixed
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
- Added `Mixin#dup` and `Mixin#clone`, now copies don't share underlying containers (flash-gordon)
|
|
27
28
|
|
|
28
|
-
## Changed
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
[Compare v0.7.0...v0.7.1](https://github.com/dry-rb/dry-container/compare/v0.7.0...v0.7.1)
|
|
31
31
|
|
|
32
|
-
##
|
|
32
|
+
## 0.7.0 2019-02-05
|
|
33
33
|
|
|
34
|
-
* Symbols are now coerced to strings when resolving stubbed dependencies ([cthulhu666](https://github.com/cthulhu666))
|
|
35
|
-
* Stubbing keys not present in container will raise an error ([flash-gordon](https://github.com/flash-gordon))
|
|
36
34
|
|
|
37
|
-
|
|
38
|
-
```
|
|
39
|
-
ArgumentError (cannot stub "something" - no such key in container)
|
|
40
|
-
```
|
|
41
|
-
Be sure you register dependencies before using them. The new behavior will likely save quite a bit of time when debugging ill-configured container setups.
|
|
35
|
+
### Added
|
|
42
36
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
* Namespace DSL resolves keys relative to the current namespace, see the corresponding [changes](https://github.com/dry-rb/dry-container/pull/47) ([yuszuv](https://github.com/yuszuv))
|
|
46
|
-
* Registered objects can be decorated with the following API ([igor-alexandrov](https://github.com/igor-alexandrov))
|
|
37
|
+
- Namespace DSL resolves keys relative to the current namespace, see the corresponding [changes](https://github.com/dry-rb/dry-container/pull/47) ([yuszuv](https://github.com/yuszuv))
|
|
38
|
+
- Registered objects can be decorated with the following API ([igor-alexandrov](https://github.com/igor-alexandrov))
|
|
47
39
|
|
|
48
40
|
```ruby
|
|
49
41
|
class CreateUser
|
|
@@ -59,34 +51,48 @@
|
|
|
59
51
|
container.resolve('create_user')
|
|
60
52
|
# => #<ShinyLogger @obj=#<CreateUser:0x...>]>
|
|
61
53
|
```
|
|
62
|
-
|
|
54
|
+
- Freezing a container now prevents further registrations ([flash-gordon](https://github.com/flash-gordon))
|
|
55
|
+
- ## Internal
|
|
56
|
+
- Handling container items was generalized in [#34](https://github.com/dry-rb/dry-container/pull/34) ([GabrielMalakias](https://github.com/GabrielMalakias))
|
|
57
|
+
|
|
58
|
+
### Fixed
|
|
59
|
+
|
|
60
|
+
- Symbols are now coerced to strings when resolving stubbed dependencies ([cthulhu666](https://github.com/cthulhu666))
|
|
61
|
+
- Stubbing keys not present in container will raise an error ([flash-gordon](https://github.com/flash-gordon))
|
|
62
|
+
|
|
63
|
+
This means after upgrading you may see errors like this
|
|
64
|
+
```
|
|
65
|
+
ArgumentError (cannot stub "something" - no such key in container)
|
|
66
|
+
```
|
|
67
|
+
Be sure you register dependencies before using them. The new behavior will likely save quite a bit of time when debugging ill-configured container setups.
|
|
68
|
+
|
|
69
|
+
### Changed
|
|
70
|
+
|
|
71
|
+
- [BREAKING] Now only Ruby 2.3 and above is supported ([flash-gordon](https://github.com/flash-gordon))
|
|
63
72
|
|
|
64
|
-
|
|
73
|
+
[Compare v0.6.0...v0.7.0](https://github.com/dry-rb/dry-container/compare/v0.6.0...v0.7.0)
|
|
65
74
|
|
|
66
|
-
|
|
75
|
+
## 0.6.0 2016-12-09
|
|
67
76
|
|
|
68
|
-
[Compare v0.6.0...0.7.0](https://github.com/dry-rb/dry-container/compare/v0.6.0...v0.7.0)
|
|
69
77
|
|
|
70
|
-
|
|
78
|
+
### Added
|
|
71
79
|
|
|
72
|
-
|
|
80
|
+
- `Dry::Container::Mixin#each` - provides a means of seeing what all is registered in the container ([jeremyf](https://github.com/jeremyf))
|
|
73
81
|
|
|
74
|
-
|
|
82
|
+
### Fixed
|
|
75
83
|
|
|
76
|
-
|
|
84
|
+
- Including mixin into a class with a custom initializer ([maltoe](https://github.com/maltoe))
|
|
77
85
|
|
|
78
|
-
* Including mixin into a class with a custom initializer ([maltoe](https://github.com/maltoe))
|
|
79
86
|
|
|
80
87
|
[Compare v0.5.0...v0.6.0](https://github.com/dry-rb/dry-container/compare/v0.5.0...v0.6.0)
|
|
81
88
|
|
|
82
|
-
##
|
|
89
|
+
## 0.5.0 2016-08-31
|
|
83
90
|
|
|
84
|
-
## Added
|
|
85
91
|
|
|
86
|
-
|
|
92
|
+
### Added
|
|
87
93
|
|
|
88
|
-
|
|
94
|
+
- `memoize` option to `#register` - memoizes items on first resolve ([ivoanjo](https://github.com/ivoanjo))
|
|
89
95
|
|
|
90
|
-
|
|
96
|
+
### Fixed
|
|
91
97
|
|
|
92
|
-
|
|
98
|
+
- `required_ruby_version` set to `>= 2.0.0` ([artofhuman](https://github.com/artofhuman))
|
data/LICENSE
CHANGED
data/README.md
CHANGED
|
@@ -1,23 +1,29 @@
|
|
|
1
|
+
<!--- this file is synced from dry-rb/template-gem project -->
|
|
1
2
|
[gem]: https://rubygems.org/gems/dry-container
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[test_coverage]: https://codeclimate.com/github/dry-rb/dry-container/test_coverage
|
|
5
|
-
[inch]: http://inch-ci.org/github/dry-rb/dry-container
|
|
3
|
+
[actions]: https://github.com/dry-rb/dry-container/actions
|
|
4
|
+
[codacy]: https://www.codacy.com/gh/dry-rb/dry-container
|
|
6
5
|
[chat]: https://dry-rb.zulipchat.com
|
|
6
|
+
[inchpages]: http://inch-ci.org/github/dry-rb/dry-container
|
|
7
7
|
|
|
8
8
|
# dry-container [][chat]
|
|
9
9
|
|
|
10
|
-
[][gem]
|
|
11
|
+
[][actions]
|
|
12
|
+
[][codacy]
|
|
13
|
+
[][codacy]
|
|
14
|
+
[][inchpages]
|
|
17
15
|
|
|
18
16
|
## Links
|
|
19
17
|
|
|
20
|
-
[
|
|
18
|
+
* [User documentation](https://dry-rb.org/gems/dry-container)
|
|
19
|
+
* [API documentation](http://rubydoc.info/gems/dry-container)
|
|
20
|
+
|
|
21
|
+
## Supported Ruby versions
|
|
22
|
+
|
|
23
|
+
This library officially supports the following Ruby versions:
|
|
24
|
+
|
|
25
|
+
* MRI `>= 2.6.0`
|
|
26
|
+
* jruby `>= 9.2`
|
|
21
27
|
|
|
22
28
|
## License
|
|
23
29
|
|
data/dry-container.gemspec
CHANGED
|
@@ -1,25 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# this file is synced from dry-rb/template-gem project
|
|
4
|
+
|
|
5
|
+
lib = File.expand_path("lib", __dir__)
|
|
6
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
7
|
+
require "dry/container/version"
|
|
2
8
|
|
|
3
9
|
Gem::Specification.new do |spec|
|
|
4
|
-
spec.name =
|
|
5
|
-
spec.
|
|
6
|
-
spec.
|
|
7
|
-
spec.
|
|
8
|
-
spec.
|
|
9
|
-
|
|
10
|
-
spec.
|
|
11
|
-
|
|
12
|
-
spec.
|
|
13
|
-
spec.
|
|
14
|
-
spec.
|
|
15
|
-
spec.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
spec.
|
|
20
|
-
spec.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
10
|
+
spec.name = "dry-container"
|
|
11
|
+
spec.authors = ["Andy Holland"]
|
|
12
|
+
spec.email = ["andyholland1991@aol.com"]
|
|
13
|
+
spec.license = "MIT"
|
|
14
|
+
spec.version = Dry::Container::VERSION.dup
|
|
15
|
+
|
|
16
|
+
spec.summary = "A simple, configurable object container implemented in Ruby"
|
|
17
|
+
spec.description = spec.summary
|
|
18
|
+
spec.homepage = "https://dry-rb.org/gems/dry-container"
|
|
19
|
+
spec.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "dry-container.gemspec", "lib/**/*"]
|
|
20
|
+
spec.bindir = "bin"
|
|
21
|
+
spec.executables = []
|
|
22
|
+
spec.require_paths = ["lib"]
|
|
23
|
+
|
|
24
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
|
25
|
+
spec.metadata["changelog_uri"] = "https://github.com/dry-rb/dry-container/blob/master/CHANGELOG.md"
|
|
26
|
+
spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-container"
|
|
27
|
+
spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-container/issues"
|
|
28
|
+
|
|
29
|
+
if defined? JRUBY_VERSION
|
|
30
|
+
spec.required_ruby_version = ">= 2.5.0"
|
|
31
|
+
else
|
|
32
|
+
spec.required_ruby_version = ">= 2.6.0"
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# to update dependencies edit project.yml
|
|
36
|
+
spec.add_runtime_dependency "concurrent-ruby", "~> 1.0"
|
|
37
|
+
spec.add_runtime_dependency "dry-configurable", "~> 0.1", ">= 0.1.3"
|
|
38
|
+
|
|
39
|
+
spec.add_development_dependency "bundler"
|
|
40
|
+
spec.add_development_dependency "rake"
|
|
41
|
+
spec.add_development_dependency "rspec"
|
|
25
42
|
end
|
data/lib/dry-container.rb
CHANGED
data/lib/dry/container.rb
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
require
|
|
4
|
-
require
|
|
5
|
-
require
|
|
6
|
-
require
|
|
7
|
-
require
|
|
8
|
-
require
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "dry-configurable"
|
|
4
|
+
require "dry/container/error"
|
|
5
|
+
require "dry/container/namespace"
|
|
6
|
+
require "dry/container/registry"
|
|
7
|
+
require "dry/container/resolver"
|
|
8
|
+
require "dry/container/namespace_dsl"
|
|
9
|
+
require "dry/container/mixin"
|
|
10
|
+
require "dry/container/version"
|
|
9
11
|
|
|
10
12
|
# A collection of micro-libraries, each intended to encapsulate
|
|
11
13
|
# a common task in Ruby
|
data/lib/dry/container/error.rb
CHANGED
data/lib/dry/container/item.rb
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "dry/container/item"
|
|
2
4
|
|
|
3
5
|
module Dry
|
|
4
6
|
class Container
|
|
@@ -39,11 +41,9 @@ module Dry
|
|
|
39
41
|
|
|
40
42
|
# @private
|
|
41
43
|
def raise_not_supported_error
|
|
42
|
-
raise ::Dry::Container::Error,
|
|
44
|
+
raise ::Dry::Container::Error, "Memoize only supported for a block or a proc".freeze
|
|
43
45
|
end
|
|
44
46
|
end
|
|
45
47
|
end
|
|
46
48
|
end
|
|
47
49
|
end
|
|
48
|
-
|
|
49
|
-
|
data/lib/dry/container/mixin.rb
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
|
|
2
|
-
require
|
|
3
|
+
require "concurrent/hash"
|
|
3
4
|
|
|
4
5
|
module Dry
|
|
5
6
|
class Container
|
|
@@ -48,7 +49,7 @@ module Dry
|
|
|
48
49
|
|
|
49
50
|
setting :registry, ::Dry::Container::Registry.new
|
|
50
51
|
setting :resolver, ::Dry::Container::Resolver.new
|
|
51
|
-
setting :namespace_separator,
|
|
52
|
+
setting :namespace_separator, "."
|
|
52
53
|
|
|
53
54
|
@_container = ::Concurrent::Hash.new
|
|
54
55
|
end
|
|
@@ -70,7 +71,7 @@ module Dry
|
|
|
70
71
|
|
|
71
72
|
setting :registry, ::Dry::Container::Registry.new
|
|
72
73
|
setting :resolver, ::Dry::Container::Resolver.new
|
|
73
|
-
setting :namespace_separator,
|
|
74
|
+
setting :namespace_separator, "."
|
|
74
75
|
|
|
75
76
|
def config
|
|
76
77
|
self.class.config
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
module Dry
|
|
2
4
|
class Container
|
|
3
5
|
# Default resolver for resolving items from container
|
|
@@ -14,7 +16,7 @@ module Dry
|
|
|
14
16
|
# Fallback block to call when a key is missing. Its result will be returned
|
|
15
17
|
# @yieldparam [Mixed] key Missing key
|
|
16
18
|
#
|
|
17
|
-
# @raise [Dry::
|
|
19
|
+
# @raise [Dry::Container::Error]
|
|
18
20
|
# If the given key is not registered with the container (and no block provided)
|
|
19
21
|
#
|
|
20
22
|
#
|
data/lib/dry/container/stub.rb
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
module Dry
|
|
2
4
|
class Container
|
|
3
5
|
module Stub
|
|
@@ -11,7 +13,7 @@ module Dry
|
|
|
11
13
|
# Add a stub to the container
|
|
12
14
|
def stub(key, value, &block)
|
|
13
15
|
unless key?(key)
|
|
14
|
-
raise ArgumentError, "cannot stub #{
|
|
16
|
+
raise ArgumentError, "cannot stub #{key.to_s.inspect} - no such key in container"
|
|
15
17
|
end
|
|
16
18
|
|
|
17
19
|
_stubs[key.to_s] = value
|
metadata
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dry-container
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andy Holland
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-06-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: concurrent-ruby
|
|
14
15
|
requirement: !ruby/object:Gem::Requirement
|
|
15
16
|
requirements:
|
|
16
17
|
- - "~>"
|
|
17
18
|
- !ruby/object:Gem::Version
|
|
18
19
|
version: '1.0'
|
|
19
|
-
name: concurrent-ruby
|
|
20
|
-
prerelease: false
|
|
21
20
|
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '1.0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: dry-configurable
|
|
28
29
|
requirement: !ruby/object:Gem::Requirement
|
|
29
30
|
requirements:
|
|
30
31
|
- - "~>"
|
|
@@ -33,9 +34,8 @@ dependencies:
|
|
|
33
34
|
- - ">="
|
|
34
35
|
- !ruby/object:Gem::Version
|
|
35
36
|
version: 0.1.3
|
|
36
|
-
name: dry-configurable
|
|
37
|
-
prerelease: false
|
|
38
37
|
type: :runtime
|
|
38
|
+
prerelease: false
|
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
|
40
40
|
requirements:
|
|
41
41
|
- - "~>"
|
|
@@ -45,66 +45,57 @@ dependencies:
|
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
46
|
version: 0.1.3
|
|
47
47
|
- !ruby/object:Gem::Dependency
|
|
48
|
+
name: bundler
|
|
48
49
|
requirement: !ruby/object:Gem::Requirement
|
|
49
50
|
requirements:
|
|
50
51
|
- - ">="
|
|
51
52
|
- !ruby/object:Gem::Version
|
|
52
53
|
version: '0'
|
|
53
|
-
name: bundler
|
|
54
|
-
prerelease: false
|
|
55
54
|
type: :development
|
|
55
|
+
prerelease: false
|
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
58
|
- - ">="
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
60
|
version: '0'
|
|
61
61
|
- !ruby/object:Gem::Dependency
|
|
62
|
+
name: rake
|
|
62
63
|
requirement: !ruby/object:Gem::Requirement
|
|
63
64
|
requirements:
|
|
64
65
|
- - ">="
|
|
65
66
|
- !ruby/object:Gem::Version
|
|
66
67
|
version: '0'
|
|
67
|
-
name: rake
|
|
68
|
-
prerelease: false
|
|
69
68
|
type: :development
|
|
69
|
+
prerelease: false
|
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
72
|
- - ">="
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
74
|
version: '0'
|
|
75
75
|
- !ruby/object:Gem::Dependency
|
|
76
|
+
name: rspec
|
|
76
77
|
requirement: !ruby/object:Gem::Requirement
|
|
77
78
|
requirements:
|
|
78
79
|
- - ">="
|
|
79
80
|
- !ruby/object:Gem::Version
|
|
80
81
|
version: '0'
|
|
81
|
-
name: rspec
|
|
82
|
-
prerelease: false
|
|
83
82
|
type: :development
|
|
83
|
+
prerelease: false
|
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
|
85
85
|
requirements:
|
|
86
86
|
- - ">="
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
88
|
version: '0'
|
|
89
|
-
description:
|
|
89
|
+
description: A simple, configurable object container implemented in Ruby
|
|
90
90
|
email:
|
|
91
91
|
- andyholland1991@aol.com
|
|
92
92
|
executables: []
|
|
93
93
|
extensions: []
|
|
94
94
|
extra_rdoc_files: []
|
|
95
95
|
files:
|
|
96
|
-
- ".codeclimate.yml"
|
|
97
|
-
- ".gitignore"
|
|
98
|
-
- ".rspec"
|
|
99
|
-
- ".rubocop.yml"
|
|
100
|
-
- ".rubocop_todo.yml"
|
|
101
|
-
- ".travis.yml"
|
|
102
96
|
- CHANGELOG.md
|
|
103
|
-
- CONTRIBUTING.md
|
|
104
|
-
- Gemfile
|
|
105
97
|
- LICENSE
|
|
106
98
|
- README.md
|
|
107
|
-
- Rakefile
|
|
108
99
|
- dry-container.gemspec
|
|
109
100
|
- lib/dry-container.rb
|
|
110
101
|
- lib/dry/container.rb
|
|
@@ -120,16 +111,15 @@ files:
|
|
|
120
111
|
- lib/dry/container/resolver.rb
|
|
121
112
|
- lib/dry/container/stub.rb
|
|
122
113
|
- lib/dry/container/version.rb
|
|
123
|
-
-
|
|
124
|
-
- spec/integration/container_spec.rb
|
|
125
|
-
- spec/integration/mixin_spec.rb
|
|
126
|
-
- spec/spec_helper.rb
|
|
127
|
-
- spec/support/shared_examples/container.rb
|
|
128
|
-
homepage: https://github.com/dry-rb/dry-container
|
|
114
|
+
homepage: https://dry-rb.org/gems/dry-container
|
|
129
115
|
licenses:
|
|
130
116
|
- MIT
|
|
131
|
-
metadata:
|
|
132
|
-
|
|
117
|
+
metadata:
|
|
118
|
+
allowed_push_host: https://rubygems.org
|
|
119
|
+
changelog_uri: https://github.com/dry-rb/dry-container/blob/master/CHANGELOG.md
|
|
120
|
+
source_code_uri: https://github.com/dry-rb/dry-container
|
|
121
|
+
bug_tracker_uri: https://github.com/dry-rb/dry-container/issues
|
|
122
|
+
post_install_message:
|
|
133
123
|
rdoc_options: []
|
|
134
124
|
require_paths:
|
|
135
125
|
- lib
|
|
@@ -137,20 +127,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
137
127
|
requirements:
|
|
138
128
|
- - ">="
|
|
139
129
|
- !ruby/object:Gem::Version
|
|
140
|
-
version: 2.
|
|
130
|
+
version: 2.6.0
|
|
141
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
132
|
requirements:
|
|
143
133
|
- - ">="
|
|
144
134
|
- !ruby/object:Gem::Version
|
|
145
135
|
version: '0'
|
|
146
136
|
requirements: []
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
signing_key:
|
|
137
|
+
rubygems_version: 3.1.6
|
|
138
|
+
signing_key:
|
|
150
139
|
specification_version: 4
|
|
151
|
-
summary: A simple
|
|
152
|
-
test_files:
|
|
153
|
-
- spec/integration/container_spec.rb
|
|
154
|
-
- spec/integration/mixin_spec.rb
|
|
155
|
-
- spec/spec_helper.rb
|
|
156
|
-
- spec/support/shared_examples/container.rb
|
|
140
|
+
summary: A simple, configurable object container implemented in Ruby
|
|
141
|
+
test_files: []
|