technologic 0.25.4 → 0.25.5

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: 7cd57de02d8a86f3c7a1911a8236379b92fe9609cbf84e09b1b69714f312b220
4
+ data.tar.gz: e2af80cc1e626c02fe427871beb6732a87f79b342588ce172ce1ad6cbd3dbbff
5
5
  SHA512:
6
- metadata.gz: ca470eb838c5a5471917d209a21bb6a3271d6af5f5a0f88a79457962e125c993c15842e14a54a2acd8ecd38d48939e8d98f44e6e2ae5b2afe94df266e63b3371
7
- data.tar.gz: 670c737b0cc202fd15047f7d55033f23abec8a40a4365aa954fa3963af8b4f36d43c23934a41eaba7257c46ad481a38448545a0645a56730270f2f32d26ddc09
6
+ metadata.gz: 29b2e092e4819112e8b7befd3a18ee971fedad28d7e17c118e72092dd0f540e6a6f264802e66d2110021cdcfe16ab79c562a9be288eac42feba7efa680e7e5dd
7
+ data.tar.gz: 111932ca84f04d71bbf12e9b6fb8ac196d8c685808d0832f8b8a1317181872a275f44f4e499e6304539bfdcd36cecebb7bbbaf80e2e999f08969cba80d8f18c4
data/lib/technologic.rb CHANGED
@@ -73,8 +73,10 @@ module Technologic
73
73
  def surveil(event, severity: :info, **data, &block)
74
74
  raise LocalJumpError unless block_given?
75
75
 
76
- instrument(severity, "#{event}_started", **data)
77
- instrument(severity, "#{event}_finished", &block)
76
+ raise ArgumentError, "Invalid severity: #{severity}" unless severity.to_sym.in?(SEVERITIES)
77
+
78
+ __send__(severity, "#{event}_started", **data)
79
+ __send__(severity, "#{event}_finished", &block)
78
80
  end
79
81
 
80
82
  SEVERITIES.each do |severity|
@@ -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.5"
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.5
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-02-24 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.5
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.5
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.5
91
91
  post_install_message:
92
92
  rdoc_options: []
93
93
  require_paths: