Sha256: 0c851a0249328ad3b4d3e7fb2918d02482ef27d1c88050f9f1cf6603d76488e0

Contents?: true

Size: 327 Bytes

Versions: 5

Compression:

Stored size: 327 Bytes

Contents

# frozen_string_literal: true

module TaintedLove
  module Validator
    class SproketsMarshal < Base
      def remove?(warning)
        calling = warning.stack_trace.lines.first

        if calling[:method] == "unmarshaled_deflated" && calling[:file][/sprockets/]
          return true
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tainted_love-0.4.1 lib/tainted_love/validator/sprokets_marshal.rb
tainted_love-0.4.0 lib/tainted_love/validator/sprokets_marshal.rb
tainted_love-0.1.5 lib/tainted_love/validator/sprokets_marshal.rb
tainted_love-0.1.4 lib/tainted_love/validator/sprokets_marshal.rb
tainted_love-0.1.3 lib/tainted_love/validator/sprokets_marshal.rb