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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d20e9297b2866aad42576b7f895f7d881430b431
4
- data.tar.gz: 7d1fa6cdb9389e466b7e89e213a9b7c1cfd07fe3
2
+ SHA256:
3
+ metadata.gz: 04a72403b0a76aeca578363fe100b46a1e11e713adad77662be255bd3cdda1ce
4
+ data.tar.gz: c8cbb69eab1a051c89c27ebc3160644aa8439297d214d63613c3ded8521d3320
5
5
  SHA512:
6
- metadata.gz: 1e7b4ac0a50b4922fa74b96a6b409dd9b1396b29d18b64e1da9cb3efe3fc81aa067923cda5f8b3f6658544146c843f4aedd3dbfdd009b1045dcd2ce00215938f
7
- data.tar.gz: 5e847b6379638b6bb6b6a877ab8f40a091615e059784fafc944af4361ee4b6fa94e434fc5622f5914c98e219b7e3d30f5721dca83fe25b1d86d94bd4e7448934
6
+ metadata.gz: b058846bbff6a6d01c4d0c629c627f32eae451b79457811d7178f815b0c5bdd43cab59fbed9d9c33dfdddfe982b58e2dce4ea1d9a4511161ecfb91e7ad79f325
7
+ data.tar.gz: 1baa7fb56ec845c4580f029dd24a8f5a53e77ca0a957ceeeba2e3b11cd87fcfcf8dd046b454691ba5d777711a77d8582dae28b66864611df9a3e5107e3da3d42
@@ -1,5 +1,4 @@
1
1
  //= require jcrop/js/jquery.Jcrop
2
- //= require admin/media/plugin
3
2
  //= require_self
4
3
 
5
4
  spud.admin.media = new function(){
@@ -164,4 +163,4 @@ spud.admin.media = new function(){
164
163
  }
165
164
  };
166
165
 
167
- };
166
+ };
@@ -1,3 +1,7 @@
1
+ /*
2
+ * NOTE: This plugin is deprecated and should not be used until/unless it is upgraded to support TinyMCE v5
3
+ */
4
+
1
5
  //= require jquery
2
6
  //= require jquery_ujs
3
7
  //= require_self
@@ -1,3 +1,7 @@
1
+ /*
2
+ * NOTE: This plugin is deprecated and should not be used until/unless it is upgraded to support TinyMCE v5
3
+ */
4
+
1
5
  /**
2
6
  * editor_plugin_src.js
3
7
  *
@@ -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
- if request.xhr?
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: 422
24
+ render text: @media.errors.full_messages.first, status: :unprocessable_entity
31
25
  end
32
26
  end
33
27
 
@@ -1,6 +1,8 @@
1
1
  Rails.application.routes.draw do
2
2
  namespace :admin do
3
3
  resources :media
4
- resources :media_picker, :only => [:index, :create]
4
+
5
+ # picker plugin not currently used
6
+ # resources :media_picker, :only => [:index, :create]
5
7
  end
6
8
  end
@@ -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|
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Media
3
- VERSION = '1.3.1'.freeze
3
+ VERSION = '1.3.2'.freeze
4
4
  end
5
5
  end
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.1
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: 2018-04-06 00:00:00.000000000 Z
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
- rubyforge_project:
302
- rubygems_version: 2.5.1
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: