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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 37139f9b534aacb28546c069bf471c5da0ae3319
4
- data.tar.gz: 59d724b228ec959354ce3bdd74aecbcee7fc9952
2
+ SHA256:
3
+ metadata.gz: d2e57348be60d89cf97c865069dbe3e70441b32ad0dab2219fa3789d1252dbe0
4
+ data.tar.gz: 59a410f674a1ae63a223db7d61c071d36e7c69f9bfbe478fb071b51ba0c9b6e1
5
5
  SHA512:
6
- metadata.gz: cefe9cda1a62f431b8d605087f8bee10745e7137ef898dea953dc6ffc4f9dc24dc5cc82dffc961fc1dd3ac00acfa21cbaa56b8bbe964334ebd838c242d65bfc2
7
- data.tar.gz: 0e5cf462a81e478345ad2d003dae3a65cc27270bca034be463130d4ba494a4690a7c523f87e8fcb0834042045ec537c8b090fd5eff9bd49dc5c58593e743e87b
6
+ metadata.gz: 30d8608c030b664dc18a3119fb28dcac9e1d21dc7f7908ea0932a72eaca4f9f234a728cc769cd3af6fa2fc296ee060fa9472999159137c5d83da819dc1b4590e
7
+ data.tar.gz: 1509dcfd0c647cf449a71ca9684b4a9a6bc83a222ca3483553acf25389b0847b0dc27beccdbd73a83d49cbbc3886726438d0e44f8f945cb45d46929f1bc0db50
checksums.yaml.gz.sig CHANGED
Binary file
data/.travis.yml CHANGED
@@ -17,7 +17,7 @@ notifications:
17
17
  webhooks:
18
18
  - https://webhooks.gitter.im/e/b5d48907cdc89864b874
19
19
  rvm:
20
- - 2.4.1
21
- - 2.3.3
22
- - 2.2.6
20
+ - 2.6.4
21
+ - 2.5.6
22
+ - 2.4.7
23
23
  sudo: false
@@ -1177,7 +1177,9 @@ WYMeditor.XhtmlSaxListener.prototype.joinRepeatedEntities = function(xhtml)
1177
1177
 
1178
1178
  WYMeditor.XhtmlSaxListener.prototype.removeEmptyTags = function(xhtml)
1179
1179
  {
1180
- return xhtml.replace(new RegExp('<('+this.block_tags.join("|").replace(/\|td/,'').replace(/\|th/, '')+')>(<br \/>|&#160;|&nbsp;|\\s)*<\/\\1>' ,'g'),'');
1180
+ var tags = this.block_tags.join("|").replace(/\|td/,'').replace(/\|th/, '');
1181
+ var emptyTags = '<(' + tags + ')>(<br \/>|&#160;|&nbsp;|\\s)*<\/\\1>';
1182
+ return xhtml.replace(new RegExp(emptyTags ,'g'),'').trim();
1181
1183
  };
1182
1184
 
1183
1185
  WYMeditor.XhtmlSaxListener.prototype.removeBrInPre = function(xhtml)
@@ -42,6 +42,8 @@ WYMeditor.STRINGS['zh-CN'] = {
42
42
  Status: '状态',
43
43
  Source_Code: '源代码',
44
44
  Attachment: '附件',
45
- NewParagraph: '新段落'
45
+ NewParagraph: '新段落',
46
+ Apply_Style: '应用样式',
47
+ Insert: '插入'
46
48
  };
47
49
 
@@ -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:wym._options.langPath + wym._options.lang + '.js', async:false}).responseText);
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.");
@@ -26,7 +26,8 @@ WYMeditor.XhtmlValidator = {
26
26
  "accesskey",
27
27
  "tabindex",
28
28
  "data",
29
- "^data-.*"
29
+ "^data-.*",
30
+ "^aria-.*"
30
31
  ]
31
32
  },
32
33
  "language":
@@ -1,23 +1,24 @@
1
- # Encoding: UTF-8
1
+ # frozen_string_literal: true
2
+
2
3
  Gem::Specification.new do |s|
3
4
  s.platform = Gem::Platform::RUBY
4
- s.name = %q{refinerycms-wymeditor}
5
- s.version = '2.0.0'
6
- s.summary = %q{WYMeditor support for Refinery CMS}
7
- s.description = %q{This extension adds WYMeditor support to Refinery CMS for visual editing.}
8
- s.email = %q{gems@p.arndt.io}
9
- s.homepage = %q{https://manuka.co}
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 = %q{MIT}
12
- s.require_paths = %w(lib)
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.dev', '< 5.0']
18
+ s.add_dependency 'refinerycms-core', ['>= 4.0.0', '< 5.0']
18
19
 
19
- s.cert_chain = ['certs/parndt.pem']
20
- if $0 =~ /gem\z/ && ARGV.include?("build") && ARGV.include?(__FILE__)
21
- s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem")
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 = Globalize.with_locale(:en) do
11
+ about_page = Mobility.with_locale(:en) do
12
12
  Refinery::Page.create :title => 'About'
13
13
  end
14
14
 
15
- Globalize.with_locale(:ru) do
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 = :selenium
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.0.0
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
  -----BEGIN CERTIFICATE-----
13
- MIIDhjCCAm6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBNMQ0wCwYDVQQDDARnZW1z
14
- MREwDwYKCZImiZPyLGQBGRYBcDEVMBMGCgmSJomT8ixkARkWBWFybmR0MRIwEAYK
15
- CZImiZPyLGQBGRYCaW8wHhcNMTcwNzI1MTMxMjIwWhcNMTgwNzI1MTMxMjIwWjBN
16
- MQ0wCwYDVQQDDARnZW1zMREwDwYKCZImiZPyLGQBGRYBcDEVMBMGCgmSJomT8ixk
17
- ARkWBWFybmR0MRIwEAYKCZImiZPyLGQBGRYCaW8wggEiMA0GCSqGSIb3DQEBAQUA
18
- A4IBDwAwggEKAoIBAQDrjwB8be48TFEvGweP7BwWFnmsL2IMU9Ts2UKKWK9GYr7Z
19
- 5uNZFmO1yVBCrmUQHHDlpku6SN6HDO8ChDL7LNugz/4eapRTifHZl8jhPRsOLBcF
20
- 1hANy/V2v5NNkL5Zvb+vsUa7lyjbIOoD5yYzSDl4/T0nOe6xYzxJgBuxZK/nWSOe
21
- Db8Uffc7B4yhA2kuayUiQUXPYAoPdfUSxoTKDohw17Sm6LKTpg8GkT0ttof1a/xu
22
- vdsTvZHIcTsYv16e+8SrwLRZ/iBVVsyZFkMYPMxemw7WHxmWElWIgW9S7pUK5Q7J
23
- oMS5uJVbtV2EmV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xLRkc1I50luA==
32
36
  -----END CERTIFICATE-----
33
- date: 2017-08-31 00:00:00.000000000 Z
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.dev
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.dev
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
- rubyforge_project:
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