ses_blacklist_rails 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 28298e1d7add4ec4d83c0bcb9b8d0562551afcc3
4
- data.tar.gz: 9ff371868eb7fd3494aebcc2a8a2b23480b2f8cd
3
+ metadata.gz: cba9d2b22ab2f7af0dd888b73884bd8a3f8b4096
4
+ data.tar.gz: d9716df91dfe9259a3174720076c327e25ba263f
5
5
  SHA512:
6
- metadata.gz: a500a303c7fec2853405af8c407432033bc03f606eb58066199f64dbe7badb6ce6d5bc7db88fae815df25dfddc24961af770ea5b827a6a1a22fc8d0794888fe7
7
- data.tar.gz: bae533f90ebc6e35f78f6831abf243ddc777e2737b67a55f639cd6031ed4d21c79cdb78da236221ea6901d1f06d025247564f3a2c4bcde333533f5b17efe337c
6
+ metadata.gz: 573d0534796dcaf12dacd220284241a6a90380bc8a4e3be0560c8e474c90434d3d1c9c13f7f3cd179d9915632464545ed046bcaf67e7148b352e1cd4b8c25bd9
7
+ data.tar.gz: dabb5897b51d6e582a949544d973903d326c8eaec6e047195b337fa782460ff836ba9a6202de2b75338905e3a432e097f340ae4c0b435fa54fc71244b75a6e27
@@ -17,24 +17,25 @@ module SesBlacklistRails
17
17
  return render plain: '', status: 500
18
18
  end
19
19
 
20
- else
21
- case @params[:notificationType]
20
+ elsif @params[:Type] == 'Notification'
21
+ message = @params[:Message]
22
+ case message[:notificationType]
22
23
  when 'Bounce'
23
- @params[:bounce][:bouncedRecipients].each do |r|
24
+ message[:bounce][:bouncedRecipients].each do |r|
24
25
  create_notification(r, :bounce)
25
26
  end
26
27
  when 'Complaint'
27
- @params[:complaint][:complainedRecipients].each do |r|
28
+ message[:complaint][:complainedRecipients].each do |r|
28
29
  create_notification(r, :complaint)
29
30
  end
30
31
  when 'Delivery'
31
- @params[:delivery][:recipients].each do |r|
32
+ message[:delivery][:recipients].each do |r|
32
33
  create_notification(r, :delivery)
33
34
  end
34
- else
35
- create_notification('', :other)
36
- render plain: '', status: 403
37
35
  end
36
+ else
37
+ create_notification('', :other)
38
+ render plain: '', status: 403
38
39
  end
39
40
  end
40
41
 
@@ -1,3 +1,3 @@
1
1
  module SesBlacklistRails
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ses_blacklist_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mrdShinse