Skip to content

Commit 7bd2ad1

Browse files
committed
Added public cert. All gem releases are now signed. See INSTALL in readme.
1 parent 86c2b04 commit 7bd2ad1

File tree

5 files changed

+190
-22
lines changed

5 files changed

+190
-22
lines changed

CHANGELOG.rdoc renamed to CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11

2+
=== 2.0.6 / 06 Feb 2013
3+
4+
* Added public cert. All gem releases are now signed. See INSTALL in readme.
5+
26
=== 2.0.5 / 19 Aug 2010
37

48
* Fixed missing StringIO exception in download! [Toby Bryans, Delano Mandelbaum]

README.rdoc

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
= Net::SFTP
22

3-
* http://net-ssh.rubyforge.org/sftp
3+
* Docs: http://net-ssh.github.com/net-sftp
4+
* Issues: https://github.com/net-ssh/net-sftp/issues
5+
* Codes: https://github.com/net-ssh/net-sftp
6+
7+
8+
<em>As of v2.0.6, all gem releases are signed. See INSTALL.</em>
9+
410

511
== DESCRIPTION:
612

@@ -63,6 +69,19 @@ If you wish to run the tests, you'll need:
6369

6470
* gem install net-sftp (might need sudo privileges)
6571

72+
However, in order to be sure the code you're installing hasn't been tampered with, it's recommended that you verify the signiture[http://docs.rubygems.org/read/chapter/21]. To do this, you need to add my public key as a trusted certificate (you only need to do this once):
73+
74+
# Add the public key as a trusted certificate
75+
# (You only need to do this once)
76+
$ curl -O https://raw.github.com/net-ssh/net-ssh/master/gem-public_cert.pem
77+
$ gem cert --add gem-public_cert.pem
78+
79+
Then, when install the gem, do so with high security:
80+
81+
$ gem install net-ssh -P HighSecurity
82+
83+
If you don't add the public key, you'll see an error like "Couldn't verify data signature". If you're still having trouble let me know and I'll give you a hand.
84+
6685
Or, if you prefer to do it the hard way (sans Rubygems):
6786

6887
* tar xzf net-ssh-*.tgz

Rakefile

Lines changed: 44 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,53 @@
1-
$LOAD_PATH.unshift "../net-ssh/lib"
2-
require './lib/net/sftp/version'
1+
require "rubygems"
2+
require "rake"
3+
require "rake/clean"
4+
require "rdoc/task"
35

4-
begin
5-
require 'echoe'
6-
rescue LoadError
7-
abort "You'll need to have `echoe' installed to use Net::SFTP's Rakefile"
8-
end
6+
task :default => ["build"]
7+
CLEAN.include [ 'pkg', 'rdoc' ]
8+
name = "net-sftp"
99

10+
$:.unshift File.join(File.dirname(__FILE__), 'lib')
11+
require "net/sftp/version"
1012
version = Net::SFTP::Version::STRING.dup
11-
if ENV['SNAPSHOT'].to_i == 1
12-
version << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
13-
end
1413

15-
Echoe.new('net-sftp', version) do |p|
16-
p.project = "net-ssh"
17-
p.changelog = "CHANGELOG.rdoc"
14+
begin
15+
require "jeweler"
16+
Jeweler::Tasks.new do |s|
17+
s.version = version
18+
s.name = name
19+
s.rubyforge_project = s.name
20+
s.summary = "A pure Ruby implementation of the SFTP client protocol"
21+
s.description = s.summary
22+
s.email = "[email protected]"
23+
s.homepage = "https://github.com/net-ssh/net-sftp"
24+
s.authors = ["Jamis Buck", "Delano Mandelbaum"]
1825

19-
p.author = "Jamis Buck"
20-
p.email = "[email protected]"
21-
p.summary = "A pure Ruby implementation of the SFTP client protocol"
22-
p.url = "http://net-ssh.rubyforge.org/sftp"
26+
s.add_dependency 'net-ssh', ">=2.6.4"
2327

24-
p.dependencies = ["net-ssh >=2.0.9"]
28+
s.add_development_dependency 'test-unit'
29+
s.add_development_dependency 'mocha'
2530

26-
p.need_zip = true
27-
p.include_rakefile = true
31+
s.license = "MIT"
2832

29-
p.rdoc_pattern = /^(lib|README.rdoc|CHANGELOG.rdoc)/
33+
s.signing_key = File.join('/mnt/gem/', 'gem-private_key.pem')
34+
s.cert_chain = ['gem-public_cert.pem']
35+
end
36+
Jeweler::GemcutterTasks.new
37+
rescue LoadError
38+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
39+
end
40+
41+
RDoc::Task.new do |rdoc|
42+
rdoc.rdoc_dir = "rdoc"
43+
rdoc.title = "#{name} #{version}"
44+
rdoc.generator = 'hanna' # gem install hanna-nouveau
45+
rdoc.main = 'README.rdoc'
46+
rdoc.rdoc_files.include("README*")
47+
rdoc.rdoc_files.include("LICENSE.txt")
48+
rdoc.rdoc_files.include("THANKS.txt")
49+
rdoc.rdoc_files.include("CHANGES.txt")
50+
rdoc.rdoc_files.include("bin/*.rb")
51+
rdoc.rdoc_files.include("lib/**/*.rb")
3052
end
53+

gem-public_cert.pem

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIDNjCCAh6gAwIBAgIBADANBgkqhkiG9w0BAQUFADBBMQ8wDQYDVQQDDAZkZWxh
3+
bm8xGTAXBgoJkiaJk/IsZAEZFglzb2x1dGlvdXMxEzARBgoJkiaJk/IsZAEZFgNj
4+
b20wHhcNMTMwMjA2MTE1NzQ1WhcNMTQwMjA2MTE1NzQ1WjBBMQ8wDQYDVQQDDAZk
5+
ZWxhbm8xGTAXBgoJkiaJk/IsZAEZFglzb2x1dGlvdXMxEzARBgoJkiaJk/IsZAEZ
6+
FgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDg1hMtl0XsMuUK
7+
AKTgYWv3gjj7vuEsE2EjT+vyBg8/LpqVVwZziiaebJT9IZiQ+sCFqbiakj0b53pI
8+
hg1yOaBEmH6/W0L7rwzqaRV9sW1eJs9JxFYQCnd67zUnzj8nnRlOjG+hhIG+Vsij
9+
npsGbt28pefuNZJjO5q2clAlfSniIIHfIsU7/StEYu6FUGOjnwryZ0r5yJlr9RrE
10+
Gs+q0DW8QnZ9UpAfuDFQZuIqeKQFFLE7nMmCGaA+0BN1nLl3fVHNbLHq7Avk8+Z+
11+
ZuuvkdscbHlO/l+3xCNQ5nUnHwq0ADAbMLOlmiYYzqXoWLjmeI6me/clktJCfN2R
12+
oZG3UQvvAgMBAAGjOTA3MAkGA1UdEwQCMAAwHQYDVR0OBBYEFMSJOEtHzE4l0azv
13+
M0JK0kKNToK1MAsGA1UdDwQEAwIEsDANBgkqhkiG9w0BAQUFAAOCAQEAtOdE73qx
14+
OH2ydi9oT2hS5f9G0y1Z70Tlwh+VGExyfxzVE9XwC+iPpJxNraiHYgF/9/oky7ZZ
15+
R9q0/tJneuhAenZdiQkX7oi4O3v9wRS6YHoWBxMPFKVRLNTzvVJsbmfpCAlp5/5g
16+
ps4wQFy5mibElGVlOobf/ghqZ25HS9J6kd0/C/ry0AUtTogsL7TxGwT4kbCx63ub
17+
3vywEEhsJUzfd97GCABmtQfRTldX/j7F1z/5wd8p+hfdox1iibds9ZtfaZA3KzKn
18+
kchWN9B6zg9r1XMQ8BM2Jz0XoPanPe354+lWwjpkRKbFow/ZbQHcCLCq24+N6b6g
19+
dgKfNDzwiDpqCA==
20+
-----END CERTIFICATE-----

net-sftp.gemspec

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# Generated by jeweler
2+
# DO NOT EDIT THIS FILE DIRECTLY
3+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4+
# -*- encoding: utf-8 -*-
5+
6+
Gem::Specification.new do |s|
7+
s.name = "net-sftp"
8+
s.version = "2.0.5"
9+
10+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11+
s.authors = ["Jamis Buck", "Delano Mandelbaum"]
12+
s.cert_chain = ["gem-public_cert.pem"]
13+
s.date = "2013-02-06"
14+
s.description = "A pure Ruby implementation of the SFTP client protocol"
15+
s.email = "[email protected]"
16+
s.extra_rdoc_files = [
17+
"README.rdoc"
18+
]
19+
s.files = [
20+
"CHANGELOG.rdoc",
21+
"Manifest",
22+
"README.rdoc",
23+
"Rakefile",
24+
"lib/net/sftp.rb",
25+
"lib/net/sftp/constants.rb",
26+
"lib/net/sftp/errors.rb",
27+
"lib/net/sftp/operations/dir.rb",
28+
"lib/net/sftp/operations/download.rb",
29+
"lib/net/sftp/operations/file.rb",
30+
"lib/net/sftp/operations/file_factory.rb",
31+
"lib/net/sftp/operations/upload.rb",
32+
"lib/net/sftp/packet.rb",
33+
"lib/net/sftp/protocol.rb",
34+
"lib/net/sftp/protocol/01/attributes.rb",
35+
"lib/net/sftp/protocol/01/base.rb",
36+
"lib/net/sftp/protocol/01/name.rb",
37+
"lib/net/sftp/protocol/02/base.rb",
38+
"lib/net/sftp/protocol/03/base.rb",
39+
"lib/net/sftp/protocol/04/attributes.rb",
40+
"lib/net/sftp/protocol/04/base.rb",
41+
"lib/net/sftp/protocol/04/name.rb",
42+
"lib/net/sftp/protocol/05/base.rb",
43+
"lib/net/sftp/protocol/06/attributes.rb",
44+
"lib/net/sftp/protocol/06/base.rb",
45+
"lib/net/sftp/protocol/base.rb",
46+
"lib/net/sftp/request.rb",
47+
"lib/net/sftp/response.rb",
48+
"lib/net/sftp/session.rb",
49+
"lib/net/sftp/version.rb",
50+
"setup.rb",
51+
"test/common.rb",
52+
"test/protocol/01/test_attributes.rb",
53+
"test/protocol/01/test_base.rb",
54+
"test/protocol/01/test_name.rb",
55+
"test/protocol/02/test_base.rb",
56+
"test/protocol/03/test_base.rb",
57+
"test/protocol/04/test_attributes.rb",
58+
"test/protocol/04/test_base.rb",
59+
"test/protocol/04/test_name.rb",
60+
"test/protocol/05/test_base.rb",
61+
"test/protocol/06/test_attributes.rb",
62+
"test/protocol/06/test_base.rb",
63+
"test/protocol/test_base.rb",
64+
"test/test_all.rb",
65+
"test/test_dir.rb",
66+
"test/test_download.rb",
67+
"test/test_file.rb",
68+
"test/test_file_factory.rb",
69+
"test/test_packet.rb",
70+
"test/test_protocol.rb",
71+
"test/test_request.rb",
72+
"test/test_response.rb",
73+
"test/test_session.rb",
74+
"test/test_upload.rb"
75+
]
76+
s.homepage = "https://github.com/net-ssh/net-sftp"
77+
s.licenses = ["MIT"]
78+
s.require_paths = ["lib"]
79+
s.rubyforge_project = "net-sftp"
80+
s.rubygems_version = "1.8.25"
81+
s.signing_key = "/mnt/gem/gem-private_key.pem"
82+
s.summary = "A pure Ruby implementation of the SFTP client protocol"
83+
84+
if s.respond_to? :specification_version then
85+
s.specification_version = 3
86+
87+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
88+
s.add_runtime_dependency(%q<net-ssh>, [">= 2.6.4"])
89+
s.add_development_dependency(%q<test-unit>, [">= 0"])
90+
s.add_development_dependency(%q<mocha>, [">= 0"])
91+
else
92+
s.add_dependency(%q<net-ssh>, [">= 2.6.4"])
93+
s.add_dependency(%q<test-unit>, [">= 0"])
94+
s.add_dependency(%q<mocha>, [">= 0"])
95+
end
96+
else
97+
s.add_dependency(%q<net-ssh>, [">= 2.6.4"])
98+
s.add_dependency(%q<test-unit>, [">= 0"])
99+
s.add_dependency(%q<mocha>, [">= 0"])
100+
end
101+
end
102+

0 commit comments

Comments
 (0)