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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7a2f6f3118c35e9f6b0f4cfebd87b96d0f17fbd391130953b560d61d642f73e
4
- data.tar.gz: 6ff5ee3e40fd44c96592fdba4c78b47b3c87aa4c16f753ef8e9acbf5af1b429e
3
+ metadata.gz: 1d17557a978d8762a83afcb1a8027296854d516cde57540243d48c80cc46c012
4
+ data.tar.gz: 02c45bfab242f35a0143d090a08387f80db0030854a28b161792cb09efded53c
5
5
  SHA512:
6
- metadata.gz: 80ee9d751672ab78511a130e22926f0d9f2e6abeb5ed5447baa5866180a75387bad43b7e4b292d300a2853176d6ed24df701b268c43c6c4495d3397fb5b62415
7
- data.tar.gz: 5aae3dc5540949b92e086c39b038dab2d2c2959535c777557279e70023e0ce76a6585881dfb293783aa55ebd9c1910b897f1f609ff257526bd7ebb4a8f393a18
6
+ metadata.gz: 8c7ef5e49a3aff7e09e963592fc79f7435a29d3567764d0cec1e98d52fea31d18f1ee2ea4b3d429c2e550307f0fab539733d700716b89b45c05cfee269e87955
7
+ data.tar.gz: 0be71a225c18e458d440f80eefadfb5b1a841ad57d619af434e12832c48ff31c1ce2614aaf5786330e2282e418838a223f91c82ebae74cedda3801446620fbb2
@@ -1,16 +1,17 @@
1
1
  module NulogyMessageBusConsumer
2
2
  class Message
3
- attr_reader :event_data
4
- attr_reader :event_data_unparsed
5
- attr_reader :id
6
- attr_reader :key
7
- attr_reader :offset
8
- attr_reader :partition
9
- attr_reader :subscription_id
10
- attr_reader :company_uuid
11
- attr_reader :timestamp
12
- attr_reader :topic
13
- attr_reader :created_at
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
@@ -1,3 +1,3 @@
1
1
  module NulogyMessageBusConsumer
2
- VERSION = "0.4.0"
2
+ VERSION = "1.0.0.alpha".freeze
3
3
  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.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-03-30 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: activerecord
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - '='
130
130
  - !ruby/object:Gem::Version
131
- version: 6.0.3.1
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.1
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: '0'
289
+ version: 1.3.1
290
290
  requirements: []
291
291
  rubygems_version: 3.0.3
292
292
  signing_key: