Sha256: 93e72b9a388ebc4edc06ebc069982d1bfb42f3e3f8e066db2577af6959a3f5ce

Contents?: true

Size: 1.87 KB

Versions: 10

Compression:

Stored size: 1.87 KB

Contents

default:
  context:
    lang: 'en'
    visitor: 'ant'
    node: 'status'
  src: "simple text"
  tem: "simple text"
  res: "simple text"

show_mean_gsub:
  src: "<r:void do='text.gsub(/#{puts \"I AM MEAN\"}/, \"\")'/>"
  tem: "<span class='parser_error'><span class='method'>text.gsub(/#{puts \"I AM MEAN\"}/, \"\")</span> <span class='message'>'dregx' not available in RubyLess.</span></span>"

erb:
  src: "<% puts 'mean' %>"
  tem: "&lt;% puts 'mean' %&gt;"

forbidden_methods:
  src: "<r:eval>eval '\'bad\''</r:eval>"
  tem: "/unknown method 'eval\(String\)'/"

syntax_error:
  src: "<r:show eval='<% puts \"mean\" %>'/>"
  tem: "!/<% puts \"mean\" %>/"
  res: "/&lt;% puts \"mean\"/"

mean_eval:
  src: "<r:show eval='puts \"bad\"'/>"
  tem: "/unknown method 'puts\(String\)'/"

mean_in_translation:
  context:
    lang: fr
  src: "<r:load dictionary='/Default skin/translations'><r:t>mean</r:t></r:load>"
  tem: "<% _zdict = load_dictionary(828931430) %>&lt;%= 5 + 8 %&gt;"

build_erb_with_trans:
  context:
    lang: fr
  src: "<r:load dictionary='/Default skin/translations'><r:t>mean_m</r:t><r:void>%= 5+8 %</r:void><r:void>></r:void></r:load>"
  tem: "<% _zdict = load_dictionary(828931430) %>&lt;%= 5+8 %>"

build_erb_with_void:
  context:
    lang: fr
  src: "<r:void><</r:void><r:void>%= 5+8 %</r:void><r:void>></r:void></r:load>"
  tem: "/>%= 5\+8 %>/"
  
mean_inc:
  src: '<'
  res: '&lt;'

build_erb_with_include:
  src: "<r:include template='/security/mean/inc'/><r:void>%= 5+8 %</r:void><r:void>></r:void>"
  tem: "!/<%= 5/"

mean_part:
  src: "<<div id='foo'></div>"
  res: "<<div id='foo'></div>"
  
build_erb_with_include_remove_part:
  src: "<r:include template='/security/mean/part'><r:with part='foo'/></r:include><r:void>%= 5+8 %</r:void><r:void>></r:void>"
  tem: "!/<%= 5/"

build_erb_with_rubyless:
  src: "<r:void do='\"<\"'/><r:void>%= 5+8 %</r:void><r:void>></r:void>"
  tem: "!/<%= 5/"

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
zena-1.2.1 test/integration/zafu_compiler/security.yml
zena-1.2.0 test/integration/zafu_compiler/security.yml
zena-1.1.3 test/integration/zafu_compiler/security.yml
zena-1.1.2 test/integration/zafu_compiler/security.yml
zena-1.1.1 test/integration/zafu_compiler/security.yml
zena-1.1.0 test/integration/zafu_compiler/security.yml
zena-1.0.0 test/integration/zafu_compiler/security.yml
zena-1.0.0.rc3 test/integration/zafu_compiler/security.yml
zena-1.0.0.rc2 test/integration/zafu_compiler/security.yml
zena-1.0.0.rc1 test/integration/zafu_compiler/security.yml