k8-lib 0.0.9 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/k8/lib/version.rb +1 -1
- data/lib/k8/lib.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c80354aab0ee6140bf73b73e9c0b390beaad7d98ff819c8730711a3be04b434e
|
4
|
+
data.tar.gz: 27295d6dc30cda6e0dd504e394cda1e6892501463d1049f1727290b7ce69ae06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f2c7a3c059f1cff3f923c837d21efe2b7a0fc974141afb5aed05ffeeb86c3f7adc6782912f4c63f4f48d9f87cae342f0941c4e5b4047b7150a5486d7a8e4877
|
7
|
+
data.tar.gz: f107d5c579d18ab44ec850a88237a95b5209374174a2cd0aac933e7c07593b666d16b8ac417080d34589811ec5769e211358986e86935914704eaa577724c03c
|
data/lib/k8/lib/version.rb
CHANGED
data/lib/k8/lib.rb
CHANGED
@@ -22,13 +22,13 @@ module K8
|
|
22
22
|
end
|
23
23
|
|
24
24
|
|
25
|
-
def produce(message, partition_key = '')
|
25
|
+
def produce(message, t, partition_key = '')
|
26
26
|
# This will queue the two messages in the internal buffer.
|
27
27
|
# DeliveryBoy.produce(comment.to_json, topic: "comments")
|
28
28
|
if partition_key.nil? || partition_key.empty?
|
29
|
-
DeliveryBoy.produce(message.to_json, topic: topic_name)
|
29
|
+
DeliveryBoy.produce(message.to_json, topic: (t || topic_name)
|
30
30
|
else
|
31
|
-
DeliveryBoy.produce(message.to_json, topic: topic_name, partition_key: partition_key)
|
31
|
+
DeliveryBoy.produce(message.to_json, topic: (t || topic_name), partition_key: partition_key)
|
32
32
|
end
|
33
33
|
|
34
34
|
# This will deliver all messages in the buffer to Kafka.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: k8-lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Siddharth Shah
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: delivery_boy
|