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.3.1-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-7.2.13-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-7.2.12-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-7.2.11-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-7.2.10-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-5.0.5-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-7.2.9-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-5.0.4-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-7.2.8-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-7.2.7-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-7.2.6-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-7.2.5-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-7.2.4-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-7.2.3-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-7.2.2-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-7.2.1-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-7.1.3-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-7.1.2-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-7.1.1-java lib/logstash/filters/geoip/patch.rb
logstash-filter-geoip-7.1.0-java lib/logstash/filters/geoip/patch.rb