Sha256: 8bdcee648ea912d62f2f0768bda706af13bba5af5186a08e49a3f6271451981b

Contents?: true

Size: 219 Bytes

Versions: 18

Compression:

Stored size: 219 Bytes

Contents

def ipv6_enabled?
  tmp = TCPServer.new(ENV["TEST_HOST6"] || '::1', 0)
  tmp.close
  true
  rescue => e
    warn "skipping IPv6 tests, host does not seem to be IPv6 enabled:"
    warn "  #{e.class}: #{e}"
    false
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
raindrops-0.19.0 test/ipv6_enabled.rb
raindrops-0.18.0 test/ipv6_enabled.rb
raindrops-0.17.0 test/ipv6_enabled.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/raindrops-0.16.0/test/ipv6_enabled.rb
raindrops-0.16.0 test/ipv6_enabled.rb
raindrops-0.15.0 test/ipv6_enabled.rb
raindrops-0.14.0.1.g8177 test/ipv6_enabled.rb
raindrops-0.14.0 test/ipv6_enabled.rb
raindrops-0.13.0 test/ipv6_enabled.rb
raindrops-0.12.0.5.g821b test/ipv6_enabled.rb
raindrops-0.12.0 test/ipv6_enabled.rb
raindrops-0.11.0 test/ipv6_enabled.rb
raindrops-0.10.0 test/ipv6_enabled.rb
raindrops-0.9.0 test/ipv6_enabled.rb
raindrops-0.8.1 test/ipv6_enabled.rb
raindrops-0.8.0.5.g71f8 test/ipv6_enabled.rb
raindrops-0.8.0 test/ipv6_enabled.rb
raindrops-0.7.0 test/ipv6_enabled.rb