markus 4.0.12 → 4.0.14

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 +10 -6
  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: 5c823580a0bb0791242cc3f0f649de84e0bff7b6
4
- data.tar.gz: 385b569f68399d927c3e481bc6780c9ec6b39292
3
+ metadata.gz: 0c4195f13580dbc60fd7da3af19ec43c6008425a
4
+ data.tar.gz: 20baed2a2e1958a126d2370dc582460548d01d70
5
5
  SHA512:
6
- metadata.gz: 395829a6126f862295ab7f42e1daf3d118eff71468191931c79593b43d624420ede122909a4ab11f5297873fc2a1b9e0104e30b48b82582fab01c70717f3926e
7
- data.tar.gz: 2b457501d71a7025e5f7e29eda5b448026652e5fed5fdd45bd9258b8818a70a254b2a1f185dcfa3aeccdc3a5c5f7fe30e6783a89b0bb3ed2bb551f8a8630ae14
6
+ metadata.gz: e220d88ec4b45ff368df761194dfcc5c4d7d0d1472cae1e0ca7dbf051533c44e930f01a8d5e0d4e66b609d85c500162b93475f693fa234b64619f990d3d3cd29
7
+ data.tar.gz: cecdf63a2a8e6416f25b0e7ef2ef9de9ab9786f939c62aba77f67b568f0c5e0736d20a9a3299f20628f9161dcfd37b0be88444b48067b9a1084f2af5a98920a7
data/lib/markus.rb CHANGED
@@ -286,7 +286,7 @@ class MarkUS
286
286
  self.__markus_reload_timestamp = nil
287
287
  self.__markus_file = filepath
288
288
  self.__markus_templates = {}
289
- self.__markus_indent = false
289
+ self.__markus_indent = self.class_variable_defined?(:@@__markus_indent) ? @@__markus_indent : false
290
290
  self.__markus_includes = []
291
291
  end
292
292
  end #}}}
@@ -310,11 +310,15 @@ class MarkUS
310
310
  self.__markus_templates[name] = p
311
311
  end #}}}
312
312
  def self::indent #{{{
313
- self.__markus_indent = true
313
+ if self.__markus_indent.nil?
314
+ @@__markus_indent = true
315
+ else
316
+ self.__markus_indent = true
317
+ end
314
318
  end #}}}
315
319
 
316
- def self::templates(some)
317
- self.__markus_includes << some
318
- self.__markus_templates.merge! some.__markus_templates
319
- end
320
+ def self::templates(some)
321
+ self.__markus_includes << some
322
+ self.__markus_templates.merge! some.__markus_templates
323
+ end
320
324
  end
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.12"
3
+ s.version = "4.0.14"
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.12
4
+ version: 4.0.14
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-19 00:00:00.000000000 Z
11
+ date: 2016-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest