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.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +16 -0
  3. data/.gitignore +1 -0
  4. data/.rspec +2 -0
  5. data/.rubocop.yml +27 -0
  6. data/.rubocop_todo.yml +7 -0
  7. data/.simplecov +6 -0
  8. data/.travis.yml +27 -2
  9. data/CHANGELOG.md +136 -0
  10. data/Gemfile +9 -7
  11. data/Guardfile +5 -4
  12. data/LICENSE.md +20 -0
  13. data/README.md +30 -63
  14. data/Rakefile +12 -7
  15. data/fake_ftp.gemspec +16 -17
  16. data/lib/fake_ftp.rb +3 -2
  17. data/lib/fake_ftp/file.rb +11 -5
  18. data/lib/fake_ftp/server.rb +138 -261
  19. data/lib/fake_ftp/server_commands.rb +6 -0
  20. data/lib/fake_ftp/server_commands/acct.rb +11 -0
  21. data/lib/fake_ftp/server_commands/cdup.rb +11 -0
  22. data/lib/fake_ftp/server_commands/cwd.rb +13 -0
  23. data/lib/fake_ftp/server_commands/dele.rb +25 -0
  24. data/lib/fake_ftp/server_commands/list.rb +39 -0
  25. data/lib/fake_ftp/server_commands/mdtm.rb +17 -0
  26. data/lib/fake_ftp/server_commands/mkd.rb +11 -0
  27. data/lib/fake_ftp/server_commands/nlst.rb +32 -0
  28. data/lib/fake_ftp/server_commands/pass.rb +11 -0
  29. data/lib/fake_ftp/server_commands/pasv.rb +15 -0
  30. data/lib/fake_ftp/server_commands/port.rb +23 -0
  31. data/lib/fake_ftp/server_commands/pwd.rb +11 -0
  32. data/lib/fake_ftp/server_commands/quit.rb +13 -0
  33. data/lib/fake_ftp/server_commands/retr.rb +32 -0
  34. data/lib/fake_ftp/server_commands/rnfr.rb +18 -0
  35. data/lib/fake_ftp/server_commands/rnto.rb +22 -0
  36. data/lib/fake_ftp/server_commands/site.rb +11 -0
  37. data/lib/fake_ftp/server_commands/size.rb +11 -0
  38. data/lib/fake_ftp/server_commands/stor.rb +30 -0
  39. data/lib/fake_ftp/server_commands/type.rb +18 -0
  40. data/lib/fake_ftp/server_commands/user.rb +12 -0
  41. data/lib/fake_ftp/server_commands/wat.rb +33 -0
  42. data/lib/fake_ftp/version.rb +3 -1
  43. data/spec/functional/server_spec.rb +459 -358
  44. data/spec/integration/server_spec.rb +39 -29
  45. data/spec/models/fake_ftp/file_spec.rb +22 -21
  46. data/spec/models/fake_ftp/server_spec.rb +33 -32
  47. data/spec/spec_helper.rb +98 -14
  48. 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.2.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-07-26 00:00:00.000000000 Z
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: 1.3.6
87
+ version: '0'
59
88
  requirements: []
60
89
  rubyforge_project:
61
90
  rubygems_version: 2.6.11