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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e58d9de22d4605cf35d2bd096b8c1b4c5c389bb24190d1b4f21223bf53c45e8c
4
- data.tar.gz: bc0e61b89e8ba97eb340e2f3b430a62b944dcfedfa8fb87659daea18604939bf
3
+ metadata.gz: 7386be6a3a7692679173fbf7187712b4bced06e0c05c05dfba7a6ff032c6c880
4
+ data.tar.gz: 1f2ecb5826aa0c58836b78c793886b18b028321ea4dab467c3d5e050f3922bac
5
5
  SHA512:
6
- metadata.gz: 85f5777d327aa17be3427b7a172fc0dfe30473e809cb85b1c5a6f49e0376b67c3aa256b1de2748c07b157aec9b1220c7dffdfe7bbc111c71c6f2c2d82ad1cefd
7
- data.tar.gz: 5e7ec4f6343e163e5816674dfde544207676801f2e1179bd85f62411133a0ac7d9178272eee869e0fe01bdd95de25127dcdfbe74cc9e289da284ccbda50cab56
6
+ metadata.gz: 11aa24cfd6edad1ca2989a3cf9ce0bad3d982bf166a889dc2b7ba4fb0fd5ece3c4ecb28a56a461497d56bd6ff2ad6464fd98f8ca8b5f015dc715cbd7941e54be
7
+ data.tar.gz: 5041d09913f002244d1d342ad20d3aae73ea78ef049ef03ecd68a70f577f61dfe722da2f899d072485339e1cdbc5474a7f8a655bb8d7af676b4edb494d6157b0
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.5
2
+ TargetRubyVersion: 2.4
3
3
  Exclude:
4
4
  - test.rb
5
5
  - vendor/bundle/**/*
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pd_event_v2 (0.1.0)
4
+ pd_event_v2 (0.1.1)
5
5
  faraday (~> 0.17)
6
6
  faraday_middleware
7
7
 
@@ -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 = {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PdEventV2
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pd_event_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - winebarrel