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
data/CHANGELOG CHANGED
@@ -1,6 +1,8 @@
1
+ v3.1.3. Removing Evan's keychain so GitHub can build the gem. Version bump to force GitHub to re-generate gem.
2
+
1
3
  v3.1.2. Small bugfix. Version bump to force GitHub to re-generate gem.
2
4
 
3
- v3.1.1. Remove Rake from the requirements and vendor it (due to Ruby 1.9.1's odd handling of Rake)
5
+ v3.1.1. Remove Rake/contrib from the gem requirements and vendor it. Fix some load paths on Ruby 1.9.
4
6
 
5
7
  v3.1. Fix some bugs; become Ruby 1.9 compatible.
6
8
 
data/Manifest CHANGED
@@ -2,6 +2,7 @@ CHANGELOG
2
2
  echoe.gemspec
3
3
  lib/echoe/client.rb
4
4
  lib/echoe/extensions.rb
5
+ lib/echoe/net.rb
5
6
  lib/echoe/platform.rb
6
7
  lib/echoe/rubygems.rb
7
8
  lib/echoe.rb
@@ -11,103 +12,10 @@ MIT-LICENSE
11
12
  Rakefile
12
13
  README
13
14
  TODO
14
- vendor/rake/bin/rake
15
- vendor/rake/CHANGES
16
- vendor/rake/doc/example/a.c
17
- vendor/rake/doc/example/b.c
18
- vendor/rake/doc/example/main.c
19
- vendor/rake/doc/example/Rakefile1
20
- vendor/rake/doc/example/Rakefile2
21
- vendor/rake/doc/glossary.rdoc
22
- vendor/rake/doc/jamis.rb
23
- vendor/rake/doc/proto_rake.rdoc
24
- vendor/rake/doc/rake.1.gz
25
- vendor/rake/doc/rakefile.rdoc
26
- vendor/rake/doc/rational.rdoc
27
- vendor/rake/doc/release_notes/rake-0.4.14.rdoc
28
- vendor/rake/doc/release_notes/rake-0.4.15.rdoc
29
- vendor/rake/doc/release_notes/rake-0.5.0.rdoc
30
- vendor/rake/doc/release_notes/rake-0.5.3.rdoc
31
- vendor/rake/doc/release_notes/rake-0.5.4.rdoc
32
- vendor/rake/doc/release_notes/rake-0.6.0.rdoc
33
- vendor/rake/doc/release_notes/rake-0.7.0.rdoc
34
- vendor/rake/doc/release_notes/rake-0.7.1.rdoc
35
- vendor/rake/doc/release_notes/rake-0.7.2.rdoc
36
- vendor/rake/doc/release_notes/rake-0.7.3.rdoc
37
- vendor/rake/doc/release_notes/rake-0.8.0.rdoc
38
- vendor/rake/doc/release_notes/rake-0.8.2.rdoc
39
- vendor/rake/doc/release_notes/rake-0.8.3.rdoc
40
- vendor/rake/install.rb
41
- vendor/rake/lib/rake/classic_namespace.rb
42
- vendor/rake/lib/rake/clean.rb
43
15
  vendor/rake/lib/rake/contrib/compositepublisher.rb
44
16
  vendor/rake/lib/rake/contrib/ftptools.rb
45
17
  vendor/rake/lib/rake/contrib/publisher.rb
46
18
  vendor/rake/lib/rake/contrib/rubyforgepublisher.rb
47
19
  vendor/rake/lib/rake/contrib/sshpublisher.rb
48
20
  vendor/rake/lib/rake/contrib/sys.rb
49
- vendor/rake/lib/rake/gempackagetask.rb
50
- vendor/rake/lib/rake/loaders/makefile.rb
51
- vendor/rake/lib/rake/packagetask.rb
52
- vendor/rake/lib/rake/rake_test_loader.rb
53
- vendor/rake/lib/rake/rdoctask.rb
54
- vendor/rake/lib/rake/ruby182_test_unit_fix.rb
55
- vendor/rake/lib/rake/runtest.rb
56
- vendor/rake/lib/rake/tasklib.rb
57
- vendor/rake/lib/rake/testtask.rb
58
- vendor/rake/lib/rake/win32.rb
59
- vendor/rake/lib/rake.rb
60
21
  vendor/rake/MIT-LICENSE
61
- vendor/rake/Rakefile
62
- vendor/rake/README
63
- vendor/rake/test/capture_stdout.rb
64
- vendor/rake/test/check_expansion.rb
65
- vendor/rake/test/contrib/test_sys.rb
66
- vendor/rake/test/data/chains/Rakefile
67
- vendor/rake/test/data/default/Rakefile
68
- vendor/rake/test/data/dryrun/Rakefile
69
- vendor/rake/test/data/file_creation_task/Rakefile
70
- vendor/rake/test/data/imports/deps.mf
71
- vendor/rake/test/data/imports/Rakefile
72
- vendor/rake/test/data/multidesc/Rakefile
73
- vendor/rake/test/data/namespace/Rakefile
74
- vendor/rake/test/data/rakelib/test1.rb
75
- vendor/rake/test/data/rbext/rakefile.rb
76
- vendor/rake/test/data/sample.mf
77
- vendor/rake/test/data/statusreturn/Rakefile
78
- vendor/rake/test/data/unittest/Rakefile
79
- vendor/rake/test/filecreation.rb
80
- vendor/rake/test/functional.rb
81
- vendor/rake/test/in_environment.rb
82
- vendor/rake/test/rake_test_setup.rb
83
- vendor/rake/test/reqfile.rb
84
- vendor/rake/test/reqfile2.rb
85
- vendor/rake/test/session_functional.rb
86
- vendor/rake/test/shellcommand.rb
87
- vendor/rake/test/test_application.rb
88
- vendor/rake/test/test_clean.rb
89
- vendor/rake/test/test_definitions.rb
90
- vendor/rake/test/test_earlytime.rb
91
- vendor/rake/test/test_extension.rb
92
- vendor/rake/test/test_file_creation_task.rb
93
- vendor/rake/test/test_file_task.rb
94
- vendor/rake/test/test_filelist.rb
95
- vendor/rake/test/test_fileutils.rb
96
- vendor/rake/test/test_ftp.rb
97
- vendor/rake/test/test_invocation_chain.rb
98
- vendor/rake/test/test_makefile_loader.rb
99
- vendor/rake/test/test_multitask.rb
100
- vendor/rake/test/test_namespace.rb
101
- vendor/rake/test/test_package_task.rb
102
- vendor/rake/test/test_pathmap.rb
103
- vendor/rake/test/test_rake.rb
104
- vendor/rake/test/test_require.rb
105
- vendor/rake/test/test_rules.rb
106
- vendor/rake/test/test_task_arguments.rb
107
- vendor/rake/test/test_task_manager.rb
108
- vendor/rake/test/test_tasklib.rb
109
- vendor/rake/test/test_tasks.rb
110
- vendor/rake/test/test_test_task.rb
111
- vendor/rake/test/test_top_level_functions.rb
112
- vendor/rake/test/test_win32.rb
113
- vendor/rake/TODO
data/Rakefile CHANGED
@@ -7,9 +7,8 @@ Echoe.new('echoe') do |p|
7
7
  p.summary = 'A Rubygems packaging tool that provides Rake tasks for documentation, extension compiling, testing, and deployment.'
8
8
  p.url = 'http://blog.evanweaver.com/files/doc/fauna/echoe/'
9
9
  p.docs_host = 'blog.evanweaver.com:~/www/bax/public/files/doc/'
10
- p.runtime_dependencies = ['rubyforge >=1.0.0', 'highline']
10
+ p.runtime_dependencies = ['rubyforge >=1.0.2', 'highline']
11
11
  p.development_dependencies = []
12
12
  p.retain_gemspec = true
13
- p.require_signed = true
14
13
  end
15
14
 
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{echoe}
5
- s.version = "3.1.2"
5
+ s.version = "3.1.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Evan Weaver"]
9
- s.date = %q{2009-02-11}
9
+ s.date = %q{2009-06-16}
10
10
  s.description = %q{A Rubygems packaging tool that provides Rake tasks for documentation, extension compiling, testing, and deployment.}
11
11
  s.email = %q{}
12
- s.extra_rdoc_files = ["CHANGELOG", "lib/echoe/client.rb", "lib/echoe/extensions.rb", "lib/echoe/platform.rb", "lib/echoe/rubygems.rb", "lib/echoe.rb", "LICENSE", "README", "TODO"]
13
- s.files = ["CHANGELOG", "echoe.gemspec", "lib/echoe/client.rb", "lib/echoe/extensions.rb", "lib/echoe/platform.rb", "lib/echoe/rubygems.rb", "lib/echoe.rb", "LICENSE", "Manifest", "MIT-LICENSE", "Rakefile", "README", "TODO", "vendor/rake/bin/rake", "vendor/rake/CHANGES", "vendor/rake/doc/example/a.c", "vendor/rake/doc/example/b.c", "vendor/rake/doc/example/main.c", "vendor/rake/doc/example/Rakefile1", "vendor/rake/doc/example/Rakefile2", "vendor/rake/doc/glossary.rdoc", "vendor/rake/doc/jamis.rb", "vendor/rake/doc/proto_rake.rdoc", "vendor/rake/doc/rake.1.gz", "vendor/rake/doc/rakefile.rdoc", "vendor/rake/doc/rational.rdoc", "vendor/rake/doc/release_notes/rake-0.4.14.rdoc", "vendor/rake/doc/release_notes/rake-0.4.15.rdoc", "vendor/rake/doc/release_notes/rake-0.5.0.rdoc", "vendor/rake/doc/release_notes/rake-0.5.3.rdoc", "vendor/rake/doc/release_notes/rake-0.5.4.rdoc", "vendor/rake/doc/release_notes/rake-0.6.0.rdoc", "vendor/rake/doc/release_notes/rake-0.7.0.rdoc", "vendor/rake/doc/release_notes/rake-0.7.1.rdoc", "vendor/rake/doc/release_notes/rake-0.7.2.rdoc", "vendor/rake/doc/release_notes/rake-0.7.3.rdoc", "vendor/rake/doc/release_notes/rake-0.8.0.rdoc", "vendor/rake/doc/release_notes/rake-0.8.2.rdoc", "vendor/rake/doc/release_notes/rake-0.8.3.rdoc", "vendor/rake/install.rb", "vendor/rake/lib/rake/classic_namespace.rb", "vendor/rake/lib/rake/clean.rb", "vendor/rake/lib/rake/contrib/compositepublisher.rb", "vendor/rake/lib/rake/contrib/ftptools.rb", "vendor/rake/lib/rake/contrib/publisher.rb", "vendor/rake/lib/rake/contrib/rubyforgepublisher.rb", "vendor/rake/lib/rake/contrib/sshpublisher.rb", "vendor/rake/lib/rake/contrib/sys.rb", "vendor/rake/lib/rake/gempackagetask.rb", "vendor/rake/lib/rake/loaders/makefile.rb", "vendor/rake/lib/rake/packagetask.rb", "vendor/rake/lib/rake/rake_test_loader.rb", "vendor/rake/lib/rake/rdoctask.rb", "vendor/rake/lib/rake/ruby182_test_unit_fix.rb", "vendor/rake/lib/rake/runtest.rb", "vendor/rake/lib/rake/tasklib.rb", "vendor/rake/lib/rake/testtask.rb", "vendor/rake/lib/rake/win32.rb", "vendor/rake/lib/rake.rb", "vendor/rake/MIT-LICENSE", "vendor/rake/Rakefile", "vendor/rake/README", "vendor/rake/test/capture_stdout.rb", "vendor/rake/test/check_expansion.rb", "vendor/rake/test/contrib/test_sys.rb", "vendor/rake/test/data/chains/Rakefile", "vendor/rake/test/data/default/Rakefile", "vendor/rake/test/data/dryrun/Rakefile", "vendor/rake/test/data/file_creation_task/Rakefile", "vendor/rake/test/data/imports/deps.mf", "vendor/rake/test/data/imports/Rakefile", "vendor/rake/test/data/multidesc/Rakefile", "vendor/rake/test/data/namespace/Rakefile", "vendor/rake/test/data/rakelib/test1.rb", "vendor/rake/test/data/rbext/rakefile.rb", "vendor/rake/test/data/sample.mf", "vendor/rake/test/data/statusreturn/Rakefile", "vendor/rake/test/data/unittest/Rakefile", "vendor/rake/test/filecreation.rb", "vendor/rake/test/functional.rb", "vendor/rake/test/in_environment.rb", "vendor/rake/test/rake_test_setup.rb", "vendor/rake/test/reqfile.rb", "vendor/rake/test/reqfile2.rb", "vendor/rake/test/session_functional.rb", "vendor/rake/test/shellcommand.rb", "vendor/rake/test/test_application.rb", "vendor/rake/test/test_clean.rb", "vendor/rake/test/test_definitions.rb", "vendor/rake/test/test_earlytime.rb", "vendor/rake/test/test_extension.rb", "vendor/rake/test/test_file_creation_task.rb", "vendor/rake/test/test_file_task.rb", "vendor/rake/test/test_filelist.rb", "vendor/rake/test/test_fileutils.rb", "vendor/rake/test/test_ftp.rb", "vendor/rake/test/test_invocation_chain.rb", "vendor/rake/test/test_makefile_loader.rb", "vendor/rake/test/test_multitask.rb", "vendor/rake/test/test_namespace.rb", "vendor/rake/test/test_package_task.rb", "vendor/rake/test/test_pathmap.rb", "vendor/rake/test/test_rake.rb", "vendor/rake/test/test_require.rb", "vendor/rake/test/test_rules.rb", "vendor/rake/test/test_task_arguments.rb", "vendor/rake/test/test_task_manager.rb", "vendor/rake/test/test_tasklib.rb", "vendor/rake/test/test_tasks.rb", "vendor/rake/test/test_test_task.rb", "vendor/rake/test/test_top_level_functions.rb", "vendor/rake/test/test_win32.rb", "vendor/rake/TODO"]
12
+ s.extra_rdoc_files = ["CHANGELOG", "lib/echoe/client.rb", "lib/echoe/extensions.rb", "lib/echoe/net.rb", "lib/echoe/platform.rb", "lib/echoe/rubygems.rb", "lib/echoe.rb", "LICENSE", "README", "TODO"]
13
+ s.files = ["CHANGELOG", "echoe.gemspec", "lib/echoe/client.rb", "lib/echoe/extensions.rb", "lib/echoe/net.rb", "lib/echoe/platform.rb", "lib/echoe/rubygems.rb", "lib/echoe.rb", "LICENSE", "Manifest", "MIT-LICENSE", "Rakefile", "README", "TODO", "vendor/rake/lib/rake/contrib/compositepublisher.rb", "vendor/rake/lib/rake/contrib/ftptools.rb", "vendor/rake/lib/rake/contrib/publisher.rb", "vendor/rake/lib/rake/contrib/rubyforgepublisher.rb", "vendor/rake/lib/rake/contrib/sshpublisher.rb", "vendor/rake/lib/rake/contrib/sys.rb", "vendor/rake/MIT-LICENSE"]
14
14
  s.has_rdoc = true
15
15
  s.homepage = %q{http://blog.evanweaver.com/files/doc/fauna/echoe/}
16
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Echoe", "--main", "README"]
@@ -24,14 +24,14 @@ Gem::Specification.new do |s|
24
24
  s.specification_version = 2
25
25
 
26
26
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
27
- s.add_runtime_dependency(%q<rubyforge>, [">= 1.0.0"])
27
+ s.add_runtime_dependency(%q<rubyforge>, [">= 1.0.2"])
28
28
  s.add_runtime_dependency(%q<highline>, [">= 0"])
29
29
  else
30
- s.add_dependency(%q<rubyforge>, [">= 1.0.0"])
30
+ s.add_dependency(%q<rubyforge>, [">= 1.0.2"])
31
31
  s.add_dependency(%q<highline>, [">= 0"])
32
32
  end
33
33
  else
34
- s.add_dependency(%q<rubyforge>, [">= 1.0.0"])
34
+ s.add_dependency(%q<rubyforge>, [">= 1.0.2"])
35
35
  s.add_dependency(%q<highline>, [">= 0"])
36
36
  end
37
37
  end
@@ -1,27 +1,29 @@
1
- Dir[File.join(File.expand_path(File.join( File.dirname(__FILE__), '..', 'vendor' )), '*')].each do |gem|
2
- if File.directory? gem
3
- ($:.unshift File.join(gem, 'lib')).uniq!
4
- end
5
- end
6
1
 
7
2
  $HERE = File.dirname(__FILE__)
8
3
  require "#{$HERE}/echoe/platform"
9
4
 
10
5
  require 'rake'
11
6
  require 'rake/clean'
12
- require 'rake/contrib/sshpublisher'
7
+ require "#{$HERE}/../vendor/rake/lib/rake/contrib/compositepublisher"
8
+ require "#{$HERE}/../vendor/rake/lib/rake/contrib/sshpublisher"
13
9
  require 'rake/gempackagetask'
14
10
  require 'rake/rdoctask'
15
11
  require 'rake/testtask'
12
+ begin
13
+ require 'spec/rake/spectask'
14
+ rescue LoadError
15
+ end
16
16
  require 'rbconfig'
17
17
  require 'open-uri'
18
18
 
19
19
  require "#{$HERE}/echoe/extensions"
20
20
 
21
21
  require 'rubygems'
22
+ require 'rubygems/specification'
22
23
  require "#{$HERE}/echoe/rubygems"
23
24
 
24
25
  require 'rubyforge'
26
+ require "#{$HERE}/echoe/net"
25
27
  require "#{$HERE}/echoe/client"
26
28
 
27
29
  require 'highline/import'
@@ -71,8 +73,6 @@ Note that you can also set the key and certificate locations in the Rakefile its
71
73
 
72
74
  Echoe does not force packages to depend on Echoe itself. Instead, it generates a <tt>gemspec</tt> from your <tt>Rakefile</tt> and includes that. Downstream repackagers can use the <tt>gemspec</tt> as-is to build new versions of your gem even without Echoe.
73
75
 
74
- However, Echoe is added to the <tt>development_dependencies</tt> array so that users can automatically install it via <tt>gem install --development</tt> if they prefer. You can override this behavior by setting <tt>p.development_dependencies = []</tt>.
75
-
76
76
  == Cross-packaging
77
77
 
78
78
  Echoe supports platform Rake targets to allow you to cross-package your gems. Just write the spec assuming <tt>RUBY_PLATFORM</tt> will be what you need it to be for each architecture, and then invoke Rake with the platform name when you're cross-packaging.
@@ -113,6 +113,8 @@ Testing options:
113
113
 
114
114
  * <tt>clean_pattern</tt> - A filename array, glob array, or regex for files that should be removed when <tt>rake clean</tt> is run.
115
115
  * <tt>test_pattern</tt> - A filename array, glob array, or regex for test runners. Overridden by <tt>"test/test_all.rb"</tt>, if it exists.
116
+
117
+ * <tt>spec_pattern</tt> - A filename array, glob array, or regex for test runners.
116
118
  * <tt>rcov_options</tt> - Any extra flags to pass to RCov when coverage reports are run.
117
119
 
118
120
  Uncommon packaging options:
@@ -150,7 +152,7 @@ Documentation options:
150
152
  class Echoe
151
153
 
152
154
  # user-configurable
153
- attr_accessor :author, :changes, :clean_pattern, :description, :email, :runtime_dependencies, :development_dependencies, :need_tgz, :need_tar_gz, :need_gem, :need_zip, :rdoc_pattern, :project, :summary, :test_pattern, :url, :version, :docs_host, :rdoc_template, :manifest_name, :install_message, :extension_pattern, :private_key, :certificate_chain, :require_signed, :ruby_version, :platform, :ignore_pattern, :executable_pattern, :changelog, :rcov_options, :gemspec_format
155
+ attr_accessor :author, :changes, :clean_pattern, :description, :email, :runtime_dependencies, :development_dependencies, :need_tgz, :need_tar_gz, :need_gem, :need_zip, :rdoc_pattern, :project, :summary, :test_pattern, :spec_pattern, :url, :version, :docs_host, :rdoc_template, :manifest_name, :install_message, :extension_pattern, :private_key, :certificate_chain, :require_signed, :ruby_version, :platform, :ignore_pattern, :executable_pattern, :changelog, :rcov_options, :gemspec_format
154
156
 
155
157
  # best left alone
156
158
  attr_accessor :name, :lib_files, :test_files, :bin_files, :spec, :rdoc_options, :rubyforge_name, :has_rdoc, :include_gemspec, :include_rakefile, :gemspec_name, :retain_gemspec, :rakefile_name, :eval, :files, :changelog_patterns, :rubygems_version, :use_sudo, :gem_bin
@@ -169,6 +171,7 @@ class Echoe
169
171
  self.email = ""
170
172
  self.clean_pattern = ["pkg", "doc", 'build/*', '**/coverage', '**/*.o', '**/*.so', '**/*.a', '**/*.log', "{ext,lib}/*.{bundle,so,obj,pdb,lib,def,exp}", "ext/Makefile", "{ext,lib}/**/*.{bundle,so,obj,pdb,lib,def,exp}", "ext/**/Makefile", "pkg", "*.gem", ".config"]
171
173
  self.test_pattern = File.exist?("test/test_all.rb") ? "test/test_all.rb" : ['test/**/test_*.rb', 'test/**/*_test.rb']
174
+ self.spec_pattern = "spec/**/*_spec.rb"
172
175
  self.ignore_pattern = /^(pkg|doc)|\.svn|CVS|\.bzr|\.DS|\.git/
173
176
 
174
177
  self.changelog_patterns = {
@@ -232,7 +235,7 @@ class Echoe
232
235
 
233
236
  # read manifest
234
237
  begin
235
- self.files = File.read(manifest_name).split +
238
+ self.files = File.readlines(manifest_name).map { |x| x.strip } +
236
239
  [(gemspec_name if include_gemspec)] +
237
240
  [(rakefile_name if include_rakefile)]
238
241
  self.files = files.compact.uniq
@@ -261,14 +264,16 @@ class Echoe
261
264
  end
262
265
  end
263
266
 
264
- self.changes = if File.exist? changelog
265
- Array(changelog_patterns[:changes]).map do |pattern|
266
- open(changelog) do |log|
267
- log.read[pattern, 1]
268
- end
269
- end.compact.first or ""
270
- else
271
- ""
267
+ unless self.changes
268
+ self.changes = if File.exist? changelog
269
+ Array(changelog_patterns[:changes]).map do |pattern|
270
+ open(changelog) do |log|
271
+ log.read[pattern, 1]
272
+ end
273
+ end.compact.first or ""
274
+ else
275
+ ""
276
+ end
272
277
  end
273
278
 
274
279
  # set some post-defaults
@@ -282,6 +287,7 @@ class Echoe
282
287
  self.rdoc_pattern = apply_pattern(rdoc_pattern, files) - [manifest_name]
283
288
  self.executable_pattern = apply_pattern(executable_pattern, files)
284
289
  self.test_pattern = apply_pattern(test_pattern)
290
+ self.spec_pattern = apply_pattern(spec_pattern)
285
291
 
286
292
  define_tasks
287
293
  end
@@ -391,7 +397,8 @@ class Echoe
391
397
  puts "#{var}: #{instance_variable_get(var).inspect}"
392
398
  end
393
399
  end
394
-
400
+
401
+ desc "Builds the .gemspec"
395
402
  task :build_gemspec do
396
403
  # Construct the gemspec file, if needed.
397
404
  if include_gemspec
@@ -409,11 +416,15 @@ class Echoe
409
416
  end
410
417
  end
411
418
  end
419
+ puts "Gemspec generated"
412
420
  end
413
421
 
414
422
  # Chain it to the gemspec task prerequisite
415
423
  task gemspec_name.to_sym => [:build_gemspec]
416
424
 
425
+ desc "Generates manifest & gemspec in one go"
426
+ task :build => [:manifest, :build_gemspec]
427
+
417
428
  task :package do
418
429
  # Chain some cleanup tasks to the default :package task.
419
430
  # Remove the gemfile if it wasn't actually requested.
@@ -512,7 +523,8 @@ class Echoe
512
523
  end
513
524
  end
514
525
 
515
- task :test => [:compile]
526
+ task :test => [:compile] if test_pattern.any?
527
+ task :spec => :compile if spec_pattern.any?
516
528
 
517
529
  end
518
530
 
@@ -592,7 +604,15 @@ class Echoe
592
604
  File.open(filename, 'w') do |f|
593
605
  f.write "Subject: #{name.capitalize} #{version}\n\n"
594
606
  f.write "#{name.capitalize} has been updated to #{version}. #{name.capitalize} is #{summary.uncapitalize}\n\n"
595
- f.write "Changes in this version: #{changes.sub(/^\s*[\w\d\.]+\s+/, '').uncapitalize}\n\n" unless changes.empty?
607
+ unless changes.empty?
608
+ f.write "Changes in this version: "
609
+ if changes.include?("\n")
610
+ f.write(changes)
611
+ else
612
+ f.write(changes.sub(/^\s*[\w\d\.]+\s+/, '').uncapitalize)
613
+ end
614
+ f.write("\n\n")
615
+ end
596
616
  f.write "More information is available at #{url} .\n\n" unless url.empty?
597
617
  end
598
618
  end
@@ -700,9 +720,17 @@ class Echoe
700
720
  end
701
721
  end
702
722
 
723
+ task :default => :test
703
724
  end
704
725
 
705
- task :default => :test
726
+ if spec_pattern.any?
727
+ desc "Run the spec suite"
728
+ Spec::Rake::SpecTask.new('spec') do |t|
729
+ t.spec_files = spec_pattern
730
+ end
731
+
732
+ task :default => :spec
733
+ end
706
734
 
707
735
  if defined? Rcov
708
736
  Rcov::RcovTask.new(:coverage) do |t|
@@ -0,0 +1,7 @@
1
+
2
+ require 'net/https'
3
+
4
+ # Unbreak Rubyforge 1.0.2 on Ruby1.9
5
+ class Net::HTTP
6
+ alias :use_ssl= :old_use_ssl=
7
+ end
@@ -1,36 +1,38 @@
1
1
 
2
2
  ### Platform check regexes
3
3
 
4
- module Platform
5
- def self.windows?
6
- @windows ||= RUBY_PLATFORM =~ /djgpp|(cyg|ms|bcc)win|mingw/
7
- !@windows.nil?
8
- end
4
+ class Echoe
5
+ module Platform
6
+ def self.windows?
7
+ @windows ||= RUBY_PLATFORM =~ /djgpp|(cyg|ms|bcc)win|mingw/
8
+ !@windows.nil?
9
+ end
9
10
 
10
- def self.gcc?
11
- @gcc ||= RUBY_PLATFORM =~ /mingw/
12
- !@gcc.nil?
13
- end
11
+ def self.gcc?
12
+ @gcc ||= RUBY_PLATFORM =~ /mingw/
13
+ !@gcc.nil?
14
+ end
14
15
 
15
- def self.msvc?
16
- @msvc ||= RUBY_PLATFORM =~ /mswin/
17
- !@msvc.nil?
18
- end
16
+ def self.msvc?
17
+ @msvc ||= RUBY_PLATFORM =~ /mswin/
18
+ !@msvc.nil?
19
+ end
19
20
 
20
- def self.java?
21
- @java ||= RUBY_PLATFORM =~ /java/
22
- !@java.nil?
23
- end
21
+ def self.java?
22
+ @java ||= RUBY_PLATFORM =~ /java/
23
+ !@java.nil?
24
+ end
24
25
 
25
- def self.suffix
26
- @suffix ||= Gem.default_exec_format[2..-1]
27
- end
26
+ def self.suffix
27
+ @suffix ||= Gem.default_exec_format[2..-1]
28
+ end
28
29
 
29
- def self.rake
30
- windows? ? "rake#{suffix}.bat" : "rake#{suffix}"
31
- end
30
+ def self.rake
31
+ windows? ? "rake#{suffix}.bat" : "rake#{suffix}"
32
+ end
32
33
 
33
- def self.make
34
- msvc? ? 'nmake' : 'make'
34
+ def self.make
35
+ msvc? ? 'nmake' : 'make'
36
+ end
35
37
  end
36
38
  end
@@ -1,7 +1,3 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'rake/contrib/compositepublisher'
4
-
5
1
  module Rake
6
2
 
7
3
  # Publish an entire directory to an existing remote directory using
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elliottcable-echoe
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Weaver
@@ -9,20 +9,22 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-11 00:00:00 -08:00
12
+ date: 2009-06-16 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubyforge
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
20
21
  - - ">="
21
22
  - !ruby/object:Gem::Version
22
- version: 1.0.0
23
+ version: 1.0.2
23
24
  version:
24
25
  - !ruby/object:Gem::Dependency
25
26
  name: highline
27
+ type: :runtime
26
28
  version_requirement:
27
29
  version_requirements: !ruby/object:Gem::Requirement
28
30
  requirements:
@@ -40,6 +42,7 @@ extra_rdoc_files:
40
42
  - CHANGELOG
41
43
  - lib/echoe/client.rb
42
44
  - lib/echoe/extensions.rb
45
+ - lib/echoe/net.rb
43
46
  - lib/echoe/platform.rb
44
47
  - lib/echoe/rubygems.rb
45
48
  - lib/echoe.rb
@@ -51,6 +54,7 @@ files:
51
54
  - echoe.gemspec
52
55
  - lib/echoe/client.rb
53
56
  - lib/echoe/extensions.rb
57
+ - lib/echoe/net.rb
54
58
  - lib/echoe/platform.rb
55
59
  - lib/echoe/rubygems.rb
56
60
  - lib/echoe.rb
@@ -60,106 +64,13 @@ files:
60
64
  - Rakefile
61
65
  - README
62
66
  - TODO
63
- - vendor/rake/bin/rake
64
- - vendor/rake/CHANGES
65
- - vendor/rake/doc/example/a.c
66
- - vendor/rake/doc/example/b.c
67
- - vendor/rake/doc/example/main.c
68
- - vendor/rake/doc/example/Rakefile1
69
- - vendor/rake/doc/example/Rakefile2
70
- - vendor/rake/doc/glossary.rdoc
71
- - vendor/rake/doc/jamis.rb
72
- - vendor/rake/doc/proto_rake.rdoc
73
- - vendor/rake/doc/rake.1.gz
74
- - vendor/rake/doc/rakefile.rdoc
75
- - vendor/rake/doc/rational.rdoc
76
- - vendor/rake/doc/release_notes/rake-0.4.14.rdoc
77
- - vendor/rake/doc/release_notes/rake-0.4.15.rdoc
78
- - vendor/rake/doc/release_notes/rake-0.5.0.rdoc
79
- - vendor/rake/doc/release_notes/rake-0.5.3.rdoc
80
- - vendor/rake/doc/release_notes/rake-0.5.4.rdoc
81
- - vendor/rake/doc/release_notes/rake-0.6.0.rdoc
82
- - vendor/rake/doc/release_notes/rake-0.7.0.rdoc
83
- - vendor/rake/doc/release_notes/rake-0.7.1.rdoc
84
- - vendor/rake/doc/release_notes/rake-0.7.2.rdoc
85
- - vendor/rake/doc/release_notes/rake-0.7.3.rdoc
86
- - vendor/rake/doc/release_notes/rake-0.8.0.rdoc
87
- - vendor/rake/doc/release_notes/rake-0.8.2.rdoc
88
- - vendor/rake/doc/release_notes/rake-0.8.3.rdoc
89
- - vendor/rake/install.rb
90
- - vendor/rake/lib/rake/classic_namespace.rb
91
- - vendor/rake/lib/rake/clean.rb
92
67
  - vendor/rake/lib/rake/contrib/compositepublisher.rb
93
68
  - vendor/rake/lib/rake/contrib/ftptools.rb
94
69
  - vendor/rake/lib/rake/contrib/publisher.rb
95
70
  - vendor/rake/lib/rake/contrib/rubyforgepublisher.rb
96
71
  - vendor/rake/lib/rake/contrib/sshpublisher.rb
97
72
  - vendor/rake/lib/rake/contrib/sys.rb
98
- - vendor/rake/lib/rake/gempackagetask.rb
99
- - vendor/rake/lib/rake/loaders/makefile.rb
100
- - vendor/rake/lib/rake/packagetask.rb
101
- - vendor/rake/lib/rake/rake_test_loader.rb
102
- - vendor/rake/lib/rake/rdoctask.rb
103
- - vendor/rake/lib/rake/ruby182_test_unit_fix.rb
104
- - vendor/rake/lib/rake/runtest.rb
105
- - vendor/rake/lib/rake/tasklib.rb
106
- - vendor/rake/lib/rake/testtask.rb
107
- - vendor/rake/lib/rake/win32.rb
108
- - vendor/rake/lib/rake.rb
109
73
  - vendor/rake/MIT-LICENSE
110
- - vendor/rake/Rakefile
111
- - vendor/rake/README
112
- - vendor/rake/test/capture_stdout.rb
113
- - vendor/rake/test/check_expansion.rb
114
- - vendor/rake/test/contrib/test_sys.rb
115
- - vendor/rake/test/data/chains/Rakefile
116
- - vendor/rake/test/data/default/Rakefile
117
- - vendor/rake/test/data/dryrun/Rakefile
118
- - vendor/rake/test/data/file_creation_task/Rakefile
119
- - vendor/rake/test/data/imports/deps.mf
120
- - vendor/rake/test/data/imports/Rakefile
121
- - vendor/rake/test/data/multidesc/Rakefile
122
- - vendor/rake/test/data/namespace/Rakefile
123
- - vendor/rake/test/data/rakelib/test1.rb
124
- - vendor/rake/test/data/rbext/rakefile.rb
125
- - vendor/rake/test/data/sample.mf
126
- - vendor/rake/test/data/statusreturn/Rakefile
127
- - vendor/rake/test/data/unittest/Rakefile
128
- - vendor/rake/test/filecreation.rb
129
- - vendor/rake/test/functional.rb
130
- - vendor/rake/test/in_environment.rb
131
- - vendor/rake/test/rake_test_setup.rb
132
- - vendor/rake/test/reqfile.rb
133
- - vendor/rake/test/reqfile2.rb
134
- - vendor/rake/test/session_functional.rb
135
- - vendor/rake/test/shellcommand.rb
136
- - vendor/rake/test/test_application.rb
137
- - vendor/rake/test/test_clean.rb
138
- - vendor/rake/test/test_definitions.rb
139
- - vendor/rake/test/test_earlytime.rb
140
- - vendor/rake/test/test_extension.rb
141
- - vendor/rake/test/test_file_creation_task.rb
142
- - vendor/rake/test/test_file_task.rb
143
- - vendor/rake/test/test_filelist.rb
144
- - vendor/rake/test/test_fileutils.rb
145
- - vendor/rake/test/test_ftp.rb
146
- - vendor/rake/test/test_invocation_chain.rb
147
- - vendor/rake/test/test_makefile_loader.rb
148
- - vendor/rake/test/test_multitask.rb
149
- - vendor/rake/test/test_namespace.rb
150
- - vendor/rake/test/test_package_task.rb
151
- - vendor/rake/test/test_pathmap.rb
152
- - vendor/rake/test/test_rake.rb
153
- - vendor/rake/test/test_require.rb
154
- - vendor/rake/test/test_rules.rb
155
- - vendor/rake/test/test_task_arguments.rb
156
- - vendor/rake/test/test_task_manager.rb
157
- - vendor/rake/test/test_tasklib.rb
158
- - vendor/rake/test/test_tasks.rb
159
- - vendor/rake/test/test_test_task.rb
160
- - vendor/rake/test/test_top_level_functions.rb
161
- - vendor/rake/test/test_win32.rb
162
- - vendor/rake/TODO
163
74
  has_rdoc: true
164
75
  homepage: http://blog.evanweaver.com/files/doc/fauna/echoe/
165
76
  post_install_message: