nulogy_message_bus_consumer 0.4.0 → 1.0.0.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nulogy_message_bus_consumer/message.rb +13 -11
- data/lib/nulogy_message_bus_consumer/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: 1d17557a978d8762a83afcb1a8027296854d516cde57540243d48c80cc46c012
|
4
|
+
data.tar.gz: 02c45bfab242f35a0143d090a08387f80db0030854a28b161792cb09efded53c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c7ef5e49a3aff7e09e963592fc79f7435a29d3567764d0cec1e98d52fea31d18f1ee2ea4b3d429c2e550307f0fab539733d700716b89b45c05cfee269e87955
|
7
|
+
data.tar.gz: 0be71a225c18e458d440f80eefadfb5b1a841ad57d619af434e12832c48ff31c1ce2614aaf5786330e2282e418838a223f91c82ebae74cedda3801446620fbb2
|
@@ -1,16 +1,17 @@
|
|
1
1
|
module NulogyMessageBusConsumer
|
2
2
|
class Message
|
3
|
-
attr_reader :
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
3
|
+
attr_reader :company_uuid,
|
4
|
+
:created_at,
|
5
|
+
:event_data,
|
6
|
+
:event_data_unparsed,
|
7
|
+
:id,
|
8
|
+
:key,
|
9
|
+
:offset,
|
10
|
+
:partition,
|
11
|
+
:subscription_id,
|
12
|
+
:timestamp,
|
13
|
+
:topic,
|
14
|
+
:type
|
14
15
|
|
15
16
|
def initialize(attrs = {})
|
16
17
|
attrs.each { |key, value| instance_variable_set("@#{key}", value) }
|
@@ -36,6 +37,7 @@ module NulogyMessageBusConsumer
|
|
36
37
|
company_uuid: envelope_data[:company_uuid] || envelope_data[:tenant_id],
|
37
38
|
timestamp: kafka_message.timestamp,
|
38
39
|
topic: kafka_message.topic,
|
40
|
+
type: envelope_data[:type],
|
39
41
|
created_at: envelope_data[:created_at]
|
40
42
|
)
|
41
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nulogy_message_bus_consumer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.alpha
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nulogy
|
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: activerecord
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - '='
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 6.0.3.
|
131
|
+
version: 6.0.3.5
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - '='
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 6.0.3.
|
138
|
+
version: 6.0.3.5
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rake-release
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -284,9 +284,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
284
284
|
version: '0'
|
285
285
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
286
286
|
requirements:
|
287
|
-
- - "
|
287
|
+
- - ">"
|
288
288
|
- !ruby/object:Gem::Version
|
289
|
-
version:
|
289
|
+
version: 1.3.1
|
290
290
|
requirements: []
|
291
291
|
rubygems_version: 3.0.3
|
292
292
|
signing_key:
|