joekhoobyar-net-ssh-askpass 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,10 @@
1
1
  = net-ssh-askpass
2
2
 
3
- Plugs ssh-askpass into Net::SSH
3
+ Allows Net:SSH to use an external program to prompt for passwords, via the
4
+ SSH_ASKPASS environment variable.
5
+
6
+ == Usage
7
+
4
8
 
5
9
  == Copyright
6
10
 
data/Rakefile CHANGED
@@ -3,18 +3,21 @@ require 'rake'
3
3
 
4
4
  begin
5
5
  require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "net-ssh-askpass"
8
- gem.summary = %Q{Plugs ssh-askpass into Net::SSH}
9
- gem.description = <<-EOTEXT
10
- Allows you to use ssh-askpass with the Net:SSH gem.
6
+ Jeweler::Tasks.new do |s|
7
+ s.name = "net-ssh-askpass"
8
+ s.summary = %Q{Adds SSH_ASKPASS support to Net::SSH}
9
+ s.description = <<-EOTEXT
10
+ Allows Net:SSH to use an external program to prompt for passwords, via the
11
+ SSH_ASKPASS environment variable.
11
12
  EOTEXT
12
- gem.email = "joe@ankhcraft.com"
13
- gem.homepage = "http://github.com/joekhoobyar/net-ssh-askpass"
14
- gem.authors = ["Joe Khoobyar"]
15
- gem.add_runtime_dependency(%q<net-ssh>, [">= 2.0"])
13
+ s.email = "joe@ankhcraft.com"
14
+ s.homepage = "http://github.com/joekhoobyar/net-ssh-askpass"
15
+ s.authors = ["Joe Khoobyar"]
16
+ s.rubyforge_project = "net-ssh-askpass"
16
17
 
17
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
18
+ s.add_runtime_dependency(%q<net-ssh>, [">= 2.0"])
19
+
20
+ # s is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
18
21
  end
19
22
  rescue LoadError
20
23
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
@@ -40,6 +43,33 @@ rescue LoadError
40
43
  end
41
44
  end
42
45
 
46
+ # These are new tasks
47
+ begin
48
+ require 'rake/contrib/sshpublisher'
49
+ namespace :rubyforge do
50
+
51
+ desc "Release gem and RDoc documentation to RubyForge"
52
+ task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
53
+
54
+ namespace :release do
55
+ desc "Publish RDoc to RubyForge."
56
+ task :docs => [:rdoc] do
57
+ config = YAML.load(
58
+ File.read(File.expand_path('~/.rubyforge/user-config.yml'))
59
+ )
60
+
61
+ host = "#{config['username']}@rubyforge.org"
62
+ remote_dir = "/var/www/gforge-projects/net-ssh-askpass/"
63
+ local_dir = 'doc'
64
+
65
+ Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
66
+ end
67
+ end
68
+ end
69
+ rescue LoadError
70
+ puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
71
+ end
72
+
43
73
 
44
74
  task :default => :test
45
75
 
@@ -51,9 +81,12 @@ Rake::RDocTask.new do |rdoc|
51
81
  else
52
82
  version = ""
53
83
  end
84
+ rdoc.options << '--line-numbers' << '--inline-source' <<
85
+ '--main' << 'README.rdoc' <<
86
+ '--charset' << 'utf-8'
54
87
 
55
- rdoc.rdoc_dir = 'rdoc'
56
- rdoc.title = "Net-ssh-askpass #{version}"
88
+ rdoc.rdoc_dir = 'doc'
89
+ rdoc.title = "Net::SSH::AskPass #{version}"
57
90
  rdoc.rdoc_files.include('README*')
58
91
  rdoc.rdoc_files.include('lib/**/*.rb')
59
92
  end
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 2
3
2
  :major: 0
4
3
  :minor: 0
4
+ :patch: 3
@@ -1,7 +1,7 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class NetSshAskpassTest < Test::Unit::TestCase
4
- should "probably rename this file and start testing for real" do
5
- flunk "hey buddy, you should probably rename this file and start testing for real"
4
+ def test_bogus
5
+ assert true
6
6
  end
7
7
  end
@@ -1,10 +1,9 @@
1
1
  require 'rubygems'
2
2
  require 'test/unit'
3
- require 'shoulda'
4
3
 
5
4
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
5
  $LOAD_PATH.unshift(File.dirname(__FILE__))
7
- require 'net_ssh_askpass'
6
+ require 'net/ssh/askpass'
8
7
 
9
8
  class Test::Unit::TestCase
10
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joekhoobyar-net-ssh-askpass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Khoobyar
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-30 00:00:00 -07:00
12
+ date: 2009-05-29 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -22,7 +22,7 @@ dependencies:
22
22
  - !ruby/object:Gem::Version
23
23
  version: "2.0"
24
24
  version:
25
- description: Allows you to use ssh-askpass with the Net:SSH gem.
25
+ description: Allows Net:SSH to use an external program to prompt for passwords, via the SSH_ASKPASS environment variable.
26
26
  email: joe@ankhcraft.com
27
27
  executables: []
28
28
 
@@ -39,7 +39,7 @@ files:
39
39
  - lib/net/ssh/askpass.rb
40
40
  - test/net_ssh_askpass_test.rb
41
41
  - test/test_helper.rb
42
- has_rdoc: true
42
+ has_rdoc: false
43
43
  homepage: http://github.com/joekhoobyar/net-ssh-askpass
44
44
  post_install_message:
45
45
  rdoc_options:
@@ -60,11 +60,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  version:
61
61
  requirements: []
62
62
 
63
- rubyforge_project:
63
+ rubyforge_project: net-ssh-askpass
64
64
  rubygems_version: 1.2.0
65
65
  signing_key:
66
66
  specification_version: 3
67
- summary: Plugs ssh-askpass into Net::SSH
67
+ summary: Adds SSH_ASKPASS support to Net::SSH
68
68
  test_files:
69
69
  - test/net_ssh_askpass_test.rb
70
70
  - test/test_helper.rb