ejx 1.2 → 1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ejx/template/html_tag/attribute_value.rb +9 -1
- data/lib/ejx/template/subtemplate.rb +1 -0
- data/lib/ejx/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e44ded1120e5c09730c749323a7f2a405f639903e8257c2725c4a2275d35cfa0
|
4
|
+
data.tar.gz: dcfffdfcf51ecb1d1c60bb69f1a445c0fa7fcba5bfece8dc5b2943e503e99f03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ce63ec2f9e07b81e78fd3535dd3a526443d7e5b86a0e89154f2c6d5428bc654fa5efa441b2b112c196efbde1507482a3c9cb3450cf9e1fac05718dcef240bc2
|
7
|
+
data.tar.gz: 38b35ef1cef9265be667f4df3539fa71f598f407e0dab34b72aaebef77ccab960f87942c83e7a0eb345e80c0f973a0079fe0ba9c44c95465caab3dae10ef8ae6
|
@@ -8,7 +8,15 @@ class EJX::Template::HTMLTag::AttributeValue
|
|
8
8
|
if @values.empty?
|
9
9
|
JSON.generate('')
|
10
10
|
else
|
11
|
-
@values.map
|
11
|
+
@values.map do |value|
|
12
|
+
if value.is_a?(::String)
|
13
|
+
JSON.generate(value)
|
14
|
+
elsif value.value =~ /\A\s*\w+\s*\z/
|
15
|
+
value.value
|
16
|
+
else
|
17
|
+
"(" + value.value + ")"
|
18
|
+
end
|
19
|
+
end.join(' + ')
|
12
20
|
end
|
13
21
|
end
|
14
22
|
|
data/lib/ejx/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ejx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Bracy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: stream_parser
|