riemann-tools 1.11.0 → 1.12.0

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: aa81e2c6ea617e2450bdc8456f8665493241b19256be9a5443b6351e5d417ace
4
- data.tar.gz: 0eb2bb5e1f6caea452a2babe933acd270840a78fe15520d637b7b3eb1deeb93e
3
+ metadata.gz: 074d3c18c2108c352d43fec2b29ccff5f717a2369ee5649a61b91f9eaded3eaf
4
+ data.tar.gz: bf6c07e31ce1723645429924e3ad9ae6a2500dd83495518038a40f33fab22fad
5
5
  SHA512:
6
- metadata.gz: eccb9331a24c1db7812365ee6c52d811a962b681563237f1e4f196aad7ae59171daaf9548db8792ff8ab548b393a04c00078c8ba59701373f8c452077960cae6
7
- data.tar.gz: 75508745d0f31fd2b5457531ae68158f514ca5ac9fa65c64c00c9ceedf67df8644b87bd324ef0aca94527e862c51ad063702ab8be95181723b6c73fefd2c9fb9
6
+ metadata.gz: 1cedba2b8086abf960e954f26646049146cd3ba3fab037f612299a0754e6d60504dd9610f05b34a96c089a1f3312e93b936976143d50e500cf967ed0c4c48855
7
+ data.tar.gz: c177966cf0e558ff52569d44f08bf1bfe9c07975cf7b01a3ee13aed71e30742186855943647cc7c3c74e24a3d6953cf3652cbffd42caed9ab7485abeb85745e3
@@ -33,6 +33,7 @@ jobs:
33
33
  - '3.1'
34
34
  - '3.2'
35
35
  - '3.3'
36
+ - '3.4'
36
37
  steps:
37
38
  - uses: actions/checkout@v4
38
39
  - name: Setup Ruby
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [v1.12.0](https://github.com/riemann/riemann-tools/tree/v1.12.0) (2025-01-15)
4
+
5
+ [Full Changelog](https://github.com/riemann/riemann-tools/compare/v1.11.0...v1.12.0)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Allow passing options to `riemann-bench` [\#300](https://github.com/riemann/riemann-tools/pull/300) ([smortex](https://github.com/smortex))
10
+
11
+ **Fixed bugs:**
12
+
13
+ - Fix support of Ruby 3.4 [\#301](https://github.com/riemann/riemann-tools/pull/301) ([smortex](https://github.com/smortex))
14
+
3
15
  ## [v1.11.0](https://github.com/riemann/riemann-tools/tree/v1.11.0) (2024-07-07)
4
16
 
5
17
  [Full Changelog](https://github.com/riemann/riemann-tools/compare/v1.10.0...v1.11.0)
@@ -1,14 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rubygems'
4
- require 'riemann/client'
3
+ require 'riemann/tools'
4
+ require 'riemann/tools/version'
5
5
 
6
6
  # Connects to a server (first arg) and populates it with a constant stream of
7
7
  # events for testing.
8
8
  module Riemann
9
9
  module Tools
10
10
  class Bench
11
- attr_accessor :client, :hosts, :services, :states
11
+ include Riemann::Tools
12
+ attr_accessor :hosts, :services, :states
12
13
 
13
14
  def initialize
14
15
  super
@@ -17,7 +18,6 @@ module Riemann
17
18
  @hosts = %w[a b c d e f g h i j]
18
19
  @services = %w[test1 test2 test3 foo bar baz xyzzy attack cat treat]
19
20
  @states = {}
20
- @client = Riemann::Client.new(host: ARGV.first || 'localhost')
21
21
  end
22
22
 
23
23
  def evolve(state)
@@ -45,7 +45,7 @@ module Riemann
45
45
  def tick
46
46
  # pp @states
47
47
  hosts.product(services).each do |id|
48
- client << (states[id] = evolve(states[id]))
48
+ report(states[id] = evolve(states[id]))
49
49
  end
50
50
  end
51
51
 
@@ -478,7 +478,7 @@ module Riemann
478
478
  capabilities = initial_handshake_packet[5] | (initial_handshake_packet[8] << 16)
479
479
 
480
480
  ssl_flag = 1 << 11
481
- raise 'No TLS support' if (capabilities & ssl_flag).zero?
481
+ raise 'No TLS support' if capabilities.nobits?(ssl_flag)
482
482
 
483
483
  socket.write(['2000000185ae7f0000000001210000000000000000000000000000000000000000000000'].pack('H*'))
484
484
  tls_handshake(socket, uri.host)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Riemann
4
4
  module Tools # :nodoc:
5
- VERSION = '1.11.0'
5
+ VERSION = '1.12.0'
6
6
  end
7
7
  end
@@ -38,7 +38,8 @@ Gem::Specification.new do |spec|
38
38
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
39
39
  spec.require_paths = ['lib']
40
40
 
41
- spec.add_runtime_dependency 'json', '>= 1.8'
42
- spec.add_runtime_dependency 'optimist', '~> 3.0', '>= 3.0.0'
43
- spec.add_runtime_dependency 'riemann-client', '~> 1.1'
41
+ spec.add_dependency 'csv', '~> 3.0'
42
+ spec.add_dependency 'json', '>= 1.8'
43
+ spec.add_dependency 'optimist', '~> 3.0', '>= 3.0.0'
44
+ spec.add_dependency 'riemann-client', '~> 1.1'
44
45
  end
metadata CHANGED
@@ -1,15 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kingsbury
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-07-07 00:00:00.000000000 Z
10
+ date: 2025-01-15 00:00:00.000000000 Z
12
11
  dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: csv
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '3.0'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: '3.0'
13
26
  - !ruby/object:Gem::Dependency
14
27
  name: json
15
28
  requirement: !ruby/object:Gem::Requirement
@@ -233,7 +246,6 @@ metadata:
233
246
  homepage_uri: https://github.com/aphyr/riemann-tools
234
247
  source_code_uri: https://github.com/aphyr/riemann-tools
235
248
  changelog_uri: https://github.com/aphyr/riemann-tools
236
- post_install_message:
237
249
  rdoc_options: []
238
250
  require_paths:
239
251
  - lib
@@ -248,8 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
260
  - !ruby/object:Gem::Version
249
261
  version: '0'
250
262
  requirements: []
251
- rubygems_version: 3.5.13
252
- signing_key:
263
+ rubygems_version: 3.6.2
253
264
  specification_version: 4
254
265
  summary: Utilities which submit events to Riemann.
255
266
  test_files: []