metrics 0.6.0 → 0.6.2

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: 3775c730581fa1814523cea022ac4bbbcf5b1cb3f52e0d2f35dd667d521675eb
4
- data.tar.gz: a8b3e43df8a40894e91112ee7e3c0d9743628a4b7f191cd4263b064283c21c30
3
+ metadata.gz: ca116edcb88b4cf5469d30ccbfc5d4634d4049274f5c39ed66552de0f6472001
4
+ data.tar.gz: 37572eb583063d0fa59bff8c0f753a0d949efbe95ed3b2dac9ec988c8366a9ff
5
5
  SHA512:
6
- metadata.gz: 621b704d21ef9901f9a5d4c5d044ff87c072b1bb72959317e7ac983cf6197b6d5e52ab9a1d43e56931841e4c96eb853fb8925d479b83a4c56ce75a341251d443
7
- data.tar.gz: 076a0cc98e045a97a7fef09eb0da44175a77af63753983e4c94f1dd686e3b6503d5797ce252652663326a06eb8938ce3e3b05d553ad97309232754bb24d61497
6
+ metadata.gz: 8d74331b742daa5c8d93f9c01104fc050866c112729b577a1e09bbdc22f4e8211539ec8a3802edfd6e00ab16c64d6050119c3f50591cc6c7c7e306777db3cba0
7
+ data.tar.gz: 89ef8a3540e7ddc7ecd069c3aa6e6d9ee0333ad4b6a2c3daf8373a4579318a5780ea8a99d03f9d530d99f24eb782699927d68870d3be63360a0d471292bce1dc
checksums.yaml.gz.sig CHANGED
Binary file
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Released under the MIT License.
4
+ # Copyright, 2023, by Samuel Williams.
5
+
6
+ # Enable capturing metrics.
7
+ def capture
8
+ ENV['METRICS_BACKEND'] = 'metrics/backend/capture'
9
+ require 'metrics'
10
+ end
11
+
12
+ # Generate a list of metrics that have been captured.
13
+ def list
14
+ Metrics::Backend::Capture.metrics.sort_by!{|metric| metric.name}
15
+ end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2022, by Samuel Williams.
4
+ # Copyright, 2023, by Samuel Williams.
5
5
 
6
6
  require 'console'
7
7
  require_relative '../metric'
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2022, by Samuel Williams.
4
+ # Copyright, 2021-2023, by Samuel Williams.
5
5
 
6
6
  module Metrics
7
- VERSION = "0.6.0"
7
+ VERSION = "0.6.2"
8
8
  end
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.6.0
4
+ version: 0.6.2
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: 2023-03-03 00:00:00.000000000 Z
40
+ date: 2023-03-04 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: bake-test
@@ -101,6 +101,7 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
+ - bake/metrics/capture.rb
104
105
  - lib/metrics.rb
105
106
  - lib/metrics/backend.rb
106
107
  - lib/metrics/backend/capture.rb
@@ -131,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
132
  - !ruby/object:Gem::Version
132
133
  version: '0'
133
134
  requirements: []
134
- rubygems_version: 3.4.7
135
+ rubygems_version: 3.4.6
135
136
  signing_key:
136
137
  specification_version: 4
137
138
  summary: Application metrics and instrumentation.
metadata.gz.sig CHANGED
Binary file