public
Description: Pure Ruby implementation of the SCP protocol
Homepage: http://rubyforge.org/projects/net-ssh
Clone URL: git://github.com/jamis/net-scp.git
net-scp / Rakefile
100644 38 lines (31 sloc) 0.962 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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'
 
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