effective_ckeditor 1.10.1 → 1.11.0

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
2
  SHA256:
3
- metadata.gz: 21ae0b551c0ca4139017410edee20e1a43628b3396547f881ee3c200c479bb7f
4
- data.tar.gz: 3ad31e5961dca1f069a1806fadcf0c8aaa79d88ea0935bd662c94812b3a2b126
3
+ metadata.gz: d4dbe2ac01e6b4dd5283e76c535c3ce6cb860751991d632047c2b2add77d174a
4
+ data.tar.gz: c526a6c00a6fd95da8e1cc628c6e5bd08206de4b30ebf549ea2f884aed48544d
5
5
  SHA512:
6
- metadata.gz: dabd1eb92934a43775bc1e0767d00a1260a2e1109c27594ec74d085b469c659a47712737da94141f2306c6fded71eca3cbb6bca0b586c5269eaad80b1b23e79d
7
- data.tar.gz: c1bd293ed776276b961ccd373a9f2c0784b51d46b0384761f52881e9885ed24faa78eea75176e8bffc014088ee8d21abee694749180148560641be45f6e3cde7
6
+ metadata.gz: 97a7071dd1777be666347191d523ded520d82a476b801ef9c2b3965782fed4bc194dc893ba91683035c05fbe831e63b63089f4b51d4b9a88b36a437f792b32ae
7
+ data.tar.gz: 2087f106d46076c8319ddb5c9c7ac0d78f1f567e293df9f951c608d39c591ac9ad46a9c09678122eec8600f260b8b2256d33d038afdb690bf5c49920a2453efe
@@ -1,9 +1,19 @@
1
1
  window['CKEDITOR_BASEPATH'] = "/assets/ckeditor/";
2
2
 
3
+ <% sprockets = (Rails.application.assets || environment) %>
4
+ <% whitelist = ['ckeditor/plugins/', 'ckeditor/skins/', 'effective/snippets/', 'effective/templates/', 'ckeditor/contents.css'] %>
5
+ <% blacklist = ['effective_ckeditor'] %>
6
+
3
7
  window.CKEDITOR_ASSETS_MAPPING = {
4
- <% (Rails.application.assets || environment).each_logical_path(->(path, _) { (path.include?('ckeditor/plugins/') || path.include?('ckeditor/skins/') || path.include?('effective/snippets/') || path.include?('effective/templates/') || path.include?('ckeditor/contents.css')) && !path.include?('effective_ckeditor')}) do |asset| %>
5
- "<%= asset %>": "<%= asset_path(asset) %>",
6
- <% end %>
8
+ <% if sprockets.respond_to?(:each_file) %>
9
+ <% sprockets.each_file.select { |path| whitelist.any? { |str| path.include?(str) } && blacklist.none? { |str| path.include?(str) } }.each do |asset| %>
10
+ "<%= asset %>": "<%= asset_path(asset) %>",
11
+ <% end %>
12
+ <% else %>
13
+ <% sprockets.each_logical_path(->(path, _) { whitelist.any? { |str| path.include?(str) } && blacklist.none? { |str| path.include?(str) } }) do |asset| %>
14
+ "<%= asset %>": "<%= asset_path(asset) %>",
15
+ <% end %>
16
+ <% end %>
7
17
  }
8
18
 
9
19
  window.CKEDITOR_GETURL = function( resource ) {
@@ -1,3 +1,3 @@
1
1
  module EffectiveCkeditor
2
- VERSION = '1.10.1'.freeze
2
+ VERSION = '1.11.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_ckeditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.1
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-23 00:00:00.000000000 Z
11
+ date: 2020-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -171,7 +171,7 @@ homepage: https://github.com/code-and-effect/effective_ckeditor
171
171
  licenses:
172
172
  - MIT
173
173
  metadata: {}
174
- post_install_message:
174
+ post_install_message:
175
175
  rdoc_options: []
176
176
  require_paths:
177
177
  - lib
@@ -186,8 +186,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  requirements: []
189
- rubygems_version: 3.0.3
190
- signing_key:
189
+ rubygems_version: 3.1.2
190
+ signing_key:
191
191
  specification_version: 4
192
192
  summary: Wraps the CKEditor 4 Javscript library (http://ckeditor.com/) for use with
193
193
  the effective_regions gem.