needle 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/LICENSE-BSD +1 -1
- data/doc/LICENSE-RUBY +1 -1
- data/doc/di-in-ruby.rdoc +1 -1
- data/doc/manual-html/chapter-1.html +3 -3
- data/doc/manual-html/chapter-2.html +2 -2
- data/doc/manual-html/chapter-3.html +2 -2
- data/doc/manual-html/chapter-4.html +2 -2
- data/doc/manual-html/chapter-5.html +2 -2
- data/doc/manual-html/chapter-6.html +2 -2
- data/doc/manual-html/chapter-7.html +2 -2
- data/doc/manual-html/chapter-8.html +2 -2
- data/doc/manual-html/chapter-9.html +2 -2
- data/doc/manual-html/index.html +3 -3
- data/doc/manual/manual.yml +1 -1
- data/doc/manual/parts/01_license.txt +1 -1
- data/lib/needle.rb +1 -1
- data/lib/needle/container.rb +2 -2
- data/lib/needle/definition-context.rb +1 -1
- data/lib/needle/errors.rb +1 -1
- data/lib/needle/include-exclude.rb +1 -1
- data/lib/needle/interceptor-chain.rb +1 -1
- data/lib/needle/interceptor.rb +1 -1
- data/lib/needle/lifecycle/deferred.rb +1 -1
- data/lib/needle/lifecycle/initialize.rb +1 -1
- data/lib/needle/lifecycle/multiton.rb +1 -1
- data/lib/needle/lifecycle/proxy.rb +1 -1
- data/lib/needle/lifecycle/singleton.rb +1 -1
- data/lib/needle/lifecycle/threaded.rb +1 -1
- data/lib/needle/log-factory.rb +1 -1
- data/lib/needle/logger.rb +7 -2
- data/lib/needle/logging-interceptor.rb +1 -1
- data/lib/needle/pipeline/collection.rb +2 -2
- data/lib/needle/pipeline/element.rb +1 -1
- data/lib/needle/pipeline/interceptor.rb +1 -1
- data/lib/needle/registry.rb +1 -1
- data/lib/needle/service-point.rb +11 -6
- data/lib/needle/thread.rb +1 -1
- data/lib/needle/version.rb +3 -3
- data/test/ALL-TESTS.rb +1 -1
- data/test/lifecycle/tc_deferred.rb +1 -1
- data/test/lifecycle/tc_initialize.rb +1 -1
- data/test/lifecycle/tc_multiton.rb +1 -1
- data/test/lifecycle/tc_proxy.rb +1 -1
- data/test/lifecycle/tc_singleton.rb +1 -1
- data/test/lifecycle/tc_threaded.rb +1 -1
- data/test/models/model_test.rb +1 -1
- data/test/models/tc_prototype.rb +1 -1
- data/test/models/tc_prototype_deferred.rb +1 -1
- data/test/models/tc_prototype_deferred_initialize.rb +1 -1
- data/test/models/tc_prototype_initialize.rb +1 -1
- data/test/models/tc_singleton.rb +1 -1
- data/test/models/tc_singleton_deferred.rb +1 -1
- data/test/models/tc_singleton_deferred_initialize.rb +1 -1
- data/test/models/tc_singleton_initialize.rb +1 -1
- data/test/models/tc_threaded.rb +1 -1
- data/test/models/tc_threaded_deferred.rb +1 -1
- data/test/models/tc_threaded_deferred_initialize.rb +1 -1
- data/test/models/tc_threaded_initialize.rb +1 -1
- data/test/pipeline/tc_collection.rb +1 -1
- data/test/pipeline/tc_element.rb +1 -1
- data/test/tc_container.rb +15 -1
- data/test/tc_definition_context.rb +1 -1
- data/test/tc_interceptor.rb +1 -1
- data/test/tc_interceptor_chain.rb +1 -1
- data/test/tc_logger.rb +1 -1
- data/test/tc_registry.rb +12 -1
- data/test/tc_service_point.rb +6 -6
- metadata +155 -150
data/doc/LICENSE-BSD
CHANGED
data/doc/LICENSE-RUBY
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Needle is copyrighted free software by Jamis Buck <
|
1
|
+
Needle is copyrighted free software by Jamis Buck <jamis@37signals.com>.
|
2
2
|
You can redistribute it and/or modify it under either the terms of the GPL
|
3
3
|
(see the file GPL), or the conditions below:
|
4
4
|
|
data/doc/di-in-ruby.rdoc
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
= Dependency Injection in Ruby
|
2
2
|
By Jim Weirich, slightly adapted for Needle (original article at http://onestepback.org/index.cgi/Tech/Ruby/DependencyInjectionInRuby.rdoc)
|
3
3
|
|
4
|
-
<em>(The API described in the original version of this article inspired the creation of the Needle framework. This article has been modified slightly so that the DI examples use Needle, instead of the framework Jim originally presented. This has proven to be a very minor modification, since the two syntaxes are nearly identical. -- Jamis Buck (
|
4
|
+
<em>(The API described in the original version of this article inspired the creation of the Needle framework. This article has been modified slightly so that the DI examples use Needle, instead of the framework Jim originally presented. This has proven to be a very minor modification, since the two syntaxes are nearly identical. -- Jamis Buck (jamis@37signals.com))</em>
|
5
5
|
|
6
6
|
<em>This article is modified and distributed under the terms of the Creative Commons Attribution-NonCommercial 1.0 license (http://creativecommons.org/licenses/by-nc/1.0).</em>
|
7
7
|
|
@@ -14,8 +14,8 @@
|
|
14
14
|
</div>
|
15
15
|
</td><td valign='middle' align='right'>
|
16
16
|
<div class="info">
|
17
|
-
Needle Version: <strong>1.
|
18
|
-
Manual Last Updated: <strong>2005-
|
17
|
+
Needle Version: <strong>1.3.0</strong><br />
|
18
|
+
Manual Last Updated: <strong>2005-12-24 15:20 UTC</strong>
|
19
19
|
</div>
|
20
20
|
</td></tr>
|
21
21
|
</table>
|
@@ -467,7 +467,7 @@
|
|
467
467
|
<p>This manual (in any form, be it source or otherwise) and the scripts and templates used to generate it, are all distributed under the <a href="http://creativecommons.org">Creative Commons</a> <a href="http://creativecommons.org/licenses/by-sa/2.0">Attribution-ShareAlike</a> license.</p>
|
468
468
|
|
469
469
|
|
470
|
-
<p>If you desire permission to use either Needle or the manual in a manner incompatible with these licenses, please contact the copyright holder (<a href="mailto:
|
470
|
+
<p>If you desire permission to use either Needle or the manual in a manner incompatible with these licenses, please contact the copyright holder (<a href="mailto:jamis@37signals.com">Jamis Buck</a>) in order to negotiate a more compatible license.</p>
|
471
471
|
</div>
|
472
472
|
|
473
473
|
|
@@ -14,8 +14,8 @@
|
|
14
14
|
</div>
|
15
15
|
</td><td valign='middle' align='right'>
|
16
16
|
<div class="info">
|
17
|
-
Needle Version: <strong>1.
|
18
|
-
Manual Last Updated: <strong>2005-
|
17
|
+
Needle Version: <strong>1.3.0</strong><br />
|
18
|
+
Manual Last Updated: <strong>2005-12-24 15:20 UTC</strong>
|
19
19
|
</div>
|
20
20
|
</td></tr>
|
21
21
|
</table>
|
@@ -14,8 +14,8 @@
|
|
14
14
|
</div>
|
15
15
|
</td><td valign='middle' align='right'>
|
16
16
|
<div class="info">
|
17
|
-
Needle Version: <strong>1.
|
18
|
-
Manual Last Updated: <strong>2005-
|
17
|
+
Needle Version: <strong>1.3.0</strong><br />
|
18
|
+
Manual Last Updated: <strong>2005-12-24 15:20 UTC</strong>
|
19
19
|
</div>
|
20
20
|
</td></tr>
|
21
21
|
</table>
|
@@ -14,8 +14,8 @@
|
|
14
14
|
</div>
|
15
15
|
</td><td valign='middle' align='right'>
|
16
16
|
<div class="info">
|
17
|
-
Needle Version: <strong>1.
|
18
|
-
Manual Last Updated: <strong>2005-
|
17
|
+
Needle Version: <strong>1.3.0</strong><br />
|
18
|
+
Manual Last Updated: <strong>2005-12-24 15:20 UTC</strong>
|
19
19
|
</div>
|
20
20
|
</td></tr>
|
21
21
|
</table>
|
@@ -14,8 +14,8 @@
|
|
14
14
|
</div>
|
15
15
|
</td><td valign='middle' align='right'>
|
16
16
|
<div class="info">
|
17
|
-
Needle Version: <strong>1.
|
18
|
-
Manual Last Updated: <strong>2005-
|
17
|
+
Needle Version: <strong>1.3.0</strong><br />
|
18
|
+
Manual Last Updated: <strong>2005-12-24 15:20 UTC</strong>
|
19
19
|
</div>
|
20
20
|
</td></tr>
|
21
21
|
</table>
|
@@ -14,8 +14,8 @@
|
|
14
14
|
</div>
|
15
15
|
</td><td valign='middle' align='right'>
|
16
16
|
<div class="info">
|
17
|
-
Needle Version: <strong>1.
|
18
|
-
Manual Last Updated: <strong>2005-
|
17
|
+
Needle Version: <strong>1.3.0</strong><br />
|
18
|
+
Manual Last Updated: <strong>2005-12-24 15:20 UTC</strong>
|
19
19
|
</div>
|
20
20
|
</td></tr>
|
21
21
|
</table>
|
@@ -14,8 +14,8 @@
|
|
14
14
|
</div>
|
15
15
|
</td><td valign='middle' align='right'>
|
16
16
|
<div class="info">
|
17
|
-
Needle Version: <strong>1.
|
18
|
-
Manual Last Updated: <strong>2005-
|
17
|
+
Needle Version: <strong>1.3.0</strong><br />
|
18
|
+
Manual Last Updated: <strong>2005-12-24 15:20 UTC</strong>
|
19
19
|
</div>
|
20
20
|
</td></tr>
|
21
21
|
</table>
|
@@ -14,8 +14,8 @@
|
|
14
14
|
</div>
|
15
15
|
</td><td valign='middle' align='right'>
|
16
16
|
<div class="info">
|
17
|
-
Needle Version: <strong>1.
|
18
|
-
Manual Last Updated: <strong>2005-
|
17
|
+
Needle Version: <strong>1.3.0</strong><br />
|
18
|
+
Manual Last Updated: <strong>2005-12-24 15:20 UTC</strong>
|
19
19
|
</div>
|
20
20
|
</td></tr>
|
21
21
|
</table>
|
@@ -14,8 +14,8 @@
|
|
14
14
|
</div>
|
15
15
|
</td><td valign='middle' align='right'>
|
16
16
|
<div class="info">
|
17
|
-
Needle Version: <strong>1.
|
18
|
-
Manual Last Updated: <strong>2005-
|
17
|
+
Needle Version: <strong>1.3.0</strong><br />
|
18
|
+
Manual Last Updated: <strong>2005-12-24 15:20 UTC</strong>
|
19
19
|
</div>
|
20
20
|
</td></tr>
|
21
21
|
</table>
|
data/doc/manual-html/index.html
CHANGED
@@ -14,8 +14,8 @@
|
|
14
14
|
</div>
|
15
15
|
</td><td valign='middle' align='right'>
|
16
16
|
<div class="info">
|
17
|
-
Needle Version: <strong>1.
|
18
|
-
Manual Last Updated: <strong>2005-
|
17
|
+
Needle Version: <strong>1.3.0</strong><br />
|
18
|
+
Manual Last Updated: <strong>2005-12-24 15:20 UTC</strong>
|
19
19
|
</div>
|
20
20
|
</td></tr>
|
21
21
|
</table>
|
@@ -245,7 +245,7 @@
|
|
245
245
|
<p class="copyright">
|
246
246
|
Copyright © 2004
|
247
247
|
Jamis Buck
|
248
|
-
(<a href="mailto:
|
248
|
+
(<a href="mailto:jamis@37signals.com">jamis@37signals.com</a>)
|
249
249
|
</p>
|
250
250
|
|
251
251
|
|
data/doc/manual/manual.yml
CHANGED
@@ -2,4 +2,4 @@ Needle is made available under either the BSD license, or the same license Ruby
|
|
2
2
|
|
3
3
|
This manual (in any form, be it source or otherwise) and the scripts and templates used to generate it, are all distributed under the "Creative Commons":http://creativecommons.org "Attribution-ShareAlike":http://creativecommons.org/licenses/by-sa/2.0 license.
|
4
4
|
|
5
|
-
If you desire permission to use either Needle or the manual in a manner incompatible with these licenses, please contact the copyright holder ("Jamis Buck":mailto:
|
5
|
+
If you desire permission to use either Needle or the manual in a manner incompatible with these licenses, please contact the copyright holder ("Jamis Buck":mailto:jamis@37signals.com) in order to negotiate a more compatible license.
|
data/lib/needle.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
data/lib/needle/container.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -305,7 +305,7 @@ module Needle
|
|
305
305
|
point = find_definition( name )
|
306
306
|
raise ServiceNotFound, "#{fullname}.#{name}" unless point
|
307
307
|
|
308
|
-
point.instance( *args )
|
308
|
+
point.instance( self, *args )
|
309
309
|
end
|
310
310
|
|
311
311
|
alias :[] :get
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
data/lib/needle/errors.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
data/lib/needle/interceptor.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
data/lib/needle/log-factory.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
data/lib/needle/logger.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -130,10 +130,15 @@ module Needle
|
|
130
130
|
# Format the message using the given parameters. If a message format has
|
131
131
|
# not been given, just call the superclass's implementation. Otherwise,
|
132
132
|
# process the tokens from the parsed message format.
|
133
|
-
def format_message( severity, timestamp,
|
133
|
+
def format_message( severity, timestamp, *args )
|
134
134
|
if @message_format.nil?
|
135
135
|
super
|
136
136
|
else
|
137
|
+
msg, progname = args
|
138
|
+
|
139
|
+
# check for API change in 1.8.3 and later
|
140
|
+
msg, progname = progname, msg if respond_to?(:formatter=)
|
141
|
+
|
137
142
|
opts = {
|
138
143
|
:severity => severity,
|
139
144
|
:timestamp => timestamp,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -123,7 +123,7 @@ module Needle
|
|
123
123
|
if head
|
124
124
|
tail.succ = el
|
125
125
|
tail = el
|
126
|
-
else
|
126
|
+
else # first time through...
|
127
127
|
head = tail = el
|
128
128
|
end
|
129
129
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
data/lib/needle/registry.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
data/lib/needle/service-point.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -103,18 +103,23 @@ module Needle
|
|
103
103
|
# on the style of lifecycle management chosen for this service point, this
|
104
104
|
# may or may not be a new instance for every invocation of this method.
|
105
105
|
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
106
|
+
# The first argument is the container that should be used to resolve this
|
107
|
+
# service point. Assuming the container to be used is this service point's
|
108
|
+
# own container would mean that any nested service points couldn't override
|
109
|
+
# service points their parents' service points used.
|
110
|
+
#
|
111
|
+
# Any extra arguments to this method will be passed through to the chain,
|
112
|
+
# which may cause an error if there is an element in the pipeline that does
|
113
|
+
# not accept additional arguments. Regardless, the first two parameters to
|
109
114
|
# the chain will always be the container and the service point.
|
110
|
-
def instance( *args )
|
115
|
+
def instance( actual_container, *args )
|
111
116
|
unless @chain
|
112
117
|
@chain_mutex.synchronize do
|
113
118
|
@chain = @pipeline.chain_to( @callback ) unless @chain
|
114
119
|
end
|
115
120
|
end
|
116
121
|
|
117
|
-
@chain.call(
|
122
|
+
@chain.call( actual_container, self, *args )
|
118
123
|
end
|
119
124
|
|
120
125
|
end
|
data/lib/needle/thread.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
data/lib/needle/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -18,8 +18,8 @@ module Needle
|
|
18
18
|
module Version
|
19
19
|
|
20
20
|
MAJOR = 1
|
21
|
-
MINOR =
|
22
|
-
TINY =
|
21
|
+
MINOR = 3
|
22
|
+
TINY = 0
|
23
23
|
|
24
24
|
# The version of the Needle library in use.
|
25
25
|
STRING = [ MAJOR, MINOR, TINY ].join( "." )
|
data/test/ALL-TESTS.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#--
|
3
3
|
# =============================================================================
|
4
|
-
# Copyright (c) 2004, Jamis Buck (
|
4
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
5
5
|
# All rights reserved.
|
6
6
|
#
|
7
7
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
data/test/lifecycle/tc_proxy.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
data/test/models/model_test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
data/test/models/tc_prototype.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
data/test/models/tc_singleton.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
data/test/models/tc_threaded.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
data/test/pipeline/tc_element.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
data/test/tc_container.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -250,6 +250,20 @@ class TC_Container < Test::Unit::TestCase
|
|
250
250
|
assert inner.knows_key?(:test)
|
251
251
|
end
|
252
252
|
|
253
|
+
def test_services_from_child_available_to_parent_services
|
254
|
+
outer = new_container
|
255
|
+
inner = new_container( outer )
|
256
|
+
|
257
|
+
outer.define do |b|
|
258
|
+
b.override_me { "override_me" }
|
259
|
+
b.use_override { |c, p| c.override_me.intern }
|
260
|
+
end
|
261
|
+
inner = Needle::Registry.define( :parent => outer ) do |b|
|
262
|
+
b.override_me { "the_child_override" }
|
263
|
+
end
|
264
|
+
assert_same(:the_child_override, inner[:use_override])
|
265
|
+
end
|
266
|
+
|
253
267
|
def test_service_in_parent
|
254
268
|
outer = new_container
|
255
269
|
inner = new_container( outer )
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
data/test/tc_interceptor.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
data/test/tc_logger.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
data/test/tc_registry.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -91,6 +91,17 @@ class TC_Registry < Test::Unit::TestCase
|
|
91
91
|
assert_equal @registry, inner.parent
|
92
92
|
end
|
93
93
|
|
94
|
+
def test_nested_child_services_accessible_to_parent_services
|
95
|
+
@registry.define do |b|
|
96
|
+
b.override_me { "override_me" }
|
97
|
+
b.use_override { |c, p| c.override_me.intern }
|
98
|
+
end
|
99
|
+
inner = Needle::Registry.define( :parent => @registry ) do |b|
|
100
|
+
b.override_me { "the_child_override" }
|
101
|
+
end
|
102
|
+
assert_same(:the_child_override, inner[:use_override])
|
103
|
+
end
|
104
|
+
|
94
105
|
def test_explicit_name
|
95
106
|
reg = Needle::Registry.new( :name => :test )
|
96
107
|
assert_equal :test, reg.name
|
data/test/tc_service_point.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Needle dependency injection
|
@@ -114,7 +114,7 @@ class TC_ServicePoint < Test::Unit::TestCase
|
|
114
114
|
Needle::ServicePoint.new( @container, "test", :pipeline => [ Model ] ) {
|
115
115
|
Hash.new }
|
116
116
|
|
117
|
-
inst = point.instance
|
117
|
+
inst = point.instance(@container)
|
118
118
|
assert_instance_of Hash, inst
|
119
119
|
end
|
120
120
|
|
@@ -123,7 +123,7 @@ class TC_ServicePoint < Test::Unit::TestCase
|
|
123
123
|
Needle::ServicePoint.new( @container, "test", :model => :mock ) {
|
124
124
|
Hash.new }
|
125
125
|
|
126
|
-
inst = point.instance
|
126
|
+
inst = point.instance(@container)
|
127
127
|
assert_instance_of Hash, inst
|
128
128
|
end
|
129
129
|
|
@@ -134,7 +134,7 @@ class TC_ServicePoint < Test::Unit::TestCase
|
|
134
134
|
Hash.new
|
135
135
|
end
|
136
136
|
|
137
|
-
point.instance
|
137
|
+
point.instance(@container)
|
138
138
|
end
|
139
139
|
|
140
140
|
def test_constructor_parms_multiple
|
@@ -145,7 +145,7 @@ class TC_ServicePoint < Test::Unit::TestCase
|
|
145
145
|
Hash.new
|
146
146
|
end
|
147
147
|
|
148
|
-
point.instance
|
148
|
+
point.instance(@container)
|
149
149
|
end
|
150
150
|
|
151
151
|
def test_interceptor
|
@@ -156,7 +156,7 @@ class TC_ServicePoint < Test::Unit::TestCase
|
|
156
156
|
interceptor = Needle::Interceptor.new.with { Interceptor }
|
157
157
|
point.interceptor interceptor
|
158
158
|
|
159
|
-
inst = point.instance
|
159
|
+
inst = point.instance(@container)
|
160
160
|
assert_instance_of Needle::InterceptorChainBuilder::InterceptedServiceProxy, inst
|
161
161
|
end
|
162
162
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.
|
2
|
+
rubygems_version: 0.8.11
|
3
3
|
specification_version: 1
|
4
4
|
name: needle
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.
|
7
|
-
date: 2005-07
|
6
|
+
version: 1.3.0
|
7
|
+
date: 2005-12-24 00:00:00 -07:00
|
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
|
-
|
11
|
-
email:
|
10
|
+
- lib
|
11
|
+
email: jamis@37signals.com
|
12
12
|
homepage: http://needle.rubyforge.org
|
13
13
|
rubyforge_project:
|
14
14
|
description:
|
@@ -18,158 +18,163 @@ bindir: bin
|
|
18
18
|
has_rdoc: true
|
19
19
|
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
20
|
requirements:
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
version: 0.0.0
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
25
24
|
version:
|
26
25
|
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
27
28
|
authors:
|
28
|
-
|
29
|
+
- Jamis Buck
|
29
30
|
files:
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
31
|
+
- benchmarks/instantiability.rb
|
32
|
+
- benchmarks/instantiation.rb
|
33
|
+
- benchmarks/interceptors.rb
|
34
|
+
- benchmarks/interceptors2.rb
|
35
|
+
- doc/di-in-ruby.rdoc
|
36
|
+
- doc/faq
|
37
|
+
- doc/images
|
38
|
+
- doc/LICENSE-BSD
|
39
|
+
- doc/LICENSE-GPL
|
40
|
+
- doc/LICENSE-RUBY
|
41
|
+
- doc/manual
|
42
|
+
- doc/manual-html
|
43
|
+
- doc/README
|
44
|
+
- doc/faq/faq.rb
|
45
|
+
- doc/faq/faq.yml
|
46
|
+
- doc/images/di_classdiagram.jpg
|
47
|
+
- doc/manual/chapter.erb
|
48
|
+
- doc/manual/img
|
49
|
+
- doc/manual/index.erb
|
50
|
+
- doc/manual/manual.rb
|
51
|
+
- doc/manual/manual.yml
|
52
|
+
- doc/manual/page.erb
|
53
|
+
- doc/manual/parts
|
54
|
+
- doc/manual/stylesheets
|
55
|
+
- doc/manual/tutorial.erb
|
56
|
+
- doc/manual/img/Needle.ai
|
57
|
+
- doc/manual/img/needle.png
|
58
|
+
- doc/manual/parts/01_alternatives.txt
|
59
|
+
- doc/manual/parts/01_license.txt
|
60
|
+
- doc/manual/parts/01_support.txt
|
61
|
+
- doc/manual/parts/01_use_cases.txt
|
62
|
+
- doc/manual/parts/01_what_is_needle.txt
|
63
|
+
- doc/manual/parts/02_creating.txt
|
64
|
+
- doc/manual/parts/02_namespaces.txt
|
65
|
+
- doc/manual/parts/02_overview.txt
|
66
|
+
- doc/manual/parts/02_services.txt
|
67
|
+
- doc/manual/parts/03_conventional.txt
|
68
|
+
- doc/manual/parts/03_locator.txt
|
69
|
+
- doc/manual/parts/03_overview.txt
|
70
|
+
- doc/manual/parts/04_overview.txt
|
71
|
+
- doc/manual/parts/04_setup.txt
|
72
|
+
- doc/manual/parts/customizing_contexts.txt
|
73
|
+
- doc/manual/parts/customizing_interceptors.txt
|
74
|
+
- doc/manual/parts/customizing_namespaces.txt
|
75
|
+
- doc/manual/parts/interceptors_architecture.txt
|
76
|
+
- doc/manual/parts/interceptors_attaching.txt
|
77
|
+
- doc/manual/parts/interceptors_custom.txt
|
78
|
+
- doc/manual/parts/interceptors_ordering.txt
|
79
|
+
- doc/manual/parts/interceptors_overview.txt
|
80
|
+
- doc/manual/parts/libraries_creating.txt
|
81
|
+
- doc/manual/parts/libraries_overview.txt
|
82
|
+
- doc/manual/parts/libraries_using.txt
|
83
|
+
- doc/manual/parts/logging_configuration.txt
|
84
|
+
- doc/manual/parts/logging_logfactory.txt
|
85
|
+
- doc/manual/parts/logging_overview.txt
|
86
|
+
- doc/manual/parts/models_models.txt
|
87
|
+
- doc/manual/parts/models_overview.txt
|
88
|
+
- doc/manual/parts/models_pipelines.txt
|
89
|
+
- doc/manual/stylesheets/manual.css
|
90
|
+
- doc/manual/stylesheets/ruby.css
|
91
|
+
- doc/manual-html/chapter-1.html
|
92
|
+
- doc/manual-html/chapter-2.html
|
93
|
+
- doc/manual-html/chapter-3.html
|
94
|
+
- doc/manual-html/chapter-4.html
|
95
|
+
- doc/manual-html/chapter-5.html
|
96
|
+
- doc/manual-html/chapter-6.html
|
97
|
+
- doc/manual-html/chapter-7.html
|
98
|
+
- doc/manual-html/chapter-8.html
|
99
|
+
- doc/manual-html/chapter-9.html
|
100
|
+
- doc/manual-html/index.html
|
101
|
+
- doc/manual-html/needle.png
|
102
|
+
- doc/manual-html/stylesheets
|
103
|
+
- doc/manual-html/stylesheets/manual.css
|
104
|
+
- doc/manual-html/stylesheets/ruby.css
|
105
|
+
- lib/needle
|
106
|
+
- lib/needle.rb
|
107
|
+
- lib/needle/container.rb
|
108
|
+
- lib/needle/definition-context.rb
|
109
|
+
- lib/needle/errors.rb
|
110
|
+
- lib/needle/include-exclude.rb
|
111
|
+
- lib/needle/interceptor-chain.rb
|
112
|
+
- lib/needle/interceptor.rb
|
113
|
+
- lib/needle/lifecycle
|
114
|
+
- lib/needle/log-factory.rb
|
115
|
+
- lib/needle/logger.rb
|
116
|
+
- lib/needle/logging-interceptor.rb
|
117
|
+
- lib/needle/pipeline
|
118
|
+
- lib/needle/registry.rb
|
119
|
+
- lib/needle/service-point.rb
|
120
|
+
- lib/needle/thread.rb
|
121
|
+
- lib/needle/version.rb
|
122
|
+
- lib/needle/lifecycle/deferred.rb
|
123
|
+
- lib/needle/lifecycle/initialize.rb
|
124
|
+
- lib/needle/lifecycle/multiton.rb
|
125
|
+
- lib/needle/lifecycle/proxy.rb
|
126
|
+
- lib/needle/lifecycle/singleton.rb
|
127
|
+
- lib/needle/lifecycle/threaded.rb
|
128
|
+
- lib/needle/pipeline/collection.rb
|
129
|
+
- lib/needle/pipeline/element.rb
|
130
|
+
- lib/needle/pipeline/interceptor.rb
|
131
|
+
- test/ALL-TESTS.rb
|
132
|
+
- test/lifecycle
|
133
|
+
- test/models
|
134
|
+
- test/pipeline
|
135
|
+
- test/services.rb
|
136
|
+
- test/tc_container.rb
|
137
|
+
- test/tc_definition_context.rb
|
138
|
+
- test/tc_interceptor.rb
|
139
|
+
- test/tc_interceptor_chain.rb
|
140
|
+
- test/tc_logger.rb
|
141
|
+
- test/tc_registry.rb
|
142
|
+
- test/tc_service_point.rb
|
143
|
+
- test/lifecycle/tc_deferred.rb
|
144
|
+
- test/lifecycle/tc_initialize.rb
|
145
|
+
- test/lifecycle/tc_multiton.rb
|
146
|
+
- test/lifecycle/tc_proxy.rb
|
147
|
+
- test/lifecycle/tc_singleton.rb
|
148
|
+
- test/lifecycle/tc_threaded.rb
|
149
|
+
- test/models/model_test.rb
|
150
|
+
- test/models/tc_prototype.rb
|
151
|
+
- test/models/tc_prototype_deferred.rb
|
152
|
+
- test/models/tc_prototype_deferred_initialize.rb
|
153
|
+
- test/models/tc_prototype_initialize.rb
|
154
|
+
- test/models/tc_singleton.rb
|
155
|
+
- test/models/tc_singleton_deferred.rb
|
156
|
+
- test/models/tc_singleton_deferred_initialize.rb
|
157
|
+
- test/models/tc_singleton_initialize.rb
|
158
|
+
- test/models/tc_threaded.rb
|
159
|
+
- test/models/tc_threaded_deferred.rb
|
160
|
+
- test/models/tc_threaded_deferred_initialize.rb
|
161
|
+
- test/models/tc_threaded_initialize.rb
|
162
|
+
- test/pipeline/tc_collection.rb
|
163
|
+
- test/pipeline/tc_element.rb
|
163
164
|
test_files:
|
164
|
-
|
165
|
+
- test/ALL-TESTS.rb
|
165
166
|
rdoc_options:
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
167
|
+
- --title
|
168
|
+
- Needle -- Dependency Injection for Ruby
|
169
|
+
- --main
|
170
|
+
- doc/README
|
170
171
|
extra_rdoc_files:
|
171
|
-
|
172
|
+
- doc/README
|
172
173
|
executables: []
|
174
|
+
|
173
175
|
extensions: []
|
176
|
+
|
174
177
|
requirements: []
|
175
|
-
|
178
|
+
|
179
|
+
dependencies: []
|
180
|
+
|