ruby_ex 0.3.0 → 0.4.1.2
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.
- data/ChangeLog +324 -0
- data/NEWS +17 -0
- data/README +1 -1
- data/SPEC.yml +9 -9
- data/lib/abstract.rb +3 -38
- data/lib/abstract_node.rb +2 -4
- data/lib/algorithms/simulated_annealing.rb +26 -3
- data/lib/attributed_class.rb +2 -2
- data/lib/auto_object.rb +2 -6
- data/lib/blank_slate.rb +1 -1
- data/lib/cache.rb +4 -4
- data/lib/choose.rb +3 -5
- data/lib/commands/command.rb +53 -27
- data/lib/commands/datas/composite.rb +2 -4
- data/lib/commands/datas/data.rb +13 -16
- data/lib/commands/datas/factory.rb +2 -4
- data/lib/commands/datas/pipe.rb +52 -0
- data/lib/commands/datas/temp.rb +2 -2
- data/lib/commands/datas.rb +1 -6
- data/lib/commands/factory.rb +1 -3
- data/lib/commands/helpers.rb +6 -11
- data/lib/commands/pipe.rb +4 -6
- data/lib/commands/runners/exec.rb +2 -6
- data/lib/commands/runners/fork.rb +3 -20
- data/lib/commands/runners/mockable.rb +4 -7
- data/lib/commands/runners/no_run.rb +44 -0
- data/lib/commands/runners/popen.rb +49 -0
- data/lib/commands/runners/runner.rb +29 -6
- data/lib/commands/runners/system.rb +1 -4
- data/lib/commands/runners.rb +1 -6
- data/lib/commands/seq.rb +1 -3
- data/lib/commands.rb +3 -13
- data/lib/concrete.rb +38 -0
- data/lib/config_file.rb +2 -3
- data/lib/const_regexp.rb +1 -1
- data/lib/d_logger.rb +1 -1
- data/lib/daemon.rb +2 -3
- data/lib/diff.rb +1 -1
- data/lib/diff_tools.rb +1 -3
- data/lib/drb/drb_observable.rb +1 -1
- data/lib/drb/drb_observable_pool.rb +1 -1
- data/lib/drb/drb_service.rb +1 -1
- data/lib/drb/drb_undumped_attributes.rb +1 -1
- data/lib/drb/drb_undumped_indexed_object.rb +1 -1
- data/lib/drb/insecure_protected_methods.rb +1 -1
- data/lib/drb_ex.rb +1 -1
- data/lib/file_type.rb +2 -2
- data/lib/generate_id.rb +1 -1
- data/lib/genpasswd.rb +1 -1
- data/lib/hash_eval.rb +1 -1
- data/lib/histogram.rb +1 -1
- data/lib/hookable.rb +1 -4
- data/lib/hooker.rb +1 -1
- data/lib/html_encode.rb +1 -1
- data/lib/indexed_node.rb +0 -3
- data/lib/io_marshal.rb +1 -1
- data/lib/ioo.rb +1 -1
- data/lib/kill_all.rb +2 -2
- data/lib/labeled_node.rb +0 -3
- data/lib/logger_observer.rb +1 -1
- data/lib/md5sum.rb +1 -1
- data/lib/meta_factory.rb +1 -1
- data/lib/method_call.rb +1 -1
- data/lib/mocks/assertions.rb +1 -1
- data/lib/mocks/method_logger.rb +1 -3
- data/lib/mocks/mock.rb +2 -4
- data/lib/mocks/object.rb +1 -4
- data/lib/mocks/observer.rb +1 -3
- data/lib/mocks.rb +1 -6
- data/lib/module/autoload_tree.rb +1 -1
- data/lib/module/hierarchy.rb +1 -1
- data/lib/module/instance_method_visibility.rb +17 -16
- data/lib/object_monitor.rb +1 -1
- data/lib/object_monitor_activity.rb +1 -1
- data/lib/observable.rb +1 -1
- data/lib/observable_pool.rb +1 -1
- data/lib/ordered_hash.rb +1 -1
- data/lib/r_path.rb +44 -23
- data/lib/random_generators/random_generator.rb +1 -1
- data/lib/random_generators/ruby.rb +1 -5
- data/lib/random_generators.rb +20 -5
- data/lib/regex_list.rb +2 -5
- data/lib/regex_path.rb +64 -23
- data/lib/ruby_ex.rb +11 -2
- data/lib/safe_eval.rb +6 -15
- data/lib/sendmail.rb +41 -17
- data/lib/service_manager.rb +1 -1
- data/lib/shuffle.rb +3 -1
- data/lib/spring.rb +1 -1
- data/lib/spring_set.rb +1 -1
- data/lib/sym_tbl.rb +14 -8
- data/lib/sym_tbl_gsub.rb +88 -23
- data/lib/text.rb +1 -1
- data/lib/timeout_ex.rb +1 -1
- data/lib/trace.rb +1 -1
- data/lib/uri/druby.rb +3 -6
- data/lib/uri/file.rb +32 -18
- data/lib/uri/ftp_ex.rb +8 -3
- data/lib/uri/generic_ex.rb +158 -0
- data/lib/uri/http_ex.rb +9 -4
- data/lib/uri/mysql.rb +7 -15
- data/lib/uri/pgsql.rb +6 -14
- data/lib/uri/rsync.rb +77 -0
- data/lib/uri/ssh.rb +55 -27
- data/lib/uri/svn.rb +22 -76
- data/lib/verbose_object.rb +1 -5
- data/lib/yaml/transform.rb +1 -1
- data/lib/yaml/yregexpath.rb +1 -1
- data/test/algorithms/simulated_annealing_test.rb +79 -80
- data/test/unit-suite.yml +5 -3
- metadata +179 -172
- data/SPEC.dyn.yml +0 -10
- data/SPEC.gemspec +0 -14
- data/lib/uri_ex.rb +0 -110
- data/test/test-unit-setup.rb +0 -10
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
2
2
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
3
3
|
# License:: GNU General Public License (GPL).
|
|
4
|
-
# Revision:: $Id: runner.rb
|
|
5
|
-
|
|
6
|
-
require 'commands'
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/commands/runners/runner.rb 21865 2006-02-18T17:13:28.680350Z pouillar $
|
|
7
5
|
|
|
8
6
|
module Commands
|
|
9
7
|
|
|
@@ -33,6 +31,7 @@ module Commands
|
|
|
33
31
|
hook_declare :before_chdir
|
|
34
32
|
hook_declare :before_exec
|
|
35
33
|
hook_declare :exec
|
|
34
|
+
hook_declare :failure
|
|
36
35
|
|
|
37
36
|
|
|
38
37
|
#
|
|
@@ -40,7 +39,7 @@ module Commands
|
|
|
40
39
|
#
|
|
41
40
|
|
|
42
41
|
def initialize
|
|
43
|
-
@command_data_factory = Datas
|
|
42
|
+
@command_data_factory = Datas.const_get(:Factory).new # FIXME LazyLoading
|
|
44
43
|
@open_mode = :w
|
|
45
44
|
hooker_subscribe self
|
|
46
45
|
end
|
|
@@ -61,8 +60,8 @@ module Commands
|
|
|
61
60
|
#
|
|
62
61
|
|
|
63
62
|
def run ( aCommand )
|
|
64
|
-
unless aCommand.is_a?
|
|
65
|
-
raise ArgumentError,
|
|
63
|
+
unless aCommand.is_a? Command
|
|
64
|
+
raise ArgumentError, "Need a #{Command}"
|
|
66
65
|
end
|
|
67
66
|
|
|
68
67
|
hook_trigger :display_command, aCommand
|
|
@@ -107,6 +106,13 @@ module Commands
|
|
|
107
106
|
self
|
|
108
107
|
end
|
|
109
108
|
|
|
109
|
+
|
|
110
|
+
def raise_on_failures
|
|
111
|
+
hooker_subscribe FailureHooker.new
|
|
112
|
+
self
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
|
|
110
116
|
#
|
|
111
117
|
# Hookers
|
|
112
118
|
#
|
|
@@ -134,9 +140,26 @@ module Commands
|
|
|
134
140
|
end # class VerboseHooker
|
|
135
141
|
|
|
136
142
|
|
|
143
|
+
class FailureHooker
|
|
144
|
+
include Hooker
|
|
145
|
+
|
|
146
|
+
class Error < Exception
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
def failure ( aCommand, data )
|
|
150
|
+
raise Error, { 'reason' => 'Command failed',
|
|
151
|
+
'command' => aCommand.to_s,
|
|
152
|
+
'data' => data }.to_yaml
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
end # class FailureHooker
|
|
156
|
+
|
|
157
|
+
|
|
137
158
|
end # class Runner
|
|
138
159
|
|
|
139
160
|
|
|
161
|
+
Commands::Helpers.import!
|
|
162
|
+
|
|
140
163
|
|
|
141
164
|
test_section __FILE__ do
|
|
142
165
|
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
2
2
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
3
3
|
# License:: GNU General Public License (GPL).
|
|
4
|
-
# Revision:: $Id: system.rb
|
|
5
|
-
|
|
6
|
-
require 'commands'
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/commands/runners/system.rb 8049 2005-12-31T16:01:12.162089Z ertai $
|
|
7
5
|
|
|
8
6
|
module Commands
|
|
9
7
|
|
|
@@ -27,7 +25,6 @@ module Commands
|
|
|
27
25
|
end # class System
|
|
28
26
|
|
|
29
27
|
|
|
30
|
-
|
|
31
28
|
test_section __FILE__ do
|
|
32
29
|
|
|
33
30
|
class SystemTest < Test::Unit::TestCase
|
data/lib/commands/runners.rb
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
2
2
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
3
3
|
# License:: GNU General Public License (GPL).
|
|
4
|
-
# Revision:: $Id: runners.rb
|
|
5
|
-
|
|
6
|
-
require 'commands'
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/commands/runners.rb 8049 2005-12-31T16:01:12.162089Z ertai $
|
|
7
5
|
|
|
8
6
|
module Commands
|
|
9
7
|
|
|
10
8
|
module Runners
|
|
11
|
-
|
|
12
|
-
autoloaded_module(__FILE__, false)
|
|
13
|
-
|
|
14
9
|
end # module Runners
|
|
15
10
|
|
|
16
11
|
end # module Commands
|
data/lib/commands/seq.rb
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
2
2
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
3
3
|
# License:: GNU General Public License (GPL).
|
|
4
|
-
# Revision:: $Id: seq.rb
|
|
5
|
-
|
|
6
|
-
require 'commands'
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/commands/seq.rb 21865 2006-02-18T17:13:28.680350Z pouillar $
|
|
7
5
|
|
|
8
6
|
module Commands
|
|
9
7
|
|
data/lib/commands.rb
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
2
2
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
3
3
|
# License:: GNU General Public License (GPL).
|
|
4
|
-
# Revision:: $Id: commands.rb
|
|
5
|
-
|
|
6
|
-
AutoloadTree.import!
|
|
7
|
-
require 'abstract'
|
|
8
|
-
require 'hookable'
|
|
9
|
-
require 'hooker'
|
|
10
|
-
require 'commands/helpers'
|
|
11
|
-
require 'commands/datas'
|
|
12
|
-
require 'commands/runners'
|
|
13
|
-
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/commands.rb 8049 2005-12-31T16:01:12.162089Z ertai $
|
|
14
5
|
|
|
15
6
|
# Provides an object oriented way to manage, combine and run your commands.
|
|
16
7
|
#
|
|
@@ -31,7 +22,6 @@ require 'commands/runners'
|
|
|
31
22
|
#
|
|
32
23
|
# puts out.read
|
|
33
24
|
module Commands
|
|
34
|
-
|
|
35
|
-
autoloaded_module(__FILE__, false)
|
|
36
|
-
|
|
37
25
|
end # module Commands
|
|
26
|
+
|
|
27
|
+
Commands::Helpers.import!
|
data/lib/concrete.rb
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
# Include this module in an abstract class to make it concrete and so, to be
|
|
5
|
+
# able to instantiate it again. This module can be included if and only if the
|
|
6
|
+
# Abstract module has been included before in one of the class' superclass.
|
|
7
|
+
module Concrete
|
|
8
|
+
|
|
9
|
+
def self.included(klass)
|
|
10
|
+
super
|
|
11
|
+
unless klass.include?(Abstract)
|
|
12
|
+
raise(TypeError, "#{klass} - not an abstract class")
|
|
13
|
+
end
|
|
14
|
+
klass.module_eval do
|
|
15
|
+
class << self
|
|
16
|
+
visibility = instance_method_visibility('new')
|
|
17
|
+
def new(*args, &block)
|
|
18
|
+
concrete_new(*args, &block)
|
|
19
|
+
end
|
|
20
|
+
send(visibility, :new)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def is_a?(klass)
|
|
24
|
+
klass == Abstract ? false : super(klass)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
end # module Concrete
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class Class
|
|
33
|
+
|
|
34
|
+
def concrete
|
|
35
|
+
include Concrete
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
end # class Class
|
data/lib/config_file.rb
CHANGED
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
# Author: Nicolas Despres <polrop@lrde.epita.fr>.
|
|
3
3
|
# License: Gnu General Public License.
|
|
4
4
|
|
|
5
|
-
# $LastChangedBy:
|
|
6
|
-
# $Id: config_file.rb
|
|
5
|
+
# $LastChangedBy: pouillar $
|
|
6
|
+
# $Id: /w/fey/ruby_ex/trunk/lib/config_file.rb 21865 2006-02-18T17:13:28.680350Z pouillar $
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
require 'pathname'
|
|
10
9
|
require 'yaml'
|
|
11
10
|
require 'delegate'
|
|
12
11
|
|
data/lib/const_regexp.rb
CHANGED
data/lib/d_logger.rb
CHANGED
data/lib/daemon.rb
CHANGED
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
# Author: Nicolas Despres <polrop@lrde.epita.fr>.
|
|
3
3
|
# License: Gnu General Public License.
|
|
4
4
|
|
|
5
|
-
# $LastChangedBy:
|
|
6
|
-
# $Id: daemon.rb
|
|
5
|
+
# $LastChangedBy: pouillar $
|
|
6
|
+
# $Id: /w/fey/ruby_ex/trunk/lib/daemon.rb 21865 2006-02-18T17:13:28.680350Z pouillar $
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
require 'pathname'
|
|
10
9
|
require 'singleton'
|
|
11
10
|
|
|
12
11
|
require 'observable'
|
data/lib/diff.rb
CHANGED
data/lib/diff_tools.rb
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
2
2
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
3
3
|
# License:: Gnu General Public License.
|
|
4
|
-
# Revision:: $Id: diff_tools.rb
|
|
5
|
-
|
|
6
|
-
RegexList.import!
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/diff_tools.rb 21865 2006-02-18T17:13:28.680350Z pouillar $
|
|
7
5
|
|
|
8
6
|
module DiffTools
|
|
9
7
|
|
data/lib/drb/drb_observable.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# License: Gnu General Public License.
|
|
4
4
|
|
|
5
5
|
# $LastChangedBy: polrop $
|
|
6
|
-
# $Id: drb_observable_pool.rb
|
|
6
|
+
# $Id: /w/fey/ruby_ex/trunk/lib/drb/drb_observable_pool.rb 7702 2005-01-13T18:20:49.192475Z polrop $
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
require 'observable_pool'
|
data/lib/drb/drb_service.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# License: Gnu General Public License.
|
|
4
4
|
|
|
5
5
|
# $LastChangedBy: ertai $
|
|
6
|
-
# $Id: drb_undumped_attributes.rb
|
|
6
|
+
# $Id: /w/fey/ruby_ex/trunk/lib/drb/drb_undumped_attributes.rb 7944 2005-09-06T23:27:27.929371Z ertai $
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
require 'drb/drb'
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# License: Gnu General Public License.
|
|
4
4
|
|
|
5
5
|
# $LastChangedBy: ertai $
|
|
6
|
-
# $Id: insecure_protected_methods.rb
|
|
6
|
+
# $Id: /w/fey/ruby_ex/trunk/lib/drb/insecure_protected_methods.rb 7990 2005-10-02T17:05:35.464384Z ertai $
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
require 'drb/drb'
|
data/lib/drb_ex.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
2
2
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
3
3
|
# License:: Gnu General Public License.
|
|
4
|
-
# Revision:: $Id: drb_ex.rb
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/drb_ex.rb 7949 2005-09-08T01:44:18.746516Z ertai $
|
|
5
5
|
|
|
6
6
|
AutoloadTree.import!
|
|
7
7
|
|
data/lib/file_type.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
2
2
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
3
3
|
# License:: Gnu General Public License.
|
|
4
|
-
# Revision:: $Id: file_type.rb
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/file_type.rb 8048 2005-12-31T15:58:07.059747Z ertai $
|
|
5
5
|
|
|
6
6
|
Commands.import!
|
|
7
7
|
|
|
@@ -22,7 +22,7 @@ module FileType
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
class Generic
|
|
25
|
-
|
|
25
|
+
make Abstract
|
|
26
26
|
|
|
27
27
|
attr_reader :path, :base, :ext
|
|
28
28
|
|
data/lib/generate_id.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Copyright:: Copyright (c) 2004 Nicolas Despres. All rights reserved.
|
|
2
2
|
# Author:: Nicolas Despres <polrop@lrde.epita.fr>.
|
|
3
3
|
# License:: Gnu General Public License.
|
|
4
|
-
# Revision:: $Id: generate_id.rb
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/generate_id.rb 7946 2005-09-07T00:01:43.894104Z ertai $
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
require 'md5'
|
data/lib/genpasswd.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Copyright:: Copyright (c) 2004, 2005 Nicolas Despres. All rights reserved.
|
|
2
2
|
# Author:: Nicolas Despr�s <nicolas.despres@gmail.com>.
|
|
3
3
|
# License:: Gnu General Public License.
|
|
4
|
-
# Revision:: $Id: genpasswd.rb
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/genpasswd.rb 7944 2005-09-06T23:27:27.929371Z ertai $
|
|
5
5
|
|
|
6
6
|
require 'choose'
|
|
7
7
|
|
data/lib/hash_eval.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Copyright: Copyright (c) 2004 Nicolas Despres. All rights reserved.
|
|
2
2
|
# Author: Nicolas Despr�s <nicolas.despres@gmail.com>.
|
|
3
3
|
# License: Gnu General Public License.
|
|
4
|
-
# $Id: hash_eval.rb
|
|
4
|
+
# $Id: /w/fey/ruby_ex/trunk/lib/hash_eval.rb 7944 2005-09-06T23:27:27.929371Z ertai $
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class HashEval
|
data/lib/histogram.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
2
2
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
3
3
|
# License:: Gnu General Public License.
|
|
4
|
-
# Revision:: $Id: histogram.rb
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/histogram.rb 7944 2005-09-06T23:27:27.929371Z ertai $
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class Histogram
|
data/lib/hookable.rb
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
2
2
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
3
3
|
# License:: Gnu General Public License.
|
|
4
|
-
# Revision:: $Id: hookable.rb
|
|
5
|
-
|
|
6
|
-
require 'hooker'
|
|
7
|
-
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/hookable.rb 8047 2005-12-31T15:56:23.983963Z ertai $
|
|
8
5
|
|
|
9
6
|
module Hookable
|
|
10
7
|
|
data/lib/hooker.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
2
2
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
3
3
|
# License:: Gnu General Public License.
|
|
4
|
-
# Revision:: $Id: hooker.rb
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/hooker.rb 7944 2005-09-06T23:27:27.929371Z ertai $
|
|
5
5
|
|
|
6
6
|
require 'active_support/class_inheritable_attributes'
|
|
7
7
|
|
data/lib/html_encode.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
2
2
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
3
3
|
# License:: Gnu General Public License.
|
|
4
|
-
# Revision:: $Id: html_encode.rb
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/html_encode.rb 7944 2005-09-06T23:27:27.929371Z ertai $
|
|
5
5
|
|
|
6
6
|
module HtmlEncode
|
|
7
7
|
|
data/lib/indexed_node.rb
CHANGED
data/lib/io_marshal.rb
CHANGED
data/lib/ioo.rb
CHANGED
data/lib/kill_all.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
2
2
|
# Copyright:: Copyright (c) 2004, 2005 TTK team. All rights reserved.
|
|
3
3
|
# License:: LGPL
|
|
4
|
-
# $Id: kill_all.rb
|
|
4
|
+
# $Id: /w/fey/ruby_ex/trunk/lib/kill_all.rb 8010 2005-10-10T21:23:35.079880Z ertai $
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Commands.import!
|
|
7
7
|
|
|
8
8
|
class KillAll
|
|
9
9
|
|
data/lib/labeled_node.rb
CHANGED
data/lib/logger_observer.rb
CHANGED
data/lib/md5sum.rb
CHANGED
data/lib/meta_factory.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
2
2
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
3
3
|
# License:: Gnu General Public License.
|
|
4
|
-
# Revision:: $Id: meta_factory.rb
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/meta_factory.rb 7954 2005-09-12T07:59:21.074304Z ertai $
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class MetaFactory
|
data/lib/method_call.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
2
2
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
3
3
|
# License:: Gnu General Public License.
|
|
4
|
-
# Revision:: $Id: method_call.rb
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/method_call.rb 7944 2005-09-06T23:27:27.929371Z ertai $
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class MethodCall
|
data/lib/mocks/assertions.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
2
2
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
3
3
|
# License:: Gnu General Public License.
|
|
4
|
-
# Revision:: $Id: assertions.rb
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/mocks/assertions.rb 7944 2005-09-06T23:27:27.929371Z ertai $
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
module Mocks
|
data/lib/mocks/method_logger.rb
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
2
2
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
3
3
|
# License:: Gnu General Public License.
|
|
4
|
-
# Revision:: $Id: method_logger.rb
|
|
5
|
-
|
|
6
|
-
require 'mocks'
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/mocks/method_logger.rb 8045 2005-12-31T15:52:34.141300Z ertai $
|
|
7
5
|
|
|
8
6
|
module Mocks
|
|
9
7
|
|
data/lib/mocks/mock.rb
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
2
2
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
3
3
|
# License:: Gnu General Public License.
|
|
4
|
-
# Revision:: $Id: mock.rb
|
|
5
|
-
|
|
6
|
-
require 'mocks'
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/mocks/mock.rb 8045 2005-12-31T15:52:34.141300Z ertai $
|
|
7
5
|
|
|
8
6
|
module Mocks
|
|
9
7
|
|
|
@@ -61,4 +59,4 @@ module Mocks
|
|
|
61
59
|
|
|
62
60
|
end
|
|
63
61
|
|
|
64
|
-
end # module Mocks
|
|
62
|
+
end # module Mocks
|
data/lib/mocks/object.rb
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
2
2
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
3
3
|
# License:: Gnu General Public License.
|
|
4
|
-
# Revision:: $Id: object.rb
|
|
5
|
-
|
|
6
|
-
require 'mocks'
|
|
7
|
-
require 'blank_slate'
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/mocks/object.rb 8045 2005-12-31T15:52:34.141300Z ertai $
|
|
8
5
|
|
|
9
6
|
module Mocks
|
|
10
7
|
|
data/lib/mocks/observer.rb
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
2
2
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
3
3
|
# License:: Gnu General Public License.
|
|
4
|
-
# Revision:: $Id: observer.rb
|
|
5
|
-
|
|
6
|
-
require 'mocks'
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/mocks/observer.rb 8045 2005-12-31T15:52:34.141300Z ertai $
|
|
7
5
|
|
|
8
6
|
module Mocks
|
|
9
7
|
|
data/lib/mocks.rb
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
|
|
2
2
|
# Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
|
|
3
3
|
# License:: GNU General Public License (GPL).
|
|
4
|
-
# Revision:: $Id: mocks.rb
|
|
5
|
-
|
|
6
|
-
AutoloadTree.import!
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/mocks.rb 8045 2005-12-31T15:52:34.141300Z ertai $
|
|
7
5
|
|
|
8
6
|
module Mocks
|
|
9
|
-
|
|
10
|
-
autoloaded_module(__FILE__, false)
|
|
11
|
-
|
|
12
7
|
end # module Mocks
|
data/lib/module/autoload_tree.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Copyright:: Copyright (c) 2004 Nicolas Despres. All rights reserved.
|
|
2
2
|
# Author:: Nicolas Despres <polrop@lrde.epita.fr>.
|
|
3
3
|
# License:: Gnu General Public License.
|
|
4
|
-
# Revision:: $Id: autoload_tree.rb
|
|
4
|
+
# Revision:: $Id: /w/fey/ruby_ex/trunk/lib/module/autoload_tree.rb 7981 2005-09-29T21:46:32.362147Z ertai $
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
module AutoloadTree
|
data/lib/module/hierarchy.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# License: Gnu General Public License.
|
|
4
4
|
|
|
5
5
|
# $LastChangedBy: polrop $
|
|
6
|
-
# $Id: hierarchy.rb
|
|
6
|
+
# $Id: /w/fey/ruby_ex/trunk/lib/module/hierarchy.rb 7944 2005-09-06T23:27:27.929371Z ertai $
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
# Extend the Module class with method to manipulate inheritance relation
|