|
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 -*- |
| 1 | +require_relative 'lib/net/sftp/version' |
5 | 2 |
|
6 |
| -Gem::Specification.new do |s| |
7 |
| - s.name = "net-sftp" |
8 |
| - s.version = "2.1.2" |
| 3 | +Gem::Specification.new do |spec| |
| 4 | + spec.name = "net-sftp" |
| 5 | + spec.version = Net::SFTP::Version::STRING |
| 6 | + spec.authors = ["Jamis Buck", "Delano Mandelbaum", "Mikl\u{f3}s Fazekas"] |
| 7 | + spec.email = ["[email protected]"] |
9 | 8 |
|
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-05-07" |
14 |
| - s.description = "A pure Ruby implementation of the SFTP client protocol" |
15 |
| - |
16 |
| - s.extra_rdoc_files = [ |
| 9 | + if ENV['NET_SSH_BUILDGEM_SIGNED'] |
| 10 | + spec.cert_chain = ["net-sftp-public_cert.pem"] |
| 11 | + spec.signing_key = "/mnt/gem/net-ssh-private_key.pem" |
| 12 | + end |
| 13 | + |
| 14 | + spec.summary = %q{A pure Ruby implementation of the SFTP client protocol.} |
| 15 | + spec.description = %q{A pure Ruby implementation of the SFTP client protocol} |
| 16 | + spec.homepage = "https://github.com/net-ssh/net-sftp" |
| 17 | + spec.license = "MIT" |
| 18 | + spec.required_rubygems_version = Gem::Requirement.new(">= 0") if spec.respond_to? :required_rubygems_version= |
| 19 | + |
| 20 | + spec.extra_rdoc_files = [ |
17 | 21 | "LICENSE.txt",
|
18 | 22 | "README.rdoc"
|
19 | 23 | ]
|
20 |
| - s.files = [ |
21 |
| - "CHANGES.txt", |
22 |
| - "LICENSE.txt", |
23 |
| - "Manifest", |
24 |
| - "README.rdoc", |
25 |
| - "Rakefile", |
26 |
| - "gem-public_cert.pem", |
27 |
| - "lib/net/sftp.rb", |
28 |
| - "lib/net/sftp/constants.rb", |
29 |
| - "lib/net/sftp/errors.rb", |
30 |
| - "lib/net/sftp/operations/dir.rb", |
31 |
| - "lib/net/sftp/operations/download.rb", |
32 |
| - "lib/net/sftp/operations/file.rb", |
33 |
| - "lib/net/sftp/operations/file_factory.rb", |
34 |
| - "lib/net/sftp/operations/upload.rb", |
35 |
| - "lib/net/sftp/packet.rb", |
36 |
| - "lib/net/sftp/protocol.rb", |
37 |
| - "lib/net/sftp/protocol/01/attributes.rb", |
38 |
| - "lib/net/sftp/protocol/01/base.rb", |
39 |
| - "lib/net/sftp/protocol/01/name.rb", |
40 |
| - "lib/net/sftp/protocol/02/base.rb", |
41 |
| - "lib/net/sftp/protocol/03/base.rb", |
42 |
| - "lib/net/sftp/protocol/04/attributes.rb", |
43 |
| - "lib/net/sftp/protocol/04/base.rb", |
44 |
| - "lib/net/sftp/protocol/04/name.rb", |
45 |
| - "lib/net/sftp/protocol/05/base.rb", |
46 |
| - "lib/net/sftp/protocol/06/attributes.rb", |
47 |
| - "lib/net/sftp/protocol/06/base.rb", |
48 |
| - "lib/net/sftp/protocol/base.rb", |
49 |
| - "lib/net/sftp/request.rb", |
50 |
| - "lib/net/sftp/response.rb", |
51 |
| - "lib/net/sftp/session.rb", |
52 |
| - "lib/net/sftp/version.rb", |
53 |
| - "net-sftp.gemspec", |
54 |
| - "setup.rb", |
55 |
| - "test/common.rb", |
56 |
| - "test/protocol/01/test_attributes.rb", |
57 |
| - "test/protocol/01/test_base.rb", |
58 |
| - "test/protocol/01/test_name.rb", |
59 |
| - "test/protocol/02/test_base.rb", |
60 |
| - "test/protocol/03/test_base.rb", |
61 |
| - "test/protocol/04/test_attributes.rb", |
62 |
| - "test/protocol/04/test_base.rb", |
63 |
| - "test/protocol/04/test_name.rb", |
64 |
| - "test/protocol/05/test_base.rb", |
65 |
| - "test/protocol/06/test_attributes.rb", |
66 |
| - "test/protocol/06/test_base.rb", |
67 |
| - "test/protocol/test_base.rb", |
68 |
| - "test/test_all.rb", |
69 |
| - "test/test_dir.rb", |
70 |
| - "test/test_download.rb", |
71 |
| - "test/test_file.rb", |
72 |
| - "test/test_file_factory.rb", |
73 |
| - "test/test_packet.rb", |
74 |
| - "test/test_protocol.rb", |
75 |
| - "test/test_request.rb", |
76 |
| - "test/test_response.rb", |
77 |
| - "test/test_session.rb", |
78 |
| - "test/test_upload.rb" |
79 |
| - ] |
80 |
| - s.homepage = "https://github.com/net-ssh/net-sftp" |
81 |
| - s.licenses = ["MIT"] |
82 |
| - s.require_paths = ["lib"] |
83 |
| - s.rubyforge_project = "net-sftp" |
84 |
| - s.rubygems_version = "1.8.25" |
85 |
| - s.signing_key = "/mnt/gem/gem-private_key.pem" |
86 |
| - s.summary = "A pure Ruby implementation of the SFTP client protocol" |
87 | 24 |
|
88 |
| - if s.respond_to? :specification_version then |
89 |
| - s.specification_version = 3 |
| 25 | + spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } |
| 26 | + spec.bindir = "exe" |
| 27 | + spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } |
| 28 | + spec.require_paths = ["lib"] |
| 29 | + |
| 30 | + if spec.respond_to? :specification_version then |
| 31 | + spec.specification_version = 3 |
90 | 32 |
|
91 | 33 | if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
92 |
| - s.add_runtime_dependency(%q<net-ssh>, [">= 2.6.5"]) |
93 |
| - s.add_development_dependency(%q<test-unit>, [">= 0"]) |
94 |
| - s.add_development_dependency(%q<mocha>, [">= 0"]) |
| 34 | + spec.add_runtime_dependency(%q<net-ssh>, [">= 2.6.5", "< 5.0.0"]) |
| 35 | + spec.add_development_dependency(%q<test-unit>, [">= 0"]) |
| 36 | + spec.add_development_dependency(%q<mocha>, [">= 0"]) |
95 | 37 | else
|
96 |
| - s.add_dependency(%q<net-ssh>, [">= 2.6.5"]) |
97 |
| - s.add_dependency(%q<test-unit>, [">= 0"]) |
98 |
| - s.add_dependency(%q<mocha>, [">= 0"]) |
| 38 | + spec.add_dependency(%q<net-ssh>, [">= 2.6.5", "< 5.0.0"]) |
| 39 | + spec.add_dependency(%q<test-unit>, [">= 0"]) |
| 40 | + spec.add_dependency(%q<mocha>, [">= 0"]) |
99 | 41 | end
|
100 | 42 | else
|
101 |
| - s.add_dependency(%q<net-ssh>, [">= 2.6.5"]) |
102 |
| - s.add_dependency(%q<test-unit>, [">= 0"]) |
103 |
| - s.add_dependency(%q<mocha>, [">= 0"]) |
| 43 | + spec.add_dependency(%q<net-ssh>, [">= 2.6.5", "< 5.0.0"]) |
| 44 | + spec.add_dependency(%q<test-unit>, [">= 0"]) |
| 45 | + spec.add_dependency(%q<mocha>, [">= 0"]) |
104 | 46 | end
|
105 | 47 | end
|
106 |
| - |
0 commit comments