Sha256: 0e23b20f0888b8593eeca4bb97d846978ebabfb4c8a2ba144ee90fa1475b9409

Contents?: true

Size: 384 Bytes

Versions: 36

Compression:

Stored size: 384 Bytes

Contents

# encoding: utf-8
def suppress_all_warnings
  old_verbose = $VERBOSE
  begin
    $VERBOSE = nil
    yield if block_given?
  ensure
    # always re-set to old value, even if block raises an exception
    $VERBOSE = old_verbose
  end
end

# create a new instance of the Java class File without shadowing the Ruby version of the File class
module JavaIO
  include_package "java.io"
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
logstash-filter-geoip-7.0.1-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-7.0.0-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-6.0.5-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-6.0.3-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-6.0.2-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-6.0.1-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-6.0.0-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-5.0.3-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-5.0.2-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-4.3.1-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-5.0.1-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-5.0.0-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-4.3.0-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-4.2.1-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-4.2.0-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-4.1.1-java lib/logstash/filters/geoip/patch.rb