refinerycms-wymeditor 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data/.travis.yml +3 -3
- data/app/assets/javascripts/wymeditor/classes.js.erb +3 -1
- data/app/assets/javascripts/wymeditor/lang/zh-CN.js +3 -1
- data/app/assets/javascripts/wymeditor/prototypes.js.erb +1 -1
- data/app/assets/javascripts/wymeditor/validators.js.erb +2 -1
- data/refinerycms-wymeditor.gemspec +14 -13
- data/spec/features/refinery/admin/wymeditor_feature_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -1
- data.tar.gz.sig +0 -0
- metadata +28 -25
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d2e57348be60d89cf97c865069dbe3e70441b32ad0dab2219fa3789d1252dbe0
|
4
|
+
data.tar.gz: 59a410f674a1ae63a223db7d61c071d36e7c69f9bfbe478fb071b51ba0c9b6e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30d8608c030b664dc18a3119fb28dcac9e1d21dc7f7908ea0932a72eaca4f9f234a728cc769cd3af6fa2fc296ee060fa9472999159137c5d83da819dc1b4590e
|
7
|
+
data.tar.gz: 1509dcfd0c647cf449a71ca9684b4a9a6bc83a222ca3483553acf25389b0847b0dc27beccdbd73a83d49cbbc3886726438d0e44f8f945cb45d46929f1bc0db50
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/.travis.yml
CHANGED
@@ -1177,7 +1177,9 @@ WYMeditor.XhtmlSaxListener.prototype.joinRepeatedEntities = function(xhtml)
|
|
1177
1177
|
|
1178
1178
|
WYMeditor.XhtmlSaxListener.prototype.removeEmptyTags = function(xhtml)
|
1179
1179
|
{
|
1180
|
-
|
1180
|
+
var tags = this.block_tags.join("|").replace(/\|td/,'').replace(/\|th/, '');
|
1181
|
+
var emptyTags = '<(' + tags + ')>(<br \/>| | |\\s)*<\/\\1>';
|
1182
|
+
return xhtml.replace(new RegExp(emptyTags ,'g'),'').trim();
|
1181
1183
|
};
|
1182
1184
|
|
1183
1185
|
WYMeditor.XhtmlSaxListener.prototype.removeBrInPre = function(xhtml)
|
@@ -556,7 +556,7 @@ WYMeditor.editor.prototype.replaceStrings = function(sVal) {
|
|
556
556
|
var wym = this;
|
557
557
|
if(!WYMeditor.STRINGS[wym._options.lang]) {
|
558
558
|
try {
|
559
|
-
eval($.ajax({url:
|
559
|
+
eval($.ajax({url:"<%= asset_path("wymeditor/lang/#{I18n.locale}") %>", async:false}).responseText);
|
560
560
|
} catch(e) {
|
561
561
|
if (WYMeditor.console) {
|
562
562
|
WYMeditor.console.error("WYMeditor: error while parsing language file.");
|
@@ -1,23 +1,24 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
2
3
|
Gem::Specification.new do |s|
|
3
4
|
s.platform = Gem::Platform::RUBY
|
4
|
-
s.name =
|
5
|
-
s.version = '2.
|
6
|
-
s.summary =
|
7
|
-
s.description =
|
8
|
-
s.email =
|
9
|
-
s.homepage =
|
5
|
+
s.name = 'refinerycms-wymeditor'
|
6
|
+
s.version = '2.1.0'
|
7
|
+
s.summary = 'WYMeditor support for Refinery CMS'
|
8
|
+
s.description = 'This extension adds WYMeditor support to Refinery CMS for visual editing.'
|
9
|
+
s.email = 'gems@p.arndt.io'
|
10
|
+
s.homepage = 'https://manuka.co'
|
10
11
|
s.authors = ['Philip Arndt']
|
11
|
-
s.license =
|
12
|
-
s.require_paths = %w
|
12
|
+
s.license = 'MIT'
|
13
|
+
s.require_paths = %w[lib]
|
13
14
|
|
14
15
|
s.files = `git ls-files -- '*[^.pem]'`.split("\n")
|
15
16
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
16
17
|
|
17
|
-
s.add_dependency 'refinerycms-core', ['>= 4.0.0
|
18
|
+
s.add_dependency 'refinerycms-core', ['>= 4.0.0', '< 5.0']
|
18
19
|
|
19
|
-
s.cert_chain
|
20
|
-
if $
|
21
|
-
s.signing_key = File.expand_path(
|
20
|
+
s.cert_chain = ['certs/parndt.pem']
|
21
|
+
if $PROGRAM_NAME =~ /gem\z/ && ARGV.include?('build') && ARGV.include?(__FILE__)
|
22
|
+
s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
|
22
23
|
end
|
23
24
|
end
|
@@ -8,11 +8,11 @@ describe 'wymeditor', :type => :feature do
|
|
8
8
|
allow(Refinery::I18n).to receive(:frontend_locales).and_return [:en, :ru]
|
9
9
|
|
10
10
|
# Create a page in both locales
|
11
|
-
about_page =
|
11
|
+
about_page = Mobility.with_locale(:en) do
|
12
12
|
Refinery::Page.create :title => 'About'
|
13
13
|
end
|
14
14
|
|
15
|
-
|
15
|
+
Mobility.with_locale(:ru) do
|
16
16
|
about_page.title = 'About Ru'
|
17
17
|
about_page.save
|
18
18
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -27,7 +27,8 @@ Capybara.javascript_driver = :chrome
|
|
27
27
|
|
28
28
|
Capybara.configure do |config|
|
29
29
|
config.default_max_wait_time = ENV['CAPYBARA_MAX_WAIT_TIME'] || 10 # seconds
|
30
|
-
config.default_driver
|
30
|
+
config.default_driver = :selenium
|
31
|
+
config.server = :webrick
|
31
32
|
end
|
32
33
|
|
33
34
|
# Requires supporting files with custom matchers and macros, etc,
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-wymeditor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Arndt
|
@@ -10,27 +10,31 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12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8EBAMCBLAwHQYDVR0OBBYEFLzeU7GH0rvnvDchSWtJhceiUDDTMBoGA1Ud
|
26
|
+
EQQTMBGBD2dlbXNAcC5hcm5kdC5pbzAaBgNVHRIEEzARgQ9nZW1zQHAuYXJuZHQu
|
27
|
+
aW8wDQYJKoZIhvcNAQELBQADggGBABMRA737G23Oiy1xBgVJsDW5LgGbeK9JQCC9
|
28
|
+
eRdx22TDyrJ5vviqB22k13+zp/tq5fgeCsrk5iLAt5F/GgcP82p7pPm3qKi1QWip
|
29
|
+
cnQvy5fLKcl+PaIX/+PYGVKUfV/wA+NuP06RSnzvNPepcUvbTJdAr6nQVdIh/ftB
|
30
|
+
64QhOWuk2CuGlt+tLMGbjR65W3SppBkvVd4yYHArbl4Z0qPG+TVrVrj2JEjo82rT
|
31
|
+
jIUDLkdUlQ/FmH5fHhbrtn5PMCXjto414YBC7aQUxQsiNCN2qhsjwiyzVBbBTjnA
|
32
|
+
1sA043YnGOd1XylVtnrARK5eT7DhFGrMGMp/KvOg+T7q19+65jaopvHH4zFXzBcY
|
33
|
+
MxlH/7tMQ5+DdHcqbu3SOAe1/VaaRk28J0CdPZS6Y60YuRqL17Zg2WOODiBkA9WE
|
34
|
+
JjcyzdERZXsSPh+DT5PrllEbTNTZPbBcnAWjqdEWLtBIxD3JpgZHTmYP4I2ExAeu
|
35
|
+
2Oqsxsw30MIZnh2Cw/xLRkc1I50luA==
|
32
36
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
37
|
+
date: 2019-09-25 00:00:00.000000000 Z
|
34
38
|
dependencies:
|
35
39
|
- !ruby/object:Gem::Dependency
|
36
40
|
name: refinerycms-core
|
@@ -38,7 +42,7 @@ dependencies:
|
|
38
42
|
requirements:
|
39
43
|
- - ">="
|
40
44
|
- !ruby/object:Gem::Version
|
41
|
-
version: 4.0.0
|
45
|
+
version: 4.0.0
|
42
46
|
- - "<"
|
43
47
|
- !ruby/object:Gem::Version
|
44
48
|
version: '5.0'
|
@@ -48,7 +52,7 @@ dependencies:
|
|
48
52
|
requirements:
|
49
53
|
- - ">="
|
50
54
|
- !ruby/object:Gem::Version
|
51
|
-
version: 4.0.0
|
55
|
+
version: 4.0.0
|
52
56
|
- - "<"
|
53
57
|
- !ruby/object:Gem::Version
|
54
58
|
version: '5.0'
|
@@ -220,8 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
224
|
- !ruby/object:Gem::Version
|
221
225
|
version: '0'
|
222
226
|
requirements: []
|
223
|
-
|
224
|
-
rubygems_version: 2.6.13
|
227
|
+
rubygems_version: 3.0.3
|
225
228
|
signing_key:
|
226
229
|
specification_version: 4
|
227
230
|
summary: WYMeditor support for Refinery CMS
|
metadata.gz.sig
CHANGED
Binary file
|