ckeditor_rails 4.16.2 → 4.16.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
  SHA256:
3
- metadata.gz: 962b65a400bbc6fa001fdd3804b8ff11fd719a4e82b43a6aa0cd813345797e40
4
- data.tar.gz: 4bc7553ac1f7d7fe98de3f0d0d586c50dd94a3bef77f80da85fc209cbdf2ec2e
3
+ metadata.gz: d9ac24c0abd301e48f9967da16ff15a6412168be32243a3a812a1a962af70655
4
+ data.tar.gz: 14209ed87a97916f66d607ce03dd9178186c2d2e35d7962e2fa94afea554ae28
5
5
  SHA512:
6
- metadata.gz: df23a0f24b77bd2072863da7e8fda7fdd5231a23f7155a7d4f7a60d8e52dc00d9290931eabf60a43422f3b666e33b1ce1c3d2dd9dcc23e36236be7b2e9102696
7
- data.tar.gz: 0d6ab662a1c275a58553cdcf8992c5d6e5e295a7fd228592c38cc4e734ed8aa105acc1d8fe4cca8d93ba80f2f3d02754f8c6a11d96660a5d0cad61498fc139a1
6
+ metadata.gz: 978deba508cf6849f221942c130f49cd4126bcb309dce83b1b457b691bb3f5d30bbeffa0f1d8bc34300f25b35d7e1d4896a5a974b7f92a09f00aa3bc6c93ca60
7
+ data.tar.gz: fb66524b3c521f1d48a8be10cc127bd2f17346a1690217dea7cf9b749a248366d747ddeb1437702a30eed1c26ef1d7670219a3438c63b6136e19af598f048792
data/README.md CHANGED
@@ -64,6 +64,14 @@ CKEDITOR.editorConfig = (config) ->
64
64
  true
65
65
  ```
66
66
 
67
+ Type `CKEDITOR.config` in browser's console panel to check all configuration.
68
+
69
+ Add your `config.js` to assets precompile list in `config/initializers/assets.rb`.
70
+
71
+ ``` ruby
72
+ Rails.application.config.assets.precompile += %w( ckeditor/config.js )
73
+ ```
74
+
67
75
  ### Include customized stylesheet for contents of CKEditor
68
76
 
69
77
  Add your `app/assets/stylesheets/ckeditor/contents.css.scss` like
@@ -80,6 +88,12 @@ ol,ul,dl {
80
88
  }
81
89
  ```
82
90
 
91
+ Add your `contents.css` to assets precompile list in `config/initializers/assets.rb`.
92
+
93
+ ``` ruby
94
+ Rails.application.config.assets.precompile += %w( ckeditor/contents.css )
95
+ ```
96
+
83
97
  ### Remove CKEditor addon services
84
98
 
85
99
  To avoid see warnings like
@@ -208,6 +222,8 @@ If you observe an issue (especially in Heroku environment) where asset compilati
208
222
  config.assets.precompile += ['ckeditor/*']
209
223
  ```
210
224
 
225
+ Run `bundle exec rake assets:precompile` and `ls -al public/assets/ckeditor/` to check if everything is generated as expected.
226
+
211
227
  ## License
212
228
 
213
229
  CKEditor use [CKEditor license](http://ckeditor.com/license).
@@ -3,7 +3,12 @@ require 'fileutils'
3
3
  desc "Create nondigest versions of all ckeditor digest assets"
4
4
  task "assets:precompile" do
5
5
  fingerprint = /\-([0-9a-f]{32}|[0-9a-f]{64})\./
6
- for file in Dir["#{File.join('public', Rails.configuration.assets.prefix)}/ckeditor/**/*"]
6
+ files = Dir["#{File.join('public', Rails.configuration.assets.prefix)}/ckeditor/**/*"]
7
+
8
+ # sort files having same digest with/without .gz by file mtime to have same order
9
+ # otherwise copy order of nondigest file with/without .gz could be different
10
+ sorted_files = files.sort_by { |file| File.mtime(file) }.reverse
11
+ sorted_files.each do |file|
7
12
  next unless file =~ fingerprint
8
13
  nondigest = file.sub fingerprint, '.'
9
14
  if !File.exist?(nondigest) or File.mtime(file) > File.mtime(nondigest)
@@ -1,6 +1,6 @@
1
1
  module Ckeditor
2
2
  module Rails
3
- VERSION = '4.16.2'
3
+ VERSION = '4.16.3'
4
4
  EDITOR_VERSION = '4.16.2'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ckeditor_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.16.2
4
+ version: 4.16.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tse-Ching Ho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-17 00:00:00.000000000 Z
11
+ date: 2021-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties