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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52906af1bac711cc30787ad3a9a71676a203976e6d43a06c8b63a0a9cd17ccb8
4
- data.tar.gz: 6472e4fd072d628adf682778885544c71bdfd99265423c375ea8912e99025ec6
3
+ metadata.gz: 7d5e4bf5e91d2f1f2f309f9a4f6bddf33f136cd206fa2a6790d269eb1ab383de
4
+ data.tar.gz: 0c0559e03b83fffa037435bacfe5a7e95ff99acc31fa264514ad174361d61c21
5
5
  SHA512:
6
- metadata.gz: ca470eb838c5a5471917d209a21bb6a3271d6af5f5a0f88a79457962e125c993c15842e14a54a2acd8ecd38d48939e8d98f44e6e2ae5b2afe94df266e63b3371
7
- data.tar.gz: 670c737b0cc202fd15047f7d55033f23abec8a40a4365aa954fa3963af8b4f36d43c23934a41eaba7257c46ad481a38448545a0645a56730270f2f32d26ddc09
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
- ActiveSupport::Deprecation.warn("Technologic#instrument is deprecated. Instead, use the corresponding severity-level convenience method (#info, #error etc)")
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
- instrument(severity, "#{event}_started", **data)
77
- instrument(severity, "#{event}_finished", &block)
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
- instrument severity, exception.name.demodulize, message: message, **data, &block
100
+ _tl_instrument severity, exception.name.demodulize, message: message, **data, &block
101
101
  raise exception, message
102
102
  end
103
103
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Technologic
4
4
  # This constant is managed by spicerack
5
- VERSION = "0.25.4"
5
+ VERSION = "0.25.8.1"
6
6
  end
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
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-02-17 00:00:00.000000000 Z
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.4
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.4
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.4
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.4
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