markus 4.0.7 → 4.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/markus.rb +25 -5
  3. data/markus.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a6f7b7882efaf7d87d5b54a58acf515498e4cc3
4
- data.tar.gz: c60ec0833ba161c08dab07ac59a2bca905da1ad7
3
+ metadata.gz: 49fb1a035138ce8473d2f834e1d786636d90ae9b
4
+ data.tar.gz: d197ea04b680073f8dcb77391058c3b738426ab6
5
5
  SHA512:
6
- metadata.gz: 12c25cb449523cbe06c2570b459bdb1f4c8232f017aedc01f36308135a99e44f186fa94cbb85bc11d8091e3df6264b69daf6f74d9a9d72b5f60f183cec3c6d80
7
- data.tar.gz: 200c20f35e3c7ca3ec5d67e3594ed0b07388b51361f10c6a52dc51120b96ea4a3f46f17b851bb7f8ac92a8b62cb5408f8984657928a044596f2b19917bbebd52
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 self.class.__markus_indent
222
- @__markus_buffer << "#{" " * (@__markus_level+1)}\"#{tname}\": #{attrs || content},"
223
- else
224
- @__markus_buffer << "\"#{tname}\": #{attrs || content},"
225
- end
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "markus"
3
- s.version = "4.0.7"
3
+ s.version = "4.0.8"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3"
6
6
  s.summary = "MarkUS - Markup UnderScore. Quick n' dirty templating in the spirit of markaby."
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.7
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-12 00:00:00.000000000 Z
11
+ date: 2016-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest