Permalink
Browse files

echoe builds the manifest for us

  • Loading branch information...
1 parent f20f0ff commit 3dc5a28faacdcfdffb5d1e5691582ec9675c00b9 @jamis jamis committed Mar 23, 2008
Showing with 17 additions and 26 deletions.
  1. +17 −26 Rakefile
View
@@ -1,35 +1,26 @@
-if !File.exist?('Manifest.txt') || ENV['REBUILD_MANIFEST']
- source_files = FileList.new do |fl|
- [ "lib", "test" ].each do |dir|
- fl.include "#{dir}/**/*"
- end
-
- fl.include "History.txt", "Manifest.txt", "README.txt", "Thanks.txt"
- fl.include "Rakefile", "setup.rb"
- end
-
- File.open("Manifest.txt", "w") do |f|
- source_files.each do |file|
- next if File.directory?(file)
- f.puts(file)
- end
- end
-end
-
require './lib/net/ssh/version'
-require 'hoe'
+begin
+ require 'echoe'
+rescue LoadError
+ abort "You'll need to have `echoe' installed to use Net::SSH's Rakefile"
+end
version = Net::SSH::Version::STRING.dup
if ENV['SNAPSHOT'].to_i == 1
version << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
end
-Hoe.new('net-ssh', version) do |p|
- p.author = "Jamis Buck"
- p.email = "jamis@jamisbuck.org"
- p.summary = "a pure-Ruby implementation of the SSH2 client protocol"
- p.url = "http://net-ssh.rubyforge.org/ssh"
- p.need_zip = true
- p.rubyforge_name = "net-ssh"
+Echoe.new('net-ssh', version) do |p|
+ p.changelog = "CHANGELOG.rdoc"
+
+ p.author = "Jamis Buck"
+ p.email = "jamis@jamisbuck.org"
+ p.summary = "a pure-Ruby implementation of the SSH2 client protocol"
+ p.url = "http://net-ssh.rubyforge.org/ssh"
+
+ p.need_zip = true
+ p.include_rakefile = true
+
+ p.rdoc_pattern = /^(lib|README.rdoc|CHANGELOG.rdoc|THANKS.rdoc)/
end

0 comments on commit 3dc5a28

Please sign in to comment.