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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 461ec5d7ab22ccd0247c0c2743e5eec8e6b98acc45caeb354325853aa726b5e9
4
- data.tar.gz: c953747819f0742d5749f4ce53b06ff84a49475ecb937266a3fd908bbe04ed09
3
+ metadata.gz: c8659ce2bc51a97837fbb5090015c4e137845744cf2fcb676dffb347cbf7522b
4
+ data.tar.gz: ce205d52a5e6aa63b17453fa0ba5f1a2a7ef8cea65d90b5f2669ff99560cf432
5
5
  SHA512:
6
- metadata.gz: f47c2db4011a98a9ac0c6dba7e313dc8eca773e5aeb2b1a23f049d4a316a79d7eff2551286e291844a9ff0a2000a8fccbdf7a8f34854a273527e3462c67d183e
7
- data.tar.gz: 6deea76a58d105a7dbbcaab5e46f0b8fe53b80711ea984c7244900d8472d0516bf89540b52b0f9ccf9be67f108d7c1fe567d4241cc91b50ff25aa3783a70247b
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@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
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.6"
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
- @ssl_context.session_cache_mode =
253
- OpenSSL::SSL::SSLContext::SESSION_CACHE_CLIENT |
254
- OpenSSL::SSL::SSLContext::SESSION_CACHE_NO_INTERNAL_STORE
255
- @ssl_context.session_new_cb = proc {|sock, sess| @ssl_session = sess }
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.6
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-05 00:00:00.000000000 Z
11
+ date: 2024-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-protocol