aws-liam 0.0.3 → 0.0.4
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/liam/message_processor.rb +2 -2
- data/lib/liam/producer.rb +1 -0
- data/lib/liam/version.rb +1 -1
- 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: fb12f64a59c7a86742c64295356711bc7dd3444de4669ebef517a5c07477acec
|
|
4
|
+
data.tar.gz: d28d78f4811429df357f0dacfdc972b468aaf0c3573c8747326b167b2211fb02
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c45521a8c27d00722dcd586aaf9184c4bce035a4d866b0c8898e2618c340dbc5978aff5ac3c880752bbf8f50534f070ec8cec93b17a17514e3ff48a5712260c
|
|
7
|
+
data.tar.gz: a0482493879d6bf4d3a9844c3b1e63167ec3e9093818670a51f1cf25e8bb0d6443d3636cfb08879b6b25f4d5cb348ee08ab8c15cdd5a25d2e03151e622af16a8
|
|
@@ -30,7 +30,7 @@ module Liam
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
def processor
|
|
33
|
-
Object.const_get(message_topic_name).new(parsed_message
|
|
33
|
+
Object.const_get(message_topic_name).new(parsed_message)
|
|
34
34
|
rescue NameError => e
|
|
35
35
|
raise UninitializedMessageProcessorError, e
|
|
36
36
|
end
|
|
@@ -40,7 +40,7 @@ module Liam
|
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
def message_attribute_value
|
|
43
|
-
|
|
43
|
+
message.message_attributes['event_name'].string_value.tap do |value|
|
|
44
44
|
raise MessageWithoutValueAttributeError unless value
|
|
45
45
|
end
|
|
46
46
|
end
|
data/lib/liam/producer.rb
CHANGED
|
@@ -34,6 +34,7 @@ module Liam
|
|
|
34
34
|
return UNSUPPORTED_TOPIC_ERROR unless supported_topic?
|
|
35
35
|
return UNSUPPORTED_MESSAGE_ERROR unless message.is_a?(Hash)
|
|
36
36
|
|
|
37
|
+
puts "[aws-liam] Publishing message: #{message}"
|
|
37
38
|
Aws::SNS::Client.new(client_options).publish(
|
|
38
39
|
topic_arn: topic_arn,
|
|
39
40
|
message: message.to_json,
|
data/lib/liam/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-liam
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- alexismansilla
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2020-02-
|
|
12
|
+
date: 2020-02-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: aws-sdk-sns
|