Skip to content
Browse files

Added stubs for 1.9+ Addrinfo created by require 'socket'.

  • Loading branch information...
1 parent 058cd99 commit e3bb300f7d2eeb92e91650cd87d214092b6ffd76 @brixen brixen committed
Showing with 288 additions and 0 deletions.
  1. +3 −0 spec/rbx.1.8.mspec
  2. +6 −0 spec/ruby/library/socket/addrinfo/afamily_spec.rb
  3. +6 −0 spec/ruby/library/socket/addrinfo/bind_spec.rb
  4. +6 −0 spec/ruby/library/socket/addrinfo/canonname_spec.rb
  5. +6 −0 spec/ruby/library/socket/addrinfo/connect_from_spec.rb
  6. +6 −0 spec/ruby/library/socket/addrinfo/connect_spec.rb
  7. +6 −0 spec/ruby/library/socket/addrinfo/connect_to_spec.rb
  8. +6 −0 spec/ruby/library/socket/addrinfo/family_addrinfo_spec.rb
  9. +6 −0 spec/ruby/library/socket/addrinfo/foreach_spec.rb
  10. +6 −0 spec/ruby/library/socket/addrinfo/getaddrinfo_spec.rb
  11. +6 −0 spec/ruby/library/socket/addrinfo/getnameinfo_spec.rb
  12. +6 −0 spec/ruby/library/socket/addrinfo/inspect_sockaddr_spec.rb
  13. +6 −0 spec/ruby/library/socket/addrinfo/inspect_spec.rb
  14. +6 −0 spec/ruby/library/socket/addrinfo/ip_address_spec.rb
  15. +6 −0 spec/ruby/library/socket/addrinfo/ip_port_spec.rb
  16. +10 −0 spec/ruby/library/socket/addrinfo/ip_spec.rb
  17. +6 −0 spec/ruby/library/socket/addrinfo/ip_unpack_spec.rb
  18. +6 −0 spec/ruby/library/socket/addrinfo/ipv4_loopback_spec.rb
  19. +6 −0 spec/ruby/library/socket/addrinfo/ipv4_multicast_spec.rb
  20. +6 −0 spec/ruby/library/socket/addrinfo/ipv4_private_spec.rb
  21. +6 −0 spec/ruby/library/socket/addrinfo/ipv4_spec.rb
  22. +6 −0 spec/ruby/library/socket/addrinfo/ipv6_linklocal_spec.rb
  23. +6 −0 spec/ruby/library/socket/addrinfo/ipv6_loopback_spec.rb
  24. +6 −0 spec/ruby/library/socket/addrinfo/ipv6_mc_global_spec.rb
  25. +6 −0 spec/ruby/library/socket/addrinfo/ipv6_mc_linklocal_spec.rb
  26. +6 −0 spec/ruby/library/socket/addrinfo/ipv6_mc_nodelocal_spec.rb
  27. +6 −0 spec/ruby/library/socket/addrinfo/ipv6_mc_orglocal_spec.rb
  28. +6 −0 spec/ruby/library/socket/addrinfo/ipv6_mc_sitelocal_spec.rb
  29. +6 −0 spec/ruby/library/socket/addrinfo/ipv6_multicast_spec.rb
  30. +6 −0 spec/ruby/library/socket/addrinfo/ipv6_sitelocal_spec.rb
  31. +6 −0 spec/ruby/library/socket/addrinfo/ipv6_spec.rb
  32. +6 −0 spec/ruby/library/socket/addrinfo/ipv6_to_ipv4_spec.rb
  33. +6 −0 spec/ruby/library/socket/addrinfo/ipv6_unspecified_spec.rb
  34. +6 −0 spec/ruby/library/socket/addrinfo/ipv6_v4compat_spec.rb
  35. +6 −0 spec/ruby/library/socket/addrinfo/ipv6_v4mapped_spec.rb
  36. +6 −0 spec/ruby/library/socket/addrinfo/listen_spec.rb
  37. +6 −0 spec/ruby/library/socket/addrinfo/marshal_dump_spec.rb
  38. +6 −0 spec/ruby/library/socket/addrinfo/marshal_load_spec.rb
  39. +6 −0 spec/ruby/library/socket/addrinfo/pfamily_spec.rb
  40. +6 −0 spec/ruby/library/socket/addrinfo/protocol_spec.rb
  41. +6 −0 spec/ruby/library/socket/addrinfo/socktype_spec.rb
  42. +6 −0 spec/ruby/library/socket/addrinfo/tcp_spec.rb
  43. +6 −0 spec/ruby/library/socket/addrinfo/to_s_spec.rb
  44. +6 −0 spec/ruby/library/socket/addrinfo/to_sockaddr_spec.rb
  45. +6 −0 spec/ruby/library/socket/addrinfo/udp_spec.rb
  46. +6 −0 spec/ruby/library/socket/addrinfo/unix_path_spec.rb
  47. +10 −0 spec/ruby/library/socket/addrinfo/unix_spec.rb
  48. +1 −0 spec/ruby/ruby.1.8.mspec
View
3 spec/rbx.1.8.mspec
@@ -32,6 +32,7 @@ class MSpecScript
'^library/ripper',
'^library/rake',
'^library/rubygems',
+ '^library/socket/addrinfo',
]
set :capi, [
@@ -59,6 +60,7 @@ class MSpecScript
'^spec/ruby/library/ripper',
'^spec/ruby/library/rake',
'^spec/ruby/library/rubygems',
+ '^spec/ruby/library/socket/addrinfo',
]
# An ordered list of the directories containing specs to run
@@ -108,6 +110,7 @@ class MSpecScript
'^spec/ruby/library/ripper',
'^spec/ruby/library/rake',
'^spec/ruby/library/rubygems',
+ '^spec/ruby/library/socket/addrinfo',
'^spec/ruby/optional/capi/encoding',
]
View
6 spec/ruby/library/socket/addrinfo/afamily_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#afamily" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/bind_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#bind" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/canonname_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#canonname" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/connect_from_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#connect_from" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/connect_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#connect" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/connect_to_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#connect_to" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/family_addrinfo_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#family_addrinfo" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/foreach_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo.foreach" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/getaddrinfo_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo.getaddrinfo" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/getnameinfo_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#getnameinfo" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/inspect_sockaddr_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#inspect_sockaddr" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/inspect_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#inspect" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ip_address_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ip_address" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ip_port_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ip_port" do
+ it "needs to be reviewed for spec completeness"
+end
View
10 spec/ruby/library/socket/addrinfo/ip_spec.rb
@@ -0,0 +1,10 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo.ip" do
+ it "needs to be reviewed for spec completeness"
+end
+
+describe "Addrinfo#ip?" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ip_unpack_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ip_unpack" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ipv4_loopback_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ipv4_loopback?" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ipv4_multicast_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ipv4_multicast?" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ipv4_private_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ipv4_private?" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ipv4_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ipv4?" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ipv6_linklocal_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ipv6_linklocal?" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ipv6_loopback_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ipv6_loopback?" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ipv6_mc_global_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ipv6_mc_global?" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ipv6_mc_linklocal_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ipv6_mc_linklocal?" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ipv6_mc_nodelocal_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ipv6_mc_nodelocal?" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ipv6_mc_orglocal_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ipv6_mc_orglocal?" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ipv6_mc_sitelocal_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ipv6_mc_sitelocal?" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ipv6_multicast_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ipv6_multicast?" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ipv6_sitelocal_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ipv6_sitelocal?" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ipv6_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ipv6?" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ipv6_to_ipv4_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ipv6_to_ipv4" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ipv6_unspecified_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ipv6_unspecified?" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ipv6_v4compat_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ipv6_v4compat?" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/ipv6_v4mapped_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#ipv6_v4mapped?" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/listen_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#listen" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/marshal_dump_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#marshal_dump" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/marshal_load_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#marshal_load" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/pfamily_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#pfamily" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/protocol_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#protocol" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/socktype_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#socktype" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/tcp_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo.tcp" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/to_s_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#to_s" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/to_sockaddr_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#to_sockaddr" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/udp_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo.udp" do
+ it "needs to be reviewed for spec completeness"
+end
View
6 spec/ruby/library/socket/addrinfo/unix_path_spec.rb
@@ -0,0 +1,6 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo#unix_path" do
+ it "needs to be reviewed for spec completeness"
+end
View
10 spec/ruby/library/socket/addrinfo/unix_spec.rb
@@ -0,0 +1,10 @@
+require File.expand_path('../../../../spec_helper', __FILE__)
+require 'socket'
+
+describe "Addrinfo.unix" do
+ it "needs to be reviewed for spec completeness"
+end
+
+describe "Addrinfo#unix?" do
+ it "needs to be reviewed for spec completeness"
+end
View
1 spec/ruby/ruby.1.8.mspec
@@ -29,6 +29,7 @@ class MSpecScript
'^library/ripper',
'^library/rake',
'^library/rubygems',
+ '^library/socket/addrinfo',
]
# An ordered list of the directories containing specs to run

0 comments on commit e3bb300

Please sign in to comment.
Something went wrong with that request. Please try again.