caboose-cms 0.5.222 → 0.5.223
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDI5NzhlMmZhNjM3ZGJkZWVmOGM0NzNhNTUyMWQ0M2UzYjQ3YmYyZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDEwMDQ4YjMzMzU4N2I0YTkyZWYzYWQ2ZmMwZDZiNmI4NzM2Njg4OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTVmYTIwNDE4YjVjZGE1OTU5Mjc0MWVjZjQ2ZjJjMDRkZGNjYTQ5YTM5ZDMx
|
10
|
+
ZmJiNjllN2YyMmFkNDQyMTE1MDliZDU0NTkyNDVlODVjOTczZWE5ZGFjYzUw
|
11
|
+
MTExNmM1YzY3MTg0YTFlNTU1ZTViNmIwNWM0YzM0YjRhMjIxMWI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjZmNGQzMWUyYmFlNThlMjczNjQ2N2JiNzNiZTIyMTM3Y2VlNTljYmRhNzU5
|
14
|
+
NWEwZTcwNDJkNzE1MWFjNGE3MTMyMDJkNmU5ZTRhMTBiOTBmODQxODY1MDEw
|
15
|
+
YmUyOWQ3MTIwMDU2NjRlNDU5MTQ5YWZjODFkZWUyMzJlMzIxY2U=
|
@@ -10,8 +10,10 @@ module Caboose
|
|
10
10
|
|
11
11
|
# POST /admin/sns
|
12
12
|
def admin_add
|
13
|
-
body = JSON.parse(request.raw_post, {symbolize_names: true})
|
14
|
-
if body[:
|
13
|
+
body = JSON.parse(request.raw_post, {symbolize_names: true})
|
14
|
+
if body[:Type] && body[:Type] == "SubscriptionConfirmation"
|
15
|
+
Caboose.log("SNS Subscription SubscribeURL\n#{body[:SubscribeURL]}")
|
16
|
+
elsif body[:Subject] == 'Amazon S3 Notification'
|
15
17
|
msg = JSON.parse(body[:Message])
|
16
18
|
if msg['Records']
|
17
19
|
msg['Records'].each do |r|
|
data/lib/caboose/version.rb
CHANGED