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 +4 -4
- data/lib/immunio/plugins/action_view.rb +2 -5
- data/lib/immunio/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6055543c258054ef2deee718998ada2e1ee72b22
|
4
|
+
data.tar.gz: cd78217a6233a81e01126f5a15f523e89325150f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/immunio/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|