udongo 2.0.2 → 2.0.3
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50c55c7bd90245620bdd8a18f0c6d3932eb1d16a
|
4
|
+
data.tar.gz: 3d35140c40b6cbeeb9caee3fade5163c504b45ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04946e28a1d7cced859d60fe156556ed24ae3d443be5a549beaead8b03cf9ee41e6abca20e52dd652732ddc22e06f52831d2e609c6ae0dc36943f77e02f94d40
|
7
|
+
data.tar.gz: d4091d6742d19e5ed785a47498b9708dfbc662ba2a07c400915c13049d41711da27022aad4a2409935ca8d1431e77ba118116dbc32775dfc75548b8eb508e22c
|
@@ -22,7 +22,7 @@ class CkeditorPictureUploader < CarrierWave::Uploader::Base
|
|
22
22
|
# end
|
23
23
|
|
24
24
|
# Process files as they are uploaded:
|
25
|
-
# process :
|
25
|
+
# process scale: [200, 300]
|
26
26
|
#
|
27
27
|
# def scale(width, height)
|
28
28
|
# # do something
|
@@ -32,11 +32,11 @@ class CkeditorPictureUploader < CarrierWave::Uploader::Base
|
|
32
32
|
|
33
33
|
# Create different versions of your uploaded files:
|
34
34
|
version :thumb do
|
35
|
-
process :
|
35
|
+
process resize_to_fill: [118, 100]
|
36
36
|
end
|
37
37
|
|
38
38
|
version :content do
|
39
|
-
process :
|
39
|
+
process resize_to_limit: [800, 800]
|
40
40
|
end
|
41
41
|
|
42
42
|
# Add a white list of extensions which are allowed to be uploaded.
|
data/changelog.md
CHANGED
@@ -9,17 +9,26 @@ Ckeditor.setup do |config|
|
|
9
9
|
# Allowed image file types for upload.
|
10
10
|
# Set to nil or [] (empty array) for all file types
|
11
11
|
# By default: %w(jpg jpeg png gif tiff)
|
12
|
-
# config.image_file_types =
|
12
|
+
# config.image_file_types = %w(jpg jpeg png gif tiff)
|
13
|
+
|
14
|
+
# Allowed flash file types for upload.
|
15
|
+
# Set to nil or [] (empty array) for all file types
|
16
|
+
# By default: %w(jpg jpeg png gif tiff)
|
17
|
+
# config.flash_file_types = %w(swf)
|
13
18
|
|
14
19
|
# Allowed attachment file types for upload.
|
15
20
|
# Set to nil or [] (empty array) for all file types
|
16
21
|
# By default: %w(doc docx xls odt ods pdf rar zip tar tar.gz swf)
|
17
|
-
# config.attachment_file_types =
|
22
|
+
# config.attachment_file_types = %w(doc docx xls odt ods pdf rar zip tar tar.gz swf)
|
18
23
|
|
19
24
|
# Setup authorization to be run as a before filter
|
20
25
|
# By default: there is no authorization.
|
21
26
|
# config.authorize_with :cancan
|
22
27
|
|
28
|
+
# Override parent controller CKEditor inherits from
|
29
|
+
# By default: 'ApplicationController'
|
30
|
+
# config.parent_controller = 'MyController'
|
31
|
+
|
23
32
|
# Asset model classes
|
24
33
|
# config.picture_model { Ckeditor::Picture }
|
25
34
|
# config.attachment_file_model { Ckeditor::AttachmentFile }
|
@@ -34,5 +43,16 @@ Ckeditor.setup do |config|
|
|
34
43
|
|
35
44
|
# To reduce the asset precompilation time, you can limit plugins and/or languages to those you need:
|
36
45
|
# By default: nil (no limit)
|
46
|
+
# config.assets_languages = ['en', 'uk']
|
37
47
|
config.assets_plugins = %w(image link)
|
48
|
+
|
49
|
+
# CKEditor CDN
|
50
|
+
# More info here http://cdn.ckeditor.com/
|
51
|
+
# By default: nil (CDN disabled)
|
52
|
+
# config.cdn_url = "//cdn.ckeditor.com/4.5.6/standard/ckeditor.js"
|
53
|
+
|
54
|
+
# JS config url
|
55
|
+
# Used when CKEditor CDN enabled
|
56
|
+
# By default: "/assets/ckeditor/config.js"
|
57
|
+
# config.js_config_url = "/assets/ckeditor/config.js"
|
38
58
|
end
|
data/lib/udongo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: udongo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Davy Hellemans
|
@@ -303,22 +303,16 @@ dependencies:
|
|
303
303
|
name: ckeditor
|
304
304
|
requirement: !ruby/object:Gem::Requirement
|
305
305
|
requirements:
|
306
|
-
- -
|
307
|
-
- !ruby/object:Gem::Version
|
308
|
-
version: '4.1'
|
309
|
-
- - ">="
|
306
|
+
- - '='
|
310
307
|
- !ruby/object:Gem::Version
|
311
|
-
version: 4.1.
|
308
|
+
version: 4.1.6
|
312
309
|
type: :runtime
|
313
310
|
prerelease: false
|
314
311
|
version_requirements: !ruby/object:Gem::Requirement
|
315
312
|
requirements:
|
316
|
-
- -
|
317
|
-
- !ruby/object:Gem::Version
|
318
|
-
version: '4.1'
|
319
|
-
- - ">="
|
313
|
+
- - '='
|
320
314
|
- !ruby/object:Gem::Version
|
321
|
-
version: 4.1.
|
315
|
+
version: 4.1.6
|
322
316
|
- !ruby/object:Gem::Dependency
|
323
317
|
name: will_paginate
|
324
318
|
requirement: !ruby/object:Gem::Requirement
|