dry-system 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +39 -0
- data/.rspec +3 -0
- data/.rubocop.yml +34 -0
- data/.rubocop_todo.yml +26 -0
- data/.travis.yml +26 -0
- data/.yardopts +5 -0
- data/CHANGELOG.md +158 -0
- data/Gemfile +9 -0
- data/LICENSE +20 -0
- data/README.md +23 -0
- data/Rakefile +12 -0
- data/dry-system.gemspec +30 -0
- data/examples/standalone/Gemfile +5 -0
- data/examples/standalone/lib/user_repo.rb +5 -0
- data/examples/standalone/run.rb +7 -0
- data/examples/standalone/system/boot/persistence.rb +13 -0
- data/examples/standalone/system/container.rb +9 -0
- data/examples/standalone/system/import.rb +3 -0
- data/lib/dry-system.rb +1 -0
- data/lib/dry/system.rb +4 -0
- data/lib/dry/system/auto_registrar.rb +80 -0
- data/lib/dry/system/booter.rb +101 -0
- data/lib/dry/system/component.rb +167 -0
- data/lib/dry/system/constants.rb +9 -0
- data/lib/dry/system/container.rb +500 -0
- data/lib/dry/system/errors.rb +62 -0
- data/lib/dry/system/importer.rb +53 -0
- data/lib/dry/system/injector.rb +68 -0
- data/lib/dry/system/lifecycle.rb +104 -0
- data/lib/dry/system/loader.rb +69 -0
- data/lib/dry/system/version.rb +5 -0
- data/spec/fixtures/components/bar.rb +5 -0
- data/spec/fixtures/components/bar/baz.rb +4 -0
- data/spec/fixtures/components/foo.rb +2 -0
- data/spec/fixtures/import_test/config/application.yml +2 -0
- data/spec/fixtures/import_test/lib/test/bar.rb +4 -0
- data/spec/fixtures/import_test/lib/test/foo.rb +5 -0
- data/spec/fixtures/import_test/system/boot/bar.rb +11 -0
- data/spec/fixtures/lazytest/config/application.yml +2 -0
- data/spec/fixtures/lazytest/lib/test/dep.rb +4 -0
- data/spec/fixtures/lazytest/lib/test/foo.rb +5 -0
- data/spec/fixtures/lazytest/lib/test/models.rb +4 -0
- data/spec/fixtures/lazytest/lib/test/models/book.rb +6 -0
- data/spec/fixtures/lazytest/lib/test/models/user.rb +6 -0
- data/spec/fixtures/lazytest/system/boot/bar.rb +15 -0
- data/spec/fixtures/namespaced_components/namespaced/bar.rb +5 -0
- data/spec/fixtures/namespaced_components/namespaced/foo.rb +4 -0
- data/spec/fixtures/other/config/boot/bar.rb +11 -0
- data/spec/fixtures/other/lib/test/dep.rb +4 -0
- data/spec/fixtures/other/lib/test/foo.rb +5 -0
- data/spec/fixtures/other/lib/test/models.rb +4 -0
- data/spec/fixtures/other/lib/test/models/book.rb +6 -0
- data/spec/fixtures/other/lib/test/models/user.rb +6 -0
- data/spec/fixtures/test/config/application.yml +2 -0
- data/spec/fixtures/test/config/subapp.yml +2 -0
- data/spec/fixtures/test/lib/test/dep.rb +4 -0
- data/spec/fixtures/test/lib/test/foo.rb +5 -0
- data/spec/fixtures/test/lib/test/models.rb +4 -0
- data/spec/fixtures/test/lib/test/models/book.rb +6 -0
- data/spec/fixtures/test/lib/test/models/user.rb +6 -0
- data/spec/fixtures/test/lib/test/singleton_dep.rb +7 -0
- data/spec/fixtures/test/log/.gitkeep +0 -0
- data/spec/fixtures/test/system/boot/bar.rb +11 -0
- data/spec/fixtures/test/system/boot/client.rb +7 -0
- data/spec/fixtures/test/system/boot/db.rb +1 -0
- data/spec/fixtures/test/system/boot/logger.rb +5 -0
- data/spec/fixtures/umbrella/system/boot/db.rb +10 -0
- data/spec/integration/boot_spec.rb +18 -0
- data/spec/integration/import_spec.rb +63 -0
- data/spec/spec_helper.rb +47 -0
- data/spec/unit/component_spec.rb +116 -0
- data/spec/unit/container/auto_register_spec.rb +85 -0
- data/spec/unit/container/finalize_spec.rb +85 -0
- data/spec/unit/container/import_spec.rb +70 -0
- data/spec/unit/container/injector_spec.rb +29 -0
- data/spec/unit/container_spec.rb +165 -0
- data/spec/unit/injector_spec.rb +72 -0
- data/spec/unit/loader_spec.rb +64 -0
- metadata +295 -0
metadata
ADDED
@@ -0,0 +1,295 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dry-system
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Piotr Solnica
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-08-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: inflecto
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.0.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.0.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: concurrent-ruby
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: dry-equalizer
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.2'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.2'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: dry-container
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.4'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.4'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: dry-auto_inject
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.4.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.4.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: dry-configurable
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.1'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.1'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: bundler
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rake
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rspec
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
description:
|
140
|
+
email:
|
141
|
+
- piotr.solnica@gmail.com
|
142
|
+
executables: []
|
143
|
+
extensions: []
|
144
|
+
extra_rdoc_files: []
|
145
|
+
files:
|
146
|
+
- ".gitignore"
|
147
|
+
- ".rspec"
|
148
|
+
- ".rubocop.yml"
|
149
|
+
- ".rubocop_todo.yml"
|
150
|
+
- ".travis.yml"
|
151
|
+
- ".yardopts"
|
152
|
+
- CHANGELOG.md
|
153
|
+
- Gemfile
|
154
|
+
- LICENSE
|
155
|
+
- README.md
|
156
|
+
- Rakefile
|
157
|
+
- dry-system.gemspec
|
158
|
+
- examples/standalone/Gemfile
|
159
|
+
- examples/standalone/lib/user_repo.rb
|
160
|
+
- examples/standalone/run.rb
|
161
|
+
- examples/standalone/system/boot/persistence.rb
|
162
|
+
- examples/standalone/system/container.rb
|
163
|
+
- examples/standalone/system/import.rb
|
164
|
+
- lib/dry-system.rb
|
165
|
+
- lib/dry/system.rb
|
166
|
+
- lib/dry/system/auto_registrar.rb
|
167
|
+
- lib/dry/system/booter.rb
|
168
|
+
- lib/dry/system/component.rb
|
169
|
+
- lib/dry/system/constants.rb
|
170
|
+
- lib/dry/system/container.rb
|
171
|
+
- lib/dry/system/errors.rb
|
172
|
+
- lib/dry/system/importer.rb
|
173
|
+
- lib/dry/system/injector.rb
|
174
|
+
- lib/dry/system/lifecycle.rb
|
175
|
+
- lib/dry/system/loader.rb
|
176
|
+
- lib/dry/system/version.rb
|
177
|
+
- spec/fixtures/components/bar.rb
|
178
|
+
- spec/fixtures/components/bar/baz.rb
|
179
|
+
- spec/fixtures/components/foo.rb
|
180
|
+
- spec/fixtures/import_test/config/application.yml
|
181
|
+
- spec/fixtures/import_test/lib/test/bar.rb
|
182
|
+
- spec/fixtures/import_test/lib/test/foo.rb
|
183
|
+
- spec/fixtures/import_test/system/boot/bar.rb
|
184
|
+
- spec/fixtures/lazytest/config/application.yml
|
185
|
+
- spec/fixtures/lazytest/lib/test/dep.rb
|
186
|
+
- spec/fixtures/lazytest/lib/test/foo.rb
|
187
|
+
- spec/fixtures/lazytest/lib/test/models.rb
|
188
|
+
- spec/fixtures/lazytest/lib/test/models/book.rb
|
189
|
+
- spec/fixtures/lazytest/lib/test/models/user.rb
|
190
|
+
- spec/fixtures/lazytest/system/boot/bar.rb
|
191
|
+
- spec/fixtures/namespaced_components/namespaced/bar.rb
|
192
|
+
- spec/fixtures/namespaced_components/namespaced/foo.rb
|
193
|
+
- spec/fixtures/other/config/boot/bar.rb
|
194
|
+
- spec/fixtures/other/lib/test/dep.rb
|
195
|
+
- spec/fixtures/other/lib/test/foo.rb
|
196
|
+
- spec/fixtures/other/lib/test/models.rb
|
197
|
+
- spec/fixtures/other/lib/test/models/book.rb
|
198
|
+
- spec/fixtures/other/lib/test/models/user.rb
|
199
|
+
- spec/fixtures/test/config/application.yml
|
200
|
+
- spec/fixtures/test/config/subapp.yml
|
201
|
+
- spec/fixtures/test/lib/test/dep.rb
|
202
|
+
- spec/fixtures/test/lib/test/foo.rb
|
203
|
+
- spec/fixtures/test/lib/test/models.rb
|
204
|
+
- spec/fixtures/test/lib/test/models/book.rb
|
205
|
+
- spec/fixtures/test/lib/test/models/user.rb
|
206
|
+
- spec/fixtures/test/lib/test/singleton_dep.rb
|
207
|
+
- spec/fixtures/test/log/.gitkeep
|
208
|
+
- spec/fixtures/test/system/boot/bar.rb
|
209
|
+
- spec/fixtures/test/system/boot/client.rb
|
210
|
+
- spec/fixtures/test/system/boot/db.rb
|
211
|
+
- spec/fixtures/test/system/boot/logger.rb
|
212
|
+
- spec/fixtures/umbrella/system/boot/db.rb
|
213
|
+
- spec/integration/boot_spec.rb
|
214
|
+
- spec/integration/import_spec.rb
|
215
|
+
- spec/spec_helper.rb
|
216
|
+
- spec/unit/component_spec.rb
|
217
|
+
- spec/unit/container/auto_register_spec.rb
|
218
|
+
- spec/unit/container/finalize_spec.rb
|
219
|
+
- spec/unit/container/import_spec.rb
|
220
|
+
- spec/unit/container/injector_spec.rb
|
221
|
+
- spec/unit/container_spec.rb
|
222
|
+
- spec/unit/injector_spec.rb
|
223
|
+
- spec/unit/loader_spec.rb
|
224
|
+
homepage: http://dry-rb.org/gems/dry-system
|
225
|
+
licenses:
|
226
|
+
- MIT
|
227
|
+
metadata: {}
|
228
|
+
post_install_message:
|
229
|
+
rdoc_options: []
|
230
|
+
require_paths:
|
231
|
+
- lib
|
232
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: 2.1.0
|
237
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
238
|
+
requirements:
|
239
|
+
- - ">="
|
240
|
+
- !ruby/object:Gem::Version
|
241
|
+
version: '0'
|
242
|
+
requirements: []
|
243
|
+
rubyforge_project:
|
244
|
+
rubygems_version: 2.5.1
|
245
|
+
signing_key:
|
246
|
+
specification_version: 4
|
247
|
+
summary: Organize your code into reusable components
|
248
|
+
test_files:
|
249
|
+
- spec/fixtures/components/bar.rb
|
250
|
+
- spec/fixtures/components/bar/baz.rb
|
251
|
+
- spec/fixtures/components/foo.rb
|
252
|
+
- spec/fixtures/import_test/config/application.yml
|
253
|
+
- spec/fixtures/import_test/lib/test/bar.rb
|
254
|
+
- spec/fixtures/import_test/lib/test/foo.rb
|
255
|
+
- spec/fixtures/import_test/system/boot/bar.rb
|
256
|
+
- spec/fixtures/lazytest/config/application.yml
|
257
|
+
- spec/fixtures/lazytest/lib/test/dep.rb
|
258
|
+
- spec/fixtures/lazytest/lib/test/foo.rb
|
259
|
+
- spec/fixtures/lazytest/lib/test/models.rb
|
260
|
+
- spec/fixtures/lazytest/lib/test/models/book.rb
|
261
|
+
- spec/fixtures/lazytest/lib/test/models/user.rb
|
262
|
+
- spec/fixtures/lazytest/system/boot/bar.rb
|
263
|
+
- spec/fixtures/namespaced_components/namespaced/bar.rb
|
264
|
+
- spec/fixtures/namespaced_components/namespaced/foo.rb
|
265
|
+
- spec/fixtures/other/config/boot/bar.rb
|
266
|
+
- spec/fixtures/other/lib/test/dep.rb
|
267
|
+
- spec/fixtures/other/lib/test/foo.rb
|
268
|
+
- spec/fixtures/other/lib/test/models.rb
|
269
|
+
- spec/fixtures/other/lib/test/models/book.rb
|
270
|
+
- spec/fixtures/other/lib/test/models/user.rb
|
271
|
+
- spec/fixtures/test/config/application.yml
|
272
|
+
- spec/fixtures/test/config/subapp.yml
|
273
|
+
- spec/fixtures/test/lib/test/dep.rb
|
274
|
+
- spec/fixtures/test/lib/test/foo.rb
|
275
|
+
- spec/fixtures/test/lib/test/models.rb
|
276
|
+
- spec/fixtures/test/lib/test/models/book.rb
|
277
|
+
- spec/fixtures/test/lib/test/models/user.rb
|
278
|
+
- spec/fixtures/test/lib/test/singleton_dep.rb
|
279
|
+
- spec/fixtures/test/log/.gitkeep
|
280
|
+
- spec/fixtures/test/system/boot/bar.rb
|
281
|
+
- spec/fixtures/test/system/boot/client.rb
|
282
|
+
- spec/fixtures/test/system/boot/db.rb
|
283
|
+
- spec/fixtures/test/system/boot/logger.rb
|
284
|
+
- spec/fixtures/umbrella/system/boot/db.rb
|
285
|
+
- spec/integration/boot_spec.rb
|
286
|
+
- spec/integration/import_spec.rb
|
287
|
+
- spec/spec_helper.rb
|
288
|
+
- spec/unit/component_spec.rb
|
289
|
+
- spec/unit/container/auto_register_spec.rb
|
290
|
+
- spec/unit/container/finalize_spec.rb
|
291
|
+
- spec/unit/container/import_spec.rb
|
292
|
+
- spec/unit/container/injector_spec.rb
|
293
|
+
- spec/unit/container_spec.rb
|
294
|
+
- spec/unit/injector_spec.rb
|
295
|
+
- spec/unit/loader_spec.rb
|