elliottcable-echoe 3.1.2 → 3.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. data/CHANGELOG +3 -1
  2. data/Manifest +1 -93
  3. data/Rakefile +1 -2
  4. data/echoe.gemspec +7 -7
  5. data/lib/echoe.rb +50 -22
  6. data/lib/echoe/net.rb +7 -0
  7. data/lib/echoe/platform.rb +27 -25
  8. data/vendor/rake/lib/rake/contrib/sshpublisher.rb +0 -4
  9. metadata +7 -96
  10. data/vendor/rake/CHANGES +0 -400
  11. data/vendor/rake/README +0 -285
  12. data/vendor/rake/Rakefile +0 -418
  13. data/vendor/rake/TODO +0 -20
  14. data/vendor/rake/bin/rake +0 -31
  15. data/vendor/rake/doc/example/Rakefile1 +0 -38
  16. data/vendor/rake/doc/example/Rakefile2 +0 -35
  17. data/vendor/rake/doc/example/a.c +0 -6
  18. data/vendor/rake/doc/example/b.c +0 -6
  19. data/vendor/rake/doc/example/main.c +0 -11
  20. data/vendor/rake/doc/glossary.rdoc +0 -51
  21. data/vendor/rake/doc/jamis.rb +0 -591
  22. data/vendor/rake/doc/proto_rake.rdoc +0 -127
  23. data/vendor/rake/doc/rake.1.gz +0 -0
  24. data/vendor/rake/doc/rakefile.rdoc +0 -534
  25. data/vendor/rake/doc/rational.rdoc +0 -151
  26. data/vendor/rake/doc/release_notes/rake-0.4.14.rdoc +0 -23
  27. data/vendor/rake/doc/release_notes/rake-0.4.15.rdoc +0 -35
  28. data/vendor/rake/doc/release_notes/rake-0.5.0.rdoc +0 -53
  29. data/vendor/rake/doc/release_notes/rake-0.5.3.rdoc +0 -78
  30. data/vendor/rake/doc/release_notes/rake-0.5.4.rdoc +0 -46
  31. data/vendor/rake/doc/release_notes/rake-0.6.0.rdoc +0 -141
  32. data/vendor/rake/doc/release_notes/rake-0.7.0.rdoc +0 -119
  33. data/vendor/rake/doc/release_notes/rake-0.7.1.rdoc +0 -59
  34. data/vendor/rake/doc/release_notes/rake-0.7.2.rdoc +0 -121
  35. data/vendor/rake/doc/release_notes/rake-0.7.3.rdoc +0 -47
  36. data/vendor/rake/doc/release_notes/rake-0.8.0.rdoc +0 -114
  37. data/vendor/rake/doc/release_notes/rake-0.8.2.rdoc +0 -165
  38. data/vendor/rake/doc/release_notes/rake-0.8.3.rdoc +0 -112
  39. data/vendor/rake/install.rb +0 -88
  40. data/vendor/rake/lib/rake.rb +0 -2468
  41. data/vendor/rake/lib/rake/classic_namespace.rb +0 -8
  42. data/vendor/rake/lib/rake/clean.rb +0 -33
  43. data/vendor/rake/lib/rake/gempackagetask.rb +0 -103
  44. data/vendor/rake/lib/rake/loaders/makefile.rb +0 -35
  45. data/vendor/rake/lib/rake/packagetask.rb +0 -185
  46. data/vendor/rake/lib/rake/rake_test_loader.rb +0 -5
  47. data/vendor/rake/lib/rake/rdoctask.rb +0 -147
  48. data/vendor/rake/lib/rake/ruby182_test_unit_fix.rb +0 -23
  49. data/vendor/rake/lib/rake/runtest.rb +0 -23
  50. data/vendor/rake/lib/rake/tasklib.rb +0 -23
  51. data/vendor/rake/lib/rake/testtask.rb +0 -161
  52. data/vendor/rake/lib/rake/win32.rb +0 -54
  53. data/vendor/rake/test/capture_stdout.rb +0 -26
  54. data/vendor/rake/test/check_expansion.rb +0 -5
  55. data/vendor/rake/test/contrib/test_sys.rb +0 -47
  56. data/vendor/rake/test/data/chains/Rakefile +0 -15
  57. data/vendor/rake/test/data/default/Rakefile +0 -19
  58. data/vendor/rake/test/data/dryrun/Rakefile +0 -22
  59. data/vendor/rake/test/data/file_creation_task/Rakefile +0 -33
  60. data/vendor/rake/test/data/imports/Rakefile +0 -19
  61. data/vendor/rake/test/data/imports/deps.mf +0 -1
  62. data/vendor/rake/test/data/multidesc/Rakefile +0 -17
  63. data/vendor/rake/test/data/namespace/Rakefile +0 -57
  64. data/vendor/rake/test/data/rakelib/test1.rb +0 -3
  65. data/vendor/rake/test/data/rbext/rakefile.rb +0 -3
  66. data/vendor/rake/test/data/sample.mf +0 -12
  67. data/vendor/rake/test/data/statusreturn/Rakefile +0 -8
  68. data/vendor/rake/test/data/unittest/Rakefile +0 -1
  69. data/vendor/rake/test/filecreation.rb +0 -32
  70. data/vendor/rake/test/functional.rb +0 -15
  71. data/vendor/rake/test/in_environment.rb +0 -30
  72. data/vendor/rake/test/rake_test_setup.rb +0 -10
  73. data/vendor/rake/test/reqfile.rb +0 -3
  74. data/vendor/rake/test/reqfile2.rb +0 -3
  75. data/vendor/rake/test/session_functional.rb +0 -337
  76. data/vendor/rake/test/shellcommand.rb +0 -3
  77. data/vendor/rake/test/test_application.rb +0 -694
  78. data/vendor/rake/test/test_clean.rb +0 -14
  79. data/vendor/rake/test/test_definitions.rb +0 -82
  80. data/vendor/rake/test/test_earlytime.rb +0 -35
  81. data/vendor/rake/test/test_extension.rb +0 -63
  82. data/vendor/rake/test/test_file_creation_task.rb +0 -62
  83. data/vendor/rake/test/test_file_task.rb +0 -139
  84. data/vendor/rake/test/test_filelist.rb +0 -618
  85. data/vendor/rake/test/test_fileutils.rb +0 -250
  86. data/vendor/rake/test/test_ftp.rb +0 -59
  87. data/vendor/rake/test/test_invocation_chain.rb +0 -75
  88. data/vendor/rake/test/test_makefile_loader.rb +0 -25
  89. data/vendor/rake/test/test_multitask.rb +0 -45
  90. data/vendor/rake/test/test_namespace.rb +0 -36
  91. data/vendor/rake/test/test_package_task.rb +0 -116
  92. data/vendor/rake/test/test_pathmap.rb +0 -209
  93. data/vendor/rake/test/test_rake.rb +0 -41
  94. data/vendor/rake/test/test_require.rb +0 -33
  95. data/vendor/rake/test/test_rules.rb +0 -347
  96. data/vendor/rake/test/test_task_arguments.rb +0 -89
  97. data/vendor/rake/test/test_task_manager.rb +0 -170
  98. data/vendor/rake/test/test_tasklib.rb +0 -12
  99. data/vendor/rake/test/test_tasks.rb +0 -371
  100. data/vendor/rake/test/test_test_task.rb +0 -75
  101. data/vendor/rake/test/test_top_level_functions.rb +0 -84
  102. data/vendor/rake/test/test_win32.rb +0 -57
@@ -1,75 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'test/unit'
4
- require 'rake/testtask'
5
-
6
- class TestTestTask < Test::Unit::TestCase
7
- include Rake
8
- def setup
9
- Task.clear
10
- ENV.delete('TEST')
11
- end
12
-
13
- def teardown
14
- FileUtils.rm_rf("testdata")
15
- end
16
-
17
- def test_no_task
18
- assert ! Task.task_defined?(:test)
19
- end
20
-
21
- def test_defaults
22
- tt = Rake::TestTask.new do |t| end
23
- assert_not_nil tt
24
- assert_equal :test, tt.name
25
- assert_equal ['lib'], tt.libs
26
- assert_equal 'test/test*.rb', tt.pattern
27
- assert_equal false, tt.verbose
28
- assert Task.task_defined?(:test)
29
- end
30
-
31
- def test_non_defaults
32
- tt = Rake::TestTask.new(:example) do |t|
33
- t.libs = ['src', 'ext']
34
- t.pattern = 'test/tc_*.rb'
35
- t.verbose = true
36
- end
37
- assert_not_nil tt
38
- assert_equal :example, tt.name
39
- assert_equal ['src', 'ext'], tt.libs
40
- assert_equal 'test/tc_*.rb', tt.pattern
41
- assert_equal true, tt.verbose
42
- assert Task.task_defined?(:example)
43
- end
44
-
45
- def test_pattern
46
- tt = Rake::TestTask.new do |t|
47
- t.pattern = '*.rb'
48
- end
49
- assert_equal ['install.rb'], tt.file_list.to_a
50
- end
51
-
52
- def test_env_test
53
- ENV['TEST'] = 'testfile.rb'
54
- tt = Rake::TestTask.new do |t|
55
- t.pattern = '*'
56
- end
57
- assert_equal ["testfile.rb"], tt.file_list.to_a
58
- end
59
-
60
- def test_test_files
61
- tt = Rake::TestTask.new do |t|
62
- t.test_files = FileList['a.rb', 'b.rb']
63
- end
64
- assert_equal ["a.rb", 'b.rb'], tt.file_list.to_a
65
- end
66
-
67
- def test_both_pattern_and_test_files
68
- tt = Rake::TestTask.new do |t|
69
- t.test_files = FileList['a.rb', 'b.rb']
70
- t.pattern = '*.rb'
71
- end
72
- assert_equal ['a.rb', 'b.rb', 'install.rb'], tt.file_list.to_a
73
- end
74
-
75
- end
@@ -1,84 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- begin
4
- require 'rubygems'
5
- rescue LoadError
6
- # got no gems
7
- end
8
-
9
- require 'test/unit'
10
- require 'test/capture_stdout'
11
- require 'rake'
12
- require 'flexmock/test_unit'
13
-
14
- class TestTopLevelFunctions < Test::Unit::TestCase
15
- include CaptureStdout
16
-
17
- def setup
18
- super
19
- @app = Rake.application
20
- Rake.application = flexmock("app")
21
- end
22
-
23
- def teardown
24
- Rake.application = @app
25
- super
26
- end
27
-
28
- def test_namespace
29
- Rake.application.should_receive(:in_namespace).with("xyz", any).once
30
- namespace "xyz" do end
31
- end
32
-
33
- def test_import
34
- Rake.application.should_receive(:add_import).with("x").once.ordered
35
- Rake.application.should_receive(:add_import).with("y").once.ordered
36
- Rake.application.should_receive(:add_import).with("z").once.ordered
37
- import('x', 'y', 'z')
38
- end
39
-
40
- def test_when_writing
41
- out = capture_stdout do
42
- when_writing("NOTWRITING") do
43
- puts "WRITING"
44
- end
45
- end
46
- assert_equal "WRITING\n", out
47
- end
48
-
49
- def test_when_not_writing
50
- RakeFileUtils.nowrite_flag = true
51
- out = capture_stdout do
52
- when_writing("NOTWRITING") do
53
- puts "WRITING"
54
- end
55
- end
56
- assert_equal "DRYRUN: NOTWRITING\n", out
57
- ensure
58
- RakeFileUtils.nowrite_flag = false
59
- end
60
-
61
- def test_missing_constants_task
62
- Rake.application.should_receive(:const_warning).with(:Task).once
63
- Object.const_missing(:Task)
64
- end
65
-
66
- def test_missing_constants_file_task
67
- Rake.application.should_receive(:const_warning).with(:FileTask).once
68
- Object.const_missing(:FileTask)
69
- end
70
-
71
- def test_missing_constants_file_creation_task
72
- Rake.application.should_receive(:const_warning).with(:FileCreationTask).once
73
- Object.const_missing(:FileCreationTask)
74
- end
75
-
76
- def test_missing_constants_rake_app
77
- Rake.application.should_receive(:const_warning).with(:RakeApp).once
78
- Object.const_missing(:RakeApp)
79
- end
80
-
81
- def test_missing_other_constant
82
- assert_raise(NameError) do Object.const_missing(:Xyz) end
83
- end
84
- end
@@ -1,57 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'test/unit'
4
- require 'test/rake_test_setup'
5
- require 'test/in_environment'
6
-
7
- require 'rake'
8
-
9
- class TestWin32 < Test::Unit::TestCase
10
- include InEnvironment
11
-
12
- Win32 = Rake::Win32
13
-
14
- def test_win32_system_dir_uses_appdata_if_defined
15
- in_environment('RAKE_SYSTEM' => nil, 'APPDATA' => '\\AD') do
16
- assert_equal "/AD/Rake", Win32.win32_system_dir
17
- end
18
- end
19
-
20
- def test_win32_system_dir_uses_homedrive_otherwise
21
- in_environment(
22
- 'RAKE_SYSTEM' => nil,
23
- 'APPDATA' => nil,
24
- 'HOMEDRIVE' => "C:",
25
- "HOMEPATH" => "\\HP"
26
- ) do
27
- assert_equal "C:/HP/Rake", Win32.win32_system_dir
28
- end
29
- end
30
-
31
- def test_win32_system_dir_uses_userprofile_otherwise
32
- in_environment(
33
- 'RAKE_SYSTEM' => nil,
34
- 'APPDATA' => nil,
35
- 'HOMEDRIVE' => nil,
36
- "HOMEPATH" => nil,
37
- "USERPROFILE" => '\\UP'
38
- ) do
39
- assert_equal "/UP/Rake", Win32.win32_system_dir
40
- end
41
- end
42
-
43
- def test_win32_system_dir_nil_of_no_env_vars
44
- in_environment(
45
- 'RAKE_SYSTEM' => nil,
46
- 'APPDATA' => nil,
47
- 'HOMEDRIVE' => nil,
48
- "HOMEPATH" => nil,
49
- "USERPROFILE" => nil
50
- ) do
51
- assert_raise(Rake::Win32::Win32HomeError) do
52
- Win32.win32_system_dir
53
- end
54
- end
55
- end
56
-
57
- end