kybus-core 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kybus/dry/daemon.rb +2 -2
- data/lib/kybus/dry/resource_injector.rb +8 -0
- data/lib/kybus/exceptions.rb +6 -4
- data/lib/kybus/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd55b83dbc2c6e862925f961aa4fec0cb29203e259e272594bd88d1ec3d7c129
|
4
|
+
data.tar.gz: f534b7e922576f5aa7441cf8e9936a47aa0c5b8b0de660e9735dbca1d846449f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4647c134aae920e83eba384e3404a9820ee2a604875591e157f69a8ba4328039ef4894a23b869df6d01da876935ca896962ade60e9cdc5f5ceeb5b5e770a0cf3
|
7
|
+
data.tar.gz: 43a844b37b6479368c0ebbc67a9b027c4e33d595bb0bdcc7007e7182a6dfbeb227cc34e60367a851147222b386f7f053271d691b9dc0dcad3a6dd499716081d2
|
data/lib/kybus/dry/daemon.rb
CHANGED
@@ -13,8 +13,8 @@ module Kybus
|
|
13
13
|
class Daemon
|
14
14
|
include Kybus::Logger
|
15
15
|
|
16
|
-
def initialize(wait_time, attach, retry_on_failure = false)
|
17
|
-
@proc =
|
16
|
+
def initialize(wait_time, attach, retry_on_failure = false, &block)
|
17
|
+
@proc = block
|
18
18
|
@wait_time = wait_time
|
19
19
|
@attach = attach
|
20
20
|
@retry_on_failure = retry_on_failure
|
data/lib/kybus/exceptions.rb
CHANGED
@@ -17,10 +17,12 @@ module Kybus
|
|
17
17
|
# @param data. Contains additional data to detail the error.
|
18
18
|
class AntBaseException < StandardError
|
19
19
|
attr_reader :message, :code, :data
|
20
|
+
|
20
21
|
def initialize(message, code, data)
|
21
22
|
@message = message
|
22
23
|
@code = code
|
23
24
|
@data = data
|
25
|
+
super(message)
|
24
26
|
end
|
25
27
|
|
26
28
|
def to_log_format
|
@@ -29,10 +31,10 @@ module Kybus
|
|
29
31
|
|
30
32
|
def to_h
|
31
33
|
{
|
32
|
-
message
|
33
|
-
code
|
34
|
-
data
|
35
|
-
backtrace:
|
34
|
+
message:,
|
35
|
+
code:,
|
36
|
+
data:,
|
37
|
+
backtrace:
|
36
38
|
}
|
37
39
|
end
|
38
40
|
end
|
data/lib/kybus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kybus-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gilberto Vargas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kybus-logger
|
@@ -155,7 +155,8 @@ files:
|
|
155
155
|
homepage: https://github.com/tachomex/kybus
|
156
156
|
licenses:
|
157
157
|
- MIT
|
158
|
-
metadata:
|
158
|
+
metadata:
|
159
|
+
rubygems_mfa_required: 'true'
|
159
160
|
post_install_message:
|
160
161
|
rdoc_options: []
|
161
162
|
require_paths:
|
@@ -171,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
172
|
- !ruby/object:Gem::Version
|
172
173
|
version: '0'
|
173
174
|
requirements: []
|
174
|
-
rubygems_version: 3.
|
175
|
+
rubygems_version: 3.3.7
|
175
176
|
signing_key:
|
176
177
|
specification_version: 4
|
177
178
|
summary: Kybus framework core functionality
|