metrics 0.4.0 → 0.5.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: 3a2ae18845e5f36876e4be3ccdaa594c7f1ca02d1e63078ddc5e2b20f286540f
4
- data.tar.gz: 66ab5ed27779812154b07212805ee49c40b665ecc677ac76d254273d057e3dbe
3
+ metadata.gz: e702c99fcc40f6be98ab5cab1d6ff490fbcd6bd6cf1d792a643f45573c4cd710
4
+ data.tar.gz: 35ec716809e70775717f18bc10a4f70165cad91a1bbd076b200f847c812c764c
5
5
  SHA512:
6
- metadata.gz: 9839b3da2f7099150df44e2702124930c78b6303272edf22e442ac71c2a6cbc0b27578df3aeb583b54c640d7c2d4d06eada949df33841243a97809fcb9f3b589
7
- data.tar.gz: d74a35a9f12871bd92f8d72fa630e798c5380ce1635b02e8ac41460986e5b4428357ee5940eda5d245aa3715c344f13091c633d419d7dfe6e666686e75536a8e
6
+ metadata.gz: bc4627290512e876360564aae30dc4319cd0568a31826c3b28b2773a981121d684a4494f49fc2d8d2b3bd16d19807b9b22440505cb58e8b95fd4f4a68cd60c4c
7
+ data.tar.gz: fc270ec8d5d3afea0358482e981329f74639a27bdaf5e66a1b6e3b2d014e6dbc8f0602584ed5446e39d9ad4cd33dad68539821b276b3ec817696d0efca661029
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021, by Samuel Williams.
4
+ # Copyright, 2021-2022, by Samuel Williams.
5
5
 
6
6
  require 'console'
7
7
  require_relative '../metric'
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021, by Samuel Williams.
4
+ # Copyright, 2021-2022, by Samuel Williams.
5
5
 
6
6
  module Metrics
7
7
  # Require a specific trace backend.
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021, by Samuel Williams.
4
+ # Copyright, 2021-2022, by Samuel Williams.
5
5
 
6
6
  module Metrics
7
7
  class Metric
@@ -11,6 +11,9 @@ module Metrics
11
11
  self.const_defined?(:Backend)
12
12
  end
13
13
 
14
+ module Provider
15
+ end
16
+
14
17
  # A module which contains tracing specific wrappers.
15
18
  module Singleton
16
19
  def metrics_provider
@@ -31,7 +34,9 @@ module Metrics
31
34
 
32
35
  klass.prepend(provider)
33
36
 
34
- provider.module_exec(&block)
37
+ provider.module_exec(&block) if block_given?
38
+
39
+ return provider
35
40
  end
36
41
  else
37
42
  def self.Provider(klass, &block)
data/lib/metrics/tags.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021, by Samuel Williams.
4
+ # Copyright, 2021-2022, by Samuel Williams.
5
5
 
6
6
  require_relative 'backend'
7
7
 
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2021-2022, by Samuel Williams.
5
5
 
6
6
  module Metrics
7
- VERSION = "0.4.0"
7
+ VERSION = "0.5.0"
8
8
  end
data/lib/metrics.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021, by Samuel Williams.
4
+ # Copyright, 2021-2022, by Samuel Williams.
5
5
 
6
6
  require_relative 'metrics/version'
7
7
  require_relative 'metrics/provider'
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -37,7 +37,7 @@ cert_chain:
37
37
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
38
38
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
39
39
  -----END CERTIFICATE-----
40
- date: 2022-09-05 00:00:00.000000000 Z
40
+ date: 2022-11-09 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: bake-test
metadata.gz.sig CHANGED
Binary file