Permalink
Browse files

prefer echoe over hoe

  • Loading branch information...
1 parent 8bd1f12 commit e30711038f03359ad6f011c7dd9971c06c91b48b @jamis jamis committed Mar 23, 2008
Showing with 31 additions and 41 deletions.
  1. +3 −0 CHANGELOG.rdoc
  2. +0 −6 History.txt
  3. +5 −5 Manifest.txt → Manifest
  4. +2 −2 README.txt → README.rdoc
  5. +21 −28 Rakefile
View
@@ -0,0 +1,3 @@
+=== 1.0 Preview Release 1 (0.99.0) / 22 Mar 2008
+
+* Birthday!
View
@@ -1,6 +0,0 @@
-=== (unreleased)
-
-* 1 major enhancement
-
- * Birthday!
-
View
@@ -1,17 +1,17 @@
+CHANGELOG.rdoc
lib/net/scp/download.rb
lib/net/scp/errors.rb
lib/net/scp/upload.rb
lib/net/scp/version.rb
lib/net/scp.rb
lib/uri/open-scp.rb
lib/uri/scp.rb
+Rakefile
+README.rdoc
+setup.rb
test/common.rb
test/test_all.rb
test/test_download.rb
test/test_scp.rb
test/test_upload.rb
-History.txt
-Manifest.txt
-README.txt
-Rakefile
-setup.rb
+Manifest
@@ -58,8 +58,8 @@ For more information, see Net::SCP.
If you wish to run the tests, you'll also need:
-* Hoe
-* Mocha
+* Echoe (for Rakefile use)
+* Mocha (for tests)
== INSTALL:
View
@@ -1,37 +1,30 @@
-if 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"
- 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
-
$LOAD_PATH.unshift "../net-ssh/lib"
require './lib/net/scp/version'
-require 'hoe'
+begin
+ require 'echoe'
+rescue LoadError
+ abort "You'll need to have `echoe' installed to use Net::SCP's Rakefile"
+end
version = Net::SCP::Version::STRING.dup
if ENV['SNAPSHOT'].to_i == 1
version << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
end
-Hoe.new('net-scp', version) do |p|
- p.author = "Jamis Buck"
- p.email = "jamis@jamisbuck.org"
- p.summary = "A pure Ruby implementation of the SCP client protocol"
- p.url = "http://net-ssh.rubyforge.org/scp"
- p.extra_deps = [["net-ssh", ">= 1.99.1"]]
- p.need_zip = true
- p.rubyforge_name = "net-ssh"
-end
+Echoe.new('net-scp', version) do |p|
+ p.project = "net-ssh"
+ p.changelog = "CHANGELOG.rdoc"
+
+ p.author = "Jamis Buck"
+ p.email = "jamis@jamisbuck.org"
+ p.summary = "A pure Ruby implementation of the SCP client protocol"
+ p.url = "http://net-ssh.rubyforge.org/scp"
+
+ p.dependencies = ["net-ssh >=1.99.1"]
+
+ p.need_zip = true
+ p.include_rakefile = true
+
+ p.rdoc_pattern = /^(lib|README.rdoc|CHANGELOG.rdoc)/
+end

0 comments on commit e307110

Please sign in to comment.