ruby_ex 0.4.1.2 → 0.4.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,14 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = %q{ruby_ex}
3
+ s.version = "0.4.1.3"
4
+ s.date = %q{2006-02-24}
5
+ s.summary = %q{RubyEx contains general purpose Ruby extensions.}
6
+ s.email = ["nicolas.despres@gmail.com", "ertai@feydakins.org"]
7
+ s.homepage = %q{http://api.feydakins.org/ruby_ex}
8
+ s.rubyforge_project = %q{ruby_ex}
9
+ s.description = %q{}
10
+ s.authors = ["Nicolas Despr\350s", "Nicolas Pouillard"]
11
+ s.files = ["lib/file_type.rb", "lib/config_file.rb", "lib/labeled_node.rb", "lib/diff.rb", "lib/spring_set.rb", "lib/genpasswd.rb", "lib/sendmail.rb", "lib/auto_object.rb", "lib/concrete.rb", "lib/commands.rb", "lib/generate_id.rb", "lib/ruby_ex.rb", "lib/verbose_object.rb", "lib/md5sum.rb", "lib/daemon.rb", "lib/syn_flow.rb", "lib/html_encode.rb", "lib/hooker.rb", "lib/d_logger.rb", "lib/cache.rb", "lib/diff_tools.rb", "lib/mocks.rb", "lib/choose.rb", "lib/safe_eval.rb", "lib/histogram.rb", "lib/regex_path.rb", "lib/timeout_ex.rb", "lib/text.rb", "lib/observable.rb", "lib/r_path.rb", "lib/indexed_node.rb", "lib/io_marshal.rb", "lib/ioo.rb", "lib/logger_observer.rb", "lib/abstract.rb", "lib/service_manager.rb", "lib/node.rb", "lib/meta_factory.rb", "lib/hash_eval.rb", "lib/object_monitor.rb", "lib/hookable.rb", "lib/pp_hierarchy.rb", "lib/ordered_hash.rb", "lib/spring.rb", "lib/shuffle.rb", "lib/observable_pool.rb", "lib/object_monitor_activity.rb", "lib/sym_tbl.rb", "lib/blank_slate.rb", "lib/sym_tbl_gsub.rb", "lib/attributed_class.rb", "lib/drb_ex.rb", "lib/random_generators.rb", "lib/method_call.rb", "lib/const_regexp.rb", "lib/regex_list.rb", "lib/abstract_node.rb", "lib/kill_all.rb", "lib/trace.rb", "lib/drb/undumped_attributes.rb", "lib/drb/insecure_protected_methods.rb", "lib/drb/observable.rb", "lib/drb/service.rb", "lib/drb/observable_pool.rb", "lib/drb/undumped_indexed_object.rb", "lib/uri/ftp_ex.rb", "lib/uri/pgsql.rb", "lib/uri/rsync.rb", "lib/uri/file.rb", "lib/uri/druby.rb", "lib/uri/generic_ex.rb", "lib/uri/http_ex.rb", "lib/uri/ssh.rb", "lib/uri/svn.rb", "lib/uri/mysql.rb", "lib/yaml/yregexpath.rb", "lib/yaml/chop_header.rb", "lib/yaml/transform.rb", "lib/mocks/observer.rb", "lib/mocks/assertions.rb", "lib/mocks/mock.rb", "lib/mocks/method_logger.rb", "lib/mocks/object.rb", "lib/commands/datas.rb", "lib/commands/helpers.rb", "lib/commands/seq.rb", "lib/commands/command.rb", "lib/commands/factory.rb", "lib/commands/pipe.rb", "lib/commands/runners.rb", "lib/commands/datas/data.rb", "lib/commands/datas/composite.rb", "lib/commands/datas/temp.rb", "lib/commands/datas/factory.rb", "lib/commands/datas/pipe.rb", "lib/commands/runners/popen.rb", "lib/commands/runners/system.rb", "lib/commands/runners/exec.rb", "lib/commands/runners/no_run.rb", "lib/commands/runners/fork.rb", "lib/commands/runners/mockable.rb", "lib/commands/runners/runner.rb", "lib/algorithms/simulated_annealing.rb", "lib/module/instance_method_visibility.rb", "lib/module/hierarchy.rb", "lib/module/autoload_tree.rb", "lib/random_generators/random_generator.rb", "lib/random_generators/ruby.rb", "test/unit-suite.yml", "test/check-ruby_ex.yml", "test/functional", "test/algorithms", "test/stress-tests", "test/fixtures", "test/sanity", "test/sanity-suite.yml", "test/check-pkg-ruby_ex.yml", "test/algorithms/simulated_annealing_test.rb", "test/stress-tests/threads_and_exceptions.yml", "test/fixtures/tar.gz.log", "test/fixtures/foo.tar.bz2", "test/fixtures/foo.rb.gz", "test/fixtures/my_diff.patch", "test/fixtures/foo.bz2", "test/fixtures/foo.tar", "test/fixtures/foo.txt", "test/fixtures/foo.gz.zip", "test/fixtures/foo.tar.gz", "test/fixtures/autoload_tree", "test/fixtures/autoload_tree/foo", "test/fixtures/autoload_tree/A.rb", "test/fixtures/autoload_tree/B.rb", "test/fixtures/autoload_tree/foo/C.rb", "test/sanity/single-requires.yml", "test/sanity/multiple-requires.yml", "NEWS", "SPEC.gemspec", "Rakefile", "README", "AUTHORS", "SPEC.yml", "ChangeLog"]
12
+ s.add_dependency(%q<highline>, ["~> 1.0.1"])
13
+ s.add_dependency(%q<core_ex>, ["~> 0.5.1"])
14
+ end
data/SPEC.yml CHANGED
@@ -1,9 +1,9 @@
1
1
  ---
2
2
  Author: The Uttk Team.
3
3
  License: Ruby License
4
- Revision: '$Id: /w/fey/ruby_ex/trunk/SPEC.yml 22231 2006-02-24T14:25:44.907003Z pouillar $'
4
+ Revision: '$Id: /w/fey/ruby_ex/trunk/SPEC.yml 22233 2006-02-24T14:59:57.423863Z pouillar $'
5
5
 
6
- version: !feydakins.org,2006/version dev-ruby/ruby_ex-0.4_alpha2
6
+ version: !feydakins.org,2006/version dev-ruby/ruby_ex-0.4_alpha3
7
7
 
8
8
  title: RubyEx -- General purpose Ruby extensions.
9
9
  summary: RubyEx contains general purpose Ruby extensions.
@@ -1,9 +1,9 @@
1
- # Copyright: Copyright (c) 2004 Nicolas Despres. All rights reserved.
2
- # Author: Nicolas Despres <polrop@lrde.epita.fr>.
3
- # License: Gnu General Public License.
1
+ # Copyright:: Copyright (c) 2004, 2006 Nicolas Despres. All rights reserved.
2
+ # Author:: Nicolas Despres <polrop@lrde.epita.fr>.
3
+ # License:: Gnu General Public License.
4
4
 
5
- # $LastChangedBy: ertai $
6
- # $Id: /w/fey/ruby_ex/trunk/lib/drb/insecure_protected_methods.rb 7990 2005-10-02T17:05:35.464384Z ertai $
5
+ # $LastChangedBy: pouillar $
6
+ # $Id: /w/fey/ruby_ex/trunk/lib/drb/insecure_protected_methods.rb 22238 2006-02-24T16:48:40.656342Z pouillar $
7
7
 
8
8
 
9
9
  require 'drb/drb'
@@ -28,6 +28,9 @@ module DRb
28
28
 
29
29
  end # class DRbServer
30
30
 
31
+ class InsecureProtectedMethods
32
+ end
33
+
31
34
  end # module DRb
32
35
 
33
36
 
@@ -1,9 +1,9 @@
1
- # Copyright: Copyright (c) 2004 Nicolas Despres. All rights reserved.
2
- # Author: Nicolas Despres <polrop@lrde.epita.fr>.
3
- # License: Gnu General Public License.
1
+ # Copyright:: Copyright (c) 2004, 2006 Nicolas Despres. All rights reserved.
2
+ # Author:: Nicolas Despres <polrop@lrde.epita.fr>.
3
+ # License:: Gnu General Public License.
4
4
 
5
- # $LastChangedBy: ertai $
6
- # $Id: /w/fey/ruby_ex/trunk/lib/drb/drb_observable.rb 7944 2005-09-06T23:27:27.929371Z ertai $
5
+ # $LastChangedBy: pouillar $
6
+ # $Id: /w/fey/ruby_ex/trunk/lib/drb/observable.rb 22238 2006-02-24T16:48:40.656342Z pouillar $
7
7
 
8
8
 
9
9
  require 'drb/observer'
@@ -13,8 +13,8 @@ require 'observable'
13
13
 
14
14
  module DRb
15
15
 
16
- module DRbObservable
17
- include Observable
16
+ module Observable
17
+ include ::Observable
18
18
 
19
19
  undef notify_observers
20
20
  def notify_observers(*args, &block)
@@ -47,7 +47,7 @@ module DRb
47
47
  end
48
48
  end
49
49
 
50
- end # module DRbObservable
50
+ end # module Observable
51
51
 
52
52
  end # module DRb
53
53
 
@@ -57,7 +57,7 @@ test_section __FILE__ do
57
57
 
58
58
  module DRb
59
59
 
60
- class ObservablePoolTest < ::Test::Unit::TestCase
60
+ class ObservableTest < ::Test::Unit::TestCase
61
61
 
62
62
  class Obsv
63
63
  include DRbObservable
@@ -83,7 +83,7 @@ module DRb
83
83
  end
84
84
 
85
85
 
86
- end # class ObservablePoolTest
86
+ end # class ObservableTest
87
87
 
88
88
  end # module DRb
89
89
 
@@ -0,0 +1,22 @@
1
+ # Copyright:: Copyright (c) 2004, 2006 Nicolas Despres. All rights reserved.
2
+ # Author:: Nicolas Despres <polrop@lrde.epita.fr>.
3
+ # License:: Gnu General Public License.
4
+
5
+ # $LastChangedBy: pouillar $
6
+ # $Id: /w/fey/ruby_ex/trunk/lib/drb/observable_pool.rb 22238 2006-02-24T16:48:40.656342Z pouillar $
7
+
8
+
9
+ module DRb
10
+
11
+ class DRbObservablePool
12
+
13
+ class SyncObserver
14
+ include DRb::Observable
15
+
16
+ end # class SyncObserver
17
+
18
+ end # class DRbObservable
19
+
20
+ end # module DRb
21
+
22
+
@@ -1,9 +1,9 @@
1
- # Author:: Nicolas Despres <nicolas.despres@epita.fr>.
2
- # Copyright:: Copyright (c) 2004 TTK Team. All rights reserved.
3
- # License:: Ruby license.
1
+ # Author:: Nicolas Despres <nicolas.despres@epita.fr>.
2
+ # Copyright:: Copyright (c) 2004, 2006 Uttk Team. All rights reserved.
3
+ # License:: Ruby license.
4
4
 
5
- # $LastChangedBy: ertai $
6
- # $Id: /w/fey/ruby_ex/trunk/lib/drb/drb_service.rb 7944 2005-09-06T23:27:27.929371Z ertai $
5
+ # $LastChangedBy: pouillar $
6
+ # $Id: /w/fey/ruby_ex/trunk/lib/drb/service.rb 22238 2006-02-24T16:48:40.656342Z pouillar $
7
7
 
8
8
 
9
9
  require 'drb/drb'
@@ -11,7 +11,7 @@ require 'drb/drb'
11
11
 
12
12
  module DRb
13
13
 
14
- class DRbService
14
+ class Service
15
15
  include DRbUndumped
16
16
 
17
17
  def initialize(config={})
@@ -36,7 +36,7 @@ module DRb
36
36
  @server.thread if @server
37
37
  end
38
38
 
39
- end # class DRbService
39
+ end # class Service
40
40
 
41
41
  end # module DRb
42
42
 
@@ -1,9 +1,9 @@
1
- # Copyright: Copyright (c) 2004 Nicolas Despres. All rights reserved.
2
- # Author: Nicolas Despres <polrop@lrde.epita.fr>.
3
- # License: Gnu General Public License.
1
+ # Copyright:: Copyright (c) 2004, 2006 Nicolas Despres. All rights reserved.
2
+ # Author:: Nicolas Despres <polrop@lrde.epita.fr>.
3
+ # License:: Gnu General Public License.
4
4
 
5
- # $LastChangedBy: ertai $
6
- # $Id: /w/fey/ruby_ex/trunk/lib/drb/drb_undumped_attributes.rb 7944 2005-09-06T23:27:27.929371Z ertai $
5
+ # $LastChangedBy: pouillar $
6
+ # $Id: /w/fey/ruby_ex/trunk/lib/drb/undumped_attributes.rb 22238 2006-02-24T16:48:40.656342Z pouillar $
7
7
 
8
8
 
9
9
  require 'drb/drb'
@@ -11,9 +11,9 @@ require 'drb/drb'
11
11
 
12
12
  module DRb
13
13
 
14
- module DRbUndumpedAttributes
14
+ module UndumpedAttributes
15
15
 
16
- def DRbUndumpedAttributes.append_features(cl)
16
+ def UndumpedAttributes.append_features(cl)
17
17
  super
18
18
  cl.module_eval do
19
19
 
@@ -50,6 +50,6 @@ module DRb
50
50
 
51
51
  end
52
52
 
53
- end # module DRbUndumpedAttributes
53
+ end # module UndumpedAttributes
54
54
 
55
55
  end # module DRb
@@ -1,9 +1,9 @@
1
- # Author:: Nicolas Despres <nicolas.despres@epita.fr>.
2
- # Copyright:: Copyright (c) 2004 TTK Team. All rights reserved.
3
- # License:: Ruby license.
1
+ # Author:: Nicolas Despres <nicolas.despres@epita.fr>.
2
+ # Copyright:: Copyright (c) 2004, 2006 Uttk Team. All rights reserved.
3
+ # License:: Ruby license.
4
4
 
5
- # $LastChangedBy: ertai $
6
- # $Id: /w/fey/ruby_ex/trunk/lib/drb/drb_undumped_indexed_object.rb 7944 2005-09-06T23:27:27.929371Z ertai $
5
+ # $LastChangedBy: pouillar $
6
+ # $Id: /w/fey/ruby_ex/trunk/lib/drb/undumped_indexed_object.rb 22238 2006-02-24T16:48:40.656342Z pouillar $
7
7
 
8
8
 
9
9
  require 'drb'
@@ -11,9 +11,9 @@ require 'drb'
11
11
 
12
12
  module DRb
13
13
 
14
- module DRbUndumpedIndexedObject
14
+ module UndumpedIndexedObject
15
15
 
16
- def DRbUndumpedIndexedObject.append_features(cl)
16
+ def UndumpedIndexedObject.append_features(cl)
17
17
  super
18
18
  cl.module_eval do
19
19
 
@@ -49,6 +49,6 @@ module DRb
49
49
 
50
50
  end
51
51
 
52
- end # module DRbUndumpedIndexedObject
52
+ end # module UndumpedIndexedObject
53
53
 
54
54
  end # module DRb
@@ -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: /w/fey/ruby_ex/trunk/lib/drb_ex.rb 7949 2005-09-08T01:44:18.746516Z ertai $
4
+ # Revision:: $Id: /w/fey/ruby_ex/trunk/lib/drb_ex.rb 22238 2006-02-24T16:48:40.656342Z pouillar $
5
5
 
6
6
  AutoloadTree.import!
7
7
 
@@ -10,3 +10,6 @@ module DRb
10
10
  autoloaded_module(__FILE__.sub(/drb_ex\.rb/, 'drb.rb'))
11
11
 
12
12
  end # module Drb
13
+
14
+ class DrbEx
15
+ end
@@ -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: /w/fey/ruby_ex/trunk/lib/ruby_ex.rb 22058 2006-02-20T21:41:08.060925Z pouillar $
4
+ # Revision:: $Id: /w/fey/ruby_ex/trunk/lib/ruby_ex.rb 22238 2006-02-24T16:48:40.656342Z pouillar $
5
5
 
6
6
  require 'pathname'
7
7
 
@@ -42,7 +42,7 @@ module RubyEx
42
42
  if file.exist?
43
43
  require file.to_s
44
44
  else
45
- require 'rubygems'
45
+ require 'rubygems' unless ENV['NO_GEM']
46
46
  require_gem 'core_ex'
47
47
  require 'core_ex'
48
48
  end
@@ -54,7 +54,7 @@ module RubyEx
54
54
 
55
55
  # Setup exceptions about the camel_case of URI and its classes.
56
56
  Inflector.inflections do |i|
57
- i.fixed_cases 'URI', 'DRuby', 'MySQL', 'PgSQL', 'FTP', 'HTTP'
57
+ i.fixed_cases 'URI', 'DRuby', 'MySQL', 'PgSQL', 'FTP', 'HTTP', 'DRb'
58
58
  end
59
59
 
60
60
  dir.load_path!
@@ -18,7 +18,7 @@ module URI
18
18
  alias_method :static_parse, :parse
19
19
  def parse ( anObject )
20
20
  str = anObject.to_s
21
- if str =~ /^(\w+):\/\//
21
+ if str =~ /^(\w+)(?:.\w+)?:\/\//
22
22
  "uri/#$1".camelize.constantize
23
23
  end
24
24
  static_parse(str)
@@ -58,7 +58,7 @@ module URI
58
58
  raise CheckoutError, "Can't checkout a #{self.class}"
59
59
  end
60
60
 
61
- def commit
61
+ def commit ( *args )
62
62
  raise CommitError, "Can't commit a #{self.class}"
63
63
  end
64
64
 
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: ruby_ex
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.4.1.2
6
+ version: 0.4.1.3
7
7
  date: 2006-02-24 00:00:00 +01:00
8
8
  summary: RubyEx contains general purpose Ruby extensions.
9
9
  require_paths:
@@ -90,12 +90,12 @@ files:
90
90
  - lib/abstract_node.rb
91
91
  - lib/kill_all.rb
92
92
  - lib/trace.rb
93
- - lib/drb/drb_undumped_indexed_object.rb
93
+ - lib/drb/undumped_attributes.rb
94
94
  - lib/drb/insecure_protected_methods.rb
95
- - lib/drb/drb_service.rb
96
- - lib/drb/drb_observable.rb
97
- - lib/drb/drb_undumped_attributes.rb
98
- - lib/drb/drb_observable_pool.rb
95
+ - lib/drb/observable.rb
96
+ - lib/drb/service.rb
97
+ - lib/drb/observable_pool.rb
98
+ - lib/drb/undumped_indexed_object.rb
99
99
  - lib/uri/ftp_ex.rb
100
100
  - lib/uri/pgsql.rb
101
101
  - lib/uri/rsync.rb
@@ -167,6 +167,7 @@ files:
167
167
  - test/sanity/single-requires.yml
168
168
  - test/sanity/multiple-requires.yml
169
169
  - NEWS
170
+ - SPEC.gemspec
170
171
  - Rakefile
171
172
  - README
172
173
  - AUTHORS
@@ -1,27 +0,0 @@
1
- # Copyright: Copyright (c) 2004 Nicolas Despres. All rights reserved.
2
- # Author: Nicolas Despres <polrop@lrde.epita.fr>.
3
- # License: Gnu General Public License.
4
-
5
- # $LastChangedBy: polrop $
6
- # $Id: /w/fey/ruby_ex/trunk/lib/drb/drb_observable_pool.rb 7702 2005-01-13T18:20:49.192475Z polrop $
7
-
8
-
9
- require 'observable_pool'
10
-
11
- require 'drb/drb_observable'
12
-
13
-
14
- module DRb
15
-
16
- class DRbObservablePool
17
-
18
- class SyncObserver
19
- include DRbObservable
20
-
21
- end # class SyncObserver
22
-
23
- end # class DRbObservable
24
-
25
- end # module DRb
26
-
27
-