markus 4.0.9 → 4.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee191095d8b19bb082a6103fa6499d77b7326445
4
- data.tar.gz: 652719443e696164528d23ce29f08c78165467d1
3
+ metadata.gz: 3aa1ee23e151e4b184b241a150ed7f3c1502414e
4
+ data.tar.gz: 7fe720eec420b2f1767bf02589730b511c04299b
5
5
  SHA512:
6
- metadata.gz: 92bb414f56c1f92526af438dfd53051bc818aa00253679c01fcd12a28b6fa0bf90cf7f61752cc3e286e4e6a9c68ef257b60125218cd4e49a67b238b6ec97950b
7
- data.tar.gz: e109bbc3eaeedf294165ce6fa77682343af4a7047433f52c4e0ebfbb7ce1ead84eaa018d5b73c6f69e9bd3eaa9d337373bf5ee7b8f6cfc30c446d8a0589170a4
6
+ metadata.gz: 88a1a1ac7b3649f158d00f9922af83401161e6b3c1a6312c4847ff636196d970d245b539b5264d21c91e4e98ac10e4612557fec7fa117ecf0f049a7b54af6cc4
7
+ data.tar.gz: 5784540a27ad2caffdfa296d2e6da97b0f4c476e0a25bc6283cf6d25757912f18c9b31b27403385cb14d1f9497b79e1c80d43f3faa04fbbf771750ca6120a74b
data/lib/markus.rb CHANGED
@@ -72,8 +72,8 @@ class MarkUS
72
72
  def element_!(name=nil, *args, &blk) #{{{
73
73
  __markus_method_missing name, *args, &blk
74
74
  end #}}}
75
- def template_!(name) #{{{
76
- instance_eval &self.class.__markus_templates[name]
75
+ def template_!(name,*args) #{{{
76
+ instance_exec *args, &self.class.__markus_templates[name]
77
77
  end #}}}
78
78
 
79
79
  def method_missing(name,*args, &blk) #{{{ # :nodoc:
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.9"
3
+ s.version = "4.0.10"
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."
data/test/change.mt_ CHANGED
@@ -3,7 +3,7 @@ class TestJsonChange < MarkUS
3
3
 
4
4
  template :main do
5
5
  element_! do
6
- query_ 60
6
+ query_ 62
7
7
  end
8
8
  end
9
9
  end
@@ -2,6 +2,6 @@ class ChangeIncludeCommon < MarkUS
2
2
  reload
3
3
 
4
4
  template :test do
5
- query_ 101
5
+ query_ 104
6
6
  end
7
7
  end
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.9
4
+ version: 4.0.10
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-13 00:00:00.000000000 Z
11
+ date: 2016-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest