drb 2.1.1 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/drb.gemspec +0 -2
- data/lib/drb/drb.rb +8 -7
- data/lib/drb/ssl.rb +10 -0
- data/lib/drb/unix.rb +1 -1
- data/lib/drb/version.rb +1 -1
- metadata +4 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5aaeae79e5e0cf8a01be3ccddaa3818c2069f1799df38d2a001a98ae223bc456
|
4
|
+
data.tar.gz: 28c6ceb28a21aa846b00c5fc8e14cb3609895459a8d6df6ad8c0b718f470b540
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62519677865b8b9968250e208a4c884c21813949bf464588d7d5435e8f20d6bd787af7b4165c711b84829b61d565cd55781e25134b500575190eb62b59607c41
|
7
|
+
data.tar.gz: 6e7408910572c0020a9fe423a0b7010e40edbdb94f5024c49a007b9802efeeefd19d39825fb094c9d28bbe65c2278e305404180f97f6705a354a571af39c28a0
|
data/drb.gemspec
CHANGED
data/lib/drb/drb.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# = drb/drb.rb
|
4
4
|
#
|
5
|
-
# Distributed Ruby: _dRuby_
|
5
|
+
# Distributed Ruby: _dRuby_
|
6
6
|
#
|
7
7
|
# Copyright (c) 1999-2003 Masatoshi SEKI. You can redistribute it and/or
|
8
8
|
# modify it under the same terms as Ruby.
|
@@ -50,6 +50,7 @@ require 'socket'
|
|
50
50
|
require 'io/wait'
|
51
51
|
require 'monitor'
|
52
52
|
require_relative 'eq'
|
53
|
+
require_relative 'version'
|
53
54
|
|
54
55
|
#
|
55
56
|
# == Overview
|
@@ -1173,7 +1174,7 @@ module DRb
|
|
1173
1174
|
prefix = "(#{uri}) "
|
1174
1175
|
bt = []
|
1175
1176
|
result.backtrace.each do |x|
|
1176
|
-
break if
|
1177
|
+
break if /[`']__send__'$/ =~ x
|
1177
1178
|
if /\A\(druby:\/\// =~ x
|
1178
1179
|
bt.push(x)
|
1179
1180
|
else
|
@@ -1593,26 +1594,26 @@ module DRb
|
|
1593
1594
|
def check_insecure_method(obj, msg_id)
|
1594
1595
|
return true if Proc === obj && msg_id == :__drb_yield
|
1595
1596
|
raise(ArgumentError, "#{any_to_s(msg_id)} is not a symbol") unless Symbol == msg_id.class
|
1596
|
-
raise(SecurityError, "insecure method
|
1597
|
+
raise(SecurityError, "insecure method '#{msg_id}'") if insecure_method?(msg_id)
|
1597
1598
|
|
1598
1599
|
case obj
|
1599
1600
|
when Object
|
1600
1601
|
if obj.private_methods.include?(msg_id)
|
1601
1602
|
desc = any_to_s(obj)
|
1602
|
-
raise NoMethodError, "private method
|
1603
|
+
raise NoMethodError, "private method '#{msg_id}' called for #{desc}"
|
1603
1604
|
elsif obj.protected_methods.include?(msg_id)
|
1604
1605
|
desc = any_to_s(obj)
|
1605
|
-
raise NoMethodError, "protected method
|
1606
|
+
raise NoMethodError, "protected method '#{msg_id}' called for #{desc}"
|
1606
1607
|
else
|
1607
1608
|
true
|
1608
1609
|
end
|
1609
1610
|
else
|
1610
1611
|
if Kernel.instance_method(:private_methods).bind(obj).call.include?(msg_id)
|
1611
1612
|
desc = any_to_s(obj)
|
1612
|
-
raise NoMethodError, "private method
|
1613
|
+
raise NoMethodError, "private method '#{msg_id}' called for #{desc}"
|
1613
1614
|
elsif Kernel.instance_method(:protected_methods).bind(obj).call.include?(msg_id)
|
1614
1615
|
desc = any_to_s(obj)
|
1615
|
-
raise NoMethodError, "protected method
|
1616
|
+
raise NoMethodError, "protected method '#{msg_id}' called for #{desc}"
|
1616
1617
|
else
|
1617
1618
|
true
|
1618
1619
|
end
|
data/lib/drb/ssl.rb
CHANGED
@@ -73,6 +73,14 @@ module DRb
|
|
73
73
|
# :SSLTmpDhCallback ::
|
74
74
|
# A DH callback. See OpenSSL::SSL::SSLContext.tmp_dh_callback
|
75
75
|
#
|
76
|
+
# :SSLMinVersion ::
|
77
|
+
# This is the minimum SSL version to allow. See
|
78
|
+
# OpenSSL::SSL::SSLContext#min_version=.
|
79
|
+
#
|
80
|
+
# :SSLMaxVersion ::
|
81
|
+
# This is the maximum SSL version to allow. See
|
82
|
+
# OpenSSL::SSL::SSLContext#max_version=.
|
83
|
+
#
|
76
84
|
# :SSLVerifyMode ::
|
77
85
|
# This is the SSL verification mode. See OpenSSL::SSL::VERIFY_* for
|
78
86
|
# available modes. The default is OpenSSL::SSL::VERIFY_NONE
|
@@ -208,6 +216,8 @@ module DRb
|
|
208
216
|
ctx = ::OpenSSL::SSL::SSLContext.new
|
209
217
|
ctx.cert = @cert
|
210
218
|
ctx.key = @pkey
|
219
|
+
ctx.min_version = self[:SSLMinVersion]
|
220
|
+
ctx.max_version = self[:SSLMaxVersion]
|
211
221
|
ctx.client_ca = self[:SSLClientCA]
|
212
222
|
ctx.ca_path = self[:SSLCACertificatePath]
|
213
223
|
ctx.ca_file = self[:SSLCACertificateFile]
|
data/lib/drb/unix.rb
CHANGED
data/lib/drb/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masatoshi SEKI
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: ruby2_keywords
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
10
|
+
date: 2024-03-01 00:00:00.000000000 Z
|
11
|
+
dependencies: []
|
27
12
|
description: Distributed object system for Ruby
|
28
13
|
email:
|
29
14
|
- seki@ruby-lang.org
|
@@ -54,7 +39,6 @@ licenses:
|
|
54
39
|
metadata:
|
55
40
|
homepage_uri: https://github.com/ruby/drb
|
56
41
|
source_code_uri: https://github.com/ruby/drb
|
57
|
-
post_install_message:
|
58
42
|
rdoc_options: []
|
59
43
|
require_paths:
|
60
44
|
- lib
|
@@ -69,8 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
53
|
- !ruby/object:Gem::Version
|
70
54
|
version: '0'
|
71
55
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
73
|
-
signing_key:
|
56
|
+
rubygems_version: 3.6.0.dev
|
74
57
|
specification_version: 4
|
75
58
|
summary: Distributed object system for Ruby
|
76
59
|
test_files: []
|