copland 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/README +88 -0
- data/doc/manual-html/chapter-1.html +454 -0
- data/doc/manual-html/chapter-10.html +399 -0
- data/doc/manual-html/chapter-11.html +600 -0
- data/doc/manual-html/chapter-12.html +406 -0
- data/doc/manual-html/chapter-2.html +382 -0
- data/doc/manual-html/chapter-3.html +424 -0
- data/doc/manual-html/chapter-4.html +432 -0
- data/doc/manual-html/chapter-5.html +381 -0
- data/doc/manual-html/chapter-6.html +364 -0
- data/doc/manual-html/chapter-7.html +434 -0
- data/doc/manual-html/chapter-8.html +373 -0
- data/doc/manual-html/chapter-9.html +324 -0
- data/doc/manual-html/copland.png +0 -0
- data/doc/manual-html/index.html +331 -0
- data/doc/manual-html/manual.css +179 -0
- data/doc/manual-html/tutorial-1.html +407 -0
- data/doc/manual-html/tutorial-2.html +451 -0
- data/doc/manual-html/tutorial-3.html +484 -0
- data/doc/manual-html/tutorial-4.html +446 -0
- data/doc/manual-html/tutorial-5.html +520 -0
- data/doc/manual/chapter.erb +18 -0
- data/doc/manual/example.erb +18 -0
- data/doc/manual/img/copland.png +0 -0
- data/doc/manual/index.erb +30 -0
- data/doc/manual/manual.css +179 -0
- data/doc/manual/manual.rb +239 -0
- data/doc/manual/manual.yml +2643 -0
- data/doc/manual/page.erb +102 -0
- data/doc/manual/tutorial.erb +30 -0
- data/doc/packages/copland.html +764 -0
- data/doc/packages/copland.lib.html +439 -0
- data/doc/packages/copland.remote.html +2096 -0
- data/doc/packages/copland.webrick.html +925 -0
- data/doc/packages/index.html +49 -0
- data/doc/packages/packrat.css +125 -0
- data/examples/calc/calc.rb +47 -0
- data/examples/calc/package.yml +35 -0
- data/examples/calc/services.rb +74 -0
- data/examples/solitaire-cipher/README +11 -0
- data/examples/solitaire-cipher/Rakefile +57 -0
- data/examples/solitaire-cipher/bin/main.rb +14 -0
- data/examples/solitaire-cipher/lib/cipher.rb +230 -0
- data/examples/solitaire-cipher/lib/cli.rb +24 -0
- data/examples/solitaire-cipher/lib/package.yml +106 -0
- data/examples/solitaire-cipher/test/tc_deck.rb +30 -0
- data/examples/solitaire-cipher/test/tc_key-stream.rb +19 -0
- data/examples/solitaire-cipher/test/tc_keying-algorithms.rb +31 -0
- data/examples/solitaire-cipher/test/tc_solitaire-cipher.rb +66 -0
- data/examples/solitaire-cipher/test/tc_unkeyed-algorithm.rb +17 -0
- data/examples/solitaire-cipher/test/tests.rb +2 -0
- data/lib/copland.rb +56 -0
- data/lib/copland/class-factory.rb +95 -0
- data/lib/copland/configuration-point.rb +38 -0
- data/lib/copland/configuration-point/common.rb +203 -0
- data/lib/copland/configuration-point/errors.rb +44 -0
- data/lib/copland/configuration-point/list.rb +59 -0
- data/lib/copland/configuration-point/map.rb +59 -0
- data/lib/copland/configuration/errors.rb +43 -0
- data/lib/copland/configuration/loader.rb +113 -0
- data/lib/copland/configuration/yaml/configuration-point.rb +87 -0
- data/lib/copland/configuration/yaml/implementor.rb +134 -0
- data/lib/copland/configuration/yaml/interceptor.rb +63 -0
- data/lib/copland/configuration/yaml/listener.rb +56 -0
- data/lib/copland/configuration/yaml/loader.rb +122 -0
- data/lib/copland/configuration/yaml/package.rb +125 -0
- data/lib/copland/configuration/yaml/parser.rb +71 -0
- data/lib/copland/configuration/yaml/schema.rb +165 -0
- data/lib/copland/configuration/yaml/service-point.rb +116 -0
- data/lib/copland/configuration/yaml/utils.rb +82 -0
- data/lib/copland/default-schema-processor.rb +144 -0
- data/lib/copland/errors.rb +82 -0
- data/lib/copland/event-producer.rb +95 -0
- data/lib/copland/impl/builder-factory.rb +112 -0
- data/lib/copland/impl/copland-config.yml +1 -0
- data/lib/copland/impl/include-exclude.rb +140 -0
- data/lib/copland/impl/logging-interceptor.rb +106 -0
- data/lib/copland/impl/package.yml +217 -0
- data/lib/copland/impl/startup.rb +116 -0
- data/lib/copland/impl/symbol-source-manager.rb +131 -0
- data/lib/copland/impl/symbol-source.rb +63 -0
- data/lib/copland/instantiator.rb +38 -0
- data/lib/copland/instantiator/abstract.rb +91 -0
- data/lib/copland/instantiator/complex.rb +96 -0
- data/lib/copland/instantiator/identity.rb +58 -0
- data/lib/copland/instantiator/simple.rb +68 -0
- data/lib/copland/interceptor-chain.rb +166 -0
- data/lib/copland/interceptor.rb +139 -0
- data/lib/copland/log-factory.rb +206 -0
- data/lib/copland/models.rb +39 -0
- data/lib/copland/models/abstract.rb +78 -0
- data/lib/copland/models/prototype-deferred.rb +58 -0
- data/lib/copland/models/prototype.rb +58 -0
- data/lib/copland/models/proxy.rb +100 -0
- data/lib/copland/models/singleton-deferred.rb +59 -0
- data/lib/copland/models/singleton.rb +77 -0
- data/lib/copland/models/threaded.rb +65 -0
- data/lib/copland/ordering.rb +123 -0
- data/lib/copland/package.rb +246 -0
- data/lib/copland/registry.rb +368 -0
- data/lib/copland/schema.rb +206 -0
- data/lib/copland/service-point.rb +282 -0
- data/lib/copland/utils.rb +221 -0
- data/lib/copland/version.rb +47 -0
- data/test/conf-test/list-bad-key.yml +30 -0
- data/test/conf-test/list-bad-missing.yml +28 -0
- data/test/conf-test/list-bad-type.yml +28 -0
- data/test/conf-test/list-good.yml +29 -0
- data/test/conf-test/map-bad-key.yml +25 -0
- data/test/conf-test/map-bad-missing.yml +24 -0
- data/test/conf-test/map-bad-type.yml +23 -0
- data/test/conf-test/map-good.yml +25 -0
- data/test/configuration-point/package.yml +52 -0
- data/test/configuration/yaml/config/copland-config.yml +2 -0
- data/test/configuration/yaml/config/module.yml +2 -0
- data/test/configuration/yaml/config/subdir/copland-config.yml +2 -0
- data/test/configuration/yaml/config/subdir/package.yml +4 -0
- data/test/configuration/yaml/defaults/package.yml +5 -0
- data/test/configuration/yaml/defaults/subdir/package.yml +4 -0
- data/test/configuration/yaml/tc_config-loader.rb +86 -0
- data/test/configuration/yaml/tc_configuration-point-processor.rb +134 -0
- data/test/configuration/yaml/tc_implementor-processor.rb +104 -0
- data/test/configuration/yaml/tc_interceptor-processor.rb +85 -0
- data/test/configuration/yaml/tc_listener-processor.rb +69 -0
- data/test/configuration/yaml/tc_loader.rb +74 -0
- data/test/configuration/yaml/tc_package-processor.rb +120 -0
- data/test/configuration/yaml/tc_parser.rb +94 -0
- data/test/configuration/yaml/tc_schema-parser.rb +160 -0
- data/test/configuration/yaml/tc_service-point-processor.rb +104 -0
- data/test/configuration/yaml/tc_type-validator.rb +90 -0
- data/test/custom-logger.yml +3 -0
- data/test/impl/logging/package.yml +44 -0
- data/test/impl/logging/services.rb +84 -0
- data/test/impl/startup/package.yml +46 -0
- data/test/impl/startup/services.rb +47 -0
- data/test/impl/symbols/package.yml +24 -0
- data/test/impl/symbols/services.rb +38 -0
- data/test/impl/tc_builder-factory.rb +173 -0
- data/test/impl/tc_logging-interceptor.rb +148 -0
- data/test/impl/tc_startup.rb +59 -0
- data/test/impl/tc_symbol-sources.rb +61 -0
- data/test/logger.yml +6 -0
- data/test/mock.rb +201 -0
- data/test/schema/bad-package.yml +65 -0
- data/test/schema/package.yml +102 -0
- data/test/schema/services.rb +5 -0
- data/test/services/package.yml +79 -0
- data/test/services/simple.rb +87 -0
- data/test/tc_class-factory.rb +93 -0
- data/test/tc_complex-instantiator.rb +107 -0
- data/test/tc_configuration-point-contrib.rb +74 -0
- data/test/tc_configuration-point-schema.rb +122 -0
- data/test/tc_configuration-point.rb +91 -0
- data/test/tc_default-schema-processor.rb +297 -0
- data/test/tc_identity-instantiator.rb +61 -0
- data/test/tc_interceptors.rb +84 -0
- data/test/tc_logger.rb +131 -0
- data/test/tc_models.rb +176 -0
- data/test/tc_package.rb +165 -0
- data/test/tc_proxy.rb +65 -0
- data/test/tc_registry.rb +141 -0
- data/test/tc_schema.rb +78 -0
- data/test/tc_service-point.rb +178 -0
- data/test/tc_service.rb +70 -0
- data/test/tc_simple-instantiator.rb +61 -0
- data/test/tests.rb +93 -0
- data/tutorial/01/main.rb +7 -0
- data/tutorial/01/package.yml +8 -0
- data/tutorial/01/tutorial.rb +7 -0
- data/tutorial/02/main.rb +10 -0
- data/tutorial/02/package.yml +27 -0
- data/tutorial/02/tutorial.rb +46 -0
- data/tutorial/03/main.rb +24 -0
- data/tutorial/03/package.yml +29 -0
- data/tutorial/03/tutorial.rb +48 -0
- data/tutorial/04/main.rb +24 -0
- data/tutorial/04/package.yml +35 -0
- data/tutorial/04/tutorial.rb +48 -0
- data/tutorial/05/functions/package.yml +16 -0
- data/tutorial/05/functions/services.rb +15 -0
- data/tutorial/05/main.rb +10 -0
- data/tutorial/05/package.yml +35 -0
- data/tutorial/05/tutorial.rb +53 -0
- metadata +260 -0
data/tutorial/04/main.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'copland'
|
2
|
+
|
3
|
+
registry = Copland::Registry.build
|
4
|
+
|
5
|
+
calc1 = registry.service( "tutorial.Calculator" )
|
6
|
+
calc2 = registry.service( "tutorial.Calculator" )
|
7
|
+
|
8
|
+
puts "Multiples:"
|
9
|
+
10.times do
|
10
|
+
puts "#{calc1.memory}\t#{calc2.memory}"
|
11
|
+
calc1.memory = calc1.add( 5 )
|
12
|
+
calc2.memory = calc2.add( 2 )
|
13
|
+
end
|
14
|
+
|
15
|
+
calc1.memory = 1.0
|
16
|
+
calc2.memory = 1.0
|
17
|
+
|
18
|
+
puts
|
19
|
+
puts "Powers:"
|
20
|
+
10.times do
|
21
|
+
puts "#{calc1.memory}\t#{calc2.memory}"
|
22
|
+
calc1.memory = calc1.multiply( 5 )
|
23
|
+
calc2.memory = calc2.multiply( 2 )
|
24
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
id: tutorial
|
3
|
+
description: This is the package for the Copland tutorials.
|
4
|
+
|
5
|
+
service-points:
|
6
|
+
|
7
|
+
Adder:
|
8
|
+
implementor: tutorial/Adder
|
9
|
+
interceptors:
|
10
|
+
- service: copland.LoggingInterceptor
|
11
|
+
|
12
|
+
Subtractor:
|
13
|
+
implementor: tutorial/Subtractor
|
14
|
+
|
15
|
+
Multiplier:
|
16
|
+
implementor: tutorial/Multiplier
|
17
|
+
|
18
|
+
Divider:
|
19
|
+
implementor: tutorial/Divider
|
20
|
+
|
21
|
+
Calculator:
|
22
|
+
interceptors:
|
23
|
+
- service: copland.LoggingInterceptor
|
24
|
+
exclude:
|
25
|
+
- memory=?
|
26
|
+
model: prototype
|
27
|
+
implementor:
|
28
|
+
factory: copland.BuilderFactory
|
29
|
+
class: tutorial/Calculator
|
30
|
+
properties:
|
31
|
+
adder: !!service Adder
|
32
|
+
subtractor: !!service Subtractor
|
33
|
+
divider: !!service Divider
|
34
|
+
multiplier: !!service Multiplier
|
35
|
+
memory: 0
|
@@ -0,0 +1,48 @@
|
|
1
|
+
class Adder
|
2
|
+
def add( a, b )
|
3
|
+
a.to_f + b.to_f
|
4
|
+
end
|
5
|
+
end
|
6
|
+
|
7
|
+
class Subtractor
|
8
|
+
def subtract( a, b )
|
9
|
+
a.to_f - b.to_f
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
class Multiplier
|
14
|
+
def multiply( a, b )
|
15
|
+
a.to_f * b.to_f
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
class Divider
|
20
|
+
def divide( a, b )
|
21
|
+
a.to_f / b.to_f
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
class Calculator
|
26
|
+
attr_writer :adder
|
27
|
+
attr_writer :subtractor
|
28
|
+
attr_writer :multiplier
|
29
|
+
attr_writer :divider
|
30
|
+
|
31
|
+
attr_accessor :memory
|
32
|
+
|
33
|
+
def add( a, b=memory )
|
34
|
+
@adder.add( a, b )
|
35
|
+
end
|
36
|
+
|
37
|
+
def subtract( a, b=memory )
|
38
|
+
@subtractor.subtract( a, b )
|
39
|
+
end
|
40
|
+
|
41
|
+
def multiply( a, b=memory )
|
42
|
+
@multiplier.multiply( a, b )
|
43
|
+
end
|
44
|
+
|
45
|
+
def divide( a, b=memory )
|
46
|
+
@divider.divide( a, b )
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
---
|
2
|
+
id: tutorial.functions
|
3
|
+
|
4
|
+
service-points:
|
5
|
+
|
6
|
+
Sine:
|
7
|
+
implementor: functions/services/Sine
|
8
|
+
|
9
|
+
NaturalLogarithm:
|
10
|
+
implementor: functions/services/NaturalLogarithm
|
11
|
+
|
12
|
+
contributions:
|
13
|
+
|
14
|
+
tutorial.CalculatorFunctions:
|
15
|
+
sin: !!service Sine
|
16
|
+
ln: !!service NaturalLogarithm
|
data/tutorial/05/main.rb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
id: tutorial
|
3
|
+
description: This is the package for the Copland tutorials.
|
4
|
+
|
5
|
+
service-points:
|
6
|
+
|
7
|
+
Adder:
|
8
|
+
implementor: tutorial/Adder
|
9
|
+
|
10
|
+
Subtractor:
|
11
|
+
implementor: tutorial/Subtractor
|
12
|
+
|
13
|
+
Multiplier:
|
14
|
+
implementor: tutorial/Multiplier
|
15
|
+
|
16
|
+
Divider:
|
17
|
+
implementor: tutorial/Divider
|
18
|
+
|
19
|
+
Calculator:
|
20
|
+
model: prototype
|
21
|
+
implementor:
|
22
|
+
factory: copland.BuilderFactory
|
23
|
+
class: tutorial/Calculator
|
24
|
+
properties:
|
25
|
+
adder: !!service Adder
|
26
|
+
subtractor: !!service Subtractor
|
27
|
+
divider: !!service Divider
|
28
|
+
multiplier: !!service Multiplier
|
29
|
+
memory: 0
|
30
|
+
functions: !!configuration CalculatorFunctions
|
31
|
+
|
32
|
+
configuration-points:
|
33
|
+
|
34
|
+
CalculatorFunctions:
|
35
|
+
type: map
|
@@ -0,0 +1,53 @@
|
|
1
|
+
class Adder
|
2
|
+
def add( a, b )
|
3
|
+
a.to_f + b.to_f
|
4
|
+
end
|
5
|
+
end
|
6
|
+
|
7
|
+
class Subtractor
|
8
|
+
def subtract( a, b )
|
9
|
+
a.to_f - b.to_f
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
class Multiplier
|
14
|
+
def multiply( a, b )
|
15
|
+
a.to_f * b.to_f
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
class Divider
|
20
|
+
def divide( a, b )
|
21
|
+
a.to_f / b.to_f
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
class Calculator
|
26
|
+
attr_writer :adder
|
27
|
+
attr_writer :subtractor
|
28
|
+
attr_writer :multiplier
|
29
|
+
attr_writer :divider
|
30
|
+
attr_writer :functions
|
31
|
+
|
32
|
+
attr_accessor :memory
|
33
|
+
|
34
|
+
def add( a, b=memory )
|
35
|
+
@adder.add( a, b )
|
36
|
+
end
|
37
|
+
|
38
|
+
def subtract( a, b=memory )
|
39
|
+
@subtractor.subtract( a, b )
|
40
|
+
end
|
41
|
+
|
42
|
+
def multiply( a, b=memory )
|
43
|
+
@multiplier.multiply( a, b )
|
44
|
+
end
|
45
|
+
|
46
|
+
def divide( a, b=memory )
|
47
|
+
@divider.divide( a, b )
|
48
|
+
end
|
49
|
+
|
50
|
+
def function( name, *arguments )
|
51
|
+
@functions[ name ].compute( *arguments )
|
52
|
+
end
|
53
|
+
end
|
metadata
ADDED
@@ -0,0 +1,260 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.8.1
|
3
|
+
specification_version: 1
|
4
|
+
name: copland
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.8.0
|
7
|
+
date: 2004-09-26
|
8
|
+
summary: "Copland is an \"Inversion of Control\" (IoC, also called \"Dependency Injection\") container for Ruby, based heavily on the HiveMind container for Java. It supports both type-2 (setter) and type-3 (constructor) injection."
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
author: Jamis Buck
|
12
|
+
email: jgb3@email.byu.edu
|
13
|
+
homepage: http://copland.rubyforge.org
|
14
|
+
rubyforge_project:
|
15
|
+
description:
|
16
|
+
autorequire: copland
|
17
|
+
default_executable:
|
18
|
+
bindir: bin
|
19
|
+
has_rdoc: true
|
20
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
21
|
+
requirements:
|
22
|
+
-
|
23
|
+
- ">"
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: 0.0.0
|
26
|
+
version:
|
27
|
+
platform: ruby
|
28
|
+
files:
|
29
|
+
- doc/packages
|
30
|
+
- doc/README
|
31
|
+
- doc/manual-html
|
32
|
+
- doc/manual
|
33
|
+
- doc/packages/copland.webrick.html
|
34
|
+
- doc/packages/copland.html
|
35
|
+
- doc/packages/index.html
|
36
|
+
- doc/packages/copland.remote.html
|
37
|
+
- doc/packages/copland.lib.html
|
38
|
+
- doc/packages/packrat.css
|
39
|
+
- doc/manual-html/manual.css
|
40
|
+
- doc/manual-html/chapter-10.html
|
41
|
+
- doc/manual-html/chapter-11.html
|
42
|
+
- doc/manual-html/chapter-12.html
|
43
|
+
- doc/manual-html/chapter-1.html
|
44
|
+
- doc/manual-html/chapter-2.html
|
45
|
+
- doc/manual-html/chapter-3.html
|
46
|
+
- doc/manual-html/chapter-4.html
|
47
|
+
- doc/manual-html/chapter-5.html
|
48
|
+
- doc/manual-html/chapter-6.html
|
49
|
+
- doc/manual-html/chapter-7.html
|
50
|
+
- doc/manual-html/chapter-8.html
|
51
|
+
- doc/manual-html/chapter-9.html
|
52
|
+
- doc/manual-html/tutorial-1.html
|
53
|
+
- doc/manual-html/index.html
|
54
|
+
- doc/manual-html/tutorial-2.html
|
55
|
+
- doc/manual-html/tutorial-3.html
|
56
|
+
- doc/manual-html/copland.png
|
57
|
+
- doc/manual-html/tutorial-4.html
|
58
|
+
- doc/manual-html/tutorial-5.html
|
59
|
+
- doc/manual/img
|
60
|
+
- doc/manual/manual.css
|
61
|
+
- doc/manual/manual.yml
|
62
|
+
- doc/manual/tutorial.erb
|
63
|
+
- doc/manual/chapter.erb
|
64
|
+
- doc/manual/page.erb
|
65
|
+
- doc/manual/example.erb
|
66
|
+
- doc/manual/index.erb
|
67
|
+
- doc/manual/manual.rb
|
68
|
+
- doc/manual/img/copland.png
|
69
|
+
- examples/solitaire-cipher
|
70
|
+
- examples/calc
|
71
|
+
- examples/solitaire-cipher/bin
|
72
|
+
- examples/solitaire-cipher/lib
|
73
|
+
- examples/solitaire-cipher/test
|
74
|
+
- examples/solitaire-cipher/Rakefile
|
75
|
+
- examples/solitaire-cipher/README
|
76
|
+
- examples/solitaire-cipher/bin/main.rb
|
77
|
+
- examples/solitaire-cipher/lib/package.yml
|
78
|
+
- examples/solitaire-cipher/lib/cli.rb
|
79
|
+
- examples/solitaire-cipher/lib/cipher.rb
|
80
|
+
- examples/solitaire-cipher/test/tc_keying-algorithms.rb
|
81
|
+
- examples/solitaire-cipher/test/tests.rb
|
82
|
+
- examples/solitaire-cipher/test/tc_unkeyed-algorithm.rb
|
83
|
+
- examples/solitaire-cipher/test/tc_deck.rb
|
84
|
+
- examples/solitaire-cipher/test/tc_solitaire-cipher.rb
|
85
|
+
- examples/solitaire-cipher/test/tc_key-stream.rb
|
86
|
+
- examples/calc/package.yml
|
87
|
+
- examples/calc/services.rb
|
88
|
+
- examples/calc/calc.rb
|
89
|
+
- lib/copland
|
90
|
+
- lib/copland.rb
|
91
|
+
- lib/copland/impl
|
92
|
+
- lib/copland/interceptor.rb
|
93
|
+
- lib/copland/default-schema-processor.rb
|
94
|
+
- lib/copland/configuration-point
|
95
|
+
- lib/copland/instantiator.rb
|
96
|
+
- lib/copland/class-factory.rb
|
97
|
+
- lib/copland/service-point.rb
|
98
|
+
- lib/copland/schema.rb
|
99
|
+
- lib/copland/ordering.rb
|
100
|
+
- lib/copland/models.rb
|
101
|
+
- lib/copland/configuration
|
102
|
+
- lib/copland/registry.rb
|
103
|
+
- lib/copland/interceptor-chain.rb
|
104
|
+
- lib/copland/models
|
105
|
+
- lib/copland/package.rb
|
106
|
+
- lib/copland/instantiator
|
107
|
+
- lib/copland/event-producer.rb
|
108
|
+
- lib/copland/version.rb
|
109
|
+
- lib/copland/log-factory.rb
|
110
|
+
- lib/copland/errors.rb
|
111
|
+
- lib/copland/configuration-point.rb
|
112
|
+
- lib/copland/utils.rb
|
113
|
+
- lib/copland/impl/package.yml
|
114
|
+
- lib/copland/impl/copland-config.yml
|
115
|
+
- lib/copland/impl/symbol-source-manager.rb
|
116
|
+
- lib/copland/impl/builder-factory.rb
|
117
|
+
- lib/copland/impl/symbol-source.rb
|
118
|
+
- lib/copland/impl/startup.rb
|
119
|
+
- lib/copland/impl/include-exclude.rb
|
120
|
+
- lib/copland/impl/logging-interceptor.rb
|
121
|
+
- lib/copland/configuration-point/common.rb
|
122
|
+
- lib/copland/configuration-point/list.rb
|
123
|
+
- lib/copland/configuration-point/map.rb
|
124
|
+
- lib/copland/configuration-point/errors.rb
|
125
|
+
- lib/copland/configuration/yaml
|
126
|
+
- lib/copland/configuration/loader.rb
|
127
|
+
- lib/copland/configuration/errors.rb
|
128
|
+
- lib/copland/configuration/yaml/interceptor.rb
|
129
|
+
- lib/copland/configuration/yaml/parser.rb
|
130
|
+
- lib/copland/configuration/yaml/service-point.rb
|
131
|
+
- lib/copland/configuration/yaml/schema.rb
|
132
|
+
- lib/copland/configuration/yaml/loader.rb
|
133
|
+
- lib/copland/configuration/yaml/implementor.rb
|
134
|
+
- lib/copland/configuration/yaml/listener.rb
|
135
|
+
- lib/copland/configuration/yaml/package.rb
|
136
|
+
- lib/copland/configuration/yaml/configuration-point.rb
|
137
|
+
- lib/copland/configuration/yaml/utils.rb
|
138
|
+
- lib/copland/models/prototype.rb
|
139
|
+
- lib/copland/models/singleton.rb
|
140
|
+
- lib/copland/models/singleton-deferred.rb
|
141
|
+
- lib/copland/models/abstract.rb
|
142
|
+
- lib/copland/models/prototype-deferred.rb
|
143
|
+
- lib/copland/models/proxy.rb
|
144
|
+
- lib/copland/models/threaded.rb
|
145
|
+
- lib/copland/instantiator/complex.rb
|
146
|
+
- lib/copland/instantiator/abstract.rb
|
147
|
+
- lib/copland/instantiator/identity.rb
|
148
|
+
- lib/copland/instantiator/simple.rb
|
149
|
+
- test/impl
|
150
|
+
- test/tc_configuration-point-schema.rb
|
151
|
+
- test/tc_service.rb
|
152
|
+
- test/tc_identity-instantiator.rb
|
153
|
+
- test/configuration-point
|
154
|
+
- test/custom-logger.yml
|
155
|
+
- test/conf-test
|
156
|
+
- test/tc_registry.rb
|
157
|
+
- test/tc_package.rb
|
158
|
+
- test/tc_complex-instantiator.rb
|
159
|
+
- test/tests.rb
|
160
|
+
- test/tc_class-factory.rb
|
161
|
+
- test/tc_default-schema-processor.rb
|
162
|
+
- test/tc_service-point.rb
|
163
|
+
- test/configuration
|
164
|
+
- test/mock.rb
|
165
|
+
- test/logger.yml
|
166
|
+
- test/schema
|
167
|
+
- test/services
|
168
|
+
- test/tc_configuration-point.rb
|
169
|
+
- test/tc_configuration-point-contrib.rb
|
170
|
+
- test/tc_simple-instantiator.rb
|
171
|
+
- test/tc_logger.rb
|
172
|
+
- test/tc_schema.rb
|
173
|
+
- test/tc_models.rb
|
174
|
+
- test/tc_proxy.rb
|
175
|
+
- test/tc_interceptors.rb
|
176
|
+
- test/impl/tc_builder-factory.rb
|
177
|
+
- test/impl/logging
|
178
|
+
- test/impl/startup
|
179
|
+
- test/impl/symbols
|
180
|
+
- test/impl/tc_logging-interceptor.rb
|
181
|
+
- test/impl/tc_symbol-sources.rb
|
182
|
+
- test/impl/tc_startup.rb
|
183
|
+
- test/impl/logging/package.yml
|
184
|
+
- test/impl/logging/services.rb
|
185
|
+
- test/impl/startup/package.yml
|
186
|
+
- test/impl/startup/services.rb
|
187
|
+
- test/impl/symbols/package.yml
|
188
|
+
- test/impl/symbols/services.rb
|
189
|
+
- test/configuration-point/package.yml
|
190
|
+
- test/conf-test/map-bad-type.yml
|
191
|
+
- test/conf-test/list-bad-missing.yml
|
192
|
+
- test/conf-test/map-bad-key.yml
|
193
|
+
- test/conf-test/list-bad-key.yml
|
194
|
+
- test/conf-test/list-good.yml
|
195
|
+
- test/conf-test/list-bad-type.yml
|
196
|
+
- test/conf-test/map-good.yml
|
197
|
+
- test/conf-test/map-bad-missing.yml
|
198
|
+
- test/configuration/yaml
|
199
|
+
- test/configuration/yaml/tc_config-loader.rb
|
200
|
+
- test/configuration/yaml/tc_package-processor.rb
|
201
|
+
- test/configuration/yaml/tc_type-validator.rb
|
202
|
+
- test/configuration/yaml/tc_implementor-processor.rb
|
203
|
+
- test/configuration/yaml/tc_listener-processor.rb
|
204
|
+
- test/configuration/yaml/config
|
205
|
+
- test/configuration/yaml/tc_service-point-processor.rb
|
206
|
+
- test/configuration/yaml/tc_configuration-point-processor.rb
|
207
|
+
- test/configuration/yaml/defaults
|
208
|
+
- test/configuration/yaml/tc_schema-parser.rb
|
209
|
+
- test/configuration/yaml/tc_parser.rb
|
210
|
+
- test/configuration/yaml/tc_interceptor-processor.rb
|
211
|
+
- test/configuration/yaml/tc_loader.rb
|
212
|
+
- test/configuration/yaml/config/module.yml
|
213
|
+
- test/configuration/yaml/config/copland-config.yml
|
214
|
+
- test/configuration/yaml/config/subdir
|
215
|
+
- test/configuration/yaml/config/subdir/package.yml
|
216
|
+
- test/configuration/yaml/config/subdir/copland-config.yml
|
217
|
+
- test/configuration/yaml/defaults/package.yml
|
218
|
+
- test/configuration/yaml/defaults/subdir
|
219
|
+
- test/configuration/yaml/defaults/subdir/package.yml
|
220
|
+
- test/schema/package.yml
|
221
|
+
- test/schema/bad-package.yml
|
222
|
+
- test/schema/services.rb
|
223
|
+
- test/services/package.yml
|
224
|
+
- test/services/simple.rb
|
225
|
+
- tutorial/01
|
226
|
+
- tutorial/02
|
227
|
+
- tutorial/03
|
228
|
+
- tutorial/04
|
229
|
+
- tutorial/05
|
230
|
+
- tutorial/01/package.yml
|
231
|
+
- tutorial/01/main.rb
|
232
|
+
- tutorial/01/tutorial.rb
|
233
|
+
- tutorial/02/package.yml
|
234
|
+
- tutorial/02/main.rb
|
235
|
+
- tutorial/02/tutorial.rb
|
236
|
+
- tutorial/03/package.yml
|
237
|
+
- tutorial/03/main.rb
|
238
|
+
- tutorial/03/tutorial.rb
|
239
|
+
- tutorial/04/package.yml
|
240
|
+
- tutorial/04/main.rb
|
241
|
+
- tutorial/04/tutorial.rb
|
242
|
+
- tutorial/05/package.yml
|
243
|
+
- tutorial/05/main.rb
|
244
|
+
- tutorial/05/functions
|
245
|
+
- tutorial/05/tutorial.rb
|
246
|
+
- tutorial/05/functions/package.yml
|
247
|
+
- tutorial/05/functions/services.rb
|
248
|
+
test_files:
|
249
|
+
- test/tests.rb
|
250
|
+
rdoc_options:
|
251
|
+
- "--title"
|
252
|
+
- "Copland -- IoC for Ruby"
|
253
|
+
- "--main"
|
254
|
+
- doc/README
|
255
|
+
extra_rdoc_files:
|
256
|
+
- doc/README
|
257
|
+
executables: []
|
258
|
+
extensions: []
|
259
|
+
requirements: []
|
260
|
+
dependencies: []
|