Sha256: cd05774dc58f54c87ef0dc04eddcff8b942c678088171d02b096f45a6a22f993

Contents?: true

Size: 195 Bytes

Versions: 8

Compression:

Stored size: 195 Bytes

Contents

def unused_port
  s = TCPServer.open(0)
  port = s.addr[1]
  s.close
  port
end

def ipv6_enabled?
  require 'socket'

  begin
    TCPServer.open("::1", 0)
    true
  rescue
    false
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fluent-plugin-grok-parser-1.0.1 test/helper.rb
fluent-plugin-grok-parser-1.0.0 test/helper.rb
fluent-plugin-grok-parser-0.3.1 test/helper.rb
fluent-plugin-grok-parser-0.3.0 test/helper.rb
fluent-plugin-grok-parser-0.2.0 test/helper.rb
fluent-plugin-grok-parser-0.1.0 test/helper.rb
fluent-plugin-grok-parser-0.0.4 test/helper.rb
fluent-plugin-grok-parser-0.0.3 test/helper.rb