needle 1.2.0 → 1.2.1

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.
Files changed (46) hide show
  1. data/doc/manual-html/chapter-1.html +138 -78
  2. data/doc/manual-html/chapter-2.html +180 -99
  3. data/doc/manual-html/chapter-3.html +111 -75
  4. data/doc/manual-html/chapter-4.html +80 -48
  5. data/doc/manual-html/chapter-5.html +106 -56
  6. data/doc/manual-html/chapter-6.html +82 -34
  7. data/doc/manual-html/chapter-7.html +74 -38
  8. data/doc/manual-html/chapter-8.html +70 -41
  9. data/doc/manual-html/chapter-9.html +88 -63
  10. data/doc/manual-html/index.html +6 -6
  11. data/doc/manual-html/needle.png +0 -0
  12. data/doc/manual-html/{manual.css → stylesheets/manual.css} +83 -10
  13. data/doc/manual-html/stylesheets/ruby.css +17 -0
  14. data/doc/manual/chapter.erb +20 -0
  15. data/doc/manual/img/Needle.ai +0 -0
  16. data/doc/manual/img/needle.png +0 -0
  17. data/doc/manual/manual.rb +80 -5
  18. data/doc/manual/manual.yml +3 -3
  19. data/doc/manual/page.erb +1 -1
  20. data/doc/manual/parts/01_use_cases.txt +70 -70
  21. data/doc/manual/parts/02_creating.txt +19 -19
  22. data/doc/manual/parts/02_namespaces.txt +29 -29
  23. data/doc/manual/parts/02_services.txt +40 -41
  24. data/doc/manual/parts/03_conventional.txt +20 -20
  25. data/doc/manual/parts/03_locator.txt +44 -44
  26. data/doc/manual/parts/04_overview.txt +1 -1
  27. data/doc/manual/parts/04_setup.txt +32 -32
  28. data/doc/manual/parts/customizing_contexts.txt +14 -14
  29. data/doc/manual/parts/customizing_interceptors.txt +25 -25
  30. data/doc/manual/parts/customizing_namespaces.txt +12 -12
  31. data/doc/manual/parts/interceptors_attaching.txt +29 -30
  32. data/doc/manual/parts/interceptors_custom.txt +16 -16
  33. data/doc/manual/parts/interceptors_ordering.txt +5 -5
  34. data/doc/manual/parts/libraries_creating.txt +18 -18
  35. data/doc/manual/parts/libraries_using.txt +19 -19
  36. data/doc/manual/parts/logging_configuration.txt +13 -13
  37. data/doc/manual/parts/logging_logfactory.txt +21 -22
  38. data/doc/manual/parts/models_models.txt +8 -8
  39. data/doc/manual/parts/models_overview.txt +1 -1
  40. data/doc/manual/parts/models_pipelines.txt +22 -22
  41. data/doc/manual/{manual.css → stylesheets/manual.css} +83 -10
  42. data/doc/manual/stylesheets/ruby.css +17 -0
  43. data/lib/needle/definition-context.rb +3 -2
  44. data/lib/needle/lifecycle/proxy.rb +1 -1
  45. data/lib/needle/version.rb +1 -1
  46. metadata +94 -85
@@ -0,0 +1,17 @@
1
+ .ruby .normal {}
2
+ .ruby .comment { color: #005; font-style: italic; }
3
+ .ruby .keyword { color: #A00; font-weight: bold; }
4
+ .ruby .method { color: #077; }
5
+ .ruby .class { color: #074; }
6
+ .ruby .module { color: #050; }
7
+ .ruby .punct { color: #447; font-weight: bold; }
8
+ .ruby .symbol { color: #099; }
9
+ .ruby .string { color: #944; }
10
+ .ruby .char { color: #F07; }
11
+ .ruby .ident { color: #004; }
12
+ .ruby .constant { color: #07F; }
13
+ .ruby .regex { color: #B66; }
14
+ .ruby .number { color: #D55; }
15
+ .ruby .attribute { color: #377; }
16
+ .ruby .global { color: #3B7; }
17
+ .ruby .expr { color: #227; }
@@ -29,8 +29,9 @@ module Needle
29
29
  ( private_instance_methods +
30
30
  protected_instance_methods +
31
31
  public_instance_methods -
32
- [ "instance_eval", "__id__", "__send__", "initialize", "remove_const",
33
- "method_missing", "method", "class", "inspect", "to_s", "instance_variables", "block_given?" ]
32
+ [ "instance_eval", "object_id", "__id__", "__send__", "initialize",
33
+ "remove_const", "method_missing", "method", "class", "inspect", "to_s",
34
+ "instance_variables", "block_given?" ]
34
35
  ).
35
36
  each { |m| undef_method m }
36
37
 
@@ -82,7 +82,7 @@ module Needle
82
82
  end
83
83
 
84
84
  def inspect
85
- "#<#{self.class.name}:#{"0x%08x"%self.id}:" +
85
+ "#<#{self.class.name}:#{"0x%08x"%self.object_id}:" +
86
86
  "instantiated=>#{@instance ? true : false}>"
87
87
  end
88
88
 
@@ -19,7 +19,7 @@ module Needle
19
19
 
20
20
  MAJOR = 1
21
21
  MINOR = 2
22
- TINY = 0
22
+ TINY = 1
23
23
 
24
24
  # The version of the Needle library in use.
25
25
  STRING = [ MAJOR, MINOR, TINY ].join( "." )
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.1
2
+ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: needle
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.2.0
7
- date: 2004-11-18
6
+ version: 1.2.1
7
+ date: 2005-07-26
8
8
  summary: Needle is a Dependency Injection/Inversion of Control container for Ruby. It supports both type-2 (setter) and type-3 (constructor) injection. It takes advantage of the dynamic nature of Ruby to provide a rich and flexible approach to injecting dependencies.
9
9
  require_paths:
10
10
  - lib
11
- author: Jamis Buck
12
11
  email: jgb3@email.byu.edu
13
12
  homepage: http://needle.rubyforge.org
14
13
  rubyforge_project:
@@ -25,132 +24,142 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
25
24
  version: 0.0.0
26
25
  version:
27
26
  platform: ruby
27
+ authors:
28
+ - Jamis Buck
28
29
  files:
30
+ - benchmarks/instantiability.rb
29
31
  - benchmarks/instantiation.rb
30
32
  - benchmarks/interceptors.rb
31
- - benchmarks/instantiability.rb
32
33
  - benchmarks/interceptors2.rb
33
- - doc/faq
34
- - doc/README
35
- - doc/LICENSE-RUBY
36
34
  - doc/di-in-ruby.rdoc
37
- - doc/manual-html
35
+ - doc/faq
38
36
  - doc/images
39
37
  - doc/LICENSE-BSD
40
38
  - doc/LICENSE-GPL
39
+ - doc/LICENSE-RUBY
41
40
  - doc/manual
42
- - doc/faq/faq.yml
41
+ - doc/manual-html
42
+ - doc/README
43
43
  - doc/faq/faq.rb
44
- - doc/manual-html/manual.css
45
- - doc/manual-html/chapter-1.html
46
- - doc/manual-html/chapter-2.html
47
- - doc/manual-html/chapter-3.html
48
- - doc/manual-html/chapter-4.html
49
- - doc/manual-html/chapter-5.html
50
- - doc/manual-html/chapter-6.html
51
- - doc/manual-html/chapter-7.html
52
- - doc/manual-html/chapter-8.html
53
- - doc/manual-html/chapter-9.html
54
- - doc/manual-html/index.html
44
+ - doc/faq/faq.yml
55
45
  - doc/images/di_classdiagram.jpg
56
- - doc/manual/manual.css
57
- - doc/manual/manual.yml
58
- - doc/manual/tutorial.erb
59
- - doc/manual/parts
60
46
  - doc/manual/chapter.erb
61
- - doc/manual/page.erb
47
+ - doc/manual/img
62
48
  - doc/manual/index.erb
63
49
  - doc/manual/manual.rb
64
- - doc/manual/parts/logging_logfactory.txt
65
- - doc/manual/parts/models_pipelines.txt
66
- - doc/manual/parts/02_namespaces.txt
67
- - doc/manual/parts/models_overview.txt
68
- - doc/manual/parts/01_support.txt
69
- - doc/manual/parts/03_locator.txt
70
- - doc/manual/parts/02_services.txt
71
- - doc/manual/parts/04_setup.txt
50
+ - doc/manual/manual.yml
51
+ - doc/manual/page.erb
52
+ - doc/manual/parts
53
+ - doc/manual/stylesheets
54
+ - doc/manual/tutorial.erb
55
+ - doc/manual/img/Needle.ai
56
+ - doc/manual/img/needle.png
72
57
  - doc/manual/parts/01_alternatives.txt
73
- - doc/manual/parts/customizing_contexts.txt
74
- - doc/manual/parts/04_overview.txt
75
- - doc/manual/parts/models_models.txt
76
- - doc/manual/parts/logging_overview.txt
77
- - doc/manual/parts/interceptors_architecture.txt
78
- - doc/manual/parts/interceptors_attaching.txt
79
- - doc/manual/parts/01_what_is_needle.txt
80
- - doc/manual/parts/03_overview.txt
81
- - doc/manual/parts/02_creating.txt
82
- - doc/manual/parts/libraries_using.txt
83
58
  - doc/manual/parts/01_license.txt
59
+ - doc/manual/parts/01_support.txt
84
60
  - doc/manual/parts/01_use_cases.txt
85
- - doc/manual/parts/libraries_creating.txt
86
- - doc/manual/parts/customizing_interceptors.txt
61
+ - doc/manual/parts/01_what_is_needle.txt
62
+ - doc/manual/parts/02_creating.txt
63
+ - doc/manual/parts/02_namespaces.txt
87
64
  - doc/manual/parts/02_overview.txt
65
+ - doc/manual/parts/02_services.txt
88
66
  - doc/manual/parts/03_conventional.txt
67
+ - doc/manual/parts/03_locator.txt
68
+ - doc/manual/parts/03_overview.txt
69
+ - doc/manual/parts/04_overview.txt
70
+ - doc/manual/parts/04_setup.txt
71
+ - doc/manual/parts/customizing_contexts.txt
72
+ - doc/manual/parts/customizing_interceptors.txt
89
73
  - doc/manual/parts/customizing_namespaces.txt
90
- - doc/manual/parts/logging_configuration.txt
74
+ - doc/manual/parts/interceptors_architecture.txt
75
+ - doc/manual/parts/interceptors_attaching.txt
91
76
  - doc/manual/parts/interceptors_custom.txt
92
- - doc/manual/parts/libraries_overview.txt
93
- - doc/manual/parts/interceptors_overview.txt
94
77
  - doc/manual/parts/interceptors_ordering.txt
95
- - lib/needle.rb
78
+ - doc/manual/parts/interceptors_overview.txt
79
+ - doc/manual/parts/libraries_creating.txt
80
+ - doc/manual/parts/libraries_overview.txt
81
+ - doc/manual/parts/libraries_using.txt
82
+ - doc/manual/parts/logging_configuration.txt
83
+ - doc/manual/parts/logging_logfactory.txt
84
+ - doc/manual/parts/logging_overview.txt
85
+ - doc/manual/parts/models_models.txt
86
+ - doc/manual/parts/models_overview.txt
87
+ - doc/manual/parts/models_pipelines.txt
88
+ - doc/manual/stylesheets/manual.css
89
+ - doc/manual/stylesheets/ruby.css
90
+ - doc/manual-html/chapter-1.html
91
+ - doc/manual-html/chapter-2.html
92
+ - doc/manual-html/chapter-3.html
93
+ - doc/manual-html/chapter-4.html
94
+ - doc/manual-html/chapter-5.html
95
+ - doc/manual-html/chapter-6.html
96
+ - doc/manual-html/chapter-7.html
97
+ - doc/manual-html/chapter-8.html
98
+ - doc/manual-html/chapter-9.html
99
+ - doc/manual-html/index.html
100
+ - doc/manual-html/needle.png
101
+ - doc/manual-html/stylesheets
102
+ - doc/manual-html/stylesheets/manual.css
103
+ - doc/manual-html/stylesheets/ruby.css
96
104
  - lib/needle
105
+ - lib/needle.rb
106
+ - lib/needle/container.rb
107
+ - lib/needle/definition-context.rb
108
+ - lib/needle/errors.rb
109
+ - lib/needle/include-exclude.rb
110
+ - lib/needle/interceptor-chain.rb
97
111
  - lib/needle/interceptor.rb
98
- - lib/needle/service-point.rb
112
+ - lib/needle/lifecycle
113
+ - lib/needle/log-factory.rb
99
114
  - lib/needle/logger.rb
100
- - lib/needle/thread.rb
115
+ - lib/needle/logging-interceptor.rb
101
116
  - lib/needle/pipeline
102
117
  - lib/needle/registry.rb
103
- - lib/needle/lifecycle
104
- - lib/needle/interceptor-chain.rb
105
- - lib/needle/include-exclude.rb
106
- - lib/needle/container.rb
107
- - lib/needle/logging-interceptor.rb
118
+ - lib/needle/service-point.rb
119
+ - lib/needle/thread.rb
108
120
  - lib/needle/version.rb
109
- - lib/needle/log-factory.rb
110
- - lib/needle/errors.rb
111
- - lib/needle/definition-context.rb
112
- - lib/needle/pipeline/interceptor.rb
113
- - lib/needle/pipeline/collection.rb
114
- - lib/needle/pipeline/element.rb
115
- - lib/needle/lifecycle/multiton.rb
116
- - lib/needle/lifecycle/singleton.rb
117
121
  - lib/needle/lifecycle/deferred.rb
118
122
  - lib/needle/lifecycle/initialize.rb
123
+ - lib/needle/lifecycle/multiton.rb
119
124
  - lib/needle/lifecycle/proxy.rb
125
+ - lib/needle/lifecycle/singleton.rb
120
126
  - lib/needle/lifecycle/threaded.rb
121
- - test/tc_service_point.rb
122
- - test/tc_registry.rb
123
- - test/pipeline
124
- - test/tc_definition_context.rb
125
- - test/tc_interceptor.rb
127
+ - lib/needle/pipeline/collection.rb
128
+ - lib/needle/pipeline/element.rb
129
+ - lib/needle/pipeline/interceptor.rb
126
130
  - test/ALL-TESTS.rb
127
131
  - test/lifecycle
128
132
  - test/models
129
- - test/tc_interceptor_chain.rb
133
+ - test/pipeline
130
134
  - test/services.rb
131
- - test/tc_logger.rb
132
135
  - test/tc_container.rb
133
- - test/pipeline/tc_element.rb
134
- - test/pipeline/tc_collection.rb
135
- - test/lifecycle/tc_singleton.rb
136
- - test/lifecycle/tc_threaded.rb
136
+ - test/tc_definition_context.rb
137
+ - test/tc_interceptor.rb
138
+ - test/tc_interceptor_chain.rb
139
+ - test/tc_logger.rb
140
+ - test/tc_registry.rb
141
+ - test/tc_service_point.rb
142
+ - test/lifecycle/tc_deferred.rb
137
143
  - test/lifecycle/tc_initialize.rb
138
144
  - test/lifecycle/tc_multiton.rb
139
- - test/lifecycle/tc_deferred.rb
140
145
  - test/lifecycle/tc_proxy.rb
141
- - test/models/tc_singleton_deferred_initialize.rb
142
- - test/models/tc_singleton_initialize.rb
146
+ - test/lifecycle/tc_singleton.rb
147
+ - test/lifecycle/tc_threaded.rb
148
+ - test/models/model_test.rb
143
149
  - test/models/tc_prototype.rb
150
+ - test/models/tc_prototype_deferred.rb
151
+ - test/models/tc_prototype_deferred_initialize.rb
152
+ - test/models/tc_prototype_initialize.rb
144
153
  - test/models/tc_singleton.rb
145
154
  - test/models/tc_singleton_deferred.rb
146
- - test/models/tc_threaded_deferred.rb
147
- - test/models/tc_prototype_initialize.rb
155
+ - test/models/tc_singleton_deferred_initialize.rb
156
+ - test/models/tc_singleton_initialize.rb
148
157
  - test/models/tc_threaded.rb
149
- - test/models/tc_prototype_deferred_initialize.rb
150
- - test/models/tc_threaded_initialize.rb
158
+ - test/models/tc_threaded_deferred.rb
151
159
  - test/models/tc_threaded_deferred_initialize.rb
152
- - test/models/tc_prototype_deferred.rb
153
- - test/models/model_test.rb
160
+ - test/models/tc_threaded_initialize.rb
161
+ - test/pipeline/tc_collection.rb
162
+ - test/pipeline/tc_element.rb
154
163
  test_files:
155
164
  - test/ALL-TESTS.rb
156
165
  rdoc_options: