Permalink
Browse files

Added public cert. All gem releases are now signed. See INSTALL in re…

…adme.
  • Loading branch information...
1 parent 86c2b04 commit 7bd2ad16471f2a692304038752d2ec29b756c391 @delano delano committed Feb 6, 2013
Showing with 190 additions and 22 deletions.
  1. +4 −0 CHANGELOG.rdoc → CHANGES.txt
  2. +20 −1 README.rdoc
  3. +44 −21 Rakefile
  4. +20 −0 gem-public_cert.pem
  5. +102 −0 net-sftp.gemspec
@@ -1,4 +1,8 @@
+=== 2.0.6 / 06 Feb 2013
+
+* Added public cert. All gem releases are now signed. See INSTALL in readme.
+
=== 2.0.5 / 19 Aug 2010
* Fixed missing StringIO exception in download! [Toby Bryans, Delano Mandelbaum]
View
@@ -1,6 +1,12 @@
= Net::SFTP
-* http://net-ssh.rubyforge.org/sftp
+* Docs: http://net-ssh.github.com/net-sftp
+* Issues: https://github.com/net-ssh/net-sftp/issues
+* Codes: https://github.com/net-ssh/net-sftp
+* Email: net-ssh@solutious.com
+
+<em>As of v2.0.6, all gem releases are signed. See INSTALL.</em>
+
== DESCRIPTION:
@@ -63,6 +69,19 @@ If you wish to run the tests, you'll need:
* gem install net-sftp (might need sudo privileges)
+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):
+
+ # Add the public key as a trusted certificate
+ # (You only need to do this once)
+ $ curl -O https://raw.github.com/net-ssh/net-ssh/master/gem-public_cert.pem
+ $ gem cert --add gem-public_cert.pem
+
+Then, when install the gem, do so with high security:
+
+ $ gem install net-ssh -P HighSecurity
+
+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.
+
Or, if you prefer to do it the hard way (sans Rubygems):
* tar xzf net-ssh-*.tgz
View
@@ -1,30 +1,53 @@
-$LOAD_PATH.unshift "../net-ssh/lib"
-require './lib/net/sftp/version'
+require "rubygems"
+require "rake"
+require "rake/clean"
+require "rdoc/task"
-begin
- require 'echoe'
-rescue LoadError
- abort "You'll need to have `echoe' installed to use Net::SFTP's Rakefile"
-end
+task :default => ["build"]
+CLEAN.include [ 'pkg', 'rdoc' ]
+name = "net-sftp"
+$:.unshift File.join(File.dirname(__FILE__), 'lib')
+require "net/sftp/version"
version = Net::SFTP::Version::STRING.dup
-if ENV['SNAPSHOT'].to_i == 1
- version << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
-end
-Echoe.new('net-sftp', version) do |p|
- p.project = "net-ssh"
- p.changelog = "CHANGELOG.rdoc"
+begin
+ require "jeweler"
+ Jeweler::Tasks.new do |s|
+ s.version = version
+ s.name = name
+ s.rubyforge_project = s.name
+ s.summary = "A pure Ruby implementation of the SFTP client protocol"
+ s.description = s.summary
+ s.email = "net-ssh@solutious.com"
+ s.homepage = "https://github.com/net-ssh/net-sftp"
+ s.authors = ["Jamis Buck", "Delano Mandelbaum"]
- p.author = "Jamis Buck"
- p.email = "netsftp@solutious.com"
- p.summary = "A pure Ruby implementation of the SFTP client protocol"
- p.url = "http://net-ssh.rubyforge.org/sftp"
+ s.add_dependency 'net-ssh', ">=2.6.4"
- p.dependencies = ["net-ssh >=2.0.9"]
+ s.add_development_dependency 'test-unit'
+ s.add_development_dependency 'mocha'
- p.need_zip = true
- p.include_rakefile = true
+ s.license = "MIT"
- p.rdoc_pattern = /^(lib|README.rdoc|CHANGELOG.rdoc)/
+ s.signing_key = File.join('/mnt/gem/', 'gem-private_key.pem')
+ s.cert_chain = ['gem-public_cert.pem']
+ end
+ Jeweler::GemcutterTasks.new
+rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
+end
+
+RDoc::Task.new do |rdoc|
+ rdoc.rdoc_dir = "rdoc"
+ rdoc.title = "#{name} #{version}"
+ rdoc.generator = 'hanna' # gem install hanna-nouveau
+ rdoc.main = 'README.rdoc'
+ rdoc.rdoc_files.include("README*")
+ rdoc.rdoc_files.include("LICENSE.txt")
+ rdoc.rdoc_files.include("THANKS.txt")
+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ps4wQFy5mibElGVlOobf/ghqZ25HS9J6kd0/C/ry0AUtTogsL7TxGwT4kbCx63ub
+3vywEEhsJUzfd97GCABmtQfRTldX/j7F1z/5wd8p+hfdox1iibds9ZtfaZA3KzKn
+kchWN9B6zg9r1XMQ8BM2Jz0XoPanPe354+lWwjpkRKbFow/ZbQHcCLCq24+N6b6g
+dgKfNDzwiDpqCA==
+-----END CERTIFICATE-----
View
@@ -0,0 +1,102 @@
+# Generated by jeweler
+# DO NOT EDIT THIS FILE DIRECTLY
+# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = "net-sftp"
+ s.version = "2.0.5"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Jamis Buck", "Delano Mandelbaum"]
+ s.cert_chain = ["gem-public_cert.pem"]
+ s.date = "2013-02-06"
+ s.description = "A pure Ruby implementation of the SFTP client protocol"
+ s.email = "net-ssh@solutious.com"
+ s.extra_rdoc_files = [
+ "README.rdoc"
+ ]
+ s.files = [
+ "CHANGELOG.rdoc",
+ "Manifest",
+ "README.rdoc",
+ "Rakefile",
+ "lib/net/sftp.rb",
+ "lib/net/sftp/constants.rb",
+ "lib/net/sftp/errors.rb",
+ "lib/net/sftp/operations/dir.rb",
+ "lib/net/sftp/operations/download.rb",
+ "lib/net/sftp/operations/file.rb",
+ "lib/net/sftp/operations/file_factory.rb",
+ "lib/net/sftp/operations/upload.rb",
+ "lib/net/sftp/packet.rb",
+ "lib/net/sftp/protocol.rb",
+ "lib/net/sftp/protocol/01/attributes.rb",
+ "lib/net/sftp/protocol/01/base.rb",
+ "lib/net/sftp/protocol/01/name.rb",
+ "lib/net/sftp/protocol/02/base.rb",
+ "lib/net/sftp/protocol/03/base.rb",
+ "lib/net/sftp/protocol/04/attributes.rb",
+ "lib/net/sftp/protocol/04/base.rb",
+ "lib/net/sftp/protocol/04/name.rb",
+ "lib/net/sftp/protocol/05/base.rb",
+ "lib/net/sftp/protocol/06/attributes.rb",
+ "lib/net/sftp/protocol/06/base.rb",
+ "lib/net/sftp/protocol/base.rb",
+ "lib/net/sftp/request.rb",
+ "lib/net/sftp/response.rb",
+ "lib/net/sftp/session.rb",
+ "lib/net/sftp/version.rb",
+ "setup.rb",
+ "test/common.rb",
+ "test/protocol/01/test_attributes.rb",
+ "test/protocol/01/test_base.rb",
+ "test/protocol/01/test_name.rb",
+ "test/protocol/02/test_base.rb",
+ "test/protocol/03/test_base.rb",
+ "test/protocol/04/test_attributes.rb",
+ "test/protocol/04/test_base.rb",
+ "test/protocol/04/test_name.rb",
+ "test/protocol/05/test_base.rb",
+ "test/protocol/06/test_attributes.rb",
+ "test/protocol/06/test_base.rb",
+ "test/protocol/test_base.rb",
+ "test/test_all.rb",
+ "test/test_dir.rb",
+ "test/test_download.rb",
+ "test/test_file.rb",
+ "test/test_file_factory.rb",
+ "test/test_packet.rb",
+ "test/test_protocol.rb",
+ "test/test_request.rb",
+ "test/test_response.rb",
+ "test/test_session.rb",
+ "test/test_upload.rb"
+ ]
+ s.homepage = "https://github.com/net-ssh/net-sftp"
+ s.licenses = ["MIT"]
+ s.require_paths = ["lib"]
+ s.rubyforge_project = "net-sftp"
+ s.rubygems_version = "1.8.25"
+ s.signing_key = "/mnt/gem/gem-private_key.pem"
+ s.summary = "A pure Ruby implementation of the SFTP client protocol"
+
+ if s.respond_to? :specification_version then
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<net-ssh>, [">= 2.6.4"])
+ s.add_development_dependency(%q<test-unit>, [">= 0"])
+ s.add_development_dependency(%q<mocha>, [">= 0"])
+ else
+ s.add_dependency(%q<net-ssh>, [">= 2.6.4"])
+ s.add_dependency(%q<test-unit>, [">= 0"])
+ s.add_dependency(%q<mocha>, [">= 0"])
+ end
+ else
+ s.add_dependency(%q<net-ssh>, [">= 2.6.4"])
+ s.add_dependency(%q<test-unit>, [">= 0"])
+ s.add_dependency(%q<mocha>, [">= 0"])
+ end
+end
+

0 comments on commit 7bd2ad1

Please sign in to comment.