canzea 0.1.159 → 0.1.160

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: 91cd9e9146a2faf57e2e946c390dadee9d123f06
4
- data.tar.gz: 462290877c5c4d69ef7e379d7f54da0bb6b0f25b
3
+ metadata.gz: 3823b38758c809bb022081dfe93c30b548a67077
4
+ data.tar.gz: aaf5f9099d270a01ffe0e0d62b9c8df643e70a7f
5
5
  SHA512:
6
- metadata.gz: 3026e8ae33d4c6b90c364b191f3ee4a883360f67bf4dec441a06ef51c9387c3302e6f7185b48bcba0c2a272d1c26bb21c9d3d6f2036deeca67b8113cdb8c2663
7
- data.tar.gz: c78d9556327abc9905a794f7a2644b4bd61b39b3768522cd44a7aa0fdbc7e017ca0bf0dc42c2fd3f495bef5b38bf2c483533589ae7f2824aa16a6ab000aa0cbb
6
+ metadata.gz: bd1838043a6bff2e0255df3c0b881874047f98d3ca50f882ca6f5194fde5a8eca1924bec61f93ce4820fd615710bdca6d4eb289b700e0acefee1cf761cf092e6
7
+ data.tar.gz: 706f8a64a0d86aa22539a1be0fbcf10aa7bd91b616537bbf49f52848dd412673f8d104a766c308069f35a2008422f1d3f1604f4b8b7a57d93cc2d524b5055806
@@ -1,3 +1,3 @@
1
1
  module Canzea
2
- VERSION = "0.1.159"
2
+ VERSION = "0.1.160"
3
3
  end
data/lib/canzea.rb CHANGED
@@ -182,7 +182,7 @@ module Canzea
182
182
 
183
183
  if (util == "gen-template")
184
184
  t = Template.new
185
- # canzea --util=gen-template --template="a={{#tf_name}}name{{/tf_name}} {{gravatar}}" --args='{"name":"grafana.mon"}'
185
+ # canzea --util=gen-template --template="Result = {{#cname}}A:{{#tf_name}}name{{/tf_name}}{{/cname}} {{gravatar}}" --args='{"a":[{"name":"grafana.mon"}], "cname":[{"name":"www","address":"@"},{"name":"vault","address":"@"},{"name":"consul","address":"@"},{"name":"sc","address":"@"}]}'
186
186
  puts t.processString opts[:template], JSON.parse(opts.fetch(:args, '{}'))
187
187
  end
188
188
 
@@ -5,7 +5,7 @@ require 'mustache'
5
5
  module ViewHelpers
6
6
  # {{#tf_name}}name{{/tf_name}}
7
7
  def tf_name(name)
8
- self[name].sub! '.', '-'
8
+ self[name].sub '.', '-'
9
9
  end
10
10
  end
11
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canzea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.159
4
+ version: 0.1.160
5
5
  platform: ruby
6
6
  authors:
7
7
  - Canzea Technologies