fake_ftp 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +16 -0
- data/.gitignore +1 -0
- data/.rspec +2 -0
- data/.rubocop.yml +27 -0
- data/.rubocop_todo.yml +7 -0
- data/.simplecov +6 -0
- data/.travis.yml +27 -2
- data/CHANGELOG.md +136 -0
- data/Gemfile +9 -7
- data/Guardfile +5 -4
- data/LICENSE.md +20 -0
- data/README.md +30 -63
- data/Rakefile +12 -7
- data/fake_ftp.gemspec +16 -17
- data/lib/fake_ftp.rb +3 -2
- data/lib/fake_ftp/file.rb +11 -5
- data/lib/fake_ftp/server.rb +138 -261
- data/lib/fake_ftp/server_commands.rb +6 -0
- data/lib/fake_ftp/server_commands/acct.rb +11 -0
- data/lib/fake_ftp/server_commands/cdup.rb +11 -0
- data/lib/fake_ftp/server_commands/cwd.rb +13 -0
- data/lib/fake_ftp/server_commands/dele.rb +25 -0
- data/lib/fake_ftp/server_commands/list.rb +39 -0
- data/lib/fake_ftp/server_commands/mdtm.rb +17 -0
- data/lib/fake_ftp/server_commands/mkd.rb +11 -0
- data/lib/fake_ftp/server_commands/nlst.rb +32 -0
- data/lib/fake_ftp/server_commands/pass.rb +11 -0
- data/lib/fake_ftp/server_commands/pasv.rb +15 -0
- data/lib/fake_ftp/server_commands/port.rb +23 -0
- data/lib/fake_ftp/server_commands/pwd.rb +11 -0
- data/lib/fake_ftp/server_commands/quit.rb +13 -0
- data/lib/fake_ftp/server_commands/retr.rb +32 -0
- data/lib/fake_ftp/server_commands/rnfr.rb +18 -0
- data/lib/fake_ftp/server_commands/rnto.rb +22 -0
- data/lib/fake_ftp/server_commands/site.rb +11 -0
- data/lib/fake_ftp/server_commands/size.rb +11 -0
- data/lib/fake_ftp/server_commands/stor.rb +30 -0
- data/lib/fake_ftp/server_commands/type.rb +18 -0
- data/lib/fake_ftp/server_commands/user.rb +12 -0
- data/lib/fake_ftp/server_commands/wat.rb +33 -0
- data/lib/fake_ftp/version.rb +3 -1
- data/spec/functional/server_spec.rb +459 -358
- data/spec/integration/server_spec.rb +39 -29
- data/spec/models/fake_ftp/file_spec.rb +22 -21
- data/spec/models/fake_ftp/server_spec.rb +33 -32
- data/spec/spec_helper.rb +98 -14
- metadata +32 -3
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fake_ftp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin Shield
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-08-01 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Testing FTP? Use this!
|
15
15
|
email:
|
@@ -18,18 +18,47 @@ executables: []
|
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
+
- ".codeclimate.yml"
|
21
22
|
- ".gitignore"
|
22
23
|
- ".rspec"
|
24
|
+
- ".rubocop.yml"
|
25
|
+
- ".rubocop_todo.yml"
|
26
|
+
- ".simplecov"
|
23
27
|
- ".travis.yml"
|
28
|
+
- CHANGELOG.md
|
24
29
|
- CONTRIBUTORS.md
|
25
30
|
- Gemfile
|
26
31
|
- Guardfile
|
32
|
+
- LICENSE.md
|
27
33
|
- README.md
|
28
34
|
- Rakefile
|
29
35
|
- fake_ftp.gemspec
|
30
36
|
- lib/fake_ftp.rb
|
31
37
|
- lib/fake_ftp/file.rb
|
32
38
|
- lib/fake_ftp/server.rb
|
39
|
+
- lib/fake_ftp/server_commands.rb
|
40
|
+
- lib/fake_ftp/server_commands/acct.rb
|
41
|
+
- lib/fake_ftp/server_commands/cdup.rb
|
42
|
+
- lib/fake_ftp/server_commands/cwd.rb
|
43
|
+
- lib/fake_ftp/server_commands/dele.rb
|
44
|
+
- lib/fake_ftp/server_commands/list.rb
|
45
|
+
- lib/fake_ftp/server_commands/mdtm.rb
|
46
|
+
- lib/fake_ftp/server_commands/mkd.rb
|
47
|
+
- lib/fake_ftp/server_commands/nlst.rb
|
48
|
+
- lib/fake_ftp/server_commands/pass.rb
|
49
|
+
- lib/fake_ftp/server_commands/pasv.rb
|
50
|
+
- lib/fake_ftp/server_commands/port.rb
|
51
|
+
- lib/fake_ftp/server_commands/pwd.rb
|
52
|
+
- lib/fake_ftp/server_commands/quit.rb
|
53
|
+
- lib/fake_ftp/server_commands/retr.rb
|
54
|
+
- lib/fake_ftp/server_commands/rnfr.rb
|
55
|
+
- lib/fake_ftp/server_commands/rnto.rb
|
56
|
+
- lib/fake_ftp/server_commands/site.rb
|
57
|
+
- lib/fake_ftp/server_commands/size.rb
|
58
|
+
- lib/fake_ftp/server_commands/stor.rb
|
59
|
+
- lib/fake_ftp/server_commands/type.rb
|
60
|
+
- lib/fake_ftp/server_commands/user.rb
|
61
|
+
- lib/fake_ftp/server_commands/wat.rb
|
33
62
|
- lib/fake_ftp/version.rb
|
34
63
|
- spec/fixtures/invisible_bike.jpg
|
35
64
|
- spec/fixtures/text_file.txt
|
@@ -55,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
84
|
requirements:
|
56
85
|
- - ">="
|
57
86
|
- !ruby/object:Gem::Version
|
58
|
-
version:
|
87
|
+
version: '0'
|
59
88
|
requirements: []
|
60
89
|
rubyforge_project:
|
61
90
|
rubygems_version: 2.6.11
|