Sha256: 3b51d679171ce1441b94a167e741b3a1eb28f7b6675495c8ef8af1966ca19ff6
Contents?: true
Size: 462 Bytes
Versions: 37
Compression:
Stored size: 462 Bytes
Contents
require 'zip' module Calabash module Utils def self.with_silent_zip(&block) previous_value = false if Zip.respond_to?(:warn_invalid_date) previous_value = Zip.warn_invalid_date end if Zip.respond_to?(:warn_invalid_date=) Zip.warn_invalid_date = false end r = block.call if Zip.respond_to?(:warn_invalid_date=) Zip.warn_invalid_date = previous_value end r end end end
Version data entries
37 entries across 37 versions & 2 rubygems