ftpmvc 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/env/env.rb +1 -1
- data/lib/ftpmvc/server.rb +2 -2
- data/lib/ftpmvc/test_helpers.rb +8 -9
- data/lib/ftpmvc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 800cd0fa5b7d6379cbe1efd1750296bd0ab87f4a
|
4
|
+
data.tar.gz: 6d389cc47d11394f75741f21fe0afd16bd9da2f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3140ab81ce032ad0530269c23905e3456228a81cc18f1a66bcca9c6b6d510093e3ffbda7b66d817ae87eceed388ef65e23dbfeefab027a55664b9e447c3c83aa
|
7
|
+
data.tar.gz: 77d75fc3cea176626e1282928d52e8eacfaf2903df4fc07482adca73fbdb03e35ccf1fd79cbc6695a07606939ca4ad6a1c89ca651e603f3a6747f1fc5c4d9b5b
|
data/examples/env/env.rb
CHANGED
data/lib/ftpmvc/server.rb
CHANGED
data/lib/ftpmvc/test_helpers.rb
CHANGED
@@ -4,18 +4,17 @@ require 'ftpmvc/server'
|
|
4
4
|
module FTPMVC
|
5
5
|
module TestHelpers
|
6
6
|
def with_application(app)
|
7
|
-
FTPMVC::Server.new('127.0.0.1', 0).start_in_new_thread(app)
|
7
|
+
server = FTPMVC::Server.new('127.0.0.1', 0).start_in_new_thread(app)
|
8
|
+
begin
|
9
|
+
ftp = Net::FTP.new
|
8
10
|
begin
|
9
|
-
ftp
|
10
|
-
|
11
|
-
ftp.connect('127.0.0.1', server.port)
|
12
|
-
yield ftp
|
13
|
-
ensure
|
14
|
-
ftp.close
|
15
|
-
end
|
11
|
+
ftp.connect('127.0.0.1', server.port)
|
12
|
+
yield ftp
|
16
13
|
ensure
|
17
|
-
|
14
|
+
ftp.close
|
18
15
|
end
|
16
|
+
ensure
|
17
|
+
server.stop
|
19
18
|
end
|
20
19
|
end
|
21
20
|
|
data/lib/ftpmvc/version.rb
CHANGED