net-ftp 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/push_gem.yml +1 -1
- data/lib/net/ftp.rb +10 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8659ce2bc51a97837fbb5090015c4e137845744cf2fcb676dffb347cbf7522b
|
4
|
+
data.tar.gz: ce205d52a5e6aa63b17453fa0ba5f1a2a7ef8cea65d90b5f2669ff99560cf432
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef464a215293288224cf7209f1209f32f5cc0e62b98d6a11b13e6f76c1b1d7a66aca5ed0a2da7b86b81108bc2696870c9aa33ac0ee9e69eeb9701adc02583fe2
|
7
|
+
data.tar.gz: d2d60b116f1b2bf9b8ecfd7003701fd5df7285be006256b4705b6974cdd4f8998f73c4f35840f98dcf7097a418b8b1f82573bc82159ac137dc691b5077900d54
|
@@ -24,7 +24,7 @@ jobs:
|
|
24
24
|
steps:
|
25
25
|
# Set up
|
26
26
|
- name: Harden Runner
|
27
|
-
uses: step-security/harden-runner@
|
27
|
+
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
|
28
28
|
with:
|
29
29
|
egress-policy: audit
|
30
30
|
|
data/lib/net/ftp.rb
CHANGED
@@ -89,7 +89,7 @@ module Net
|
|
89
89
|
end
|
90
90
|
|
91
91
|
# :stopdoc:
|
92
|
-
VERSION = "0.3.
|
92
|
+
VERSION = "0.3.7"
|
93
93
|
FTP_PORT = 21
|
94
94
|
CRLF = "\r\n"
|
95
95
|
DEFAULT_BLOCKSIZE = BufferedIO::BUFSIZE
|
@@ -249,10 +249,15 @@ module Net
|
|
249
249
|
if defined?(VerifyCallbackProc)
|
250
250
|
@ssl_context.verify_callback = VerifyCallbackProc
|
251
251
|
end
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
252
|
+
|
253
|
+
# jruby-openssl does not support session caching
|
254
|
+
unless RUBY_ENGINE == "jruby"
|
255
|
+
@ssl_context.session_cache_mode =
|
256
|
+
OpenSSL::SSL::SSLContext::SESSION_CACHE_CLIENT |
|
257
|
+
OpenSSL::SSL::SSLContext::SESSION_CACHE_NO_INTERNAL_STORE
|
258
|
+
@ssl_context.session_new_cb = proc {|sock, sess| @ssl_session = sess }
|
259
|
+
end
|
260
|
+
|
256
261
|
@ssl_session = nil
|
257
262
|
if options[:private_data_connection].nil?
|
258
263
|
@private_data_connection = true
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shugo Maeda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-protocol
|