ruby_ex 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. data/ChangeLog +693 -0
  2. data/NEWS +74 -0
  3. data/SPEC.dyn.yml +6 -6
  4. data/SPEC.gemspec +14 -0
  5. data/SPEC.yml +4 -4
  6. data/lib/abstract.rb +2 -4
  7. data/lib/abstract_node.rb +1 -2
  8. data/lib/algorithms/simulated_annealing.rb +50 -29
  9. data/lib/attributed_class.rb +50 -21
  10. data/lib/auto_object.rb +102 -0
  11. data/lib/blank_slate.rb +102 -0
  12. data/lib/cache.rb +1 -2
  13. data/lib/choose.rb +165 -163
  14. data/lib/commands.rb +2 -3
  15. data/lib/commands/command.rb +47 -20
  16. data/lib/commands/datas.rb +1 -1
  17. data/lib/commands/datas/composite.rb +5 -1
  18. data/lib/commands/datas/data.rb +102 -5
  19. data/lib/commands/datas/factory.rb +13 -6
  20. data/lib/commands/datas/temp.rb +3 -5
  21. data/lib/commands/factory.rb +1 -1
  22. data/lib/commands/helpers.rb +1 -1
  23. data/lib/commands/pipe.rb +10 -1
  24. data/lib/commands/runners.rb +1 -1
  25. data/lib/commands/runners/exec.rb +1 -1
  26. data/lib/commands/runners/fork.rb +3 -16
  27. data/lib/commands/runners/mock.rb +67 -0
  28. data/lib/commands/runners/runner.rb +5 -3
  29. data/lib/commands/runners/system.rb +1 -1
  30. data/lib/commands/seq.rb +2 -1
  31. data/lib/config_file.rb +10 -2
  32. data/lib/const_regexp.rb +1 -2
  33. data/lib/{dlogger.rb → d_logger.rb} +1 -2
  34. data/lib/daemon.rb +1 -2
  35. data/lib/diff.rb +1 -2
  36. data/lib/drb/drb_observable.rb +1 -2
  37. data/lib/drb/drb_observable_pool.rb +2 -2
  38. data/lib/drb/drb_service.rb +1 -2
  39. data/lib/drb/drb_undumped_attributes.rb +1 -2
  40. data/lib/drb/drb_undumped_indexed_object.rb +1 -2
  41. data/lib/drb/insecure_protected_methods.rb +1 -2
  42. data/lib/drb_ex.rb +2 -2
  43. data/lib/file_type.rb +466 -0
  44. data/lib/generate_id.rb +12 -6
  45. data/lib/genpasswd.rb +22 -0
  46. data/lib/hash_eval.rb +83 -0
  47. data/lib/histogram.rb +1 -2
  48. data/lib/hookable.rb +3 -4
  49. data/lib/hooker.rb +1 -3
  50. data/lib/html_encode.rb +191 -0
  51. data/lib/indexed_node.rb +0 -1
  52. data/lib/io_marshal.rb +4 -2
  53. data/lib/ioo.rb +3 -2
  54. data/lib/kill_all.rb +46 -0
  55. data/lib/labeled_node.rb +0 -1
  56. data/lib/logger_observer.rb +8 -4
  57. data/lib/md5sum.rb +3 -3
  58. data/lib/meta_factory.rb +99 -0
  59. data/lib/method_call.rb +87 -0
  60. data/lib/mocks.rb +12 -0
  61. data/lib/mocks/assertions.rb +50 -0
  62. data/lib/mocks/method_logger.rb +40 -0
  63. data/lib/mocks/mock.rb +64 -0
  64. data/lib/mocks/object.rb +47 -0
  65. data/lib/mocks/observer.rb +38 -0
  66. data/lib/module/autoload_tree.rb +30 -29
  67. data/lib/module/hierarchy.rb +176 -171
  68. data/lib/module/instance_method_visibility.rb +39 -38
  69. data/lib/node.rb +0 -1
  70. data/lib/object_monitor.rb +1 -2
  71. data/lib/object_monitor_activity.rb +1 -2
  72. data/lib/observable.rb +1 -2
  73. data/lib/observable_pool.rb +1 -2
  74. data/lib/{orderedhash.rb → ordered_hash.rb} +41 -5
  75. data/lib/pp_hierarchy.rb +7 -2
  76. data/lib/r_path.rb +307 -0
  77. data/lib/random_generators.rb +7 -20
  78. data/lib/random_generators/random_generator.rb +2 -4
  79. data/lib/random_generators/ruby.rb +4 -2
  80. data/lib/regex_path.rb +124 -0
  81. data/lib/ruby_ex.rb +28 -98
  82. data/lib/safe_eval.rb +1 -2
  83. data/lib/sendmail.rb +14 -17
  84. data/lib/service_manager.rb +1 -2
  85. data/lib/shuffle.rb +6 -2
  86. data/lib/spring.rb +1 -2
  87. data/lib/spring_set.rb +1 -2
  88. data/lib/{symtbl.rb → sym_tbl.rb} +90 -5
  89. data/lib/sym_tbl_gsub.rb +227 -0
  90. data/lib/{synflow.rb → syn_flow.rb} +1 -2
  91. data/lib/text.rb +218 -0
  92. data/lib/timeout_ex.rb +1 -2
  93. data/lib/trace.rb +9 -8
  94. data/lib/uri/druby.rb +1 -2
  95. data/lib/uri/file.rb +1 -1
  96. data/lib/uri/ftp_ex.rb +1 -1
  97. data/lib/uri/http_ex.rb +1 -1
  98. data/lib/uri/mysql.rb +121 -0
  99. data/lib/uri/pgsql.rb +19 -38
  100. data/lib/uri/svn.rb +1 -2
  101. data/lib/uri_ex.rb +45 -3
  102. data/lib/verbose_object.rb +181 -38
  103. data/lib/yaml/chop_header.rb +19 -11
  104. data/lib/yaml/transform.rb +17 -11
  105. data/lib/yaml/yregexpath.rb +11 -5
  106. data/test/algorithms/simulated_annealing_test.rb +2 -2
  107. data/test/resources/foo.tar.gz +0 -0
  108. data/test/resources/tar.gz.log +49 -0
  109. data/test/sanity-suite.yml +5 -7
  110. data/test/sanity/multiple-requires.yml +17 -7
  111. data/test/sanity/single-requires.yml +38 -20
  112. data/test/stress-tests/threads_and_exceptions.yml +13 -0
  113. data/test/test-unit-setup.rb +3 -1
  114. data/test/unit-suite.yml +7 -8
  115. metadata +42 -31
  116. data/lib/algorithms.rb +0 -12
  117. data/lib/ask.rb +0 -100
  118. data/lib/checkout.rb +0 -12
  119. data/lib/dumpable_proc.rb +0 -57
  120. data/lib/filetype.rb +0 -229
  121. data/lib/thread_mutex.rb +0 -11
  122. data/lib/yaml/basenode_ext.rb +0 -63
@@ -3,22 +3,30 @@
3
3
  # License:: GNU General Public License (GPL).
4
4
  # Revision:: $Id: header 98 2004-09-29 12:07:43Z ertai $
5
5
 
6
- require 'ruby_ex'
7
6
  require 'yaml'
8
7
 
8
+ module Yaml
9
+ class ChopHeader
10
+ def initialize ( io )
11
+ aStr = io.gets
12
+ unless aStr =~ /^---/
13
+ io.rewind
14
+ raise Exception, "First line is not valid: `#{aLine}'"
15
+ end
16
+ io.each do |aLine|
17
+ break if aLine =~ /^---/
18
+ aStr += aLine
19
+ end
20
+ @doc = YAML::load(aStr)
21
+ end
22
+ attr_reader :doc
23
+ end # class ChopHeader
24
+ end # module Yaml
25
+
9
26
  module YAML
10
27
 
11
28
  def self.chop_header ( io )
12
- aStr = io.gets
13
- unless aStr =~ /^---/
14
- io.rewind
15
- raise Exception, "First line is not valid: `#{aLine}'"
16
- end
17
- io.each do |aLine|
18
- break if aLine =~ /^---/
19
- aStr += aLine
20
- end
21
- YAML::load(aStr)
29
+ Yaml::ChopHeader.new(io).doc
22
30
  end
23
31
 
24
32
  end # module YAML
@@ -3,7 +3,7 @@
3
3
  # License:: Gnu General Public License.
4
4
 
5
5
  # $LastChangedBy: ertai $
6
- # $Id: transform.rb 279 2005-06-05 17:46:53Z ertai $
6
+ # $Id: transform.rb 339 2005-09-06 23:27:27Z ertai $
7
7
 
8
8
  # TODO: Raised exception must be completed with a descritpion
9
9
  # TODO: Fix bug on Array see test_higher_level_on_array
@@ -15,7 +15,6 @@
15
15
  # TODO: Optimize, skip if no more node to match.
16
16
  # TODO: separate dot implemantation.
17
17
 
18
- require 'ruby_ex'
19
18
  require 'yaml/yregexpath'
20
19
 
21
20
  module YAML
@@ -29,7 +28,7 @@ module YAML
29
28
  raise ArgumentError, "can't traverse class #{self.class}"
30
29
  end
31
30
  end
32
-
31
+
33
32
  class ::Hash # :nodoc:
34
33
  # FIXME: Are we sure we want to traverse like that? (by stage)
35
34
  def yaml_doc_traverse ( activated )
@@ -45,7 +44,7 @@ module YAML
45
44
  sons.yaml_doc_traverse(activated)
46
45
  end
47
46
  end
48
-
47
+
49
48
  class ::Array # :nodoc:
50
49
  def yaml_doc_traverse ( activated )
51
50
  self.each { |e| e.yaml_doc_traverse(activated) }
@@ -56,7 +55,7 @@ module YAML
56
55
  attr_reader :name, :values
57
56
 
58
57
  Struct.new( 'Value', :regexp, :remember, :associated )
59
-
58
+
60
59
  def initialize ( name )
61
60
  raise ArgumentError unless name.is_a?(Regexp)
62
61
  @name = name
@@ -144,7 +143,7 @@ module YAML
144
143
  def unique_name
145
144
  "node#{@uid}"
146
145
  end
147
-
146
+
148
147
  # Human readable name.
149
148
  def to_s
150
149
  "\"/#{@name.source}/\""
@@ -171,11 +170,11 @@ module YAML
171
170
  'root'
172
171
  end
173
172
 
174
- alias unique_name to_s
173
+ alias unique_name to_s
175
174
  end
176
175
 
177
176
  class Match
178
-
177
+
179
178
  def initialize ( name=nil, &block )
180
179
  @block = block
181
180
  @name = name
@@ -299,7 +298,7 @@ end # module YAML
299
298
  test_section __FILE__ do
300
299
 
301
300
  class Transformer < Test::Unit::TestCase
302
-
301
+
303
302
  def test_compiled
304
303
  # Initialization.
305
304
  engine = nil
@@ -337,7 +336,7 @@ test_section __FILE__ do
337
336
  `dot #{dot_file} 2> /dev/null`
338
337
  # assert_equal(0, $?, 'Cannot display the graph')
339
338
  end
340
-
339
+
341
340
  # Traverse.
342
341
  tree = {
343
342
  'name' => 'Akli A.',
@@ -440,7 +439,7 @@ test_section __FILE__ do
440
439
  # assert_raise(ArgumentError) do
441
440
  # engine.add(YAML::YRegexPath.new('/name')) { |key| str += "error" }
442
441
  # end
443
-
442
+
444
443
  # No block ginven.
445
444
  assert_raise(ArgumentError) do
446
445
  engine.add(YAML::YRegexPath.new('/name'))
@@ -448,3 +447,10 @@ test_section __FILE__ do
448
447
  end
449
448
  end
450
449
  end
450
+
451
+ module Yaml
452
+
453
+ module Transform
454
+ end # module Transform
455
+
456
+ end # module Yaml
@@ -3,9 +3,8 @@
3
3
  # License:: Ruby license.
4
4
 
5
5
  # $LastChangedBy: ertai $
6
- # $Id: yregexpath.rb 279 2005-06-05 17:46:53Z ertai $
6
+ # $Id: yregexpath.rb 339 2005-09-06 23:27:27Z ertai $
7
7
 
8
- require 'ruby_ex'
9
8
 
10
9
  module YAML
11
10
 
@@ -20,7 +19,7 @@ module YAML
20
19
  while str =~ /^(\/|#)?((?:(?:\\.)|[^\\=\/#])+)(?:=((?:(?:\\.)|[^\\\/#])*))?/
21
20
  if ($1 == "#")
22
21
  if (@wanted_node_index.nil?)
23
- @wanted_node_index = @segments.length
22
+ @wanted_node_index = @segments.length
24
23
  else
25
24
  raise ArgumentError, 'More than a "#" given.'
26
25
  end
@@ -52,7 +51,7 @@ test_section __FILE__ do
52
51
  desc = "Compare #{str} with #{tab}."
53
52
  assert_equal(tab, YAML::YRegexPath.new(str).segments, desc)
54
53
  end
55
-
54
+
56
55
  def testit
57
56
  compare('mho', [ 'mho' ])
58
57
  compare('mho\\', [ 'mho' ])
@@ -65,7 +64,7 @@ test_section __FILE__ do
65
64
  compare('test#status=PASS', [ 'test' , [ 'status' , 'PASS' ] ])
66
65
  compare('mho#', [ 'mho' ])
67
66
  end
68
-
67
+
69
68
  def test_errors
70
69
  # Build with something else than a String.
71
70
  assert_raise(ArgumentError) { YAML::YRegexPath.new(42) }
@@ -74,3 +73,10 @@ test_section __FILE__ do
74
73
  end
75
74
  end
76
75
  end
76
+
77
+ module Yaml
78
+
79
+ module Yregexpath
80
+ end # module Yregexpath
81
+
82
+ end # module Yaml
@@ -81,8 +81,8 @@ module Algorithms
81
81
  assert_kind_of(Array, docs[0])
82
82
  assert(docs[0].all? { |x| x.is_a?(Hash) })
83
83
  docs[0].all? do |x|
84
- ks = x.keys.delete_if { |y| y.is_a? Integer }
85
- assert_equal(%w[cost diff prob temp thres], ks.sort)
84
+ ks = x.keys.delete_if { |y| y.is_a? Integer or y =~ /\|/ }
85
+ assert_equal(%w[cost prob temp thres], ks.sort)
86
86
  end
87
87
  assert_kind_of(Hash, docs[1])
88
88
  end
Binary file
@@ -0,0 +1,49 @@
1
+ core_ex-0.1.4/
2
+ core_ex-0.1.4/AUTHORS
3
+ core_ex-0.1.4/lib/
4
+ core_ex-0.1.4/lib/core_ex/
5
+ core_ex-0.1.4/lib/core_ex/attr_once.rb
6
+ core_ex-0.1.4/lib/core_ex/dtime.rb
7
+ core_ex-0.1.4/lib/core_ex/dumpable_proc.rb
8
+ core_ex-0.1.4/lib/core_ex/embedded_tests.rb
9
+ core_ex-0.1.4/lib/core_ex/enumerable.rb
10
+ core_ex-0.1.4/lib/core_ex/exception.rb
11
+ core_ex-0.1.4/lib/core_ex/fileutils.rb
12
+ core_ex-0.1.4/lib/core_ex/pathlist.rb
13
+ core_ex-0.1.4/lib/core_ex/pathname.rb
14
+ core_ex-0.1.4/lib/core_ex/rakefile_base.rf
15
+ core_ex-0.1.4/lib/core_ex/require.rb
16
+ core_ex-0.1.4/lib/core_ex/string.rb
17
+ core_ex-0.1.4/lib/core_ex/temp_path.rb
18
+ core_ex-0.1.4/lib/core_ex/test/
19
+ core_ex-0.1.4/lib/core_ex/test/unit/
20
+ core_ex-0.1.4/lib/core_ex/test/unit/ui/
21
+ core_ex-0.1.4/lib/core_ex/test/unit/ui/yaml/
22
+ core_ex-0.1.4/lib/core_ex/test/unit/ui/yaml/testrunner.rb
23
+ core_ex-0.1.4/lib/core_ex/time.rb
24
+ core_ex-0.1.4/lib/core_ex/version.rb
25
+ core_ex-0.1.4/lib/core_ex/yaml.rb
26
+ core_ex-0.1.4/lib/core_ex.rb
27
+ core_ex-0.1.4/NEWS
28
+ core_ex-0.1.4/Rakefile
29
+ core_ex-0.1.4/README
30
+ core_ex-0.1.4/SPEC.dyn.yml
31
+ core_ex-0.1.4/SPEC.gemspec
32
+ core_ex-0.1.4/SPEC.yml
33
+ core_ex-0.1.4/test/
34
+ core_ex-0.1.4/test/check-core_ex.yml
35
+ core_ex-0.1.4/test/check-pkg-core_ex.yml
36
+ core_ex-0.1.4/test/resources/
37
+ core_ex-0.1.4/test/resources/require/
38
+ core_ex-0.1.4/test/resources/require/test_require
39
+ core_ex-0.1.4/test/resources/require/test_require_rb.rb
40
+ core_ex-0.1.4/test/resources/require/test_require_so.so
41
+ core_ex-0.1.4/test/resources/use-from-gems.rb
42
+ core_ex-0.1.4/test/resources/yaml_testrunner/
43
+ core_ex-0.1.4/test/resources/yaml_testrunner/unit_test.rb
44
+ core_ex-0.1.4/test/sanity/
45
+ core_ex-0.1.4/test/sanity/multiple-requires.yml
46
+ core_ex-0.1.4/test/sanity/single-requires.yml
47
+ core_ex-0.1.4/test/sanity-suite.yml
48
+ core_ex-0.1.4/test/test-unit-setup.rb
49
+ core_ex-0.1.4/test/unit-suite.yml
@@ -1,12 +1,10 @@
1
1
  ---
2
2
 
3
- RubyEx Sanity Test Suite:
3
+ RubyEx Sanity Test Suite: !S::Iterate
4
4
 
5
- strategy: Glob
6
- glob : <<pwd>>/sanity/**/*.yml
7
- regexp : !re ([^\/]*)\.yml$
5
+ over: !pathlist <<pwd>>/(sanity/**/*.yml)
6
+ iter: [it_file, it_name]
8
7
 
9
8
  test:
10
- <<match>>:
11
- strategy: Import
12
- import : <<path>>
9
+ <<it_name>>: !S::Import
10
+ import : <<it_file>>
@@ -1,20 +1,30 @@
1
1
  ---
2
2
 
3
- RubyEx Sanity Multiple Requires Test Suite:
4
-
5
- strategy: Cmd
3
+ RubyEx Sanity Multiple Requires Test Suite: !S::Cmd
6
4
  command: ruby
7
5
  exit: 0
8
6
  error: ""
9
7
  output: !re 0 failures, 0 errors$
10
8
  args: -I<<pwd>>/../../lib
11
- input: |2
9
+ input: |
12
10
  require 'ruby_ex'
13
- RubyEx.require
11
+ require 'test/unit'
12
+ $VERBOSE = false
14
13
  class TC_ < Test::Unit::TestCase
14
+ def setup
15
+ RubyEx.import!
16
+ end
15
17
  def test_definitions
16
- RubyEx.each do |file, name|
17
- assert(RequireSystem.instance.required?(file), "#{file} not present")
18
+ RubyEx.each do |path, name|
19
+ next if RubyEx.skip(path.to_s)
20
+ # assert($LOADED_FEATURES.include?(path.to_s),
21
+ # "#{path} not in $LOADED_FEATURES #{$LOADED_FEATURES.inspect}")
22
+ assert_nothing_raised("cannot camelize #{name}") do
23
+ @camel = name.camelize
24
+ end
25
+ assert_nothing_raised("#@camel not defined?") do
26
+ @camel.constantize
27
+ end
18
28
  end
19
29
  end
20
30
  end
@@ -1,24 +1,42 @@
1
1
  ---
2
2
 
3
- RubyEx Sanity Single Requires Test Suite:
3
+ RubyEx Sanity Single Requires Test Suite: !S::Iterate
4
4
 
5
- strategy: Glob
6
- glob: <<pwd>>/../../lib/**/*.rb
7
- regexp: !re ^<<pwd>>\/\.\.\/\.\.\/lib\/(.*)\.rb$
5
+ over: !pathlist <<pwd>>/../../lib/(**/*).rb
6
+ iter: [it_file, it_name]
8
7
  test:
9
- <<match>>:
10
- strategy: RUnit
11
- strategy: Cmd
12
- command: ruby
13
- exit: 0
14
- error: ""
15
- output: !re 0 failures, 0 errors$
16
- args: -I<<pwd>>/../../lib
17
- input: |
18
- require '<<match>>'
19
- require 'test/unit'
20
- class TC_ < Test::Unit::TestCase
21
- def test_definitions
22
- assert($".include?('<<match>>.rb')) #"
23
- end
24
- end
8
+ <<it_name>>: !S::Suite
9
+ attributes: !S::Cmd
10
+ command: ruby
11
+ exit: 0
12
+ error: ""
13
+ output: !re 0 failures, 0 errors$
14
+ args: -I<<pwd>>/../../lib
15
+ contents:
16
+ - require:
17
+ input: |
18
+ require 'ruby_ex'
19
+ require '<<it_name>>'
20
+ require 'test/unit'
21
+ class TC_ < Test::Unit::TestCase
22
+ def test_definitions
23
+ assert($LOADED_FEATURES.include?('<<it_name>>.rb'),
24
+ "<<it_name>> not in $LOADED_FEATURES")
25
+ end
26
+ end
27
+ - lazy loading:
28
+ input: |
29
+ require 'ruby_ex'
30
+ require 'test/unit'
31
+ class TC_ < Test::Unit::TestCase
32
+ def test_definitions
33
+ unless RubyEx.skip '<<it_file>>'
34
+ assert_nothing_raised('cannot camelmize <<it_name>>') do
35
+ @camel = '<<it_name>>'.camelize
36
+ end
37
+ assert_nothing_raised("#@camel not defined?") do
38
+ @camel.constantize
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,13 @@
1
+ ---
2
+
3
+ Stress the exception call for non exceptions objects: !S::ProbabilityThreshold
4
+ threshold: 0.9
5
+ test: !S::Iterate
6
+ over: !range 0 .. 100
7
+ iter: it
8
+ test:
9
+ test <<it>>: !S::RUnit
10
+ load_path: <<pwd>>/../../lib
11
+ input: !path test/test-unit-setup.rb
12
+ args: <<pwd>>/../../lib/thread_mutex.rb
13
+ verbose: true
@@ -2,7 +2,9 @@
2
2
  require 'pathname'
3
3
  $: << Pathname.new(__FILE__).dirname.parent + 'lib'
4
4
  require 'ruby_ex'
5
+ Test::Unit::UI::Yaml::TestRunner.import!
5
6
  args = ARGV.inject(nil) { |accu, x| (accu)? accu << x : ((x == '--')? [] : accu) } || ARGV
6
7
  path = Pathname.new(args[0]).expand_path.cleanpath
7
- test_mode Regexp.new(path)
8
+ embedded_test_mode Regexp.new(path)
8
9
  require path.to_s
10
+ run_embedded_test_sections
data/test/unit-suite.yml CHANGED
@@ -1,14 +1,13 @@
1
1
  ---
2
2
 
3
- RubyEx Unit Test Suite:
3
+ RubyEx Unit Test Suite: !S::Iterate
4
4
 
5
- strategy: Glob
6
- glob : <<pwd>>/{../lib,algorithms}/**/*.rb
7
- regexp : !re ([^/]*)\.rb$
5
+ over: !pathlist <<pwd>>/{../lib,algorithms}/(**/*).rb
6
+ iter: [it_file, it_name]
8
7
 
9
8
  test:
10
- <<match>>:
11
- strategy: RUnit
9
+ <<it_name>>: !S::RUnit
12
10
  load_path: <<pwd>>/../lib
13
- unit_file: test/test-unit-setup.rb
14
- args: <<path>>
11
+ input: !path test/test-unit-setup.rb
12
+ args: <<it_file>>
13
+ verbose: true
metadata CHANGED
@@ -1,10 +1,10 @@
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: ruby_ex
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.2
7
- date: 2005-06-06
6
+ version: 0.2.0
7
+ date: 2005-09-16 00:00:00 +02:00
8
8
  summary: RubyEx contains general purpose Ruby extensions.
9
9
  require_paths:
10
10
  - lib
@@ -17,7 +17,7 @@ description: ''
17
17
  autorequire:
18
18
  default_executable:
19
19
  bindir: bin
20
- has_rdoc: true
20
+ has_rdoc: false
21
21
  required_ruby_version: !ruby/object:Gem::Version::Requirement
22
22
  requirements:
23
23
  -
@@ -26,45 +26,54 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
26
26
  version: 0.0.0
27
27
  version:
28
28
  platform: ruby
29
+ signing_key:
30
+ cert_chain:
29
31
  authors:
30
32
  - Nicolas Despr�s
31
33
  - Nicolas Pouillard
32
34
  files:
33
35
  - lib/abstract.rb
34
36
  - lib/abstract_node.rb
35
- - lib/algorithms.rb
36
- - lib/ask.rb
37
37
  - lib/attributed_class.rb
38
+ - lib/auto_object.rb
39
+ - lib/blank_slate.rb
38
40
  - lib/cache.rb
39
- - lib/checkout.rb
40
41
  - lib/choose.rb
41
42
  - lib/commands.rb
42
43
  - lib/config_file.rb
43
44
  - lib/const_regexp.rb
45
+ - lib/d_logger.rb
44
46
  - lib/daemon.rb
45
47
  - lib/diff.rb
46
- - lib/dlogger.rb
47
48
  - lib/drb_ex.rb
48
- - lib/dumpable_proc.rb
49
- - lib/filetype.rb
49
+ - lib/file_type.rb
50
50
  - lib/generate_id.rb
51
+ - lib/genpasswd.rb
52
+ - lib/hash_eval.rb
51
53
  - lib/histogram.rb
52
54
  - lib/hookable.rb
53
55
  - lib/hooker.rb
56
+ - lib/html_encode.rb
54
57
  - lib/indexed_node.rb
55
58
  - lib/io_marshal.rb
56
59
  - lib/ioo.rb
60
+ - lib/kill_all.rb
57
61
  - lib/labeled_node.rb
58
62
  - lib/logger_observer.rb
59
63
  - lib/md5sum.rb
64
+ - lib/meta_factory.rb
65
+ - lib/method_call.rb
66
+ - lib/mocks.rb
60
67
  - lib/node.rb
61
68
  - lib/object_monitor.rb
62
69
  - lib/object_monitor_activity.rb
63
70
  - lib/observable.rb
64
71
  - lib/observable_pool.rb
65
- - lib/orderedhash.rb
72
+ - lib/ordered_hash.rb
66
73
  - lib/pp_hierarchy.rb
74
+ - lib/r_path.rb
67
75
  - lib/random_generators.rb
76
+ - lib/regex_path.rb
68
77
  - lib/ruby_ex.rb
69
78
  - lib/safe_eval.rb
70
79
  - lib/sendmail.rb
@@ -72,9 +81,10 @@ files:
72
81
  - lib/shuffle.rb
73
82
  - lib/spring.rb
74
83
  - lib/spring_set.rb
75
- - lib/symtbl.rb
76
- - lib/synflow.rb
77
- - lib/thread_mutex.rb
84
+ - lib/sym_tbl.rb
85
+ - lib/sym_tbl_gsub.rb
86
+ - lib/syn_flow.rb
87
+ - lib/text.rb
78
88
  - lib/timeout_ex.rb
79
89
  - lib/trace.rb
80
90
  - lib/uri_ex.rb
@@ -93,6 +103,7 @@ files:
93
103
  - lib/commands/datas/temp.rb
94
104
  - lib/commands/runners/exec.rb
95
105
  - lib/commands/runners/fork.rb
106
+ - lib/commands/runners/mock.rb
96
107
  - lib/commands/runners/runner.rb
97
108
  - lib/commands/runners/system.rb
98
109
  - lib/drb/drb_observable.rb
@@ -101,6 +112,11 @@ files:
101
112
  - lib/drb/drb_undumped_attributes.rb
102
113
  - lib/drb/drb_undumped_indexed_object.rb
103
114
  - lib/drb/insecure_protected_methods.rb
115
+ - lib/mocks/assertions.rb
116
+ - lib/mocks/method_logger.rb
117
+ - lib/mocks/mock.rb
118
+ - lib/mocks/object.rb
119
+ - lib/mocks/observer.rb
104
120
  - lib/module/autoload_tree.rb
105
121
  - lib/module/hierarchy.rb
106
122
  - lib/module/instance_method_visibility.rb
@@ -110,10 +126,10 @@ files:
110
126
  - lib/uri/file.rb
111
127
  - lib/uri/ftp_ex.rb
112
128
  - lib/uri/http_ex.rb
129
+ - lib/uri/mysql.rb
113
130
  - lib/uri/pgsql.rb
114
131
  - lib/uri/ssh.rb
115
132
  - lib/uri/svn.rb
116
- - lib/yaml/basenode_ext.rb
117
133
  - lib/yaml/chop_header.rb
118
134
  - lib/yaml/transform.rb
119
135
  - lib/yaml/yregexpath.rb
@@ -123,58 +139,53 @@ files:
123
139
  - test/resources
124
140
  - test/sanity
125
141
  - test/sanity-suite.yml
142
+ - test/stress-tests
126
143
  - test/test-unit-setup.rb
127
144
  - test/unit-suite.yml
128
145
  - test/algorithms/simulated_annealing_test.rb
129
146
  - test/resources/autoload_tree
147
+ - test/resources/foo.tar.gz
130
148
  - test/resources/foo.txt
149
+ - test/resources/tar.gz.log
131
150
  - test/resources/autoload_tree/A.rb
132
151
  - test/resources/autoload_tree/B.rb
133
152
  - test/resources/autoload_tree/foo
134
153
  - test/resources/autoload_tree/foo/C.rb
135
154
  - test/sanity/multiple-requires.yml
136
155
  - test/sanity/single-requires.yml
156
+ - test/stress-tests/threads_and_exceptions.yml
137
157
  - AUTHORS
138
158
  - ChangeLog
139
159
  - NEWS
140
160
  - Rakefile
141
161
  - README
142
162
  - SPEC.dyn.yml
163
+ - SPEC.gemspec
143
164
  - SPEC.yml
144
165
  test_files: []
145
- rdoc_options:
146
- - "--inline-source"
147
- - "--main"
148
- - README
149
- - "--title"
150
- - "RubyEx -- General purpose Ruby extensions."
151
- - "-T"
152
- - html
153
- extra_rdoc_files:
154
- - README
155
- - AUTHORS
156
- - NEWS
166
+ rdoc_options: []
167
+ extra_rdoc_files: []
157
168
  executables: []
158
169
  extensions: []
159
170
  requirements: []
160
171
  dependencies:
161
172
  - !ruby/object:Gem::Dependency
162
- name: core_ex
173
+ name: highline
163
174
  version_requirement:
164
175
  version_requirements: !ruby/object:Gem::Version::Requirement
165
176
  requirements:
166
177
  -
167
178
  - "~>"
168
179
  - !ruby/object:Gem::Version
169
- version: 0.1.3
180
+ version: 1.0.1
170
181
  version:
171
182
  - !ruby/object:Gem::Dependency
172
- name: activesupport
183
+ name: core_ex
173
184
  version_requirement:
174
185
  version_requirements: !ruby/object:Gem::Version::Requirement
175
186
  requirements:
176
187
  -
177
188
  - "~>"
178
189
  - !ruby/object:Gem::Version
179
- version: 1.0.4
190
+ version: 0.3.1
180
191
  version: