cmetrics 0.2.3 → 0.2.4

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: a6d09be4c3b10316bbbda3ea927a6324c61adf0d0f73d989d0ace8b420fe7e24
4
- data.tar.gz: 3a58f1d603231ba1c83515fd80e46eeb0a54fd738a3c4b1056e300d4ace8d437
3
+ metadata.gz: 5f7a2ed53936604ee92cc24e2aa15bfa07389c54e1612170c266d8953fb113a2
4
+ data.tar.gz: e25ebd242bbfc84b994545675c3de1fa66276e643b57d6acaff2e8009e611c89
5
5
  SHA512:
6
- metadata.gz: 21df0101a50fe8669623155eaccd4f8a1fc5da5be72967a710d308142b749765380dd5497ff2e5cec767eb38ccc4868b6c8845483ac2c28d2ea73c6f1e17a417
7
- data.tar.gz: bde2f3c1b4a9791a84b001d40f1f4b10cdba546cab2f252071c46f08e3104763ae08f96db889b1e719b1609ec65374f2c656e4973fde39643911582e640efa9e
6
+ metadata.gz: 3848618b6b384afb7867db62133784c9492335757f53f92641c11a75ee82269a9a21150a8a73e81361ff2a6be252bfc6477c2269392ce75cb50f356d62b2ebb9
7
+ data.tar.gz: 360bf386dfb723f5daf2cf14e028c23ed7a546aa9e51a5ef9a403c19ffc9f380199f47eed82f0e8978991b939e64418a38839e88b4a333680888a5e64ed9842b
@@ -55,11 +55,11 @@ counter_free(void* ptr)
55
55
  {
56
56
  struct CMetricsCounter* cmetricsCounter = (struct CMetricsCounter*)ptr;
57
57
 
58
- if (!cmetricsCounter) {
59
- if (!cmetricsCounter->counter) {
58
+ if (cmetricsCounter) {
59
+ if (cmetricsCounter->counter) {
60
60
  cmt_counter_destroy(cmetricsCounter->counter);
61
61
  }
62
- if (!cmetricsCounter->instance) {
62
+ if (cmetricsCounter->instance) {
63
63
  cmt_destroy(cmetricsCounter->instance);
64
64
  }
65
65
  }
@@ -55,11 +55,11 @@ gauge_free(void* ptr)
55
55
  {
56
56
  struct CMetricsGauge* cmetricsGauge = (struct CMetricsGauge*)ptr;
57
57
 
58
- if (!cmetricsGauge) {
59
- if (!cmetricsGauge->gauge) {
58
+ if (cmetricsGauge) {
59
+ if (cmetricsGauge->gauge) {
60
60
  cmt_gauge_destroy(cmetricsGauge->gauge);
61
61
  }
62
- if (!cmetricsGauge->instance) {
62
+ if (cmetricsGauge->instance) {
63
63
  cmt_destroy(cmetricsGauge->instance);
64
64
  }
65
65
  }
@@ -46,8 +46,8 @@ serde_free(void* ptr)
46
46
  {
47
47
  struct CMetricsSerde* cmetricsSerde = (struct CMetricsSerde*)ptr;
48
48
 
49
- if (!cmetricsSerde) {
50
- if (!cmetricsSerde->instance) {
49
+ if (cmetricsSerde) {
50
+ if (cmetricsSerde->instance) {
51
51
  cmt_destroy(cmetricsSerde->instance);
52
52
  }
53
53
  }
@@ -55,11 +55,11 @@ untyped_free(void* ptr)
55
55
  {
56
56
  struct CMetricsUntyped* cmetricsUntyped = (struct CMetricsUntyped*)ptr;
57
57
 
58
- if (!cmetricsUntyped) {
59
- if (!cmetricsUntyped->untyped) {
58
+ if (cmetricsUntyped) {
59
+ if (cmetricsUntyped->untyped) {
60
60
  cmt_untyped_destroy(cmetricsUntyped->untyped);
61
61
  }
62
- if (!cmetricsUntyped->instance) {
62
+ if (cmetricsUntyped->instance) {
63
63
  cmt_destroy(cmetricsUntyped->instance);
64
64
  }
65
65
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CMetrics
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmetrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi Hatake
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-17 00:00:00.000000000 Z
11
+ date: 2021-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -132,7 +132,7 @@ licenses:
132
132
  metadata:
133
133
  homepage_uri: https://github.com/calyptia/cmetrics-ruby
134
134
  changelog_uri: https://github.com/calyptia/cmetrics-ruby/blob/master/CHANGELOG.md
135
- post_install_message:
135
+ post_install_message:
136
136
  rdoc_options: []
137
137
  require_paths:
138
138
  - lib
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  requirements: []
150
150
  rubygems_version: 3.2.22
151
- signing_key:
151
+ signing_key:
152
152
  specification_version: 4
153
153
  summary: C binding for cmetric library.
154
154
  test_files: []