[Uttk-Patches] [ruby_ex] 439: Enforce the double load protection.

Nicolas Pouillard ertai at lrde.epita.fr
Sat Dec 31 10:50:47 EST 2005


svn://svn.feydakins.org/ruby_ex/trunk


Index: ChangeLog
from  Nicolas Pouillard  <ertai at lrde.epita.fr>

	Enforce the double load protection.

	* lib/ruby_ex.rb: Enforce the double load protection.
	* test/unit-suite.yml: Likewise but in a different way.

 lib/ruby_ex.rb      |    1 +
 test/unit-suite.yml |    7 ++++---
 2 files changed, 5 insertions(+), 3 deletions(-)

Index: lib/ruby_ex.rb
--- lib/ruby_ex.rb	(revision 438)
+++ lib/ruby_ex.rb	(working copy)
@@ -49,6 +49,7 @@
   end
   suppress(LoadError) { core_ex_require 'highline' }
   $LOADED_FEATURES << 'ruby_ex.rb'
+  Dependencies.loaded << 'ruby_ex'
 
   dir.load_path!
   (dir + 'module').load_path!
Index: test/unit-suite.yml
--- test/unit-suite.yml	(revision 438)
+++ test/unit-suite.yml	(working copy)
@@ -7,8 +7,9 @@
 
   test:
     <<it_name>>: !S::RUnit
-      load_path: <<pwd>>/../lib
-      requires: ruby_ex
-      input: !path <<it_file>>
+      load_path: [<<pwd>>/../lib, <<pwd>>/algorithms]
+      requires: <<pwd>>/../lib/ruby_ex # The full path is here to ensure we
+                                       # load the good one.
+      input: !path <<it_name>>
       uttk_unit_options: --uttk no
       verbose: true
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 186 bytes
Desc: OpenPGP digital signature
Url : http://rubyforge.org/pipermail/ttk-patches/attachments/20051231/23b2634e/signature.bin
-------------- next part --------------
_______________________________________________
Uttk-Patches mailing list
Uttk-Patches at lists.feydakins.org
http://mailman.feydakins.org/mailman/listinfo/uttk-patches


More information about the ttk-patches mailing list