caboose-cms 0.9.93 → 0.9.94
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: df217f87faf8c93c8aa06947ee169d1459902087
|
4
|
+
data.tar.gz: 870c6ace2742e5f57e80c26581d9b0727ec0b8b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f01c6c85faa7e8ce92599d7a87f7f0fdacbd8a799614f43a748b848867e57324d1165f8aacef65d642cd40487d58915435a17786948df65fcd5178905b838e9
|
7
|
+
data.tar.gz: 7e6027f08532f803027cd5e2df55256a1213984e48ec49767d5c3e0feb72f95a648ef6836a7baadb9d2b4a16a07c50df6fe91320606a76bddd2e56ac6595c8b0
|
@@ -73,7 +73,6 @@ module Caboose
|
|
73
73
|
def admin_json
|
74
74
|
return if !user_is_allowed('media', 'view')
|
75
75
|
render :json => false and return if @site.nil?
|
76
|
-
|
77
76
|
arr = Media.where(:media_category_id => params[:media_category_id]).reorder(:sort_order).all
|
78
77
|
render :json => arr.collect{ |m| m.api_hash }
|
79
78
|
end
|
@@ -82,7 +81,6 @@ module Caboose
|
|
82
81
|
def admin_json_single
|
83
82
|
return if !user_is_allowed('media', 'view')
|
84
83
|
render :json => false and return if @site.nil?
|
85
|
-
|
86
84
|
m = Media.where(:id => params[:id]).first
|
87
85
|
render :json => m.api_hash
|
88
86
|
end
|
@@ -133,7 +131,7 @@ module Caboose
|
|
133
131
|
when 'sort_order' then m.sort_order = value
|
134
132
|
when 'image_url' then
|
135
133
|
m.processed = false
|
136
|
-
m.delay(:queue => 'caboose_media').download_image_from_url(value)
|
134
|
+
m.delay(:queue => 'caboose_media', :priority => 2).download_image_from_url(value)
|
137
135
|
end
|
138
136
|
end
|
139
137
|
|
@@ -10,7 +10,8 @@ module Caboose
|
|
10
10
|
|
11
11
|
# @route POST /admin/sns
|
12
12
|
def admin_add
|
13
|
-
body = JSON.parse(request.raw_post, {symbolize_names: true})
|
13
|
+
body = JSON.parse(request.raw_post, {symbolize_names: true})
|
14
|
+
Caboose.log(body)
|
14
15
|
if body[:Type] && body[:Type] == "SubscriptionConfirmation"
|
15
16
|
Caboose.log("SNS Subscription SubscribeURL\n#{body[:SubscribeURL]}")
|
16
17
|
elsif body[:Subject] == 'Amazon S3 Notification'
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.94
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|