tb_media 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/app/assets/javascripts/admin/media/application.js +1 -2
- data/app/assets/javascripts/admin/media/picker.js +4 -0
- data/app/assets/javascripts/admin/media/plugin.js.erb +4 -0
- data/app/controllers/admin/media_picker_controller.rb +2 -8
- data/config/routes.rb +3 -1
- data/lib/spud_media/engine.rb +1 -1
- data/lib/spud_media/version.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 04a72403b0a76aeca578363fe100b46a1e11e713adad77662be255bd3cdda1ce
|
4
|
+
data.tar.gz: c8cbb69eab1a051c89c27ebc3160644aa8439297d214d63613c3ded8521d3320
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b058846bbff6a6d01c4d0c629c627f32eae451b79457811d7178f815b0c5bdd43cab59fbed9d9c33dfdddfe982b58e2dce4ea1d9a4511161ecfb91e7ad79f325
|
7
|
+
data.tar.gz: 1baa7fb56ec845c4580f029dd24a8f5a53e77ca0a957ceeeba2e3b11cd87fcfcf8dd046b454691ba5d777711a77d8582dae28b66864611df9a3e5107e3da3d42
|
@@ -19,15 +19,9 @@ class Admin::MediaPickerController < Admin::ApplicationController
|
|
19
19
|
def create
|
20
20
|
@media = SpudMedia.new(media_params)
|
21
21
|
if @media.save
|
22
|
-
|
23
|
-
render 'create', status: 200
|
24
|
-
else
|
25
|
-
respond_to_parent do
|
26
|
-
render 'create.js', status: 200
|
27
|
-
end
|
28
|
-
end
|
22
|
+
render 'create', status: :ok
|
29
23
|
else
|
30
|
-
render text: @media.errors.full_messages.first, status:
|
24
|
+
render text: @media.errors.full_messages.first, status: :unprocessable_entity
|
31
25
|
end
|
32
26
|
end
|
33
27
|
|
data/config/routes.rb
CHANGED
data/lib/spud_media/engine.rb
CHANGED
@@ -9,7 +9,7 @@ module Spud
|
|
9
9
|
initializer :admin do
|
10
10
|
config.assets.precompile += ['admin/files_thumbs/*']
|
11
11
|
config.assets.precompile += ['admin/media_thumb.png']
|
12
|
-
config.assets.precompile += ['admin/media/picker.js']
|
12
|
+
# config.assets.precompile += ['admin/media/picker.js'] <- Picker not currently used
|
13
13
|
TbCore.append_admin_javascripts('admin/media/application')
|
14
14
|
TbCore.append_admin_stylesheets('admin/media/application')
|
15
15
|
TbCore.configure do |config|
|
data/lib/spud_media/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tb_media
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Moser Consulting
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: paperclip
|
@@ -283,7 +283,7 @@ files:
|
|
283
283
|
homepage: http://bitbucket.org/moser-inc/tb_media
|
284
284
|
licenses: []
|
285
285
|
metadata: {}
|
286
|
-
post_install_message:
|
286
|
+
post_install_message:
|
287
287
|
rdoc_options: []
|
288
288
|
require_paths:
|
289
289
|
- lib
|
@@ -298,9 +298,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
298
|
- !ruby/object:Gem::Version
|
299
299
|
version: '0'
|
300
300
|
requirements: []
|
301
|
-
|
302
|
-
|
303
|
-
signing_key:
|
301
|
+
rubygems_version: 3.1.4
|
302
|
+
signing_key:
|
304
303
|
specification_version: 4
|
305
304
|
summary: TB File upload/management module
|
306
305
|
test_files:
|