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

Version Path
calabash-android-0.9.7 lib/calabash-android/utils.rb
calabash-android-0.9.6 lib/calabash-android/utils.rb
appium_instrumenter-0.1.4 lib/appium_instrumenter/utils.rb
calabash-android-0.9.5 lib/calabash-android/utils.rb
calabash-android-0.9.4 lib/calabash-android/utils.rb
calabash-android-0.9.3 lib/calabash-android/utils.rb
appium_instrumenter-0.1.3 lib/appium_instrumenter/utils.rb
appium_instrumenter-0.1.2 lib/appium_instrumenter/utils.rb
appium_instrumenter-0.1.1 lib/appium_instrumenter/utils.rb
appium_instrumenter-0.1.0 lib/appium_instrumenter/utils.rb
calabash-android-0.9.2 lib/calabash-android/utils.rb
calabash-android-0.9.1.pre2 lib/calabash-android/utils.rb
calabash-android-0.9.1.pre1 lib/calabash-android/utils.rb
calabash-android-0.9.0.pre1 lib/calabash-android/utils.rb
calabash-android-0.9.0 lib/calabash-android/utils.rb
calabash-android-0.8.4 lib/calabash-android/utils.rb
calabash-android-0.8.3 lib/calabash-android/utils.rb