markus 4.0.8 → 4.0.9

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 +3 -3
  3. data/markus.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49fb1a035138ce8473d2f834e1d786636d90ae9b
4
- data.tar.gz: d197ea04b680073f8dcb77391058c3b738426ab6
3
+ metadata.gz: ee191095d8b19bb082a6103fa6499d77b7326445
4
+ data.tar.gz: 652719443e696164528d23ce29f08c78165467d1
5
5
  SHA512:
6
- metadata.gz: acacb84c1b7d630980dcb831c1b327b74d6716186f443529946da5220008094adc00daad79b79449c462648c3d294adaf78c9b04dbb7b12cd51d99e0ac8c7649
7
- data.tar.gz: 8292fb9a5869d90f12f69fed47b9a829ee1dc26a515497460ab52b8535c8f987ac33cf253436fc7e2919ac70e61a92c50a1aee91916ffd19d40963a5edcbc83d
6
+ metadata.gz: 92bb414f56c1f92526af438dfd53051bc818aa00253679c01fcd12a28b6fa0bf90cf7f61752cc3e286e4e6a9c68ef257b60125218cd4e49a67b238b6ec97950b
7
+ data.tar.gz: e109bbc3eaeedf294165ce6fa77682343af4a7047433f52c4e0ebfbb7ce1ead84eaa018d5b73c6f69e9bd3eaa9d337373bf5ee7b8f6cfc30c446d8a0589170a4
data/lib/markus.rb CHANGED
@@ -218,24 +218,24 @@ class MarkUS
218
218
  @__markus_level -= 1
219
219
  @__markus_parent = mpsic
220
220
  else
221
- if mpsic == :a
221
+ if @__markus_parent == :a
222
+ @__markus_level += 1
222
223
  if self.class.__markus_indent
223
224
  @__markus_buffer << "#{" " * @__markus_level}{"
224
225
  else
225
226
  @__markus_buffer << "{"
226
227
  end
227
- @__markus_level += 1
228
228
  if self.class.__markus_indent
229
229
  @__markus_buffer << "#{" " * (@__markus_level+1)}\"#{tname}\": #{attrs || content}"
230
230
  else
231
231
  @__markus_buffer << "\"#{tname}\": #{attrs || content}"
232
232
  end
233
- @__markus_level -= 1
234
233
  if self.class.__markus_indent
235
234
  @__markus_buffer << "#{" " * @__markus_level}},"
236
235
  else
237
236
  @__markus_buffer << "},"
238
237
  end
238
+ @__markus_level -= 1
239
239
  else
240
240
  if self.class.__markus_indent
241
241
  @__markus_buffer << "#{" " * (@__markus_level+1)}\"#{tname}\": #{attrs || content},"
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.8"
3
+ s.version = "4.0.9"
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markus
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.8
4
+ version: 4.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler