renote_dac 0.0.147 → 0.0.149

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: 250a34203a19ff80df6d1ec5c5fa216f3a6e7cb53968adc5633a09261ca7411b
4
- data.tar.gz: 1e96658c980ec5cc5eb0a339572dc452fc64f39034d858322980e99f8526707b
3
+ metadata.gz: 74976c3aa9ea913bf79b9a6618202ec30ac9a8595c55bb056ddd1c35102bcf4e
4
+ data.tar.gz: 5165dbbe90d1b69726a8a4bae70d3027b489ead4ffd39f9965bf9bedc9d98a2d
5
5
  SHA512:
6
- metadata.gz: 5ba216c612832119e544071508b6f0d13664cbc3c2a99d158bd5073285f2ba59016db9ab88e2ef49fb10eaf1ab24252f265ecf2daf7e6cde901d40ee2690adc9
7
- data.tar.gz: 7c6b921ddedd3d8e3265eb1e28c0cd7d362722907e6fe9dd77815ab01655e149381f650b7e9e0e26e6394eab5c4e7e968595f44196248d2d01adf3a0abaaac22
6
+ metadata.gz: b97cda15c0a4e382df9e4dbad83f1569097eaed82cb34f622636a448440fbaef18d07d363f48a38f62b55671ffaacdd516b8b76cc91296d89ee62a8ed72e4396
7
+ data.tar.gz: 371957fd7f2defddf4f1d4d43c32050102f5b8548ee8e4d5536fdbd1301e760302fabd85f945fece42324a77f3e18da820f4f9b4f776dd4153236757ffcfc6aa
@@ -13,17 +13,13 @@ class ServiceQueueWorker
13
13
  # changes
14
14
  def work(message)
15
15
  # invoke service object to save message to database
16
- # RenoteDac::Mailer.enqueue()
17
- message_params(message)
16
+ message = JSON.parse(message)
17
+ RenoteDac::Mailer.enqueue(
18
+ message['postmark_data']['template'],
19
+ message['postmark_data']['address'],
20
+ message['postmark_data']['params']
21
+ )
18
22
  # let queue know message was received
19
23
  ack!
20
24
  end
21
-
22
- private
23
-
24
- def message_params(message)
25
- binding.pry
26
- end
27
-
28
-
29
25
  end
@@ -1,3 +1,3 @@
1
1
  module RenoteDac
2
- VERSION = '0.0.147'
2
+ VERSION = '0.0.149'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renote_dac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.147
4
+ version: 0.0.149
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sidney Leatherwood