ses_blacklist_rails 0.1.2 → 0.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09601f9eab1ead0944d98bc02ee11dea6da748bf'
|
4
|
+
data.tar.gz: 517f916e0fb9db37869962bb4fcd884fcac8661a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64cf46c009bf30d8c5b74ee0ebea4dd76c0d6a0d92eb869c81c0a83e98b85408d2c77768b1fc63aa095d21360a7c7d4b99fefa5032f4bcb6b8bfd263e341d60d
|
7
|
+
data.tar.gz: 29a2f7391433c47d482020c67404d8258adab93f305cdc89ce9129e451ad79f4db009ace69fd6ef3dcfe6a7c90817a513ffb9950f0eda0f450ca54d8c82b9d83
|
@@ -18,7 +18,7 @@ module SesBlacklistRails
|
|
18
18
|
end
|
19
19
|
|
20
20
|
elsif @params[:Type] == 'Notification'
|
21
|
-
message = @params[:Message]
|
21
|
+
message = parse_json @params[:Message]
|
22
22
|
case message[:notificationType]
|
23
23
|
when 'Bounce'
|
24
24
|
message[:bounce][:bouncedRecipients].each do |r|
|
@@ -42,7 +42,11 @@ module SesBlacklistRails
|
|
42
42
|
private
|
43
43
|
|
44
44
|
def parse_request
|
45
|
-
@params ||=
|
45
|
+
@params ||= parse_json request.body.read
|
46
|
+
end
|
47
|
+
|
48
|
+
def parse_json(raw)
|
49
|
+
JSON.parse(raw, symbolize_names: true)
|
46
50
|
end
|
47
51
|
|
48
52
|
def create_notification(recipient, type)
|