rbs 3.6.0.pre.2 → 3.6.0.pre.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/Rakefile +2 -2
  4. data/core/array.rbs +0 -2
  5. data/core/complex.rbs +0 -2
  6. data/core/data.rbs +0 -2
  7. data/core/dir.rbs +0 -2
  8. data/core/encoding.rbs +0 -2
  9. data/core/enumerator/product.rbs +0 -2
  10. data/core/enumerator.rbs +1 -1
  11. data/core/errors.rbs +0 -12
  12. data/core/file.rbs +0 -2
  13. data/core/float.rbs +0 -2
  14. data/core/hash.rbs +0 -2
  15. data/core/integer.rbs +0 -2
  16. data/core/io/buffer.rbs +0 -2
  17. data/core/kernel.rbs +5 -5
  18. data/core/module.rbs +2 -2
  19. data/core/numeric.rbs +0 -2
  20. data/core/object_space/weak_key_map.rbs +0 -2
  21. data/core/ractor.rbs +0 -6
  22. data/core/rational.rbs +0 -2
  23. data/core/rbs/unnamed/argf.rbs +0 -2
  24. data/core/ruby_vm.rbs +305 -0
  25. data/lib/rbs/ast/type_param.rb +44 -11
  26. data/lib/rbs/cli/validate.rb +6 -4
  27. data/lib/rbs/definition.rb +2 -8
  28. data/lib/rbs/definition_builder/ancestor_builder.rb +23 -7
  29. data/lib/rbs/definition_builder.rb +7 -6
  30. data/lib/rbs/errors.rb +38 -0
  31. data/lib/rbs/version.rb +1 -1
  32. data/sig/definition.rbs +1 -1
  33. data/sig/errors.rbs +14 -0
  34. data/sig/members.rbs +1 -2
  35. data/sig/type_param.rbs +9 -5
  36. data/stdlib/bigdecimal/0/big_decimal.rbs +0 -2
  37. data/stdlib/cgi/0/core.rbs +0 -10
  38. data/stdlib/date/0/date.rbs +0 -2
  39. data/stdlib/date/0/date_time.rbs +0 -2
  40. data/stdlib/dbm/0/dbm.rbs +0 -2
  41. data/stdlib/delegate/0/delegator.rbs +0 -2
  42. data/stdlib/delegate/0/simple_delegator.rbs +0 -2
  43. data/stdlib/digest/0/digest.rbs +0 -4
  44. data/stdlib/etc/0/etc.rbs +0 -4
  45. data/stdlib/json/0/json.rbs +22 -0
  46. data/stdlib/logger/0/formatter.rbs +0 -2
  47. data/stdlib/logger/0/log_device.rbs +0 -2
  48. data/stdlib/logger/0/logger.rbs +0 -2
  49. data/stdlib/monitor/0/monitor.rbs +0 -6
  50. data/stdlib/mutex_m/0/mutex_m.rbs +0 -2
  51. data/stdlib/net-http/0/net-http.rbs +0 -8
  52. data/stdlib/observable/0/observable.rbs +0 -2
  53. data/stdlib/open-uri/0/open-uri.rbs +1 -1
  54. data/stdlib/open3/0/open3.rbs +155 -0
  55. data/stdlib/openssl/0/openssl.rbs +0 -112
  56. data/stdlib/optparse/0/optparse.rbs +0 -22
  57. data/stdlib/pathname/0/pathname.rbs +0 -2
  58. data/stdlib/pstore/0/pstore.rbs +0 -2
  59. data/stdlib/resolv/0/resolv.rbs +0 -74
  60. data/stdlib/singleton/0/singleton.rbs +0 -2
  61. data/stdlib/socket/0/addrinfo.rbs +0 -2
  62. data/stdlib/socket/0/basic_socket.rbs +0 -2
  63. data/stdlib/socket/0/ip_socket.rbs +0 -2
  64. data/stdlib/socket/0/socket.rbs +0 -8
  65. data/stdlib/socket/0/tcp_server.rbs +0 -2
  66. data/stdlib/socket/0/udp_socket.rbs +0 -2
  67. data/stdlib/socket/0/unix_server.rbs +0 -2
  68. data/stdlib/socket/0/unix_socket.rbs +0 -2
  69. data/stdlib/strscan/0/string_scanner.rbs +0 -2
  70. data/stdlib/tempfile/0/tempfile.rbs +0 -4
  71. data/stdlib/zlib/0/deflate.rbs +0 -2
  72. data/stdlib/zlib/0/gzip_file/error.rbs +0 -2
  73. data/stdlib/zlib/0/gzip_file.rbs +0 -2
  74. data/stdlib/zlib/0/gzip_reader.rbs +0 -2
  75. data/stdlib/zlib/0/gzip_writer.rbs +0 -2
  76. data/stdlib/zlib/0/inflate.rbs +0 -2
  77. data/stdlib/zlib/0/zstream.rbs +0 -2
  78. metadata +3 -2
@@ -454,8 +454,6 @@ class OptionParser
454
454
  #
455
455
  def self.with: (?String banner, ?Integer width, ?String indent) ?{ (instance opts) -> void } -> instance
456
456
 
457
- public
458
-
459
457
  # <!--
460
458
  # rdoc-file=lib/optparse.rb
461
459
  # - abort(mesg = $!)
@@ -1109,8 +1107,6 @@ module OptionParser::Arguable
1109
1107
  #
1110
1108
  def self.extend_object: (untyped obj) -> untyped
1111
1109
 
1112
- public
1113
-
1114
1110
  # <!--
1115
1111
  # rdoc-file=lib/optparse.rb
1116
1112
  # - getopts(*args, symbolize_names: false)
@@ -1184,8 +1180,6 @@ end
1184
1180
  class OptionParser::CompletingHash < Hash[untyped, untyped]
1185
1181
  include OptionParser::Completion
1186
1182
 
1187
- public
1188
-
1189
1183
  # <!--
1190
1184
  # rdoc-file=lib/optparse.rb
1191
1185
  # - match(key)
@@ -1214,8 +1208,6 @@ module OptionParser::Completion
1214
1208
  #
1215
1209
  def self.regexp: (untyped key, untyped icase) -> untyped
1216
1210
 
1217
- public
1218
-
1219
1211
  # <!--
1220
1212
  # rdoc-file=lib/optparse.rb
1221
1213
  # - candidate(key, icase = false, pat = nil)
@@ -1260,8 +1252,6 @@ OptionParser::InvalidOption::Reason: String
1260
1252
  # and converter pair. Also provides summary feature.
1261
1253
  #
1262
1254
  class OptionParser::List
1263
- public
1264
-
1265
1255
  # <!--
1266
1256
  # rdoc-file=lib/optparse.rb
1267
1257
  # - accept(t, pat = /.*/m, &block)
@@ -1450,8 +1440,6 @@ class OptionParser::ParseError < RuntimeError
1450
1440
  #
1451
1441
  def self.filter_backtrace: (untyped array) -> untyped
1452
1442
 
1453
- public
1454
-
1455
1443
  def additional: () -> untyped
1456
1444
 
1457
1445
  def additional=: (untyped) -> untyped
@@ -1553,8 +1541,6 @@ class OptionParser::Switch
1553
1541
  #
1554
1542
  def self.pattern: () -> untyped
1555
1543
 
1556
- public
1557
-
1558
1544
  def add_banner: (untyped to) -> untyped
1559
1545
 
1560
1546
  def arg: () -> untyped
@@ -1650,8 +1636,6 @@ class OptionParser::Switch::NoArgument < OptionParser::Switch
1650
1636
  #
1651
1637
  def self.pattern: () -> untyped
1652
1638
 
1653
- public
1654
-
1655
1639
  # <!--
1656
1640
  # rdoc-file=lib/optparse.rb
1657
1641
  # - parse(arg, argv) { |NeedlessArgument, arg| ... }
@@ -1665,8 +1649,6 @@ end
1665
1649
  # Switch that can omit argument.
1666
1650
  #
1667
1651
  class OptionParser::Switch::OptionalArgument < OptionParser::Switch
1668
- public
1669
-
1670
1652
  # <!--
1671
1653
  # rdoc-file=lib/optparse.rb
1672
1654
  # - parse(arg, argv, &error)
@@ -1680,8 +1662,6 @@ end
1680
1662
  # Switch that takes an argument, which does not begin with '-' or is '-'.
1681
1663
  #
1682
1664
  class OptionParser::Switch::PlacedArgument < OptionParser::Switch
1683
- public
1684
-
1685
1665
  # <!--
1686
1666
  # rdoc-file=lib/optparse.rb
1687
1667
  # - parse(arg, argv, &error)
@@ -1695,8 +1675,6 @@ end
1695
1675
  # Switch that takes an argument.
1696
1676
  #
1697
1677
  class OptionParser::Switch::RequiredArgument < OptionParser::Switch
1698
- public
1699
-
1700
1678
  # <!--
1701
1679
  # rdoc-file=lib/optparse.rb
1702
1680
  # - parse(arg, argv)
@@ -225,8 +225,6 @@ class Pathname
225
225
  #
226
226
  def self.pwd: () -> Pathname
227
227
 
228
- public
229
-
230
228
  # <!--
231
229
  # rdoc-file=ext/pathname/lib/pathname.rb
232
230
  # - +(other)
@@ -305,8 +305,6 @@
305
305
  # end
306
306
  #
307
307
  class PStore
308
- public
309
-
310
308
  # <!--
311
309
  # rdoc-file=lib/pstore.rb
312
310
  # - [](key)
@@ -74,8 +74,6 @@ class Resolv
74
74
  #
75
75
  def self.getnames: (String address) -> Array[String]
76
76
 
77
- public
78
-
79
77
  # <!--
80
78
  # rdoc-file=lib/resolv.rb
81
79
  # - each_address(name) { |name| ... }
@@ -179,8 +177,6 @@ class Resolv::DNS
179
177
 
180
178
  def self.random: (Integer arg) -> (Integer | Float)
181
179
 
182
- public
183
-
184
180
  # <!--
185
181
  # rdoc-file=lib/resolv.rb
186
182
  # - close()
@@ -395,8 +391,6 @@ class Resolv::DNS::Config
395
391
 
396
392
  def self.parse_resolv_conf: (String filename) -> Hash[Symbol, untyped]
397
393
 
398
- public
399
-
400
394
  def generate_candidates: (String name) -> Array[Resolv::DNS::Name]
401
395
 
402
396
  def generate_timeouts: () -> Array[Integer | Float]
@@ -447,8 +441,6 @@ module Resolv::DNS::Label
447
441
  end
448
442
 
449
443
  class Resolv::DNS::Label::Str
450
- public
451
-
452
444
  def eql?: (Resolv::DNS::Label::Str other) -> bool
453
445
 
454
446
  def downcase: () -> String
@@ -471,8 +463,6 @@ end
471
463
  class Resolv::DNS::Message
472
464
  def self.decode: (String m) -> instance
473
465
 
474
- public
475
-
476
466
  def ==: (instance other) -> bool
477
467
 
478
468
  def aa: () -> Integer
@@ -541,8 +531,6 @@ class Resolv::DNS::Message
541
531
  end
542
532
 
543
533
  class Resolv::DNS::Message::MessageDecoder
544
- public
545
-
546
534
  def get_bytes: (?Integer len) -> String
547
535
 
548
536
  def get_label: () -> Resolv::DNS::Label::Str
@@ -571,8 +559,6 @@ class Resolv::DNS::Message::MessageDecoder
571
559
  end
572
560
 
573
561
  class Resolv::DNS::Message::MessageEncoder
574
- public
575
-
576
562
  def put_bytes: (string d) -> void
577
563
 
578
564
  def put_label: (_ToS d) -> void
@@ -613,8 +599,6 @@ class Resolv::DNS::Name
613
599
  #
614
600
  def self.create: (Resolv::DNS::dns_name arg) -> untyped
615
601
 
616
- public
617
-
618
602
  def ==: (instance other) -> bool
619
603
 
620
604
  def []: (Integer i) -> Resolv::DNS::Label::Str?
@@ -695,8 +679,6 @@ Resolv::DNS::OpCode::Update: Integer
695
679
  class Resolv::DNS::Query
696
680
  def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance
697
681
 
698
- public
699
-
700
682
  def encode_rdata: (Resolv::DNS::Message::MessageEncoder msg) -> void
701
683
  end
702
684
 
@@ -740,8 +722,6 @@ Resolv::DNS::RCode::YXDomain: Integer
740
722
  Resolv::DNS::RCode::YXRRSet: Integer
741
723
 
742
724
  class Resolv::DNS::Requester
743
- public
744
-
745
725
  def close: () -> void
746
726
 
747
727
  def request: (Resolv::DNS::Requester::Sender sender, Numeric tout) -> [ Resolv::DNS::Message, String ]
@@ -754,8 +734,6 @@ class Resolv::DNS::Requester
754
734
  end
755
735
 
756
736
  class Resolv::DNS::Requester::ConnectedUDP < Resolv::DNS::Requester
757
- public
758
-
759
737
  def close: () -> void
760
738
 
761
739
  def lazy_initialize: () -> void
@@ -770,16 +748,12 @@ class Resolv::DNS::Requester::ConnectedUDP < Resolv::DNS::Requester
770
748
  end
771
749
 
772
750
  class Resolv::DNS::Requester::ConnectedUDP::Sender < Resolv::DNS::Requester::Sender
773
- public
774
-
775
751
  def data: () -> String
776
752
 
777
753
  def send: () -> void
778
754
  end
779
755
 
780
756
  class Resolv::DNS::Requester::MDNSOneShot < Resolv::DNS::Requester::UnconnectedUDP
781
- public
782
-
783
757
  def sender: (Resolv::DNS::Message msg, String data, ?String host, ?Integer port) -> Resolv::DNS::Requester::Sender
784
758
 
785
759
  def recv_reply: (Array[UDPSocket] readable_socks) -> [ String, String ]
@@ -798,8 +772,6 @@ class Resolv::DNS::Requester::Sender
798
772
  end
799
773
 
800
774
  class Resolv::DNS::Requester::TCP < Resolv::DNS::Requester
801
- public
802
-
803
775
  def close: () -> untyped
804
776
 
805
777
  def recv_reply: (Array[TCPSocket] readable_socks) -> [ String, String ]
@@ -812,16 +784,12 @@ class Resolv::DNS::Requester::TCP < Resolv::DNS::Requester
812
784
  end
813
785
 
814
786
  class Resolv::DNS::Requester::TCP::Sender < Resolv::DNS::Requester::Sender
815
- public
816
-
817
787
  def data: () -> String
818
788
 
819
789
  def send: () -> void
820
790
  end
821
791
 
822
792
  class Resolv::DNS::Requester::UnconnectedUDP < Resolv::DNS::Requester
823
- public
824
-
825
793
  def close: () -> void
826
794
 
827
795
  def lazy_initialize: () -> void
@@ -836,8 +804,6 @@ class Resolv::DNS::Requester::UnconnectedUDP < Resolv::DNS::Requester
836
804
  end
837
805
 
838
806
  class Resolv::DNS::Requester::UnconnectedUDP::Sender < Resolv::DNS::Requester::Sender
839
- public
840
-
841
807
  def data: () -> String
842
808
 
843
809
  def send: () -> void
@@ -855,8 +821,6 @@ class Resolv::DNS::Resource < Resolv::DNS::Query
855
821
 
856
822
  def self.get_class: (Integer type_value, Integer class_value) -> self
857
823
 
858
- public
859
-
860
824
  def eql?: (Resolv::DNS::Resource other) -> bool
861
825
 
862
826
  def encode_rdata: (Resolv::DNS::Message::MessageEncoder msg) -> void
@@ -899,8 +863,6 @@ Resolv::DNS::Resource::CNAME::TypeValue: Integer
899
863
  class Resolv::DNS::Resource::DomainName < Resolv::DNS::Resource
900
864
  def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance
901
865
 
902
- public
903
-
904
866
  def encode_rdata: (Resolv::DNS::Message::MessageEncoder msg) -> void
905
867
 
906
868
  # <!-- rdoc-file=lib/resolv.rb -->
@@ -927,8 +889,6 @@ class Resolv::DNS::Resource::Generic < Resolv::DNS::Resource
927
889
 
928
890
  def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance
929
891
 
930
- public
931
-
932
892
  # <!-- rdoc-file=lib/resolv.rb -->
933
893
  # Data for this generic resource.
934
894
  #
@@ -953,8 +913,6 @@ end
953
913
  class Resolv::DNS::Resource::HINFO < Resolv::DNS::Resource
954
914
  def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance
955
915
 
956
- public
957
-
958
916
  # <!-- rdoc-file=lib/resolv.rb -->
959
917
  # CPU architecture for this resource.
960
918
  #
@@ -994,8 +952,6 @@ Resolv::DNS::Resource::IN::ClassValue: Integer
994
952
  class Resolv::DNS::Resource::IN::A < Resolv::DNS::Resource
995
953
  def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance
996
954
 
997
- public
998
-
999
955
  # <!-- rdoc-file=lib/resolv.rb -->
1000
956
  # The Resolv::IPv4 address for this A.
1001
957
  #
@@ -1024,8 +980,6 @@ Resolv::DNS::Resource::IN::A::TypeValue: Integer
1024
980
  class Resolv::DNS::Resource::IN::AAAA < Resolv::DNS::Resource
1025
981
  def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance
1026
982
 
1027
- public
1028
-
1029
983
  # <!-- rdoc-file=lib/resolv.rb -->
1030
984
  # The Resolv::IPv6 address for this AAAA.
1031
985
  #
@@ -1119,8 +1073,6 @@ Resolv::DNS::Resource::IN::SOA::TypeValue: Integer
1119
1073
  class Resolv::DNS::Resource::IN::SRV < Resolv::DNS::Resource
1120
1074
  def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance
1121
1075
 
1122
- public
1123
-
1124
1076
  def encode_rdata: (Resolv::DNS::Message::MessageEncoder msg) -> void
1125
1077
 
1126
1078
  # <!-- rdoc-file=lib/resolv.rb -->
@@ -1191,8 +1143,6 @@ Resolv::DNS::Resource::IN::TXT::TypeValue: Integer
1191
1143
  class Resolv::DNS::Resource::IN::WKS < Resolv::DNS::Resource
1192
1144
  def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance
1193
1145
 
1194
- public
1195
-
1196
1146
  # <!-- rdoc-file=lib/resolv.rb -->
1197
1147
  # The host these services run on.
1198
1148
  #
@@ -1234,8 +1184,6 @@ Resolv::DNS::Resource::IN::WKS::TypeValue: Integer
1234
1184
  class Resolv::DNS::Resource::LOC < Resolv::DNS::Resource
1235
1185
  def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance
1236
1186
 
1237
- public
1238
-
1239
1187
  # <!-- rdoc-file=lib/resolv.rb -->
1240
1188
  # The altitude of the LOC above a reference sphere whose surface sits 100km
1241
1189
  # below the WGS84 spheroid in centimeters as an unsigned 32bit integer
@@ -1297,8 +1245,6 @@ Resolv::DNS::Resource::LOC::TypeValue: Integer
1297
1245
  class Resolv::DNS::Resource::MINFO < Resolv::DNS::Resource
1298
1246
  def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance
1299
1247
 
1300
- public
1301
-
1302
1248
  # <!-- rdoc-file=lib/resolv.rb -->
1303
1249
  # Mailbox to use for error messages related to the mail list or mailbox.
1304
1250
  #
@@ -1329,8 +1275,6 @@ Resolv::DNS::Resource::MINFO::TypeValue: Integer
1329
1275
  class Resolv::DNS::Resource::MX < Resolv::DNS::Resource
1330
1276
  def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance
1331
1277
 
1332
- public
1333
-
1334
1278
  def encode_rdata: (Resolv::DNS::Message::MessageEncoder msg) -> void
1335
1279
 
1336
1280
  # <!-- rdoc-file=lib/resolv.rb -->
@@ -1378,8 +1322,6 @@ Resolv::DNS::Resource::PTR::TypeValue: Integer
1378
1322
  class Resolv::DNS::Resource::SOA < Resolv::DNS::Resource
1379
1323
  def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance
1380
1324
 
1381
- public
1382
-
1383
1325
  def encode_rdata: (Resolv::DNS::Message::MessageEncoder msg) -> void
1384
1326
 
1385
1327
  # <!-- rdoc-file=lib/resolv.rb -->
@@ -1440,8 +1382,6 @@ Resolv::DNS::Resource::SOA::TypeValue: Integer
1440
1382
  class Resolv::DNS::Resource::TXT < Resolv::DNS::Resource
1441
1383
  def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance
1442
1384
 
1443
- public
1444
-
1445
1385
  # <!--
1446
1386
  # rdoc-file=lib/resolv.rb
1447
1387
  # - data()
@@ -1473,8 +1413,6 @@ Resolv::DNS::Resource::TXT::TypeValue: Integer
1473
1413
  # Resolv::Hosts is a hostname resolver that uses the system hosts file.
1474
1414
  #
1475
1415
  class Resolv::Hosts
1476
- public
1477
-
1478
1416
  # <!--
1479
1417
  # rdoc-file=lib/resolv.rb
1480
1418
  # - each_address(name, &proc)
@@ -1549,8 +1487,6 @@ class Resolv::IPv4
1549
1487
  #
1550
1488
  def self.create: (String | instance arg) -> instance
1551
1489
 
1552
- public
1553
-
1554
1490
  def ==: (instance other) -> bool
1555
1491
 
1556
1492
  # <!-- rdoc-file=lib/resolv.rb -->
@@ -1603,8 +1539,6 @@ class Resolv::IPv6
1603
1539
  #
1604
1540
  def self.create: (String | instance arg) -> instance
1605
1541
 
1606
- public
1607
-
1608
1542
  def ==: (instance other) -> bool
1609
1543
 
1610
1544
  # <!-- rdoc-file=lib/resolv.rb -->
@@ -1688,8 +1622,6 @@ class Resolv::LOC::Alt
1688
1622
  #
1689
1623
  def self.create: (Resolv::LOC::Alt | String arg) -> instance
1690
1624
 
1691
- public
1692
-
1693
1625
  def eql?: (Resolv::LOC::Alt other) -> bool
1694
1626
 
1695
1627
  # <!-- rdoc-file=lib/resolv.rb -->
@@ -1736,8 +1668,6 @@ class Resolv::LOC::Coord
1736
1668
  #
1737
1669
  def self.create: (Resolv::LOC::Coord | String arg) -> instance
1738
1670
 
1739
- public
1740
-
1741
1671
  def eql?: (Resolv::LOC::Coord other) -> bool
1742
1672
 
1743
1673
  # <!-- rdoc-file=lib/resolv.rb -->
@@ -1787,8 +1717,6 @@ class Resolv::LOC::Size
1787
1717
  #
1788
1718
  def self.create: (Resolv::LOC::Size | String arg) -> instance
1789
1719
 
1790
- public
1791
-
1792
1720
  def eql?: (Resolv::LOC::Size other) -> bool
1793
1721
 
1794
1722
  alias == eql?
@@ -1826,8 +1754,6 @@ Resolv::LOC::Size::Regex: Regexp
1826
1754
  # * RFC 6762
1827
1755
  #
1828
1756
  class Resolv::MDNS < Resolv::DNS
1829
- public
1830
-
1831
1757
  # <!--
1832
1758
  # rdoc-file=lib/resolv.rb
1833
1759
  # - each_address(name)
@@ -101,8 +101,6 @@ module Singleton
101
101
  #
102
102
  def self.instance: () -> instance
103
103
 
104
- public
105
-
106
104
  # <!--
107
105
  # rdoc-file=lib/singleton.rb
108
106
  # - _dump(depth = -1)
@@ -110,8 +110,6 @@ class Addrinfo
110
110
  #
111
111
  def self.unix: (String path, ?Symbol socktype) -> Addrinfo
112
112
 
113
- public
114
-
115
113
  # <!--
116
114
  # rdoc-file=ext/socket/raddrinfo.c
117
115
  # - addrinfo.afamily => integer
@@ -41,8 +41,6 @@ class BasicSocket < IO
41
41
  #
42
42
  def self.for_fd: (Integer fileno) -> BasicSocket
43
43
 
44
- public
45
-
46
44
  # <!--
47
45
  # rdoc-file=ext/socket/basicsocket.c
48
46
  # - basicsocket.close_read => nil
@@ -15,8 +15,6 @@ class IPSocket < BasicSocket
15
15
  #
16
16
  def self.getaddress: (String host) -> String
17
17
 
18
- public
19
-
20
18
  # <!--
21
19
  # rdoc-file=ext/socket/ipsocket.c
22
20
  # - ipsocket.addr([reverse_lookup]) => [address_family, port, hostname, numeric_address]
@@ -752,8 +752,6 @@ class Socket < BasicSocket
752
752
  #
753
753
  def self.unpack_sockaddr_un: (String path) -> String
754
754
 
755
- public
756
-
757
755
  # <!--
758
756
  # rdoc-file=ext/socket/socket.c
759
757
  # - socket.accept => [client_socket, client_addrinfo]
@@ -3730,8 +3728,6 @@ Socket::UDP_CORK: Integer
3730
3728
  # Socket::Ifaddr represents a result of getifaddrs() function.
3731
3729
  #
3732
3730
  class Socket::Ifaddr
3733
- public
3734
-
3735
3731
  # <!--
3736
3732
  # rdoc-file=ext/socket/ifaddr.c
3737
3733
  # - ifaddr.addr => addrinfo
@@ -3805,8 +3801,6 @@ end
3805
3801
  # UDP/IP address information used by Socket.udp_server_loop.
3806
3802
  #
3807
3803
  class Socket::UDPSource
3808
- public
3809
-
3810
3804
  def inspect: () -> String
3811
3805
 
3812
3806
  # <!-- rdoc-file=ext/socket/lib/socket.rb -->
@@ -3911,8 +3905,6 @@ class Socket::AncillaryData
3911
3905
  #
3912
3906
  def self.unix_rights: (IO fd) -> instance
3913
3907
 
3914
- public
3915
-
3916
3908
  # <!--
3917
3909
  # rdoc-file=ext/socket/ancdata.c
3918
3910
  # - ancillarydata.cmsg_is?(level, type) => true or false
@@ -27,8 +27,6 @@
27
27
  # end
28
28
  #
29
29
  class TCPServer < TCPSocket
30
- public
31
-
32
30
  # <!--
33
31
  # rdoc-file=ext/socket/tcpserver.c
34
32
  # - tcpserver.accept => tcpsocket
@@ -2,8 +2,6 @@
2
2
  # UDPSocket represents a UDP/IP socket.
3
3
  #
4
4
  class UDPSocket < IPSocket
5
- public
6
-
7
5
  # <!--
8
6
  # rdoc-file=ext/socket/udpsocket.c
9
7
  # - udpsocket.bind(host, port) #=> 0
@@ -2,8 +2,6 @@
2
2
  # UNIXServer represents a UNIX domain stream server socket.
3
3
  #
4
4
  class UNIXServer < UNIXSocket
5
- public
6
-
7
5
  # <!--
8
6
  # rdoc-file=ext/socket/unixserver.c
9
7
  # - unixserver.accept => unixsocket
@@ -40,8 +40,6 @@ class UNIXSocket < BasicSocket
40
40
  #
41
41
  def self.socketpair: (?Symbol socktype, ?Integer protocol) -> [ instance, instance ]
42
42
 
43
- public
44
-
45
43
  # <!--
46
44
  # rdoc-file=ext/socket/unixsocket.c
47
45
  # - unixsocket.addr => [address_family, unix_path]
@@ -113,8 +113,6 @@ class StringScanner
113
113
  #
114
114
  def self.must_C_version: () -> self
115
115
 
116
- public
117
-
118
116
  # <!-- rdoc-file=ext/strscan/strscan.c -->
119
117
  # Appends `str` to the string being scanned. This method does not affect scan
120
118
  # pointer.
@@ -189,8 +189,6 @@ class Tempfile < File
189
189
  def self.open: (*untyped args, **untyped) -> Tempfile
190
190
  | [A] (*untyped args, **untyped) { (Tempfile) -> A } -> A
191
191
 
192
- public
193
-
194
192
  # <!--
195
193
  # rdoc-file=lib/tempfile.rb
196
194
  # - close(unlink_now=false)
@@ -296,8 +294,6 @@ class Tempfile < File
296
294
  def unlink: () -> void
297
295
 
298
296
  class Remover
299
- public
300
-
301
297
  def call: (*untyped args) -> void
302
298
 
303
299
  private
@@ -98,8 +98,6 @@ module Zlib
98
98
  #
99
99
  def self.deflate: (string string, ?compression_level level) -> String
100
100
 
101
- public
102
-
103
101
  # <!--
104
102
  # rdoc-file=ext/zlib/zlib.c
105
103
  # - << string
@@ -109,8 +109,6 @@ module Zlib
109
109
  # Base class of errors that occur when processing GZIP files.
110
110
  #
111
111
  class Error < Zlib::Error
112
- public
113
-
114
112
  # <!-- rdoc-file=ext/zlib/zlib.c -->
115
113
  # input gzipped string
116
114
  #
@@ -120,8 +120,6 @@ module Zlib
120
120
  #
121
121
  def self.wrap: (IO io, *untyped) { (instance gz) -> void } -> void
122
122
 
123
- public
124
-
125
123
  # <!--
126
124
  # rdoc-file=ext/zlib/zlib.c
127
125
  # - close()
@@ -152,8 +152,6 @@ module Zlib
152
152
  def self.zcat: (IO io, **untyped) -> String
153
153
  | (IO io, **untyped) { (String chunk) -> void } -> nil
154
154
 
155
- public
156
-
157
155
  # <!--
158
156
  # rdoc-file=ext/zlib/zlib.c
159
157
  # - each(*args)
@@ -109,8 +109,6 @@ module Zlib
109
109
  #
110
110
  def self.open: (String filename) { (instance gz) -> void } -> instance
111
111
 
112
- public
113
-
114
112
  # <!--
115
113
  # rdoc-file=ext/zlib/zlib.c
116
114
  # - <<(p1)
@@ -97,8 +97,6 @@ module Zlib
97
97
  #
98
98
  def self.inflate: (string string) -> String
99
99
 
100
- public
101
-
102
100
  # <!--
103
101
  # rdoc-file=ext/zlib/zlib.c
104
102
  # - <<(p1)
@@ -126,8 +126,6 @@ module Zlib
126
126
  # * #closed?
127
127
  #
128
128
  class ZStream
129
- public
130
-
131
129
  # <!--
132
130
  # rdoc-file=ext/zlib/zlib.c
133
131
  # - adler()
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0.pre.2
4
+ version: 3.6.0.pre.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soutaro Matsumoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-18 00:00:00.000000000 Z
11
+ date: 2024-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logger
@@ -427,6 +427,7 @@ files:
427
427
  - stdlib/observable/0/observable.rbs
428
428
  - stdlib/open-uri/0/manifest.yaml
429
429
  - stdlib/open-uri/0/open-uri.rbs
430
+ - stdlib/open3/0/open3.rbs
430
431
  - stdlib/openssl/0/manifest.yaml
431
432
  - stdlib/openssl/0/openssl.rbs
432
433
  - stdlib/optparse/0/optparse.rbs