scrivito_advanced_editors 0.0.18 → 0.0.19
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce0439a1c00e83fa4c24030ea6d01c154d894f50
|
|
4
|
+
data.tar.gz: 152c4a78a8cd5c6535d177121406bd7447aa2366
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3c2f59b66ea1591392056bc09694dfcd58a80c7a52282210512afd8032cb8e093921abdfd27e1d7acb8b832dff9392d0cf452a5998716d65f95c4274daa18ea3
|
|
7
|
+
data.tar.gz: 7d72db5291ee68618f13e2645d9e111d927328ba619804c5868b53b50d6815f722d55deb3c30230954e11cfde3ea9feb1702f3900dc706f9a7f1c2c6b0bf9d32
|
|
@@ -76,7 +76,7 @@ module ScrivitoAdvancedEditors
|
|
|
76
76
|
def css_class(elem, active)
|
|
77
77
|
return '' if active.nil?
|
|
78
78
|
return active == elem[:content] ? 'active' : '' if elem.is_a? Hash
|
|
79
|
-
return active == elem.to_s ? 'active' : '' if (
|
|
79
|
+
return active == elem.to_s ? 'active' : '' if (active.is_a?(String) || active.is_a?(Fixnum))
|
|
80
80
|
active.include?(elem) ? 'active' : ''
|
|
81
81
|
end
|
|
82
82
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: scrivito_advanced_editors
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.19
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scrivito
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|