Rakefile in net-ssh-kerberos-0.1.3 vs Rakefile in net-ssh-kerberos-0.2.0
- old
+ new
@@ -5,18 +5,17 @@
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "net-ssh-kerberos"
gem.summary = %Q{Add Kerberos support to Net::SSH}
gem.description = <<-EOTEXT
-Adds support for Microsoft Kerberos (SSPI) with the Net:SSH gem.
+Extends Net::SSH by adding Kerberos authentication capability for password-less logins on multiple platforms.
EOTEXT
gem.email = "joe@ankhcraft.com"
gem.homepage = "http://github.com/joekhoobyar/net-ssh-kerberos"
gem.authors = ["Joe Khoobyar"]
gem.rubyforge_project = 'net-ssh-krb'
gem.add_runtime_dependency(%q<net-ssh>, [">= 2.0"])
- gem.add_runtime_dependency(%q<rubysspi>, [">= 1.3"])
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
@@ -40,23 +39,53 @@
task :rcov do
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
end
end
+# These are new tasks
+begin
+ require 'rake/contrib/sshpublisher'
+ namespace :rubyforge do
+ desc "Release gem and RDoc documentation to RubyForge"
+ task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
+
+ namespace :release do
+ desc "Publish RDoc to RubyForge."
+ task :docs => [:rdoc] do
+ config = YAML.load(
+ File.read(File.expand_path('~/.rubyforge/user-config.yml'))
+ )
+
+ host = "#{config['username']}@rubyforge.org"
+ remote_dir = "/var/www/gforge-projects/net-ssh-krb/"
+ local_dir = 'doc'
+
+ Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
+ end
+ end
+ end
+rescue LoadError
+ puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
+end
+
+
task :default => :test
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION.yml')
config = YAML.load(File.read('VERSION.yml'))
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
else
version = ""
end
+ rdoc.options << '--line-numbers' << '--inline-source' <<
+ '--main' << 'README.rdoc' <<
+ '--charset' << 'utf-8'
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "Net-ssh-kerberos #{version}"
+ rdoc.rdoc_dir = 'doc'
+ rdoc.title = "Net::SSH::Kerberos #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end