nats_messaging 0.0.3 → 0.0.5
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/nats_messaging/nats_service.rb +3 -0
- 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: 3ca8a44232bf1e4086d9cc5de329d1517d90bf9b6c774f2809c1bc71040667cc
|
4
|
+
data.tar.gz: 3329ac2260d106ce8a96d48d18ee2e0f0396a87477a3ab5ae57e074ef94d0dc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eddcac0f2150e306baebd4459bd97143b5c5b32920b5d3debaa5cfdc30af9107db4e7fee38f50759fa6e14c7328101094ec2a5232b4f5583ac66eb2b6176a9cf
|
7
|
+
data.tar.gz: 81c8ea8e44349024eed7c6c8a860d795a187c71410bf0bd040677ad686bf211c1e551449c220f7ee8bdc57409e21e477fe1506bdd674e82dd0dc18d495e83429
|
@@ -36,8 +36,10 @@ module NatsMessaging
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def subscribe_to_subject(subject, durable_name = "durable_name")
|
39
|
+
puts "suscribiendo a #{subject} keyword"
|
39
40
|
Rails.logger.info "keyword #{@nats.connected_server}"
|
40
41
|
@js.subscribe(subject, durable: durable_name) do |msg|
|
42
|
+
puts "mensaje recibido en #{subject}: #{msg.data} keyword"
|
41
43
|
Rails.logger.info "Message received on #{subject}: #{msg.data}"
|
42
44
|
msg.ack
|
43
45
|
end
|
@@ -84,4 +86,5 @@ module NatsMessaging
|
|
84
86
|
Rails.logger.info "Stored subscription for #{subject}: #{@subscriptions[subject].inspect}"
|
85
87
|
Rails.logger.info "Listening on #{subject} with reply message: #{reply_message}"
|
86
88
|
end
|
89
|
+
end
|
87
90
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nats_messaging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bea Graboloza
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A service to send and receive messages on a Rails application using NATS
|
14
14
|
email: beatriz.graboloza@bpo-advisors.net
|