riemann-client 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33657c1dcec6dce903bd90154f17f3a31174b6e0fa146609941dc36960c2b6e2
4
- data.tar.gz: 372a73585a2046e5af3a16ddd84254af64e6f6d17c6911183cf6c408eb22ac07
3
+ metadata.gz: 4ecf7fbb122c865afd7a238b0431fa0e7612911bd144c245ede6e1b4bba7d315
4
+ data.tar.gz: ba917bc1d701fc4879b5273fb0b719271c39a0a9aca442d300f6e2864829f955
5
5
  SHA512:
6
- metadata.gz: 694404b98fe75bb304f8d8da0903eb128d2600ecd83bc3b6c3d4e2b41eef2695a82e6df00c0f9c3a59115837e58314e6cdb88d56c1b10c959bd912d69ace479c
7
- data.tar.gz: 874fdd45638f808e1bf9641616fe5342c01c3a51245f9d66542a9aec60751a093462e70c123e027a463dcedfcb608dfc98087ae4ad189fd02aa97210b8e90fdd
6
+ metadata.gz: 6b0ee1e832110bd39c4caf6fe16af86691dea30e77768789bfd3db23ddb5ddf1e0b9786a5c326586526e8ccf9da40d4b1168378b701ab97f36a92c7ea71e2eb4
7
+ data.tar.gz: 82e370d71c95d39530b3b1fc4725b6a4f9ece4348cbe6cce08d944bf6c3e72b6cd9ccea47e243ed307c989f44ddb12ad03b5abc8837f81ce8b0915fbf2236665
data/.rubocop.yml CHANGED
@@ -1,4 +1,6 @@
1
1
  ---
2
+ AllCops:
3
+ TargetRubyVersion: 2.6
2
4
  require:
3
5
  - rubocop-rspec
4
6
  Metrics/AbcSize:
@@ -13,8 +15,5 @@ Metrics/MethodLength:
13
15
  Enabled: false
14
16
  Metrics/PerceivedComplexity:
15
17
  Enabled: false
16
- Naming/VariableNumber:
17
- AllowedIdentifiers:
18
- - TLSv1_2
19
18
  Style/Documentation:
20
19
  Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v1.2.0](https://github.com/riemann/riemann-ruby-client/tree/v1.2.0) (2023-06-28)
4
+
5
+ [Full Changelog](https://github.com/riemann/riemann-ruby-client/compare/v1.1.0...v1.2.0)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Allow connection to Riemann using TLS 1.3 [\#49](https://github.com/riemann/riemann-ruby-client/pull/49) ([smortex](https://github.com/smortex))
10
+
3
11
  ## [v1.1.0](https://github.com/riemann/riemann-ruby-client/tree/v1.1.0) (2023-01-23)
4
12
 
5
13
  [Full Changelog](https://github.com/riemann/riemann-ruby-client/compare/v1.0.1...v1.1.0)
@@ -20,7 +20,7 @@ module Riemann
20
20
  ctx.key = OpenSSL::PKey::RSA.new(File.read(@key_file))
21
21
  ctx.cert = OpenSSL::X509::Certificate.new(File.read(@cert_file))
22
22
  ctx.ca_file = @ca_file if @ca_file
23
- ctx.ssl_version = :TLSv1_2
23
+ ctx.min_version = OpenSSL::SSL::TLS1_2_VERSION
24
24
  ctx.verify_mode = OpenSSL::SSL::VERIFY_PEER if @ssl_verify
25
25
  end
26
26
  end
@@ -17,7 +17,7 @@ module Riemann
17
17
 
18
18
  # Public: Return a socket factory
19
19
  def self.socket_factory
20
- @socket_factory || proc { |options|
20
+ @socket_factory ||= proc { |options|
21
21
  if options[:ssl]
22
22
  SSLSocket.connect(options)
23
23
  else
@@ -29,6 +29,8 @@ module Riemann
29
29
  def initialize(options = {}) # rubocop:disable Lint/MissingSuper
30
30
  @options = options
31
31
  @locket = Monitor.new
32
+ @socket = nil
33
+ @pid = nil
32
34
  end
33
35
 
34
36
  def socket
@@ -11,6 +11,7 @@ module Riemann
11
11
  @host = opts[:host] || HOST
12
12
  @port = opts[:port] || PORT
13
13
  @max_size = opts[:max_size] || MAX_SIZE
14
+ @socket = nil
14
15
  end
15
16
 
16
17
  def socket
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Riemann
4
- VERSION = '1.1.0'
4
+ VERSION = '1.2.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kingsbury
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-23 00:00:00.000000000 Z
11
+ date: 2023-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -149,7 +149,7 @@ homepage: https://github.com/aphyr/riemann-ruby-client
149
149
  licenses:
150
150
  - MIT
151
151
  metadata: {}
152
- post_install_message:
152
+ post_install_message:
153
153
  rdoc_options: []
154
154
  require_paths:
155
155
  - lib
@@ -164,8 +164,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  - !ruby/object:Gem::Version
165
165
  version: '0'
166
166
  requirements: []
167
- rubygems_version: 3.3.26
168
- signing_key:
167
+ rubygems_version: 3.2.5
168
+ signing_key:
169
169
  specification_version: 4
170
170
  summary: Client for the distributed event system Riemann.
171
171
  test_files: