markus 4.0.7 → 4.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/markus.rb +25 -5
- data/markus.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49fb1a035138ce8473d2f834e1d786636d90ae9b
|
4
|
+
data.tar.gz: d197ea04b680073f8dcb77391058c3b738426ab6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acacb84c1b7d630980dcb831c1b327b74d6716186f443529946da5220008094adc00daad79b79449c462648c3d294adaf78c9b04dbb7b12cd51d99e0ac8c7649
|
7
|
+
data.tar.gz: 8292fb9a5869d90f12f69fed47b9a829ee1dc26a515497460ab52b8535c8f987ac33cf253436fc7e2919ac70e61a92c50a1aee91916ffd19d40963a5edcbc83d
|
data/lib/markus.rb
CHANGED
@@ -218,11 +218,31 @@ class MarkUS
|
|
218
218
|
@__markus_level -= 1
|
219
219
|
@__markus_parent = mpsic
|
220
220
|
else
|
221
|
-
if
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
221
|
+
if mpsic == :a
|
222
|
+
if self.class.__markus_indent
|
223
|
+
@__markus_buffer << "#{" " * @__markus_level}{"
|
224
|
+
else
|
225
|
+
@__markus_buffer << "{"
|
226
|
+
end
|
227
|
+
@__markus_level += 1
|
228
|
+
if self.class.__markus_indent
|
229
|
+
@__markus_buffer << "#{" " * (@__markus_level+1)}\"#{tname}\": #{attrs || content}"
|
230
|
+
else
|
231
|
+
@__markus_buffer << "\"#{tname}\": #{attrs || content}"
|
232
|
+
end
|
233
|
+
@__markus_level -= 1
|
234
|
+
if self.class.__markus_indent
|
235
|
+
@__markus_buffer << "#{" " * @__markus_level}},"
|
236
|
+
else
|
237
|
+
@__markus_buffer << "},"
|
238
|
+
end
|
239
|
+
else
|
240
|
+
if self.class.__markus_indent
|
241
|
+
@__markus_buffer << "#{" " * (@__markus_level+1)}\"#{tname}\": #{attrs || content},"
|
242
|
+
else
|
243
|
+
@__markus_buffer << "\"#{tname}\": #{attrs || content},"
|
244
|
+
end
|
245
|
+
end
|
226
246
|
end
|
227
247
|
end #}}}
|
228
248
|
|
data/markus.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|