r7insight 3.0.2 → 3.0.3

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: bab00a349c8aee888f84c9c06677b7fb53c7589708b004ce3079fa5a86cbf3a8
4
- data.tar.gz: 8fd2a5a77c523afdb92c0316a770024798ee7e3cf716dc0db7d6d092b454b1ee
3
+ metadata.gz: c7e222795c645d45b1f3a9582c2fdc3a0b7a70cbeffd9bae3db5f756021bb161
4
+ data.tar.gz: b62d371c9ffa4c80fa9398b563db179f2eb5ef3bd32080d914d961596e1086d5
5
5
  SHA512:
6
- metadata.gz: 5efd8b2465147d57aa3c6173a88543768ea4c5e6f0b8bf382698b123625a33f6d0bcb68b65f4b9b1ea090b0459521041b166ae10d61aeb051a5065158f1f5627
7
- data.tar.gz: 563089db2b683c7b4a568a10e6aa9dc86f7923776dd05e106a6e3448567af60a268a015453dd59f36dfd4eca2a6cec6d7a2bf9522087c0318621c63306ead3c5
6
+ metadata.gz: c6e6c562b06013906e619718cbb2b0dd68167422616f5ce9171861761ea31622cfd1390e2a47a2709cc411bf470e8058646d72392af5a885584ab735cd1be608
7
+ data.tar.gz: a89dfe8e113d3e4a2d4aa01d8fa45157ecbeb70250e11fc51dea9ced4e8d90ed8d7876ad1955f7d2c06e2fcf33cf5ed9baa3f14476c1e04e2919f200ee7ff355
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- r7insight (3.0.2)
4
+ r7insight (3.0.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -188,9 +188,17 @@ module R7Insight
188
188
  ssl_context = OpenSSL::SSL::SSLContext.new
189
189
  ssl_context.cert_store = cert_store
190
190
 
191
- ssl_context.min_version = OpenSSL::SSL::TLS1_1_VERSION
192
- # For older versions of openssl (prior to 1.1.1) missing support for TLSv1.3
193
- ssl_context.max_version = defined?(OpenSSL::SSL::TLS1_3_VERSION) ? OpenSSL::SSL::TLS1_3_VERSION : OpenSSL::SSL::TLS1_2_VERSION
191
+ if OpenSSL::SSL::SSLContext.method_defined? :min_version=
192
+ ssl_context.min_version = OpenSSL::SSL::TLS1_1_VERSION
193
+ end
194
+ if OpenSSL::SSL::SSLContext.method_defined? :max_version=
195
+ # For older versions of openssl (prior to 1.1.1) missing support for TLSv1.3
196
+ ssl_context.max_version = if defined?(OpenSSL::SSL::TLS1_3_VERSION)
197
+ OpenSSL::SSL::TLS1_3_VERSION
198
+ else
199
+ OpenSSL::SSL::TLS1_2_VERSION
200
+ end
201
+ end
194
202
  ssl_context.verify_mode = OpenSSL::SSL::VERIFY_PEER
195
203
  ssl_socket = OpenSSL::SSL::SSLSocket.new(socket, ssl_context)
196
204
  ssl_socket.hostname = host if ssl_socket.respond_to?(:hostname=)
data/r7insight.gemspec CHANGED
@@ -8,7 +8,7 @@ require 'r7_insight'
8
8
 
9
9
  Gem::Specification.new do |gem|
10
10
  gem.name = 'r7insight'
11
- gem.version = '3.0.2'
11
+ gem.version = '3.0.3'
12
12
  gem.date = Time.now
13
13
  gem.summary = 'Rapid7 Insight Platform logging plugin'
14
14
  gem.licenses = ['MIT']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r7insight
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rapid7
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-10 00:00:00.000000000 Z
11
+ date: 2020-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  requirements: []
113
- rubygems_version: 3.0.6
113
+ rubygems_version: 3.0.8
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Rapid7 Insight Platform logging plugin