needle 1.2.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. data/doc/LICENSE-BSD +1 -1
  2. data/doc/LICENSE-RUBY +1 -1
  3. data/doc/di-in-ruby.rdoc +1 -1
  4. data/doc/manual-html/chapter-1.html +3 -3
  5. data/doc/manual-html/chapter-2.html +2 -2
  6. data/doc/manual-html/chapter-3.html +2 -2
  7. data/doc/manual-html/chapter-4.html +2 -2
  8. data/doc/manual-html/chapter-5.html +2 -2
  9. data/doc/manual-html/chapter-6.html +2 -2
  10. data/doc/manual-html/chapter-7.html +2 -2
  11. data/doc/manual-html/chapter-8.html +2 -2
  12. data/doc/manual-html/chapter-9.html +2 -2
  13. data/doc/manual-html/index.html +3 -3
  14. data/doc/manual/manual.yml +1 -1
  15. data/doc/manual/parts/01_license.txt +1 -1
  16. data/lib/needle.rb +1 -1
  17. data/lib/needle/container.rb +2 -2
  18. data/lib/needle/definition-context.rb +1 -1
  19. data/lib/needle/errors.rb +1 -1
  20. data/lib/needle/include-exclude.rb +1 -1
  21. data/lib/needle/interceptor-chain.rb +1 -1
  22. data/lib/needle/interceptor.rb +1 -1
  23. data/lib/needle/lifecycle/deferred.rb +1 -1
  24. data/lib/needle/lifecycle/initialize.rb +1 -1
  25. data/lib/needle/lifecycle/multiton.rb +1 -1
  26. data/lib/needle/lifecycle/proxy.rb +1 -1
  27. data/lib/needle/lifecycle/singleton.rb +1 -1
  28. data/lib/needle/lifecycle/threaded.rb +1 -1
  29. data/lib/needle/log-factory.rb +1 -1
  30. data/lib/needle/logger.rb +7 -2
  31. data/lib/needle/logging-interceptor.rb +1 -1
  32. data/lib/needle/pipeline/collection.rb +2 -2
  33. data/lib/needle/pipeline/element.rb +1 -1
  34. data/lib/needle/pipeline/interceptor.rb +1 -1
  35. data/lib/needle/registry.rb +1 -1
  36. data/lib/needle/service-point.rb +11 -6
  37. data/lib/needle/thread.rb +1 -1
  38. data/lib/needle/version.rb +3 -3
  39. data/test/ALL-TESTS.rb +1 -1
  40. data/test/lifecycle/tc_deferred.rb +1 -1
  41. data/test/lifecycle/tc_initialize.rb +1 -1
  42. data/test/lifecycle/tc_multiton.rb +1 -1
  43. data/test/lifecycle/tc_proxy.rb +1 -1
  44. data/test/lifecycle/tc_singleton.rb +1 -1
  45. data/test/lifecycle/tc_threaded.rb +1 -1
  46. data/test/models/model_test.rb +1 -1
  47. data/test/models/tc_prototype.rb +1 -1
  48. data/test/models/tc_prototype_deferred.rb +1 -1
  49. data/test/models/tc_prototype_deferred_initialize.rb +1 -1
  50. data/test/models/tc_prototype_initialize.rb +1 -1
  51. data/test/models/tc_singleton.rb +1 -1
  52. data/test/models/tc_singleton_deferred.rb +1 -1
  53. data/test/models/tc_singleton_deferred_initialize.rb +1 -1
  54. data/test/models/tc_singleton_initialize.rb +1 -1
  55. data/test/models/tc_threaded.rb +1 -1
  56. data/test/models/tc_threaded_deferred.rb +1 -1
  57. data/test/models/tc_threaded_deferred_initialize.rb +1 -1
  58. data/test/models/tc_threaded_initialize.rb +1 -1
  59. data/test/pipeline/tc_collection.rb +1 -1
  60. data/test/pipeline/tc_element.rb +1 -1
  61. data/test/tc_container.rb +15 -1
  62. data/test/tc_definition_context.rb +1 -1
  63. data/test/tc_interceptor.rb +1 -1
  64. data/test/tc_interceptor_chain.rb +1 -1
  65. data/test/tc_logger.rb +1 -1
  66. data/test/tc_registry.rb +12 -1
  67. data/test/tc_service_point.rb +6 -6
  68. metadata +155 -150
@@ -1,4 +1,4 @@
1
- Copyright (c) 2004, Jamis Buck (jgb3@email.byu.edu)
1
+ Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
@@ -1,4 +1,4 @@
1
- Needle is copyrighted free software by Jamis Buck <jgb3@email.byu.edu>.
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
 
@@ -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 (jgb3@email.byu.edu))</em>
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.2.1</strong><br />
18
- Manual Last Updated: <strong>2005-07-27 05:49 UTC</strong>
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:jgb3@email.byu.edu">Jamis Buck</a>) in order to negotiate a more compatible license.</p>
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.2.1</strong><br />
18
- Manual Last Updated: <strong>2005-07-27 05:49 UTC</strong>
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.2.1</strong><br />
18
- Manual Last Updated: <strong>2005-07-27 05:49 UTC</strong>
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.2.1</strong><br />
18
- Manual Last Updated: <strong>2005-07-27 05:49 UTC</strong>
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.2.1</strong><br />
18
- Manual Last Updated: <strong>2005-07-27 05:49 UTC</strong>
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.2.1</strong><br />
18
- Manual Last Updated: <strong>2005-07-27 05:49 UTC</strong>
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.2.1</strong><br />
18
- Manual Last Updated: <strong>2005-07-27 05:49 UTC</strong>
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.2.1</strong><br />
18
- Manual Last Updated: <strong>2005-07-27 05:49 UTC</strong>
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.2.1</strong><br />
18
- Manual Last Updated: <strong>2005-07-27 05:49 UTC</strong>
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.2.1</strong><br />
18
- Manual Last Updated: <strong>2005-07-27 05:49 UTC</strong>
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 &copy; 2004
247
247
  Jamis Buck
248
- (<a href="mailto:jgb3@email.byu.edu">jgb3@email.byu.edu</a>)
248
+ (<a href="mailto:jamis@37signals.com">jamis@37signals.com</a>)
249
249
  </p>
250
250
 
251
251
 
@@ -8,7 +8,7 @@
8
8
  meta: !^meta
9
9
  copyright: 2004
10
10
  author: Jamis Buck
11
- email: jgb3@email.byu.edu
11
+ email: jamis@37signals.com
12
12
 
13
13
  product: !^product
14
14
  name: Needle
@@ -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:jgb3@email.byu.edu) in order to negotiate a more compatible license.
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.
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004, Jamis Buck (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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, msg, progname )
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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
- # Any arguments to this method will be passed through to the chain, which
107
- # may cause an error if there is an element in the pipeline that does not
108
- # accept additional arguments. Regardless, the first two parameters to
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( @container, self, *args )
122
+ @chain.call( actual_container, self, *args )
118
123
  end
119
124
 
120
125
  end
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004, Jamis Buck (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 = 2
22
- TINY = 1
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( "." )
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  #--
3
3
  # =============================================================================
4
- # Copyright (c) 2004, Jamis Buck (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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 (jgb3@email.byu.edu)
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
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # =============================================================================
3
- # Copyright (c) 2004, Jamis Buck (jgb3@email.byu.edu)
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.10
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.2.1
7
- date: 2005-07-26
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
- - lib
11
- email: jgb3@email.byu.edu
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
- - !ruby/object:Gem::Version
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
- - Jamis Buck
29
+ - Jamis Buck
29
30
  files:
30
- - benchmarks/instantiability.rb
31
- - benchmarks/instantiation.rb
32
- - benchmarks/interceptors.rb
33
- - benchmarks/interceptors2.rb
34
- - doc/di-in-ruby.rdoc
35
- - doc/faq
36
- - doc/images
37
- - doc/LICENSE-BSD
38
- - doc/LICENSE-GPL
39
- - doc/LICENSE-RUBY
40
- - doc/manual
41
- - doc/manual-html
42
- - doc/README
43
- - doc/faq/faq.rb
44
- - doc/faq/faq.yml
45
- - doc/images/di_classdiagram.jpg
46
- - doc/manual/chapter.erb
47
- - doc/manual/img
48
- - doc/manual/index.erb
49
- - doc/manual/manual.rb
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
57
- - doc/manual/parts/01_alternatives.txt
58
- - doc/manual/parts/01_license.txt
59
- - doc/manual/parts/01_support.txt
60
- - doc/manual/parts/01_use_cases.txt
61
- - doc/manual/parts/01_what_is_needle.txt
62
- - doc/manual/parts/02_creating.txt
63
- - doc/manual/parts/02_namespaces.txt
64
- - doc/manual/parts/02_overview.txt
65
- - doc/manual/parts/02_services.txt
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
73
- - doc/manual/parts/customizing_namespaces.txt
74
- - doc/manual/parts/interceptors_architecture.txt
75
- - doc/manual/parts/interceptors_attaching.txt
76
- - doc/manual/parts/interceptors_custom.txt
77
- - doc/manual/parts/interceptors_ordering.txt
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
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
111
- - lib/needle/interceptor.rb
112
- - lib/needle/lifecycle
113
- - lib/needle/log-factory.rb
114
- - lib/needle/logger.rb
115
- - lib/needle/logging-interceptor.rb
116
- - lib/needle/pipeline
117
- - lib/needle/registry.rb
118
- - lib/needle/service-point.rb
119
- - lib/needle/thread.rb
120
- - lib/needle/version.rb
121
- - lib/needle/lifecycle/deferred.rb
122
- - lib/needle/lifecycle/initialize.rb
123
- - lib/needle/lifecycle/multiton.rb
124
- - lib/needle/lifecycle/proxy.rb
125
- - lib/needle/lifecycle/singleton.rb
126
- - lib/needle/lifecycle/threaded.rb
127
- - lib/needle/pipeline/collection.rb
128
- - lib/needle/pipeline/element.rb
129
- - lib/needle/pipeline/interceptor.rb
130
- - test/ALL-TESTS.rb
131
- - test/lifecycle
132
- - test/models
133
- - test/pipeline
134
- - test/services.rb
135
- - test/tc_container.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
143
- - test/lifecycle/tc_initialize.rb
144
- - test/lifecycle/tc_multiton.rb
145
- - test/lifecycle/tc_proxy.rb
146
- - test/lifecycle/tc_singleton.rb
147
- - test/lifecycle/tc_threaded.rb
148
- - test/models/model_test.rb
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
153
- - test/models/tc_singleton.rb
154
- - test/models/tc_singleton_deferred.rb
155
- - test/models/tc_singleton_deferred_initialize.rb
156
- - test/models/tc_singleton_initialize.rb
157
- - test/models/tc_threaded.rb
158
- - test/models/tc_threaded_deferred.rb
159
- - test/models/tc_threaded_deferred_initialize.rb
160
- - test/models/tc_threaded_initialize.rb
161
- - test/pipeline/tc_collection.rb
162
- - test/pipeline/tc_element.rb
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
- - test/ALL-TESTS.rb
165
+ - test/ALL-TESTS.rb
165
166
  rdoc_options:
166
- - "--title"
167
- - "Needle -- Dependency Injection for Ruby"
168
- - "--main"
169
- - doc/README
167
+ - --title
168
+ - Needle -- Dependency Injection for Ruby
169
+ - --main
170
+ - doc/README
170
171
  extra_rdoc_files:
171
- - doc/README
172
+ - doc/README
172
173
  executables: []
174
+
173
175
  extensions: []
176
+
174
177
  requirements: []
175
- dependencies: []
178
+
179
+ dependencies: []
180
+