immunio 1.1.16 → 1.1.18

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: 8a87728c00394abac56d459bdcc7ea86553a716f
4
- data.tar.gz: fbd84915ed83ee4fa2e51ab71311c3ba10eb95d9
3
+ metadata.gz: 6055543c258054ef2deee718998ada2e1ee72b22
4
+ data.tar.gz: cd78217a6233a81e01126f5a15f523e89325150f
5
5
  SHA512:
6
- metadata.gz: d148db1912d727214674e848b73cf696f524e54102e134ccd34967375da99e808c2ae3cbd15c166f9c08642c13678416d0ec260a891ba9684f76347d1554e8cc
7
- data.tar.gz: 78d2e33446b767e2f1f21214268211ad212ee270cc0399a373ab04bf82161fbe0ef28e36a4608fec8a8a2ff9185b6a6d83c92a9da3fd63da2cdae74d6b633ee8
6
+ metadata.gz: a361784ac3f389ebbfe6c9e5511ebf422ab171a54a28f72fc30eeb8efab108b63ddc78ea2e2b912358a7c876dcd79b7f390cea9e96bbb42db11881e1123961e3
7
+ data.tar.gz: 3811d95d95a73a07e0635061a110a3564e043fab77bfc5cb76c895fb927f7f07def36e445441246143f1b4054d53e146cf4311002d929491db5099009c6b327c
@@ -402,9 +402,6 @@ module Immunio
402
402
  end
403
403
  end
404
404
 
405
- # Regexp to test for blocks (... do) in the Ruby code of templates.
406
- BLOCK_EXPR = ActionView::Template::Handlers::Erubis::BLOCK_EXPR
407
-
408
405
  # Hooks for the ERB template engine.
409
406
  # (Default one used in Rails).
410
407
  module ErubisHooks
@@ -419,7 +416,7 @@ module Immunio
419
416
  # Do not wrap expressions with blocks, eg.: <%= form_tag do %>
420
417
  # TODO should we support blocks?
421
418
  Request.time "plugin", "#{Module.nesting[0]}::#{__method__}" do
422
- unless code =~ BLOCK_EXPR
419
+ unless code =~ ActionView::Template::Handlers::Erubis::BLOCK_EXPR
423
420
  # escape unless we see the == indicator
424
421
  escape = !(indicator == '==')
425
422
  code = Immunio::Template.generate_render_var_code(code, escape)
@@ -442,7 +439,7 @@ module Immunio
442
439
  def push_script_with_immunio(code, opts = {}, &block)
443
440
  # Wrap expressions in the templates to track their rendered value.
444
441
  Request.time "plugin", "#{Module.nesting[0]}::#{__method__}" do
445
- if code !~ BLOCK_EXPR
442
+ if code !~ ActionView::Template::Handlers::Erubis::BLOCK_EXPR
446
443
  # escape if we're told to by HAML
447
444
  code = Immunio::Template.generate_render_var_code(code, opts[:escape_html])
448
445
  end
@@ -1,5 +1,5 @@
1
1
  module Immunio
2
2
  AGENT_TYPE = "agent-ruby"
3
- VERSION = "1.1.16"
3
+ VERSION = "1.1.18"
4
4
  VM_VERSION = "2.2.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: immunio
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.16
4
+ version: 1.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Immunio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-27 00:00:00.000000000 Z
11
+ date: 2017-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails