radiant-clipped-extension 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/clipped_extension.rb
CHANGED
@@ -11,7 +11,7 @@ class ClippedExtension < Radiant::Extension
|
|
11
11
|
|
12
12
|
extension_config do |config|
|
13
13
|
config.gem "acts_as_list", :version => "~> 0.1.2"
|
14
|
-
config.gem "paperclip", :version => "~> 2.3.
|
14
|
+
config.gem "paperclip", :version => "~> 2.3.16"
|
15
15
|
config.gem "uuidtools", :version => "~> 2.1.2"
|
16
16
|
end
|
17
17
|
|
@@ -6,11 +6,11 @@ if Radiant.config.table_exists?
|
|
6
6
|
begin
|
7
7
|
output = Paperclip.run('convert', '-version').to_a.first
|
8
8
|
Rails.logger.info "Using image thumbnailer: #{output.sub(/Version: /i, '')}"
|
9
|
-
rescue
|
9
|
+
rescue Cocaine::CommandNotFoundError
|
10
10
|
Radiant.config['assets.create_image_thumbnails?'] = false
|
11
11
|
Radiant.config['assets.create_pdf_thumbnails?'] = false
|
12
12
|
Rails.logger.warn "ImageMagick 'convert' executable not found: image and pdf thumbnailing disabled."
|
13
|
-
rescue
|
13
|
+
rescue Cocaine::ExitStatusError => e
|
14
14
|
Rails.logger.warn "ImageMagick is present but calling 'convert -version' returns an error: #{e}"
|
15
15
|
end
|
16
16
|
end
|
@@ -20,10 +20,10 @@ if Radiant.config.table_exists?
|
|
20
20
|
begin
|
21
21
|
output = Paperclip.run('gs', '-v')
|
22
22
|
Rails.logger.info "Using PDF thumbnailer: #{output}".to_a.first
|
23
|
-
rescue
|
23
|
+
rescue Cocaine::CommandNotFoundError
|
24
24
|
Radiant.config['assets.create_pdf_thumbnails?'] = false
|
25
25
|
Rails.logger.warn "Ghostscript 'gs' executable not found: pdf thumbnailing disabled."
|
26
|
-
rescue
|
26
|
+
rescue Cocaine::ExitStatusError => e
|
27
27
|
Rails.logger.warn "Ghostscript is present but calling 'gs -v' returns an error: #{e}"
|
28
28
|
end
|
29
29
|
end
|
@@ -33,10 +33,10 @@ if Radiant.config.table_exists?
|
|
33
33
|
begin
|
34
34
|
output = Paperclip.run('ffmpeg', '-version').to_a.first
|
35
35
|
Rails.logger.info "Using video frame grabber: #{output}"
|
36
|
-
rescue
|
36
|
+
rescue Cocaine::CommandNotFoundError
|
37
37
|
Radiant.config['assets.create_video_thumbnails?'] = false
|
38
38
|
Rails.logger.warn "FFmpeg executable not found: video thumbnailing disabled."
|
39
|
-
rescue
|
39
|
+
rescue Cocaine::ExitStatusError => e
|
40
40
|
Rails.logger.warn "FFmpeg is present but calling 'ffmpeg -L' returns an error: #{e}"
|
41
41
|
end
|
42
42
|
end
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.description = RadiantClippedExtension::DESCRIPTION
|
14
14
|
|
15
15
|
s.add_dependency 'acts_as_list', "~> 0.1.2"
|
16
|
-
s.add_dependency 'paperclip', "~> 2.3.
|
16
|
+
s.add_dependency 'paperclip', "~> 2.3.16"
|
17
17
|
s.add_dependency 'uuidtools', "~> 2.1.2"
|
18
18
|
|
19
19
|
ignores = if File.exist?('.gitignore')
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-clipped-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 4
|
10
|
+
version: 1.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Keith Bingman
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2011-08-
|
21
|
+
date: 2011-08-14 00:00:00 +01:00
|
22
22
|
default_executable:
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
@@ -45,12 +45,12 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - ~>
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
hash:
|
48
|
+
hash: 35
|
49
49
|
segments:
|
50
50
|
- 2
|
51
51
|
- 3
|
52
|
-
-
|
53
|
-
version: 2.3.
|
52
|
+
- 16
|
53
|
+
version: 2.3.16
|
54
54
|
type: :runtime
|
55
55
|
version_requirements: *id002
|
56
56
|
- !ruby/object:Gem::Dependency
|
@@ -125,7 +125,6 @@ files:
|
|
125
125
|
- db/migrate/003_create_user_observer.rb
|
126
126
|
- db/migrate/004_create_page_attachments.rb
|
127
127
|
- db/migrate/005_rename_users.rb
|
128
|
-
- db/migrate/20090316132151_disable_file_types.rb
|
129
128
|
- db/migrate/20110513205050_asset_uuid.rb
|
130
129
|
- db/migrate/20110606111250_update_configuration.rb
|
131
130
|
- db/migrate/20110609101438_dimensions.rb
|
@@ -206,7 +205,7 @@ has_rdoc: true
|
|
206
205
|
homepage: http://radiantcms.org
|
207
206
|
licenses: []
|
208
207
|
|
209
|
-
post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-clipped-extension', :version => '~>1.0.
|
208
|
+
post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-clipped-extension', :version => '~>1.0.4'\n "
|
210
209
|
rdoc_options: []
|
211
210
|
|
212
211
|
require_paths:
|
@@ -1,20 +0,0 @@
|
|
1
|
-
class DisableFileTypes < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
if defined? SettingsExtension && Radiant::Config.column_names.include?('description')
|
4
|
-
puts "-- Adding Settings Extension descriptions for assets.skip_filetype_validations"
|
5
|
-
|
6
|
-
Radiant::Config.find(:all).each do |c|
|
7
|
-
description = case c.key
|
8
|
-
when 'assets.skip_filetype_validations'
|
9
|
-
'When set to true, disables the filetype validations. Set to false to enable them.'
|
10
|
-
else
|
11
|
-
c.description
|
12
|
-
end
|
13
|
-
c.update_attribute :description, description
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
def self.down
|
19
|
-
end
|
20
|
-
end
|