Sha256: 3787add97654db20bec4e220a84eceead2a5f96fb24789fdaee3ba61351f89cd
Contents?: true
Size: 680 Bytes
Versions: 149
Compression:
Stored size: 680 Bytes
Contents
module KnapsackPro module Crypto class Encryptor def self.call(test_files) if KnapsackPro::Config::Env.test_files_encrypted? new(test_files).call else test_files end end def initialize(test_files) @test_files = test_files end def call encrypted_test_files = [] test_files.each do |test_file| test_file_dup = test_file.dup test_file_dup['path'] = Digestor.salt_hexdigest(test_file['path']) encrypted_test_files << test_file_dup end encrypted_test_files end private attr_reader :test_files end end end
Version data entries
149 entries across 149 versions & 1 rubygems