diff --git a/Gemfile.lock b/Gemfile.lock index edfa3e629..d964cd21e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -110,9 +110,9 @@ GEM unicode-display_width (>= 2.4.0, < 3.0) rubocop-ast (1.32.3) parser (>= 3.3.1.0) - rubocop-on-rbs (0.6.0) + rubocop-on-rbs (1.0.0) rbs (~> 3.5) - rubocop (~> 1.41) + rubocop (~> 1.61) zlib rubocop-rubycw (0.1.6) rubocop (~> 1.0) @@ -145,7 +145,7 @@ GEM timeout (0.4.1) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (2.5.0) + unicode-display_width (2.6.0) zlib (3.1.1) PLATFORMS diff --git a/core/array.rbs b/core/array.rbs index 5e8c63eff..63c403ad1 100644 --- a/core/array.rbs +++ b/core/array.rbs @@ -600,8 +600,6 @@ class Array[unchecked out Elem] < Object # def self.try_convert: [U] (untyped) -> ::Array[U]? - public - # # Return the accept character set for this CGI instance. # @@ -706,8 +704,6 @@ class CGI # def self.parse: (String raw_cookie) -> Hash[String, instance] - public - # # Domain for which this cookie applies, as a `String` # @@ -864,8 +860,6 @@ class CGI end module Escape - public - # # Updates the digest using a given *string* and returns self. # @@ -403,8 +401,6 @@ end # Data_Wrap_Struct(0, 0, 0, (void *)&sha1)); # class Digest::Base < Digest::Class - public - # # Update the digest using given *string* and return `self`. # diff --git a/stdlib/etc/0/etc.rbs b/stdlib/etc/0/etc.rbs index 2cc733e7b..10794134e 100644 --- a/stdlib/etc/0/etc.rbs +++ b/stdlib/etc/0/etc.rbs @@ -709,8 +709,6 @@ module Etc def self.new: (*untyped) -> untyped - public - def gid: () -> Integer def gid=: (Integer new_gid) -> void @@ -807,8 +805,6 @@ module Etc def self.new: (*untyped) -> untyped - public - def change: () -> Integer def change=: (Integer new_change) -> void diff --git a/stdlib/logger/0/formatter.rbs b/stdlib/logger/0/formatter.rbs index 977c7d074..294f4c40b 100644 --- a/stdlib/logger/0/formatter.rbs +++ b/stdlib/logger/0/formatter.rbs @@ -4,8 +4,6 @@ class Logger # Default formatter for log messages. # class Formatter - public - attr_accessor datetime_format: String? # diff --git a/stdlib/observable/0/observable.rbs b/stdlib/observable/0/observable.rbs index bad893938..f0d63b019 100644 --- a/stdlib/observable/0/observable.rbs +++ b/stdlib/observable/0/observable.rbs @@ -130,8 +130,6 @@ # ticker.run # module Observable - public - # # Never `nil`. A boolean value indicating whether the encoding uses indefinite # length (in the case of parsing) or whether an indefinite length form shall be @@ -1082,8 +1080,6 @@ module OpenSSL end class BitString < OpenSSL::ASN1::Primitive - public - def unused_bits: () -> ::Integer def unused_bits=: (::Integer) -> ::Integer @@ -1127,8 +1123,6 @@ module OpenSSL class Constructive < OpenSSL::ASN1::ASN1Data include Enumerable[ASN1Data] - public - # # May be used as a hint for encoding a value either implicitly or explicitly by # setting it either to `:IMPLICIT` or to `:EXPLICIT`. *tagging* is not set when @@ -1535,8 +1523,6 @@ module OpenSSL # def self.rand_range: (untyped) -> untyped - public - # # Not every message digest can be computed in one single pass. If a message # digest is to be computed from several subsequent sources, then each may be @@ -3456,8 +3434,6 @@ module OpenSSL # def self.load: (?String name) -> (true | nil) - public - # # Returns *hmac* updated with the message to be authenticated. Can be called # repeatedly with chunks of the message. @@ -4046,8 +4020,6 @@ module OpenSSL # def self.included: (untyped base) -> untyped - public - # # Returns `true` if the two groups use the same curve and have the same # parameters, `false` otherwise. @@ -6803,8 +6745,6 @@ module OpenSSL end class Point - public - # # Compares this Name with *other* and returns `0` if they are the same and `-1` # or `+1` if they are greater or less than each other respectively. Returns @@ -11506,8 +11402,6 @@ module OpenSSL extend OpenSSL::Marshal::ClassMethods - public - # @@ -927,8 +889,6 @@ class Resolv::DNS::Resource::Generic < Resolv::DNS::Resource def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance - public - # # Data for this generic resource. # @@ -953,8 +913,6 @@ end class Resolv::DNS::Resource::HINFO < Resolv::DNS::Resource def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance - public - # # CPU architecture for this resource. # @@ -994,8 +952,6 @@ Resolv::DNS::Resource::IN::ClassValue: Integer class Resolv::DNS::Resource::IN::A < Resolv::DNS::Resource def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance - public - # # The Resolv::IPv4 address for this A. # @@ -1024,8 +980,6 @@ Resolv::DNS::Resource::IN::A::TypeValue: Integer class Resolv::DNS::Resource::IN::AAAA < Resolv::DNS::Resource def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance - public - # # The Resolv::IPv6 address for this AAAA. # @@ -1119,8 +1073,6 @@ Resolv::DNS::Resource::IN::SOA::TypeValue: Integer class Resolv::DNS::Resource::IN::SRV < Resolv::DNS::Resource def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance - public - def encode_rdata: (Resolv::DNS::Message::MessageEncoder msg) -> void # @@ -1191,8 +1143,6 @@ Resolv::DNS::Resource::IN::TXT::TypeValue: Integer class Resolv::DNS::Resource::IN::WKS < Resolv::DNS::Resource def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance - public - # # The host these services run on. # @@ -1234,8 +1184,6 @@ Resolv::DNS::Resource::IN::WKS::TypeValue: Integer class Resolv::DNS::Resource::LOC < Resolv::DNS::Resource def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance - public - # # The altitude of the LOC above a reference sphere whose surface sits 100km # below the WGS84 spheroid in centimeters as an unsigned 32bit integer @@ -1297,8 +1245,6 @@ Resolv::DNS::Resource::LOC::TypeValue: Integer class Resolv::DNS::Resource::MINFO < Resolv::DNS::Resource def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance - public - # # Mailbox to use for error messages related to the mail list or mailbox. # @@ -1329,8 +1275,6 @@ Resolv::DNS::Resource::MINFO::TypeValue: Integer class Resolv::DNS::Resource::MX < Resolv::DNS::Resource def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance - public - def encode_rdata: (Resolv::DNS::Message::MessageEncoder msg) -> void # @@ -1378,8 +1322,6 @@ Resolv::DNS::Resource::PTR::TypeValue: Integer class Resolv::DNS::Resource::SOA < Resolv::DNS::Resource def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance - public - def encode_rdata: (Resolv::DNS::Message::MessageEncoder msg) -> void # @@ -1440,8 +1382,6 @@ Resolv::DNS::Resource::SOA::TypeValue: Integer class Resolv::DNS::Resource::TXT < Resolv::DNS::Resource def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance - public - # @@ -1603,8 +1539,6 @@ class Resolv::IPv6 # def self.create: (String | instance arg) -> instance - public - def ==: (instance other) -> bool # @@ -1688,8 +1622,6 @@ class Resolv::LOC::Alt # def self.create: (Resolv::LOC::Alt | String arg) -> instance - public - def eql?: (Resolv::LOC::Alt other) -> bool # @@ -1736,8 +1668,6 @@ class Resolv::LOC::Coord # def self.create: (Resolv::LOC::Coord | String arg) -> instance - public - def eql?: (Resolv::LOC::Coord other) -> bool # @@ -1787,8 +1717,6 @@ class Resolv::LOC::Size # def self.create: (Resolv::LOC::Size | String arg) -> instance - public - def eql?: (Resolv::LOC::Size other) -> bool alias == eql? @@ -1826,8 +1754,6 @@ Resolv::LOC::Size::Regex: Regexp # * RFC 6762 # class Resolv::MDNS < Resolv::DNS - public - # @@ -3911,8 +3905,6 @@ class Socket::AncillaryData # def self.unix_rights: (IO fd) -> instance - public - # # Appends `str` to the string being scanned. This method does not affect scan # pointer. diff --git a/stdlib/tempfile/0/tempfile.rbs b/stdlib/tempfile/0/tempfile.rbs index 0e065740d..482c93c2f 100644 --- a/stdlib/tempfile/0/tempfile.rbs +++ b/stdlib/tempfile/0/tempfile.rbs @@ -189,8 +189,6 @@ class Tempfile < File def self.open: (*untyped args, **untyped) -> Tempfile | [A] (*untyped args, **untyped) { (Tempfile) -> A } -> A - public - # # input gzipped string # diff --git a/stdlib/zlib/0/gzip_reader.rbs b/stdlib/zlib/0/gzip_reader.rbs index ebb4456da..91e114844 100644 --- a/stdlib/zlib/0/gzip_reader.rbs +++ b/stdlib/zlib/0/gzip_reader.rbs @@ -152,8 +152,6 @@ module Zlib def self.zcat: (IO io, **untyped) -> String | (IO io, **untyped) { (String chunk) -> void } -> nil - public - #