deimos-ruby 1.12.5 → 1.12.6

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: a9de87883c263b11abeb45f86150cadcdf35566044bf1e579d6b1d6b775020ad
4
- data.tar.gz: 5a686f11c2d72cbd7e0cbbd3238ad82963f7128ef57096c5c676979cdd42beac
3
+ metadata.gz: 945958ca7b49192f533a47eac766f4ca463d7ed85702b2c85b41fc22d8aaeef1
4
+ data.tar.gz: 8e7a6bf75f733d1903810a85e6ccf0185a868d8dbc07a1544d210bb160135417
5
5
  SHA512:
6
- metadata.gz: '027995a556c6d790a40e489ffad8e8eb64b927137cfce39ab09c855fbcae875376563eb4349edc1fbe111e491fc9651bed3eced08e1ab79ef9c40f1ea23da95c'
7
- data.tar.gz: 673ff51ab95750439280f63398e86f31c5f441f6ef528ec933a54fa9f73a3211aafb09fb564f4944586eb7fe178bb6b0e8432d0e33308113af84adbedf59fe5f
6
+ metadata.gz: 220de8bc9a38b50affdc56e0f25c6a185ffc1646cf39de21478b6906fc1fcf3bf20c197d4105132ecc7cae004e75498299ebc104fcb8d46f530fe8a67ac92883
7
+ data.tar.gz: fd89136dea1f76acb4de3bda22ee06e1d5ef88dc827a2690b588d2e84284584041818bbb257b71db99212586005a4b6818f89e8f627dc727e2eb8ba1b144c94f
data/CHANGELOG.md CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## UNRELEASED
9
9
 
10
+ # 1.12.6 - 2022-03-14
11
+
12
+ - Fix NameError when using Datadog Metrics
13
+ - Fix unwanted STDOUT output when loading the main `Deimos` module
14
+
10
15
  # 1.12.5 - 2022-03-09
11
16
 
12
17
  - Allow use of new avro_turf versions where child schemas are not listed with the top level schemas
data/README.md CHANGED
@@ -934,8 +934,8 @@ The following metrics are reported:
934
934
 
935
935
  ### Configuring Metrics Providers
936
936
 
937
- See the `metrics` field under [Configuration](CONFIGURATION.md).
938
- View all available Metrics Providers [here](lib/deimos/metrics/metrics_providers)
937
+ See the `metrics` field under [Configuration](#configuration).
938
+ View all available Metrics Providers [here](lib/deimos/metrics)
939
939
 
940
940
  ### Custom Metrics Providers
941
941
 
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'deimos'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
@@ -347,11 +347,11 @@ module Deimos
347
347
 
348
348
  # The configured metrics provider.
349
349
  # @return [Metrics::Provider]
350
- setting :metrics, Metrics::Mock.new
350
+ setting :metrics, default_proc: proc { Metrics::Mock.new }
351
351
 
352
352
  # The configured tracing / APM provider.
353
353
  # @return [Tracing::Provider]
354
- setting :tracer, Tracing::Mock.new
354
+ setting :tracer, default_proc: proc { Tracing::Mock.new }
355
355
 
356
356
  setting :db_producer do
357
357
 
@@ -13,7 +13,7 @@ module Deimos
13
13
  raise 'Metrics config must specify namespace' if config[:namespace].nil?
14
14
 
15
15
  logger.info("DatadogMetricsProvider configured with: #{config}")
16
- @client = Datadog::Statsd.new(
16
+ @client = ::Datadog::Statsd.new(
17
17
  config[:host_ip],
18
18
  config[:host_port]
19
19
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deimos
4
- VERSION = '1.12.5'
4
+ VERSION = '1.12.6'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deimos-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.5
4
+ version: 1.12.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-09 00:00:00.000000000 Z
11
+ date: 2022-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avro_turf
@@ -348,6 +348,7 @@ description:
348
348
  email:
349
349
  - daniel.orner@wishabi.com
350
350
  executables:
351
+ - console
351
352
  - deimos
352
353
  extensions: []
353
354
  extra_rdoc_files: []
@@ -370,6 +371,7 @@ files:
370
371
  - LICENSE.md
371
372
  - README.md
372
373
  - Rakefile
374
+ - bin/console
373
375
  - bin/deimos
374
376
  - deimos-ruby.gemspec
375
377
  - docker-compose.yml