fabrique 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/Gemfile +5 -0
- data/Guardfile +9 -0
- data/README.md +152 -3
- data/Rakefile +11 -3
- data/config/cucumber.yml +2 -0
- data/constructors +70 -0
- data/docs/autowiring.yml +23 -0
- data/docs/multiple_providers.rb +104 -0
- data/fabrique.gemspec +3 -0
- data/features/bean_factory.feature +295 -0
- data/features/plugin_registry.feature +79 -0
- data/features/step_definitions/bean_factory_steps.rb +73 -0
- data/features/step_definitions/plugin_registry_steps.rb +207 -0
- data/features/support/byebug.rb +4 -0
- data/lib/fabrique/argument_adaptor/keyword.rb +19 -0
- data/lib/fabrique/argument_adaptor/positional.rb +76 -0
- data/lib/fabrique/bean_definition.rb +46 -0
- data/lib/fabrique/bean_definition_registry.rb +43 -0
- data/lib/fabrique/bean_factory.rb +78 -0
- data/lib/fabrique/bean_reference.rb +13 -0
- data/lib/fabrique/construction/as_is.rb +16 -0
- data/lib/fabrique/construction/builder_method.rb +21 -0
- data/lib/fabrique/construction/default.rb +17 -0
- data/lib/fabrique/construction/keyword_argument.rb +16 -0
- data/lib/fabrique/construction/positional_argument.rb +40 -0
- data/lib/fabrique/construction/properties_hash.rb +19 -0
- data/lib/fabrique/constructor/identity.rb +10 -0
- data/lib/fabrique/cyclic_bean_dependency_error.rb +6 -0
- data/lib/fabrique/plugin_registry.rb +56 -0
- data/lib/fabrique/test/fixtures/constructors.rb +81 -0
- data/lib/fabrique/test/fixtures/modules.rb +35 -0
- data/lib/fabrique/test/fixtures/opengl.rb +37 -0
- data/lib/fabrique/test/fixtures/repository.rb +139 -0
- data/lib/fabrique/test.rb +8 -0
- data/lib/fabrique/version.rb +1 -1
- data/lib/fabrique/yaml_bean_factory.rb +42 -0
- data/lib/fabrique.rb +4 -2
- data/spec/fabrique/argument_adaptor/keyword_spec.rb +50 -0
- data/spec/fabrique/argument_adaptor/positional_spec.rb +166 -0
- data/spec/fabrique/construction/as_is_spec.rb +23 -0
- data/spec/fabrique/construction/builder_method_spec.rb +29 -0
- data/spec/fabrique/construction/default_spec.rb +19 -0
- data/spec/fabrique/construction/positional_argument_spec.rb +61 -0
- data/spec/fabrique/construction/properties_hash_spec.rb +36 -0
- data/spec/fabrique/constructor/identity_spec.rb +4 -0
- data/spec/fabrique/plugin_registry_spec.rb +78 -0
- data/spec/fabrique_spec.rb +0 -4
- metadata +72 -4
data/spec/fabrique_spec.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fabrique
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sheldon Hearn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: liquid
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,12 +94,52 @@ files:
|
|
80
94
|
- ".ruby-version"
|
81
95
|
- ".travis.yml"
|
82
96
|
- Gemfile
|
97
|
+
- Guardfile
|
83
98
|
- LICENSE.txt
|
84
99
|
- README.md
|
85
100
|
- Rakefile
|
101
|
+
- config/cucumber.yml
|
102
|
+
- constructors
|
103
|
+
- docs/autowiring.yml
|
104
|
+
- docs/multiple_providers.rb
|
86
105
|
- fabrique.gemspec
|
106
|
+
- features/bean_factory.feature
|
107
|
+
- features/plugin_registry.feature
|
108
|
+
- features/step_definitions/bean_factory_steps.rb
|
109
|
+
- features/step_definitions/plugin_registry_steps.rb
|
110
|
+
- features/support/byebug.rb
|
87
111
|
- lib/fabrique.rb
|
112
|
+
- lib/fabrique/argument_adaptor/keyword.rb
|
113
|
+
- lib/fabrique/argument_adaptor/positional.rb
|
114
|
+
- lib/fabrique/bean_definition.rb
|
115
|
+
- lib/fabrique/bean_definition_registry.rb
|
116
|
+
- lib/fabrique/bean_factory.rb
|
117
|
+
- lib/fabrique/bean_reference.rb
|
118
|
+
- lib/fabrique/construction/as_is.rb
|
119
|
+
- lib/fabrique/construction/builder_method.rb
|
120
|
+
- lib/fabrique/construction/default.rb
|
121
|
+
- lib/fabrique/construction/keyword_argument.rb
|
122
|
+
- lib/fabrique/construction/positional_argument.rb
|
123
|
+
- lib/fabrique/construction/properties_hash.rb
|
124
|
+
- lib/fabrique/constructor/identity.rb
|
125
|
+
- lib/fabrique/cyclic_bean_dependency_error.rb
|
126
|
+
- lib/fabrique/plugin_registry.rb
|
127
|
+
- lib/fabrique/test.rb
|
128
|
+
- lib/fabrique/test/fixtures/constructors.rb
|
129
|
+
- lib/fabrique/test/fixtures/modules.rb
|
130
|
+
- lib/fabrique/test/fixtures/opengl.rb
|
131
|
+
- lib/fabrique/test/fixtures/repository.rb
|
88
132
|
- lib/fabrique/version.rb
|
133
|
+
- lib/fabrique/yaml_bean_factory.rb
|
134
|
+
- spec/fabrique/argument_adaptor/keyword_spec.rb
|
135
|
+
- spec/fabrique/argument_adaptor/positional_spec.rb
|
136
|
+
- spec/fabrique/construction/as_is_spec.rb
|
137
|
+
- spec/fabrique/construction/builder_method_spec.rb
|
138
|
+
- spec/fabrique/construction/default_spec.rb
|
139
|
+
- spec/fabrique/construction/positional_argument_spec.rb
|
140
|
+
- spec/fabrique/construction/properties_hash_spec.rb
|
141
|
+
- spec/fabrique/constructor/identity_spec.rb
|
142
|
+
- spec/fabrique/plugin_registry_spec.rb
|
89
143
|
- spec/fabrique_spec.rb
|
90
144
|
- spec/spec_helper.rb
|
91
145
|
homepage: https://github.com/starjuice/fabrique
|
@@ -100,7 +154,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
100
154
|
requirements:
|
101
155
|
- - ">="
|
102
156
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
157
|
+
version: '2.0'
|
104
158
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
159
|
requirements:
|
106
160
|
- - ">="
|
@@ -108,10 +162,24 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
162
|
version: '0'
|
109
163
|
requirements: []
|
110
164
|
rubyforge_project:
|
111
|
-
rubygems_version: 2.4.
|
165
|
+
rubygems_version: 2.4.6
|
112
166
|
signing_key:
|
113
167
|
specification_version: 4
|
114
168
|
summary: Factory support library
|
115
169
|
test_files:
|
170
|
+
- features/bean_factory.feature
|
171
|
+
- features/plugin_registry.feature
|
172
|
+
- features/step_definitions/bean_factory_steps.rb
|
173
|
+
- features/step_definitions/plugin_registry_steps.rb
|
174
|
+
- features/support/byebug.rb
|
175
|
+
- spec/fabrique/argument_adaptor/keyword_spec.rb
|
176
|
+
- spec/fabrique/argument_adaptor/positional_spec.rb
|
177
|
+
- spec/fabrique/construction/as_is_spec.rb
|
178
|
+
- spec/fabrique/construction/builder_method_spec.rb
|
179
|
+
- spec/fabrique/construction/default_spec.rb
|
180
|
+
- spec/fabrique/construction/positional_argument_spec.rb
|
181
|
+
- spec/fabrique/construction/properties_hash_spec.rb
|
182
|
+
- spec/fabrique/constructor/identity_spec.rb
|
183
|
+
- spec/fabrique/plugin_registry_spec.rb
|
116
184
|
- spec/fabrique_spec.rb
|
117
185
|
- spec/spec_helper.rb
|