traces 0.6.1 → 0.7.0
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/lib/traces/provider.rb +7 -2
- data/lib/traces/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +59 -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: b772ba31eff5f29bc6ac7c854709194783ea4005ce12f6d7030fa02ad3f8f281
|
4
|
+
data.tar.gz: e080e451e146d7d660b4f2f4b0be503bc3c9e087759ec85e303164d0170991b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c850a6dc1ec23c2bf6fc8a320fbe00f65837e0931f34ee8b9b86a8d9e492b44b9aebd7e402e5b05637ddb5750d7ef5c5a72346b426efcc9a15fba753828c6778
|
7
|
+
data.tar.gz: f1f906387a4de0a53ae71a5ec72a6951cce247e1cd31376a5b0532a5ba0c7a9d95cff94fedf60f468370b8db018b23566a3a81287c3e6b466f17e56dd1baeea8
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/traces/provider.rb
CHANGED
@@ -28,18 +28,23 @@ module Traces
|
|
28
28
|
self.const_defined?(:Backend)
|
29
29
|
end
|
30
30
|
|
31
|
-
# A module which contains tracing specific wrappers.
|
32
31
|
module Provider
|
32
|
+
end
|
33
|
+
|
34
|
+
module Singleton
|
35
|
+
# A module which contains tracing specific wrappers.
|
33
36
|
def traces_provider
|
34
37
|
@traces_provider ||= Module.new
|
35
38
|
end
|
36
39
|
end
|
37
40
|
|
41
|
+
private_constant :Singleton
|
42
|
+
|
38
43
|
# Bail out if there is no backend configured.
|
39
44
|
if self.enabled?
|
40
45
|
# Extend the specified class in order to emit traces.
|
41
46
|
def self.Provider(klass, &block)
|
42
|
-
klass.extend(
|
47
|
+
klass.extend(Singleton)
|
43
48
|
|
44
49
|
provider = klass.traces_provider
|
45
50
|
provider.prepend(Backend::Interface)
|
data/lib/traces/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: traces
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -37,8 +37,64 @@ cert_chain:
|
|
37
37
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
38
38
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
39
39
|
-----END CERTIFICATE-----
|
40
|
-
date: 2022-
|
41
|
-
dependencies:
|
40
|
+
date: 2022-09-05 00:00:00.000000000 Z
|
41
|
+
dependencies:
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: bake-test
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0.2'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0.2'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: bake-test-external
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0.2'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0.2'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: covered
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0.16'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0.16'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: sus
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - "~>"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0.13'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0.13'
|
42
98
|
description:
|
43
99
|
email:
|
44
100
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|