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: 42e8ec3cf94818a94931ec495a53466889ddf35f
4
- data.tar.gz: 8cc33bf2023140a4a3040de6689fcebf8d31b4ed
3
+ metadata.gz: df217f87faf8c93c8aa06947ee169d1459902087
4
+ data.tar.gz: 870c6ace2742e5f57e80c26581d9b0727ec0b8b0
5
5
  SHA512:
6
- metadata.gz: dbba3c30982c6ec916c18b4b4493662b9ccc4085b471284f2c0fc974e14f006b83848db8d31d4764f2a45396e2e9647e64264e88737f40cc0b0ba4a86a297811
7
- data.tar.gz: b4550f2318d4c409221a4613cc0bd9dfa8ffb78d7033258701c8deee15ee3999d0eb5cdcb86beea04bb1fe08bb68de2e059c946a15b3d10b4f4c9e223c4208f0
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'
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.93'
2
+ VERSION = '0.9.94'
3
3
  end
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.93
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-29 00:00:00.000000000 Z
11
+ date: 2017-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg