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: 71e1f81901a0c691c6390f7c8baef6536e73a012
4
- data.tar.gz: fee932e19ec1916d6da3e0f5e6f20aab6e829dbb
3
+ metadata.gz: 50c55c7bd90245620bdd8a18f0c6d3932eb1d16a
4
+ data.tar.gz: 3d35140c40b6cbeeb9caee3fade5163c504b45ad
5
5
  SHA512:
6
- metadata.gz: fba2b5396ca2d7a536bec241cf9c5fcfcad3cd1a4155005efca6f4ce89f9a321f0ec2bf037382b4af3df4dcf16819999194f8ee7998626144e005370a487651f
7
- data.tar.gz: fafecb125fe48f760b7fbb2bb25e06cc2583bf12d9728d3c7f08a6274f43e64eb651c9505d5c67a7fa41cf5bc73e572d6a7b4bea8eadbb33991022aef918aaad
6
+ metadata.gz: 04946e28a1d7cced859d60fe156556ed24ae3d443be5a549beaead8b03cf9ee41e6abca20e52dd652732ddc22e06f52831d2e609c6ae0dc36943f77e02f94d40
7
+ data.tar.gz: d4091d6742d19e5ed785a47498b9708dfbc662ba2a07c400915c13049d41711da27022aad4a2409935ca8d1431e77ba118116dbc32775dfc75548b8eb508e22c
@@ -3,5 +3,5 @@ class Ckeditor::Asset < ApplicationRecord
3
3
 
4
4
  delegate :url, :current_path, :content_type, to: :data
5
5
 
6
- validates_presence_of :data
6
+ validates :data, presence: true
7
7
  end
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  class CkeditorAttachmentFileUploader < CarrierWave::Uploader::Base
3
2
  include Ckeditor::Backend::CarrierWave
4
3
 
@@ -22,7 +22,7 @@ class CkeditorPictureUploader < CarrierWave::Uploader::Base
22
22
  # end
23
23
 
24
24
  # Process files as they are uploaded:
25
- # process :scale => [200, 300]
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 :resize_to_fill => [118, 100]
35
+ process resize_to_fill: [118, 100]
36
36
  end
37
37
 
38
38
  version :content do
39
- process :resize_to_limit => [800, 800]
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
@@ -1,3 +1,9 @@
1
+ 2.0.3 - 2016-08-15
2
+ --
3
+ * Revert CKEditor from 4.2.0 to 4.1.6 because of breaking changes related to
4
+ browsing attachments.
5
+
6
+
1
7
  2.0.2 - 2016-08-15
2
8
  --
3
9
  * CKEditor has some breaking changes and apparently they didn't find it
@@ -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 = ["jpg", "jpeg", "png", "gif", "tiff"]
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 = ["doc", "docx", "xls", "odt", "ods", "pdf", "rar", "zip", "tar", "swf"]
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
@@ -1,3 +1,3 @@
1
1
  module Udongo
2
- VERSION = '2.0.2'
2
+ VERSION = '2.0.3'
3
3
  end
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.2
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.4
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.4
315
+ version: 4.1.6
322
316
  - !ruby/object:Gem::Dependency
323
317
  name: will_paginate
324
318
  requirement: !ruby/object:Gem::Requirement