wysihtml-rails 0.5.0 → 0.5.1

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
  SHA1:
3
- metadata.gz: 1433246fbe1120226d24d24cb6106c9f1d8d971b
4
- data.tar.gz: 8e29ce8a0c663d5bdcfd82087ecad8e84e19eb74
3
+ metadata.gz: 2b94233ba0df90edb3f3d7be49cffac2af98c886
4
+ data.tar.gz: bdbdd01f05311262cdf42f443159e38be7cf9630
5
5
  SHA512:
6
- metadata.gz: 3e10a13b4417d81fcf6618285902a64232de9a4755a4a6787062bb2904eac0641c775de088a1764aee4b8de4335528193c1f94f5766745cabd997fa6770ab966
7
- data.tar.gz: 6f04bfec384aeba9cd3e210a9e4332e83053885c8a2e96650911d55e9aaa8c15231c3d1461512ca737a0d97d8604c87e6cbe36ecde797529eb7b2432197a64bf
6
+ metadata.gz: 193c1f3fd743e30643a974e93aad3321460b889a262ce75dee28ed32b8b51d4fd4bb54d004bc3a9d2c0a1805485beeae104e178059f690ec73a568596457e836
7
+ data.tar.gz: ea14ffb5949e3b4ec8b8d3b8d4f0489cf73a340a35c4240133a7b477051f8f9c6c882c30e7c57d0faff9f1f18ae4f6918b6180945c8be83848146ab4da459cdc
@@ -1,5 +1,5 @@
1
1
  module Wysihtml
2
2
  module Rails
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license wysihtml v0.5.0
2
+ * @license wysihtml v0.5.1
3
3
  * https://github.com/Voog/wysihtml
4
4
  *
5
5
  * Author: Christopher Blum (https://github.com/tiff)
@@ -10,7 +10,7 @@
10
10
  *
11
11
  */
12
12
  var wysihtml5 = {
13
- version: "0.5.0",
13
+ version: "0.5.1",
14
14
 
15
15
  // namespaces
16
16
  commands: {},
@@ -9164,7 +9164,9 @@ wysihtml5.dom.parse = function(elementOrHtml_current, config_current) {
9164
9164
  attributes["class"] = oldNode.getAttribute("class");
9165
9165
  }
9166
9166
  } else {
9167
- attributes["class"] = wysihtml5.lang.array(classes).unique().join(" ");
9167
+ if(classes && classes.length > 0) {
9168
+ attributes["class"] = wysihtml5.lang.array(classes).unique().join(" ");
9169
+ }
9168
9170
  }
9169
9171
  } else {
9170
9172
  // make sure that wysihtml5 temp class doesn't get stripped out
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license wysihtml v0.5.0
2
+ * @license wysihtml v0.5.1
3
3
  * https://github.com/Voog/wysihtml
4
4
  *
5
5
  * Author: Christopher Blum (https://github.com/tiff)
@@ -10,7 +10,7 @@
10
10
  *
11
11
  */
12
12
  var wysihtml5 = {
13
- version: "0.5.0",
13
+ version: "0.5.1",
14
14
 
15
15
  // namespaces
16
16
  commands: {},
@@ -9164,7 +9164,9 @@ wysihtml5.dom.parse = function(elementOrHtml_current, config_current) {
9164
9164
  attributes["class"] = oldNode.getAttribute("class");
9165
9165
  }
9166
9166
  } else {
9167
- attributes["class"] = wysihtml5.lang.array(classes).unique().join(" ");
9167
+ if(classes && classes.length > 0) {
9168
+ attributes["class"] = wysihtml5.lang.array(classes).unique().join(" ");
9169
+ }
9168
9170
  }
9169
9171
  } else {
9170
9172
  // make sure that wysihtml5 temp class doesn't get stripped out
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wysihtml-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tanel Jakobsoo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-27 00:00:00.000000000 Z
11
+ date: 2015-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties