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.30 lib/calabash-android/utils.rb
calabash-android-0.9.29 lib/calabash-android/utils.rb
calabash-android-0.9.28 lib/calabash-android/utils.rb
calabash-android-0.9.25 lib/calabash-android/utils.rb
calabash-android-0.9.24 lib/calabash-android/utils.rb
calabash-android-0.9.22 lib/calabash-android/utils.rb
calabash-android-0.9.21 lib/calabash-android/utils.rb
calabash-android-0.9.20 lib/calabash-android/utils.rb
calabash-android-0.9.19 lib/calabash-android/utils.rb
calabash-android-0.9.18 lib/calabash-android/utils.rb
calabash-android-0.9.17 lib/calabash-android/utils.rb
calabash-android-0.9.16 lib/calabash-android/utils.rb
calabash-android-0.9.14 lib/calabash-android/utils.rb
appium_instrumenter-0.1.6 lib/appium_instrumenter/utils.rb
calabash-android-0.9.12 lib/calabash-android/utils.rb
calabash-android-0.9.11 lib/calabash-android/utils.rb
calabash-android-0.9.10 lib/calabash-android/utils.rb
calabash-android-0.9.9 lib/calabash-android/utils.rb
appium_instrumenter-0.1.5 lib/appium_instrumenter/utils.rb
calabash-android-0.9.8 lib/calabash-android/utils.rb