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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/bake/metrics/capture.rb +15 -0
- data/lib/metrics/backend/capture.rb +1 -1
- data/lib/metrics/version.rb +2 -2
- data.tar.gz.sig +0 -0
- metadata +4 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca116edcb88b4cf5469d30ccbfc5d4634d4049274f5c39ed66552de0f6472001
|
4
|
+
data.tar.gz: 37572eb583063d0fa59bff8c0f753a0d949efbe95ed3b2dac9ec988c8366a9ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/metrics/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|