ElmerFudd 0.0.27 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ElmerFudd/publisher.rb +0 -1
- data/lib/ElmerFudd/version.rb +1 -1
- data/lib/ElmerFudd/worker.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ead68fdd2a7c88055137223d4f8a4a1090431918
|
4
|
+
data.tar.gz: a6aa285df35b27bb7c12521d7e35afb5a3ca54bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 212d15a99a833ec4c2ee0d0c18dd401ad4bc98364605ec7ef5260420844c55402e00f3f6291c75982474e21230f6298a2bf8054306779caefc67a6259963bc92
|
7
|
+
data.tar.gz: c563791441eb264c2fc8f5f96b85962e9c5ad100eef7722f383fc416b9f02d3d73be9cbafdfe3587e7620997f6b72c658ff71495f4bba686430befc88af2b913
|
data/lib/ElmerFudd/publisher.rb
CHANGED
data/lib/ElmerFudd/version.rb
CHANGED
data/lib/ElmerFudd/worker.rb
CHANGED
@@ -42,7 +42,7 @@ module ElmerFudd
|
|
42
42
|
def self.payload_as_kwargs(handler, only: nil)
|
43
43
|
lambda do |_env, message|
|
44
44
|
symbolized_payload = message.payload.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
45
|
-
|
45
|
+
symbolized_payload = symbolized_payload.select { |k,v| Array(only).include?(k) } if only
|
46
46
|
handler.call(symbolized_payload)
|
47
47
|
end
|
48
48
|
end
|