rubysl-net-ftp 1.0.0

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.
Files changed (79) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.travis.yml +8 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE +25 -0
  6. data/README.md +29 -0
  7. data/Rakefile +1 -0
  8. data/lib/net/ftp.rb +1 -0
  9. data/lib/net/ftptls.rb +1 -0
  10. data/lib/rubysl/net/ftp.rb +2 -0
  11. data/lib/rubysl/net/ftp/ftp.rb +926 -0
  12. data/lib/rubysl/net/ftp/version.rb +7 -0
  13. data/rubysl-net-ftp.gemspec +23 -0
  14. data/spec/FTPError_spec.rb +7 -0
  15. data/spec/FTPPermError_spec.rb +11 -0
  16. data/spec/FTPProtoError_spec.rb +11 -0
  17. data/spec/FTPReplyError_spec.rb +11 -0
  18. data/spec/FTPTempError_spec.rb +11 -0
  19. data/spec/abort_spec.rb +61 -0
  20. data/spec/acct_spec.rb +57 -0
  21. data/spec/binary_spec.rb +23 -0
  22. data/spec/chdir_spec.rb +100 -0
  23. data/spec/close_spec.rb +29 -0
  24. data/spec/closed_spec.rb +20 -0
  25. data/spec/connect_spec.rb +48 -0
  26. data/spec/debug_mode_spec.rb +22 -0
  27. data/spec/delete_spec.rb +58 -0
  28. data/spec/dir_spec.rb +7 -0
  29. data/spec/fixtures/putbinaryfile +3 -0
  30. data/spec/fixtures/puttextfile +3 -0
  31. data/spec/fixtures/server.rb +265 -0
  32. data/spec/get_spec.rb +20 -0
  33. data/spec/getbinaryfile_spec.rb +7 -0
  34. data/spec/getdir_spec.rb +6 -0
  35. data/spec/gettextfile_spec.rb +7 -0
  36. data/spec/help_spec.rb +65 -0
  37. data/spec/initialize_spec.rb +86 -0
  38. data/spec/last_response_code_spec.rb +7 -0
  39. data/spec/last_response_spec.rb +24 -0
  40. data/spec/lastresp_spec.rb +7 -0
  41. data/spec/list_spec.rb +7 -0
  42. data/spec/login_spec.rb +215 -0
  43. data/spec/ls_spec.rb +7 -0
  44. data/spec/mdtm_spec.rb +37 -0
  45. data/spec/mkdir_spec.rb +60 -0
  46. data/spec/mtime_spec.rb +49 -0
  47. data/spec/nlst_spec.rb +120 -0
  48. data/spec/noop_spec.rb +37 -0
  49. data/spec/open_spec.rb +54 -0
  50. data/spec/passive_spec.rb +23 -0
  51. data/spec/put_spec.rb +20 -0
  52. data/spec/putbinaryfile_spec.rb +7 -0
  53. data/spec/puttextfile_spec.rb +7 -0
  54. data/spec/pwd_spec.rb +52 -0
  55. data/spec/quit_spec.rb +32 -0
  56. data/spec/rename_spec.rb +93 -0
  57. data/spec/resume_spec.rb +22 -0
  58. data/spec/retrbinary_spec.rb +29 -0
  59. data/spec/retrlines_spec.rb +33 -0
  60. data/spec/return_code_spec.rb +23 -0
  61. data/spec/rmdir_spec.rb +57 -0
  62. data/spec/sendcmd_spec.rb +53 -0
  63. data/spec/set_socket_spec.rb +7 -0
  64. data/spec/shared/getbinaryfile.rb +179 -0
  65. data/spec/shared/gettextfile.rb +129 -0
  66. data/spec/shared/last_response_code.rb +25 -0
  67. data/spec/shared/list.rb +133 -0
  68. data/spec/shared/putbinaryfile.rb +232 -0
  69. data/spec/shared/puttextfile.rb +149 -0
  70. data/spec/shared/pwd.rb +3 -0
  71. data/spec/site_spec.rb +52 -0
  72. data/spec/size_spec.rb +47 -0
  73. data/spec/status_spec.rb +62 -0
  74. data/spec/storbinary_spec.rb +47 -0
  75. data/spec/storlines_spec.rb +42 -0
  76. data/spec/system_spec.rb +47 -0
  77. data/spec/voidcmd_spec.rb +53 -0
  78. data/spec/welcome_spec.rb +24 -0
  79. metadata +243 -0
@@ -0,0 +1,3 @@
1
+ describe :net_ftp_pwd, :shared => true do
2
+
3
+ end
data/spec/site_spec.rb ADDED
@@ -0,0 +1,52 @@
1
+ require 'net/ftp'
2
+ require File.expand_path('../fixtures/server', __FILE__)
3
+
4
+ describe "Net::FTP#site" do
5
+ before(:each) do
6
+ @server = NetFTPSpecs::DummyFTP.new
7
+ @server.serve_once
8
+
9
+ @ftp = Net::FTP.new
10
+ @ftp.connect("localhost", 9921)
11
+ end
12
+
13
+ after(:each) do
14
+ @ftp.quit rescue nil
15
+ @ftp.close
16
+ @server.stop
17
+ end
18
+
19
+ it "sends the SITE command with the passed argument to the server" do
20
+ @ftp.site("param")
21
+ @ftp.last_response.should == "200 Command okay. (SITE param)\n"
22
+ end
23
+
24
+ it "returns nil" do
25
+ @ftp.site("param").should be_nil
26
+ end
27
+
28
+ it "does not raise an error when the response code is 202" do
29
+ @server.should_receive(:site).and_respond("202 Command not implemented, superfluous at this site.")
30
+ lambda { @ftp.site("param") }.should_not raise_error
31
+ end
32
+
33
+ it "raises a Net::FTPPermError when the response code is 500" do
34
+ @server.should_receive(:site).and_respond("500 Syntax error, command unrecognized.")
35
+ lambda { @ftp.site("param") }.should raise_error(Net::FTPPermError)
36
+ end
37
+
38
+ it "raises a Net::FTPPermError when the response code is 501" do
39
+ @server.should_receive(:site).and_respond("501 Syntax error in parameters or arguments.")
40
+ lambda { @ftp.site("param") }.should raise_error(Net::FTPPermError)
41
+ end
42
+
43
+ it "raises a Net::FTPTempError when the response code is 421" do
44
+ @server.should_receive(:site).and_respond("421 Service not available, closing control connection.")
45
+ lambda { @ftp.site("param") }.should raise_error(Net::FTPTempError)
46
+ end
47
+
48
+ it "raises a Net::FTPPermError when the response code is 530" do
49
+ @server.should_receive(:site).and_respond("530 Requested action not taken.")
50
+ lambda { @ftp.site("param") }.should raise_error(Net::FTPPermError)
51
+ end
52
+ end
data/spec/size_spec.rb ADDED
@@ -0,0 +1,47 @@
1
+ require 'net/ftp'
2
+ require File.expand_path('../fixtures/server', __FILE__)
3
+
4
+ describe "Net::FTP#size" do
5
+ before(:each) do
6
+ @server = NetFTPSpecs::DummyFTP.new
7
+ @server.serve_once
8
+
9
+ @ftp = Net::FTP.new
10
+ @ftp.connect("localhost", 9921)
11
+ end
12
+
13
+ after(:each) do
14
+ @ftp.quit rescue nil
15
+ @ftp.close
16
+ @server.stop
17
+ end
18
+
19
+ it "sends the SIZE command to the server" do
20
+ @ftp.size("test.file")
21
+ @ftp.last_response.should == "213 1024\n"
22
+ end
23
+
24
+ it "returns the size of the passed file as Integer" do
25
+ @ftp.size("test.file").should eql(1024)
26
+ end
27
+
28
+ it "raises a Net::FTPPermError when the response code is 500" do
29
+ @server.should_receive(:size).and_respond("500 Syntax error, command unrecognized.")
30
+ lambda { @ftp.size("test.file") }.should raise_error(Net::FTPPermError)
31
+ end
32
+
33
+ it "raises a Net::FTPPermError when the response code is 501" do
34
+ @server.should_receive(:size).and_respond("501 Syntax error in parameters or arguments.")
35
+ lambda { @ftp.size("test.file") }.should raise_error(Net::FTPPermError)
36
+ end
37
+
38
+ it "raises a Net::FTPTempError when the response code is 421" do
39
+ @server.should_receive(:size).and_respond("421 Service not available, closing control connection.")
40
+ lambda { @ftp.size("test.file") }.should raise_error(Net::FTPTempError)
41
+ end
42
+
43
+ it "raises a Net::FTPPermError when the response code is 550" do
44
+ @server.should_receive(:size).and_respond("550 Requested action not taken.")
45
+ lambda { @ftp.size("test.file") }.should raise_error(Net::FTPPermError)
46
+ end
47
+ end
@@ -0,0 +1,62 @@
1
+ require 'net/ftp'
2
+ require File.expand_path('../fixtures/server', __FILE__)
3
+
4
+ describe "Net::FTP#status" do
5
+ before(:each) do
6
+ @server = NetFTPSpecs::DummyFTP.new
7
+ @server.serve_once
8
+
9
+ @ftp = Net::FTP.new
10
+ @ftp.connect("localhost", 9921)
11
+ end
12
+
13
+ after(:each) do
14
+ @ftp.quit rescue nil
15
+ @ftp.close
16
+ @server.stop
17
+ end
18
+
19
+ it "sends the STAT command to the server" do
20
+ @ftp.status
21
+ @ftp.last_response.should == "211 System status, or system help reply. (STAT)\n"
22
+ end
23
+
24
+ it "returns the received information" do
25
+ @ftp.status.should == "211 System status, or system help reply. (STAT)\n"
26
+ end
27
+
28
+ it "does not raise an error when the response code is 212" do
29
+ @server.should_receive(:stat).and_respond("212 Directory status.")
30
+ lambda { @ftp.status }.should_not raise_error
31
+ end
32
+
33
+ it "does not raise an error when the response code is 213" do
34
+ @server.should_receive(:stat).and_respond("213 File status.")
35
+ lambda { @ftp.status }.should_not raise_error
36
+ end
37
+
38
+ it "raises a Net::FTPPermError when the response code is 500" do
39
+ @server.should_receive(:stat).and_respond("500 Syntax error, command unrecognized.")
40
+ lambda { @ftp.status }.should raise_error(Net::FTPPermError)
41
+ end
42
+
43
+ it "raises a Net::FTPPermError when the response code is 501" do
44
+ @server.should_receive(:stat).and_respond("501 Syntax error in parameters or arguments.")
45
+ lambda { @ftp.status }.should raise_error(Net::FTPPermError)
46
+ end
47
+
48
+ it "raises a Net::FTPPermError when the response code is 502" do
49
+ @server.should_receive(:stat).and_respond("502 Command not implemented.")
50
+ lambda { @ftp.status }.should raise_error(Net::FTPPermError)
51
+ end
52
+
53
+ it "raises a Net::FTPTempError when the response code is 421" do
54
+ @server.should_receive(:stat).and_respond("421 Service not available, closing control connection.")
55
+ lambda { @ftp.status }.should raise_error(Net::FTPTempError)
56
+ end
57
+
58
+ it "raises a Net::FTPPermError when the response code is 530" do
59
+ @server.should_receive(:stat).and_respond("530 Requested action not taken.")
60
+ lambda { @ftp.status }.should raise_error(Net::FTPPermError)
61
+ end
62
+ end
@@ -0,0 +1,47 @@
1
+ require 'net/ftp'
2
+ require File.expand_path('../fixtures/server', __FILE__)
3
+
4
+ describe "Net::FTP#storbinary" do
5
+ before(:each) do
6
+ @server = NetFTPSpecs::DummyFTP.new
7
+ @server.serve_once
8
+
9
+ @local_fixture_file = File.dirname(__FILE__) + "/fixtures/putbinaryfile"
10
+ @tmp_file = tmp("binaryfile", false)
11
+
12
+ @ftp = Net::FTP.new
13
+ @ftp.connect("localhost", 9921)
14
+ end
15
+
16
+ after(:each) do
17
+ @ftp.quit rescue nil
18
+ @ftp.close
19
+ @server.stop
20
+
21
+ rm_r @tmp_file
22
+ end
23
+
24
+ it "sends the passed command and the passed File object's content to the server" do
25
+ File.open(@local_fixture_file) do |f|
26
+ f.binmode
27
+
28
+ @ftp.storbinary("STOR binary", f, 4096) {}
29
+ @ftp.last_response.should == "200 OK, Data received. (STOR binary)\n"
30
+ end
31
+ end
32
+
33
+ it "yields the transmitted content as binary blocks of the passed size" do
34
+ File.open(@local_fixture_file) do |f|
35
+ f.binmode
36
+
37
+ res = []
38
+ @ftp.storbinary("STOR binary", f, 10) { |x| res << x }
39
+ res.should == [
40
+ "This is an", " example f",
41
+ "ile\nwhich ", "is going t",
42
+ "o be trans", "mitted\nusi",
43
+ "ng #putbin", "aryfile."
44
+ ]
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,42 @@
1
+ require 'net/ftp'
2
+ require File.expand_path('../fixtures/server', __FILE__)
3
+
4
+ describe "Net::FTP#storlines" do
5
+ before(:each) do
6
+ @server = NetFTPSpecs::DummyFTP.new
7
+ @server.serve_once
8
+
9
+ @local_fixture_file = File.dirname(__FILE__) + "/fixtures/puttextfile"
10
+ @tmp_file = tmp("textfile", false)
11
+
12
+ @ftp = Net::FTP.new
13
+ @ftp.connect("localhost", 9921)
14
+ end
15
+
16
+ after(:each) do
17
+ @ftp.quit rescue nil
18
+ @ftp.close
19
+ @server.stop
20
+
21
+ rm_r @tmp_file
22
+ end
23
+
24
+ it "sends the passed command and the passed File object's content to the server" do
25
+ File.open(@local_fixture_file) do |f|
26
+ @ftp.storlines("STOR text", f) {}
27
+ @ftp.last_response.should == "200 OK, Data received. (STOR text)\n"
28
+ end
29
+ end
30
+
31
+ it "yields each line of the transmitted content" do
32
+ File.open(@local_fixture_file) do |f|
33
+ res = []
34
+ @ftp.storlines("STOR text", f) { |x| res << x }
35
+ res.should == [
36
+ "This is an example file\r\n",
37
+ "which is going to be transmitted\r\n",
38
+ "using #puttextfile.\r\n"
39
+ ]
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,47 @@
1
+ require 'net/ftp'
2
+ require File.expand_path('../fixtures/server', __FILE__)
3
+
4
+ describe "Net::FTP#system" do
5
+ before(:each) do
6
+ @server = NetFTPSpecs::DummyFTP.new
7
+ @server.serve_once
8
+
9
+ @ftp = Net::FTP.new
10
+ @ftp.connect("localhost", 9921)
11
+ end
12
+
13
+ after(:each) do
14
+ @ftp.quit rescue nil
15
+ @ftp.close
16
+ @server.stop
17
+ end
18
+
19
+ it "sends the SYST command to the server" do
20
+ @ftp.system
21
+ @ftp.last_response.should == "215 FTP Dummy Server (SYST)\n"
22
+ end
23
+
24
+ it "returns the received information" do
25
+ @ftp.system.should == "FTP Dummy Server (SYST)\n"
26
+ end
27
+
28
+ it "raises a Net::FTPPermError when the response code is 500" do
29
+ @server.should_receive(:syst).and_respond("500 Syntax error, command unrecognized.")
30
+ lambda { @ftp.system }.should raise_error(Net::FTPPermError)
31
+ end
32
+
33
+ it "raises a Net::FTPPermError when the response code is 501" do
34
+ @server.should_receive(:syst).and_respond("501 Syntax error in parameters or arguments.")
35
+ lambda { @ftp.system }.should raise_error(Net::FTPPermError)
36
+ end
37
+
38
+ it "raises a Net::FTPPermError when the response code is 502" do
39
+ @server.should_receive(:syst).and_respond("502 Command not implemented.")
40
+ lambda { @ftp.system }.should raise_error(Net::FTPPermError)
41
+ end
42
+
43
+ it "raises a Net::FTPTempError when the response code is 421" do
44
+ @server.should_receive(:syst).and_respond("421 Service not available, closing control connection.")
45
+ lambda { @ftp.system }.should raise_error(Net::FTPTempError)
46
+ end
47
+ end
@@ -0,0 +1,53 @@
1
+ require 'net/ftp'
2
+ require File.expand_path('../fixtures/server', __FILE__)
3
+
4
+ describe "Net::FTP#voidcmd" do
5
+ before(:each) do
6
+ @server = NetFTPSpecs::DummyFTP.new
7
+ @server.serve_once
8
+
9
+ @ftp = Net::FTP.new
10
+ @ftp.connect("localhost", 9921)
11
+ end
12
+
13
+ after(:each) do
14
+ @ftp.quit rescue nil
15
+ @ftp.close
16
+ @server.stop
17
+ end
18
+
19
+ it "sends the passed command to the server" do
20
+ @server.should_receive(:help).and_respond("2xx Does not raise.")
21
+ lambda { @ftp.voidcmd("HELP") }.should_not raise_error
22
+ end
23
+
24
+ it "returns nil" do
25
+ @server.should_receive(:help).and_respond("2xx Does not raise.")
26
+ @ftp.voidcmd("HELP").should be_nil
27
+ end
28
+
29
+ it "raises a Net::FTPReplyError when the response code is 1xx" do
30
+ @server.should_receive(:help).and_respond("1xx Does raise a Net::FTPReplyError.")
31
+ lambda { @ftp.voidcmd("HELP") }.should raise_error(Net::FTPReplyError)
32
+ end
33
+
34
+ it "raises a Net::FTPReplyError when the response code is 3xx" do
35
+ @server.should_receive(:help).and_respond("3xx Does raise a Net::FTPReplyError.")
36
+ lambda { @ftp.voidcmd("HELP") }.should raise_error(Net::FTPReplyError)
37
+ end
38
+
39
+ it "raises a Net::FTPTempError when the response code is 4xx" do
40
+ @server.should_receive(:help).and_respond("4xx Does raise a Net::FTPTempError.")
41
+ lambda { @ftp.voidcmd("HELP") }.should raise_error(Net::FTPTempError)
42
+ end
43
+
44
+ it "raises a Net::FTPPermError when the response code is 5xx" do
45
+ @server.should_receive(:help).and_respond("5xx Does raise a Net::FTPPermError.")
46
+ lambda { @ftp.voidcmd("HELP") }.should raise_error(Net::FTPPermError)
47
+ end
48
+
49
+ it "raises a Net::FTPProtoError when the response code is not valid" do
50
+ @server.should_receive(:help).and_respond("999 Does raise a Net::FTPProtoError.")
51
+ lambda { @ftp.voidcmd("HELP") }.should raise_error(Net::FTPProtoError)
52
+ end
53
+ end
@@ -0,0 +1,24 @@
1
+ require 'net/ftp'
2
+ require File.expand_path('../fixtures/server', __FILE__)
3
+
4
+ describe "Net::FTP#welcome" do
5
+ before(:each) do
6
+ @server = NetFTPSpecs::DummyFTP.new
7
+ @server.serve_once
8
+
9
+ @ftp = Net::FTP.new
10
+ @ftp.connect("localhost", 9921)
11
+ end
12
+
13
+ after(:each) do
14
+ @ftp.quit rescue nil
15
+ @ftp.close
16
+ @server.stop
17
+ end
18
+
19
+ it "returns the server's welcome message" do
20
+ @ftp.welcome.should be_nil
21
+ @ftp.login
22
+ @ftp.welcome.should == "230 User logged in, proceed. (USER anonymous)\n"
23
+ end
24
+ end
metadata ADDED
@@ -0,0 +1,243 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubysl-net-ftp
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Brian Shirai
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-09-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: mspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1.5'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubysl-prettyprint
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '1.0'
69
+ description: Ruby standard library ftp.
70
+ email:
71
+ - brixen@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - .gitignore
77
+ - .travis.yml
78
+ - Gemfile
79
+ - LICENSE
80
+ - README.md
81
+ - Rakefile
82
+ - lib/net/ftp.rb
83
+ - lib/net/ftptls.rb
84
+ - lib/rubysl/net/ftp.rb
85
+ - lib/rubysl/net/ftp/ftp.rb
86
+ - lib/rubysl/net/ftp/version.rb
87
+ - rubysl-net-ftp.gemspec
88
+ - spec/FTPError_spec.rb
89
+ - spec/FTPPermError_spec.rb
90
+ - spec/FTPProtoError_spec.rb
91
+ - spec/FTPReplyError_spec.rb
92
+ - spec/FTPTempError_spec.rb
93
+ - spec/abort_spec.rb
94
+ - spec/acct_spec.rb
95
+ - spec/binary_spec.rb
96
+ - spec/chdir_spec.rb
97
+ - spec/close_spec.rb
98
+ - spec/closed_spec.rb
99
+ - spec/connect_spec.rb
100
+ - spec/debug_mode_spec.rb
101
+ - spec/delete_spec.rb
102
+ - spec/dir_spec.rb
103
+ - spec/fixtures/putbinaryfile
104
+ - spec/fixtures/puttextfile
105
+ - spec/fixtures/server.rb
106
+ - spec/get_spec.rb
107
+ - spec/getbinaryfile_spec.rb
108
+ - spec/getdir_spec.rb
109
+ - spec/gettextfile_spec.rb
110
+ - spec/help_spec.rb
111
+ - spec/initialize_spec.rb
112
+ - spec/last_response_code_spec.rb
113
+ - spec/last_response_spec.rb
114
+ - spec/lastresp_spec.rb
115
+ - spec/list_spec.rb
116
+ - spec/login_spec.rb
117
+ - spec/ls_spec.rb
118
+ - spec/mdtm_spec.rb
119
+ - spec/mkdir_spec.rb
120
+ - spec/mtime_spec.rb
121
+ - spec/nlst_spec.rb
122
+ - spec/noop_spec.rb
123
+ - spec/open_spec.rb
124
+ - spec/passive_spec.rb
125
+ - spec/put_spec.rb
126
+ - spec/putbinaryfile_spec.rb
127
+ - spec/puttextfile_spec.rb
128
+ - spec/pwd_spec.rb
129
+ - spec/quit_spec.rb
130
+ - spec/rename_spec.rb
131
+ - spec/resume_spec.rb
132
+ - spec/retrbinary_spec.rb
133
+ - spec/retrlines_spec.rb
134
+ - spec/return_code_spec.rb
135
+ - spec/rmdir_spec.rb
136
+ - spec/sendcmd_spec.rb
137
+ - spec/set_socket_spec.rb
138
+ - spec/shared/getbinaryfile.rb
139
+ - spec/shared/gettextfile.rb
140
+ - spec/shared/last_response_code.rb
141
+ - spec/shared/list.rb
142
+ - spec/shared/putbinaryfile.rb
143
+ - spec/shared/puttextfile.rb
144
+ - spec/shared/pwd.rb
145
+ - spec/site_spec.rb
146
+ - spec/size_spec.rb
147
+ - spec/status_spec.rb
148
+ - spec/storbinary_spec.rb
149
+ - spec/storlines_spec.rb
150
+ - spec/system_spec.rb
151
+ - spec/voidcmd_spec.rb
152
+ - spec/welcome_spec.rb
153
+ homepage: https://github.com/rubysl/rubysl-net-ftp
154
+ licenses:
155
+ - BSD
156
+ metadata: {}
157
+ post_install_message:
158
+ rdoc_options: []
159
+ require_paths:
160
+ - lib
161
+ required_ruby_version: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ required_rubygems_version: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - '>='
169
+ - !ruby/object:Gem::Version
170
+ version: '0'
171
+ requirements: []
172
+ rubyforge_project:
173
+ rubygems_version: 2.0.3
174
+ signing_key:
175
+ specification_version: 4
176
+ summary: Ruby standard library ftp.
177
+ test_files:
178
+ - spec/FTPError_spec.rb
179
+ - spec/FTPPermError_spec.rb
180
+ - spec/FTPProtoError_spec.rb
181
+ - spec/FTPReplyError_spec.rb
182
+ - spec/FTPTempError_spec.rb
183
+ - spec/abort_spec.rb
184
+ - spec/acct_spec.rb
185
+ - spec/binary_spec.rb
186
+ - spec/chdir_spec.rb
187
+ - spec/close_spec.rb
188
+ - spec/closed_spec.rb
189
+ - spec/connect_spec.rb
190
+ - spec/debug_mode_spec.rb
191
+ - spec/delete_spec.rb
192
+ - spec/dir_spec.rb
193
+ - spec/fixtures/putbinaryfile
194
+ - spec/fixtures/puttextfile
195
+ - spec/fixtures/server.rb
196
+ - spec/get_spec.rb
197
+ - spec/getbinaryfile_spec.rb
198
+ - spec/getdir_spec.rb
199
+ - spec/gettextfile_spec.rb
200
+ - spec/help_spec.rb
201
+ - spec/initialize_spec.rb
202
+ - spec/last_response_code_spec.rb
203
+ - spec/last_response_spec.rb
204
+ - spec/lastresp_spec.rb
205
+ - spec/list_spec.rb
206
+ - spec/login_spec.rb
207
+ - spec/ls_spec.rb
208
+ - spec/mdtm_spec.rb
209
+ - spec/mkdir_spec.rb
210
+ - spec/mtime_spec.rb
211
+ - spec/nlst_spec.rb
212
+ - spec/noop_spec.rb
213
+ - spec/open_spec.rb
214
+ - spec/passive_spec.rb
215
+ - spec/put_spec.rb
216
+ - spec/putbinaryfile_spec.rb
217
+ - spec/puttextfile_spec.rb
218
+ - spec/pwd_spec.rb
219
+ - spec/quit_spec.rb
220
+ - spec/rename_spec.rb
221
+ - spec/resume_spec.rb
222
+ - spec/retrbinary_spec.rb
223
+ - spec/retrlines_spec.rb
224
+ - spec/return_code_spec.rb
225
+ - spec/rmdir_spec.rb
226
+ - spec/sendcmd_spec.rb
227
+ - spec/set_socket_spec.rb
228
+ - spec/shared/getbinaryfile.rb
229
+ - spec/shared/gettextfile.rb
230
+ - spec/shared/last_response_code.rb
231
+ - spec/shared/list.rb
232
+ - spec/shared/putbinaryfile.rb
233
+ - spec/shared/puttextfile.rb
234
+ - spec/shared/pwd.rb
235
+ - spec/site_spec.rb
236
+ - spec/size_spec.rb
237
+ - spec/status_spec.rb
238
+ - spec/storbinary_spec.rb
239
+ - spec/storlines_spec.rb
240
+ - spec/system_spec.rb
241
+ - spec/voidcmd_spec.rb
242
+ - spec/welcome_spec.rb
243
+ has_rdoc: