net-ftp 0.3.2 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/net/ftp.rb +5 -4
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 919adfa147311a5da81bd2b0efc00afe1d79276e393261d24da699da32f69846
|
4
|
+
data.tar.gz: a6dedebacaf2cf545110471c769481e53e9864e347a07f2a2ce65b900aa90142
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f69079237f55ac8e9dd7ac501d6542a24591ca8fae70f13e7e903de6d4106fdbb98b2e9aa041e7878782665b5d6dc4a80f1497641e3b1d16ce1abf7b4ec65ce7
|
7
|
+
data.tar.gz: 8d834ceb84c3a267c517676502a7daa3e3d7f4737783dad2fd298000b64cd86a1b8436dc53765475d00e5a0df02fdd4f3d1c827b3445d744e8143723a24f7444
|
data/lib/net/ftp.rb
CHANGED
@@ -85,7 +85,7 @@ module Net
|
|
85
85
|
end
|
86
86
|
|
87
87
|
# :stopdoc:
|
88
|
-
VERSION = "0.3.
|
88
|
+
VERSION = "0.3.4"
|
89
89
|
FTP_PORT = 21
|
90
90
|
CRLF = "\r\n"
|
91
91
|
DEFAULT_BLOCKSIZE = BufferedIO::BUFSIZE
|
@@ -563,6 +563,7 @@ module Net
|
|
563
563
|
def transfercmd(cmd, rest_offset = nil) # :nodoc:
|
564
564
|
if @passive
|
565
565
|
host, port = makepasv
|
566
|
+
succeeded = false
|
566
567
|
begin
|
567
568
|
conn = open_socket(host, port)
|
568
569
|
if @resume and rest_offset
|
@@ -577,9 +578,9 @@ module Net
|
|
577
578
|
if !resp.start_with?("1")
|
578
579
|
raise FTPReplyError, resp
|
579
580
|
end
|
580
|
-
|
581
|
-
|
582
|
-
|
581
|
+
succeeded = true
|
582
|
+
ensure
|
583
|
+
conn&.close if !succeeded
|
583
584
|
end
|
584
585
|
else
|
585
586
|
sock = makeport
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-ftp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shugo Maeda
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-protocol
|
@@ -61,7 +61,7 @@ licenses:
|
|
61
61
|
metadata:
|
62
62
|
homepage_uri: https://github.com/ruby/net-ftp
|
63
63
|
source_code_uri: https://github.com/ruby/net-ftp
|
64
|
-
post_install_message:
|
64
|
+
post_install_message:
|
65
65
|
rdoc_options: []
|
66
66
|
require_paths:
|
67
67
|
- lib
|
@@ -76,8 +76,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
|
-
rubygems_version: 3.
|
80
|
-
signing_key:
|
79
|
+
rubygems_version: 3.4.19
|
80
|
+
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: Support for the File Transfer Protocol.
|
83
83
|
test_files: []
|