net-ftp 0.3.6 → 0.3.8

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: e481d7fa04c36757bf0f4a60bc8821b56d37d20343f3ffee84f863a351bab45b
4
+ data.tar.gz: 27dfd640949af2161f80d5899a426fecd2a2d979ee08158cc5c4300cb3c98ae9
5
5
  SHA512:
6
- metadata.gz: f47c2db4011a98a9ac0c6dba7e313dc8eca773e5aeb2b1a23f049d4a316a79d7eff2551286e291844a9ff0a2000a8fccbdf7a8f34854a273527e3462c67d183e
7
- data.tar.gz: 6deea76a58d105a7dbbcaab5e46f0b8fe53b80711ea984c7244900d8472d0516bf89540b52b0f9ccf9be67f108d7c1fe567d4241cc91b50ff25aa3783a70247b
6
+ metadata.gz: 84a90b945499fce5fc21da0b67a8776c0a6aa814670d8d1cbcd40dd5eb3f5d788834991bf4b15c3db4f91e57bba5588c1d1d091ac0b885e40bb878426e1de336
7
+ data.tar.gz: 04454bccbb3088db4510b2805f8a4c38aac2feca903d5a25dd5e7eeb51bb25a89a9c66c336fe1e112ffe063094aac3c1e939fdf8a54add77dde3a3577ee2aa36
@@ -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@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
28
28
  with:
29
29
  egress-policy: audit
30
30
 
@@ -15,7 +15,7 @@ jobs:
15
15
  strategy:
16
16
  matrix:
17
17
  ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
18
- os: [ ubuntu-latest, macos-latest ]
18
+ os: [ ubuntu-latest, macos-latest, windows-latest ]
19
19
  runs-on: ${{ matrix.os }}
20
20
  steps:
21
21
  - uses: actions/checkout@v4
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.8"
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,13 @@
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.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shugo Maeda
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-06-05 00:00:00.000000000 Z
10
+ date: 2024-10-03 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: net-protocol
@@ -64,7 +63,6 @@ licenses:
64
63
  metadata:
65
64
  homepage_uri: https://github.com/ruby/net-ftp
66
65
  source_code_uri: https://github.com/ruby/net-ftp
67
- post_install_message:
68
66
  rdoc_options: []
69
67
  require_paths:
70
68
  - lib
@@ -79,8 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
77
  - !ruby/object:Gem::Version
80
78
  version: '0'
81
79
  requirements: []
82
- rubygems_version: 3.5.9
83
- signing_key:
80
+ rubygems_version: 3.6.0.dev
84
81
  specification_version: 4
85
82
  summary: Support for the File Transfer Protocol.
86
83
  test_files: []