deimos-ruby 1.19.5 → 1.19.7

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: 6be8380428e48dd415fd6ec606832fab6204a280effc65e65e967ef72dca1c32
4
- data.tar.gz: 1096e0da58a961c3875b5d8545a6c226ba60ebacd5c60639f09acce4dcb73374
3
+ metadata.gz: 786ff723866bcb2f983f384e7dd8dbf6675ceb8c454a80d58a7c5eed7e730f3e
4
+ data.tar.gz: 7bcd9693ce7fe0db27a63285c9ebc47a2299449c95f5526806fe4e2cb5be4f24
5
5
  SHA512:
6
- metadata.gz: 7770d8bf7eb8c9b1db538891a025586411c24c076cfe49474e312ca859386366d24cf57007c0e1230fa98dd2aa17ca3b0fc1c0f9324003918a7df00e0738944f
7
- data.tar.gz: '02019bdab7dd827f9373de64250c10119ab56dcf441369f3bec7c023e3c524f403fcdb35202c4e92cdfa0b66175ca17905c86ab407cc8f45fea49bad1d33c6b5'
6
+ metadata.gz: 8fe1b840ebb4255e8df49e0600d5b8a85aad3c40807170b557cb43a236ed7b53af83a0348f8c3e6d4511f87987ade29be1855cf9f3c4a88bf7d254ba556c460e
7
+ data.tar.gz: 43b43d127aff1b275453d86bd46ea38097a231419863afee300adb2914ef8a9734d086871d3dc4a96ae8148ddb7ab1423f113ca3fc6ff6d39dc411428a6f8472
data/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## UNRELEASED
9
9
 
10
+ # 1.19.7 - 2023-04-17
11
+
12
+ - Fix: Update Datadog metrics backend so it doesn't crash on newer versions of dogstatsd-ruby
13
+
14
+ # 1.19.6 - 2023-04-04
15
+
16
+ - Fix: Fixing bug when having a not standard primary_key
17
+
10
18
  # 1.19.5 - 2023-03-29
11
19
 
12
20
  - Feature: add additional setting to Deimos.config - payload_log
data/deimos-ruby.gemspec CHANGED
@@ -27,8 +27,8 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency('activerecord-import')
28
28
  spec.add_development_dependency('avro', '~> 1.9')
29
29
  spec.add_development_dependency('database_cleaner', '~> 1.7')
30
- spec.add_development_dependency('ddtrace', '~> 0.11')
31
- spec.add_development_dependency('dogstatsd-ruby', '~> 4.2')
30
+ spec.add_development_dependency('ddtrace', '>= 0.11')
31
+ spec.add_development_dependency('dogstatsd-ruby', '>= 4.2')
32
32
  spec.add_development_dependency('guard', '~> 2')
33
33
  spec.add_development_dependency('guard-rspec', '~> 4')
34
34
  spec.add_development_dependency('guard-rubocop', '~> 1')
@@ -50,8 +50,10 @@ module Deimos
50
50
  {}
51
51
  elsif key.is_a?(Hash)
52
52
  @key_converter.convert(key)
53
- else
53
+ elsif self.class.config[:key_field].nil?
54
54
  { @klass.primary_key => key }
55
+ else
56
+ { self.class.config[:key_field] => key }
55
57
  end
56
58
  end
57
59
 
@@ -16,10 +16,10 @@ module Deimos
16
16
  logger.info("DatadogMetricsProvider configured with: #{config}")
17
17
  @client = ::Datadog::Statsd.new(
18
18
  config[:host_ip],
19
- config[:host_port]
19
+ config[:host_port],
20
+ tags: config[:tags],
21
+ namespace: config[:namespace]
20
22
  )
21
- @client.tags = config[:tags]
22
- @client.namespace = config[:namespace]
23
23
  end
24
24
 
25
25
  # :nodoc:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deimos
4
- VERSION = '1.19.5'
4
+ VERSION = '1.19.7'
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.19.5
4
+ version: 1.19.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-29 00:00:00.000000000 Z
11
+ date: 2023-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avro_turf
@@ -144,28 +144,28 @@ dependencies:
144
144
  name: ddtrace
145
145
  requirement: !ruby/object:Gem::Requirement
146
146
  requirements:
147
- - - "~>"
147
+ - - ">="
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0.11'
150
150
  type: :development
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  requirements:
154
- - - "~>"
154
+ - - ">="
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0.11'
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: dogstatsd-ruby
159
159
  requirement: !ruby/object:Gem::Requirement
160
160
  requirements:
161
- - - "~>"
161
+ - - ">="
162
162
  - !ruby/object:Gem::Version
163
163
  version: '4.2'
164
164
  type: :development
165
165
  prerelease: false
166
166
  version_requirements: !ruby/object:Gem::Requirement
167
167
  requirements:
168
- - - "~>"
168
+ - - ">="
169
169
  - !ruby/object:Gem::Version
170
170
  version: '4.2'
171
171
  - !ruby/object:Gem::Dependency