technologic 0.25.4 → 0.25.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/technologic.rb +6 -6
- data/lib/technologic/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d5e4bf5e91d2f1f2f309f9a4f6bddf33f136cd206fa2a6790d269eb1ab383de
|
4
|
+
data.tar.gz: 0c0559e03b83fffa037435bacfe5a7e95ff99acc31fa264514ad174361d61c21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23507662958bc47115496f3ec90bc0ffa0a19fefd4e068e1a97c5ca02902d7148e1cb22805b41a9931b3e01a0b1c48707a08114d9cda0bdf9d382fccdc7da547
|
7
|
+
data.tar.gz: 6d02a056f15015039b0a6c59be29eb96c93f6c20403c4344606fd846ef8e10acdf9e873eb9ca9cd3383f2f786961c93dfff874fb849ee7d098bc730c5d0ee588
|
data/lib/technologic.rb
CHANGED
@@ -56,9 +56,7 @@ module Technologic
|
|
56
56
|
# Targeted workaround for ActiveJob#instrument in Rails 6.1+
|
57
57
|
return super if defined?(ActiveJob) && self.class <= ActiveJob::Base && ActiveJob.version >= ACTIVEJOB_WORKAROUND_FIRST_VERSION
|
58
58
|
|
59
|
-
|
60
|
-
|
61
|
-
_tl_instrument(*args, **opts, &block)
|
59
|
+
self.class.instrument(*args, **opts, &block)
|
62
60
|
end
|
63
61
|
|
64
62
|
module ClassMethods
|
@@ -73,8 +71,10 @@ module Technologic
|
|
73
71
|
def surveil(event, severity: :info, **data, &block)
|
74
72
|
raise LocalJumpError unless block_given?
|
75
73
|
|
76
|
-
|
77
|
-
|
74
|
+
raise ArgumentError, "Invalid severity: #{severity}" unless severity.to_sym.in?(SEVERITIES)
|
75
|
+
|
76
|
+
_tl_instrument(severity, "#{event}_started", **data)
|
77
|
+
_tl_instrument(severity, "#{event}_finished", &block)
|
78
78
|
end
|
79
79
|
|
80
80
|
SEVERITIES.each do |severity|
|
@@ -97,7 +97,7 @@ module Technologic
|
|
97
97
|
|
98
98
|
raise exception
|
99
99
|
else
|
100
|
-
|
100
|
+
_tl_instrument severity, exception.name.demodulize, message: message, **data, &block
|
101
101
|
raise exception, message
|
102
102
|
end
|
103
103
|
end
|
data/lib/technologic/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: technologic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.25.
|
4
|
+
version: 0.25.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Garside
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.25.
|
33
|
+
version: 0.25.8.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.25.
|
40
|
+
version: 0.25.8.1
|
41
41
|
description: A clean and terse way to produce standardized, highly actionable, and
|
42
42
|
data-rich logs
|
43
43
|
email:
|
@@ -87,7 +87,7 @@ metadata:
|
|
87
87
|
homepage_uri: https://github.com/Freshly/spicerack/tree/master/technologic
|
88
88
|
source_code_uri: https://github.com/Freshly/spicerack/tree/master/technologic
|
89
89
|
changelog_uri: https://github.com/Freshly/spicerack/blob/master/technologic/CHANGELOG.md
|
90
|
-
documentation_uri: https://www.rubydoc.info/gems/technologic/0.25.
|
90
|
+
documentation_uri: https://www.rubydoc.info/gems/technologic/0.25.8.1
|
91
91
|
post_install_message:
|
92
92
|
rdoc_options: []
|
93
93
|
require_paths:
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
|
-
rubygems_version: 3.1.
|
106
|
+
rubygems_version: 3.1.6
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Logging system built on an extensible event triggering system requiring minimal
|