pd_event_v2 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/Gemfile.lock +1 -1
- data/lib/pd_event_v2/client.rb +3 -0
- data/lib/pd_event_v2/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7386be6a3a7692679173fbf7187712b4bced06e0c05c05dfba7a6ff032c6c880
|
4
|
+
data.tar.gz: 1f2ecb5826aa0c58836b78c793886b18b028321ea4dab467c3d5e050f3922bac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11aa24cfd6edad1ca2989a3cf9ce0bad3d982bf166a889dc2b7ba4fb0fd5ece3c4ecb28a56a461497d56bd6ff2ad6464fd98f8ca8b5f015dc715cbd7941e54be
|
7
|
+
data.tar.gz: 5041d09913f002244d1d342ad20d3aae73ea78ef049ef03ecd68a70f577f61dfe722da2f899d072485339e1cdbc5474a7f8a655bb8d7af676b4edb494d6157b0
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
data/lib/pd_event_v2/client.rb
CHANGED
@@ -91,6 +91,9 @@ module PdEventV2
|
|
91
91
|
raise ArgumentError, "missing payload key: #{key}" if required && !payload.key?(key)
|
92
92
|
end
|
93
93
|
|
94
|
+
invalid_payload_keys = (payload.keys - PAYLOAD_KEYS.keys)
|
95
|
+
raise ArgumentError, "invalid payload keys: #{invalid_payload_keys}" unless invalid_payload_keys.empty?
|
96
|
+
|
94
97
|
routing_key = @options.fetch(:routing_key)
|
95
98
|
|
96
99
|
params = {
|
data/lib/pd_event_v2/version.rb
CHANGED