net-sftp 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. data/doc/LICENSE-BSD +27 -0
  2. data/doc/LICENSE-GPL +280 -0
  3. data/doc/LICENSE-RUBY +56 -0
  4. data/examples/asynchronous.rb +57 -0
  5. data/examples/ssh-service.rb +31 -0
  6. data/examples/synchronous.rb +120 -0
  7. data/lib/net/sftp.rb +39 -0
  8. data/lib/net/sftp/errors.rb +25 -0
  9. data/lib/net/sftp/operations/abstract.rb +103 -0
  10. data/lib/net/sftp/operations/close.rb +31 -0
  11. data/lib/net/sftp/operations/errors.rb +76 -0
  12. data/lib/net/sftp/operations/fsetstat.rb +36 -0
  13. data/lib/net/sftp/operations/fstat.rb +32 -0
  14. data/lib/net/sftp/operations/lstat.rb +31 -0
  15. data/lib/net/sftp/operations/mkdir.rb +33 -0
  16. data/lib/net/sftp/operations/open.rb +32 -0
  17. data/lib/net/sftp/operations/opendir.rb +32 -0
  18. data/lib/net/sftp/operations/read.rb +84 -0
  19. data/lib/net/sftp/operations/readdir.rb +55 -0
  20. data/lib/net/sftp/operations/realpath.rb +37 -0
  21. data/lib/net/sftp/operations/remove.rb +31 -0
  22. data/lib/net/sftp/operations/rename.rb +32 -0
  23. data/lib/net/sftp/operations/rmdir.rb +31 -0
  24. data/lib/net/sftp/operations/services.rb +42 -0
  25. data/lib/net/sftp/operations/setstat.rb +33 -0
  26. data/lib/net/sftp/operations/stat.rb +31 -0
  27. data/lib/net/sftp/operations/write.rb +63 -0
  28. data/lib/net/sftp/protocol/01/attributes.rb +146 -0
  29. data/lib/net/sftp/protocol/01/impl.rb +251 -0
  30. data/lib/net/sftp/protocol/01/packet-assistant.rb +82 -0
  31. data/lib/net/sftp/protocol/01/services.rb +47 -0
  32. data/lib/net/sftp/protocol/02/impl.rb +39 -0
  33. data/lib/net/sftp/protocol/02/packet-assistant.rb +32 -0
  34. data/lib/net/sftp/protocol/02/services.rb +44 -0
  35. data/lib/net/sftp/protocol/03/impl.rb +42 -0
  36. data/lib/net/sftp/protocol/03/packet-assistant.rb +35 -0
  37. data/lib/net/sftp/protocol/03/services.rb +44 -0
  38. data/lib/net/sftp/protocol/04/attributes.rb +227 -0
  39. data/lib/net/sftp/protocol/04/impl.rb +134 -0
  40. data/lib/net/sftp/protocol/04/packet-assistant.rb +51 -0
  41. data/lib/net/sftp/protocol/04/services.rb +44 -0
  42. data/lib/net/sftp/protocol/05/services.rb +44 -0
  43. data/lib/net/sftp/protocol/constants.rb +60 -0
  44. data/lib/net/sftp/protocol/driver.rb +232 -0
  45. data/lib/net/sftp/protocol/packet-assistant.rb +84 -0
  46. data/lib/net/sftp/protocol/services.rb +55 -0
  47. data/lib/net/sftp/session.rb +215 -0
  48. data/lib/net/sftp/version.rb +25 -0
  49. data/test/ALL-TESTS.rb +21 -0
  50. data/test/operations/tc_abstract.rb +124 -0
  51. data/test/operations/tc_close.rb +40 -0
  52. data/test/operations/tc_fsetstat.rb +48 -0
  53. data/test/operations/tc_fstat.rb +40 -0
  54. data/test/operations/tc_lstat.rb +40 -0
  55. data/test/operations/tc_mkdir.rb +48 -0
  56. data/test/operations/tc_open.rb +42 -0
  57. data/test/operations/tc_opendir.rb +40 -0
  58. data/test/operations/tc_read.rb +103 -0
  59. data/test/operations/tc_readdir.rb +88 -0
  60. data/test/operations/tc_realpath.rb +54 -0
  61. data/test/operations/tc_remove.rb +40 -0
  62. data/test/operations/tc_rmdir.rb +40 -0
  63. data/test/operations/tc_setstat.rb +48 -0
  64. data/test/operations/tc_stat.rb +40 -0
  65. data/test/operations/tc_write.rb +91 -0
  66. data/test/protocol/01/tc_attributes.rb +138 -0
  67. data/test/protocol/01/tc_impl.rb +294 -0
  68. data/test/protocol/01/tc_packet_assistant.rb +81 -0
  69. data/test/protocol/02/tc_impl.rb +41 -0
  70. data/test/protocol/02/tc_packet_assistant.rb +31 -0
  71. data/test/protocol/03/tc_impl.rb +48 -0
  72. data/test/protocol/03/tc_packet_assistant.rb +34 -0
  73. data/test/protocol/04/tc_attributes.rb +174 -0
  74. data/test/protocol/04/tc_impl.rb +102 -0
  75. data/test/protocol/04/tc_packet_assistant.rb +41 -0
  76. data/test/protocol/tc_driver.rb +219 -0
  77. metadata +137 -0
metadata ADDED
@@ -0,0 +1,137 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.8.1
3
+ specification_version: 1
4
+ name: net-sftp
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.5.0
7
+ date: 2004-12-01
8
+ summary: Net::SFTP is a pure-Ruby implementation of the SFTP client protocol.
9
+ require_paths:
10
+ - lib
11
+ author: Jamis Buck
12
+ email: jgb3@email.byu.edu
13
+ homepage: http://net-ssh.rubyforge.org/sftp
14
+ rubyforge_project:
15
+ description:
16
+ autorequire: net/sftp
17
+ default_executable:
18
+ bindir: bin
19
+ has_rdoc: true
20
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
21
+ requirements:
22
+ -
23
+ - ">"
24
+ - !ruby/object:Gem::Version
25
+ version: 0.0.0
26
+ version:
27
+ platform: ruby
28
+ files:
29
+ - doc/LICENSE-RUBY
30
+ - doc/LICENSE-BSD
31
+ - doc/LICENSE-GPL
32
+ - lib/net
33
+ - lib/net/sftp
34
+ - lib/net/sftp.rb
35
+ - lib/net/sftp/operations
36
+ - lib/net/sftp/session.rb
37
+ - lib/net/sftp/protocol
38
+ - lib/net/sftp/version.rb
39
+ - lib/net/sftp/errors.rb
40
+ - lib/net/sftp/operations/close.rb
41
+ - lib/net/sftp/operations/read.rb
42
+ - lib/net/sftp/operations/rmdir.rb
43
+ - lib/net/sftp/operations/realpath.rb
44
+ - lib/net/sftp/operations/stat.rb
45
+ - lib/net/sftp/operations/readdir.rb
46
+ - lib/net/sftp/operations/lstat.rb
47
+ - lib/net/sftp/operations/setstat.rb
48
+ - lib/net/sftp/operations/abstract.rb
49
+ - lib/net/sftp/operations/mkdir.rb
50
+ - lib/net/sftp/operations/services.rb
51
+ - lib/net/sftp/operations/open.rb
52
+ - lib/net/sftp/operations/opendir.rb
53
+ - lib/net/sftp/operations/rename.rb
54
+ - lib/net/sftp/operations/remove.rb
55
+ - lib/net/sftp/operations/fsetstat.rb
56
+ - lib/net/sftp/operations/write.rb
57
+ - lib/net/sftp/operations/fstat.rb
58
+ - lib/net/sftp/operations/errors.rb
59
+ - lib/net/sftp/protocol/01
60
+ - lib/net/sftp/protocol/02
61
+ - lib/net/sftp/protocol/03
62
+ - lib/net/sftp/protocol/04
63
+ - lib/net/sftp/protocol/05
64
+ - lib/net/sftp/protocol/driver.rb
65
+ - lib/net/sftp/protocol/constants.rb
66
+ - lib/net/sftp/protocol/packet-assistant.rb
67
+ - lib/net/sftp/protocol/services.rb
68
+ - lib/net/sftp/protocol/01/attributes.rb
69
+ - lib/net/sftp/protocol/01/packet-assistant.rb
70
+ - lib/net/sftp/protocol/01/services.rb
71
+ - lib/net/sftp/protocol/01/impl.rb
72
+ - lib/net/sftp/protocol/02/packet-assistant.rb
73
+ - lib/net/sftp/protocol/02/services.rb
74
+ - lib/net/sftp/protocol/02/impl.rb
75
+ - lib/net/sftp/protocol/03/packet-assistant.rb
76
+ - lib/net/sftp/protocol/03/services.rb
77
+ - lib/net/sftp/protocol/03/impl.rb
78
+ - lib/net/sftp/protocol/04/attributes.rb
79
+ - lib/net/sftp/protocol/04/packet-assistant.rb
80
+ - lib/net/sftp/protocol/04/services.rb
81
+ - lib/net/sftp/protocol/04/impl.rb
82
+ - lib/net/sftp/protocol/05/services.rb
83
+ - examples/ssh-service.rb
84
+ - examples/synchronous.rb
85
+ - examples/asynchronous.rb
86
+ - test/operations
87
+ - test/ALL-TESTS.rb
88
+ - test/protocol
89
+ - test/operations/tc_write.rb
90
+ - test/operations/tc_fstat.rb
91
+ - test/operations/tc_close.rb
92
+ - test/operations/tc_abstract.rb
93
+ - test/operations/tc_opendir.rb
94
+ - test/operations/tc_rmdir.rb
95
+ - test/operations/tc_open.rb
96
+ - test/operations/tc_remove.rb
97
+ - test/operations/tc_read.rb
98
+ - test/operations/tc_fsetstat.rb
99
+ - test/operations/tc_lstat.rb
100
+ - test/operations/tc_readdir.rb
101
+ - test/operations/tc_mkdir.rb
102
+ - test/operations/tc_realpath.rb
103
+ - test/operations/tc_stat.rb
104
+ - test/operations/tc_setstat.rb
105
+ - test/protocol/01
106
+ - test/protocol/02
107
+ - test/protocol/03
108
+ - test/protocol/04
109
+ - test/protocol/tc_driver.rb
110
+ - test/protocol/01/tc_packet_assistant.rb
111
+ - test/protocol/01/tc_attributes.rb
112
+ - test/protocol/01/tc_impl.rb
113
+ - test/protocol/02/tc_packet_assistant.rb
114
+ - test/protocol/02/tc_impl.rb
115
+ - test/protocol/03/tc_packet_assistant.rb
116
+ - test/protocol/03/tc_impl.rb
117
+ - test/protocol/04/tc_packet_assistant.rb
118
+ - test/protocol/04/tc_attributes.rb
119
+ - test/protocol/04/tc_impl.rb
120
+ test_files:
121
+ - test/ALL-TESTS.rb
122
+ rdoc_options: []
123
+ extra_rdoc_files: []
124
+ executables: []
125
+ extensions: []
126
+ requirements: []
127
+ dependencies:
128
+ - !ruby/object:Gem::Dependency
129
+ name: net-ssh
130
+ version_requirement:
131
+ version_requirements: !ruby/object:Gem::Version::Requirement
132
+ requirements:
133
+ -
134
+ - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: 0.6.0
137
+ version: