From 03c1b01db343d9c136b3402a45b0b5ee56055acc Mon Sep 17 00:00:00 2001 From: ksss Date: Wed, 25 Dec 2024 10:56:34 +0900 Subject: [PATCH 1/3] Bundle update rubocop-on-rbs --- Gemfile.lock | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 1e711505..9acbff0f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -23,15 +23,15 @@ GEM fileutils (1.7.2) i18n (1.14.6) concurrent-ruby (~> 1.0) - json (2.7.4) + json (2.9.1) language_server-protocol (3.17.0.3) listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) - logger (1.6.1) + logger (1.6.4) minitest (5.25.1) parallel (1.26.3) - parser (3.3.5.0) + parser (3.3.6.0) ast (~> 2.4.1) racc racc (1.8.1) @@ -42,20 +42,20 @@ GEM ffi (~> 1.0) rbs (3.6.1) logger - regexp_parser (2.9.2) - rubocop (1.67.0) + regexp_parser (2.9.3) + rubocop (1.69.2) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 2.4, < 3.0) - rubocop-ast (>= 1.32.2, < 2.0) + regexp_parser (>= 2.9.3, < 3.0) + rubocop-ast (>= 1.36.2, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.32.3) + unicode-display_width (>= 2.4.0, < 4.0) + rubocop-ast (1.37.0) parser (>= 3.3.1.0) - rubocop-on-rbs (1.1.0) + rubocop-on-rbs (1.3.0) rbs (~> 3.5) rubocop (~> 1.61) zlib @@ -84,7 +84,7 @@ GEM tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (2.6.0) - zlib (3.1.1) + zlib (3.2.1) PLATFORMS ruby From 51ba8d1fcdeb30a632669ef0c5c1a90e65f081b2 Mon Sep 17 00:00:00 2001 From: ksss Date: Thu, 26 Dec 2024 15:56:36 +0900 Subject: [PATCH 2/3] Apply rubocop Offenses: gems/activesupport/6.0/activesupport-generated.rbs:224:50: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def self.supports_cache_versioning?: () -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:248:75: C: [Corrected] RBS/Style/RedundantParentheses: Don't use parentheses around simple type. def write_entry: (untyped key, untyped entry, **untyped options) -> (bool) ^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:248:76: C: [Corrected] RBS/Style/ClassicType: Use false instead of ::FalseClass def write_entry: (untyped key, untyped entry, **untyped options) -> (::FalseClass | ::TrueClass) ^^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:248:76: C: [Corrected] RBS/Style/TrueFalse: Use bool instead of ::FalseClass | ::TrueClass def write_entry: (untyped key, untyped entry, **untyped options) -> (::FalseClass | ::TrueClass) ^^^^^^^^^^^^^^^^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:248:76: C: [Corrected] RBS/Style/TrueFalse: Use bool instead of false | true def write_entry: (untyped key, untyped entry, **untyped options) -> (false | true) ^^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:248:91: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def write_entry: (untyped key, untyped entry, **untyped options) -> (::FalseClass | ::TrueClass) ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:298:50: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def self.supports_cache_versioning?: () -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:378:50: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def self.supports_cache_versioning?: () -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:414:76: C: [Corrected] RBS/Style/ClassicType: Use false instead of ::FalseClass def write_entry: (untyped key, untyped entry, **untyped options) -> (::FalseClass | untyped) ^^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:434:50: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def self.supports_cache_versioning?: () -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:450:75: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def write_entry: (untyped key, untyped entry, **untyped options) -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:452:61: C: [Corrected] RBS/Style/ClassicType: Use false instead of ::FalseClass def delete_entry: (untyped key, **untyped options) -> ::FalseClass ^^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:491:50: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def self.supports_cache_versioning?: () -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:670:79: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def write_entry: (untyped key, untyped value, **untyped options) -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:795:1: C: [Corrected] RBS/Layout/EmptyLines: Extra blank line detected. gems/activesupport/6.0/activesupport-generated.rbs:795:5: W: [Corrected] RBS/Lint/UselessAccessModifier: Useless private access modifier. private ^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:803:1: C: [Corrected] RBS/Layout/EmptyLines: Extra blank line detected. gems/activesupport/6.0/activesupport-generated.rbs:803:5: W: [Corrected] RBS/Lint/UselessAccessModifier: Useless public access modifier. public ^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:2173:30: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def acts_like_date?: () -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:2183:21: C: [Corrected] RBS/Style/ClassicType: Use false instead of ::FalseClass def blank?: () -> ::FalseClass ^^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:2594:30: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def acts_like_date?: () -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:2597:30: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def acts_like_time?: () -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:2607:21: C: [Corrected] RBS/Style/ClassicType: Use false instead of ::FalseClass def blank?: () -> ::FalseClass ^^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:4297:26: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def duplicable?: () -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:4305:26: C: [Corrected] RBS/Style/ClassicType: Use false instead of ::FalseClass def duplicable?: () -> ::FalseClass ^^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:4313:26: C: [Corrected] RBS/Style/ClassicType: Use false instead of ::FalseClass def duplicable?: () -> ::FalseClass ^^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:4768:32: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def acts_like_string?: () -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:5081:25: C: [Corrected] RBS/Style/ClassicType: Use false instead of ::FalseClass def html_safe?: () -> ::FalseClass ^^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:5085:25: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def html_safe?: () -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:5192:30: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def acts_like_time?: () -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:5725:1: C: [Corrected] RBS/Layout/EmptyLines: Extra blank line detected. gems/activesupport/6.0/activesupport-generated.rbs:5726:7: W: [Corrected] RBS/Lint/UselessAccessModifier: Useless private access modifier. private ^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:5970:41: C: [Corrected] RBS/Style/ClassicType: Use false instead of ::FalseClass def autoloaded?: (untyped desc) -> (::FalseClass | untyped) ^^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:6488:28: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def validate!: () -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:7099:37: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def extractable_options?: () -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:7909:1: C: [Corrected] RBS/Layout/EmptyLines: Extra blank line detected. gems/activesupport/6.0/activesupport-generated.rbs:7911:5: W: [Corrected] RBS/Lint/UselessAccessModifier: Useless private access modifier. private ^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:9003:49: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def subscribed_to?: (untyped name) -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:9005:35: C: [Corrected] RBS/Style/ClassicType: Use false instead of ::FalseClass def unsubscribe!: () -> ::FalseClass ^^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:9913:37: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def extractable_options?: () -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:11157:32: C: [Corrected] RBS/Style/ClassicType: Use true instead of ::TrueClass def acts_like_time?: () -> ::TrueClass ^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:11165:23: C: [Corrected] RBS/Style/ClassicType: Use false instead of ::FalseClass def blank?: () -> ::FalseClass ^^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:11175:60: C: [Corrected] RBS/Style/ClassicType: Use false instead of ::FalseClass def respond_to?: (untyped sym, ?bool include_priv) -> (::FalseClass | untyped) ^^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:11179:70: C: [Corrected] RBS/Style/ClassicType: Use false instead of ::FalseClass def respond_to_missing?: (untyped sym, untyped include_priv) -> (::FalseClass | untyped) ^^^^^^^^^^^^ gems/activesupport/6.0/activesupport-generated.rbs:11803:1: C: [Corrected] RBS/Layout/EmptyLines: Extra blank line detected. gems/activesupport/6.0/activesupport-generated.rbs:11806:3: W: [Corrected] RBS/Lint/UselessAccessModifier: Useless public access modifier. public ^^^^^^ gems/activesupport/6.0/activesupport.rbs:237:28: C: [Corrected] RBS/Layout/OverloadIndentation: Indent the | to the first : | (Numeric arg0) -> self ^ gems/activesupport/6.0/activesupport.rbs:239:28: C: [Corrected] RBS/Layout/OverloadIndentation: Indent the | to the first : | (Numeric arg0) -> self ^ gems/activesupport/6.0/activesupport.rbs:384:1: C: [Corrected] RBS/Layout/IndentationWidth: Use 2 (not 4) spaces for indentation. def try: () { (untyped) -> untyped } -> nil ^^^^ gems/activesupport/6.0/activesupport.rbs:385:12: C: [Corrected] RBS/Layout/OverloadIndentation: Indent the | to the first : | () { () -> untyped } -> nil ^ gems/activesupport/6.0/activesupport.rbs:386:12: C: [Corrected] RBS/Layout/OverloadIndentation: Indent the | to the first : | (Object::name method_name, *untyped args) ?{ (*untyped) -> untyped } -> nil ^ gems/activesupport/6.0/activesupport.rbs:388:1: C: [Corrected] RBS/Layout/IndentationWidth: Use 2 (not 4) spaces for indentation. def try!: () { (untyped) -> untyped } -> nil ^^^^ gems/activesupport/6.0/activesupport.rbs:389:13: C: [Corrected] RBS/Layout/OverloadIndentation: Indent the | to the first : | () { () -> untyped } -> nil ^ gems/activesupport/6.0/activesupport.rbs:390:13: C: [Corrected] RBS/Layout/OverloadIndentation: Indent the | to the first : | (Object::name method_name, *untyped args) ?{ (*untyped) -> untyped } -> nil ^ gems/activesupport/6.0/activesupport.rbs:391:1: C: [Corrected] RBS/Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end. --- gems/activesupport/.rubocop.yml | 8 ++ .../6.0/activesupport-generated.rbs | 74 ++++++++----------- gems/activesupport/6.0/activesupport.rbs | 17 ++--- 3 files changed, 48 insertions(+), 51 deletions(-) create mode 100644 gems/activesupport/.rubocop.yml diff --git a/gems/activesupport/.rubocop.yml b/gems/activesupport/.rubocop.yml new file mode 100644 index 00000000..74cedeae --- /dev/null +++ b/gems/activesupport/.rubocop.yml @@ -0,0 +1,8 @@ +inherit_from: ../../.rubocop.yml + +RBS/Layout: + Enabled: true +RBS/Lint: + Enabled: true +RBS/Style: + Enabled: true diff --git a/gems/activesupport/6.0/activesupport-generated.rbs b/gems/activesupport/6.0/activesupport-generated.rbs index 5fa536df..0479ca86 100644 --- a/gems/activesupport/6.0/activesupport-generated.rbs +++ b/gems/activesupport/6.0/activesupport-generated.rbs @@ -221,7 +221,7 @@ module ActiveSupport def initialize: (untyped cache_path, ?untyped? options) -> untyped # Advertise cache versioning support. - def self.supports_cache_versioning?: () -> ::TrueClass + def self.supports_cache_versioning?: () -> true # Deletes all items from the cache. In this case it deletes all the entries in the specified # file store directory except for .keep or .gitkeep. Be careful which directory is specified in your @@ -245,7 +245,7 @@ module ActiveSupport def read_entry: (untyped key, **untyped options) -> untyped - def write_entry: (untyped key, untyped entry, **untyped options) -> (::FalseClass | ::TrueClass) + def write_entry: (untyped key, untyped entry, **untyped options) -> bool def delete_entry: (untyped key, **untyped options) -> untyped @@ -295,7 +295,7 @@ module ActiveSupport end # Advertise cache versioning support. - def self.supports_cache_versioning?: () -> ::TrueClass + def self.supports_cache_versioning?: () -> true ESCAPE_KEY_CHARS: untyped @@ -375,7 +375,7 @@ module ActiveSupport def initialize: (?untyped? options) -> untyped # Advertise cache versioning support. - def self.supports_cache_versioning?: () -> ::TrueClass + def self.supports_cache_versioning?: () -> true # Delete all data stored in a given cache store. def clear: (?untyped? options) -> untyped @@ -411,7 +411,7 @@ module ActiveSupport def read_entry: (untyped key, **untyped options) -> untyped - def write_entry: (untyped key, untyped entry, **untyped options) -> (::FalseClass | untyped) + def write_entry: (untyped key, untyped entry, **untyped options) -> (false | untyped) def delete_entry: (untyped key, **untyped options) -> untyped @@ -431,7 +431,7 @@ module ActiveSupport # ActiveSupport::Cache::Strategy::LocalCache for more details. class NullStore < Store # Advertise cache versioning support. - def self.supports_cache_versioning?: () -> ::TrueClass + def self.supports_cache_versioning?: () -> true def clear: (?untyped? options) -> nil @@ -447,9 +447,9 @@ module ActiveSupport def read_entry: (untyped key, **untyped options) -> nil - def write_entry: (untyped key, untyped entry, **untyped options) -> ::TrueClass + def write_entry: (untyped key, untyped entry, **untyped options) -> true - def delete_entry: (untyped key, **untyped options) -> ::FalseClass + def delete_entry: (untyped key, **untyped options) -> false end end end @@ -488,7 +488,7 @@ module ActiveSupport SCAN_BATCH_SIZE: ::Integer # Advertise cache versioning support. - def self.supports_cache_versioning?: () -> ::TrueClass + def self.supports_cache_versioning?: () -> true module LocalCacheWithRaw private @@ -667,7 +667,7 @@ module ActiveSupport def read_multi_entries: (untyped keys, **untyped options) -> untyped - def write_entry: (untyped key, untyped value, **untyped options) -> ::TrueClass + def write_entry: (untyped key, untyped value, **untyped options) -> true def delete_entry: (untyped key, **untyped options) -> untyped @@ -792,16 +792,12 @@ module ActiveSupport # The +key+ argument can also respond to +cache_key+ or +to_param+. def self.expand_cache_key: (untyped key, ?untyped? namespace) -> untyped - private - def self.retrieve_cache_key: (untyped key) -> untyped # Obtains the specified cache store class, given the name of the +store+. # Raises an error when the store class cannot be found. def self.retrieve_store_class: (untyped store) -> untyped - public - # An abstract cache store class. There are multiple cache store # implementations, each having its own additional features. See the classes # under the ActiveSupport::Cache module, e.g. @@ -2170,7 +2166,7 @@ end class Date # Duck-types as a Date-like class. See Object#acts_like?. - def acts_like_date?: () -> ::TrueClass + def acts_like_date?: () -> true end class Date @@ -2180,7 +2176,7 @@ class Date # Date.today.blank? # => false # # @return [false] - def blank?: () -> ::FalseClass + def blank?: () -> false end class Date @@ -2591,10 +2587,10 @@ end class DateTime # Duck-types as a Date-like class. See Object#acts_like?. - def acts_like_date?: () -> ::TrueClass + def acts_like_date?: () -> true # Duck-types as a Time-like class. See Object#acts_like?. - def acts_like_time?: () -> ::TrueClass + def acts_like_time?: () -> true end class DateTime @@ -2604,7 +2600,7 @@ class DateTime # DateTime.now.blank? # => false # # @return [false] - def blank?: () -> ::FalseClass + def blank?: () -> false end class DateTime @@ -4294,7 +4290,7 @@ class Object # # False for method objects; # true otherwise. - def duplicable?: () -> ::TrueClass + def duplicable?: () -> true end class Method @@ -4302,7 +4298,7 @@ class Method # # method(:puts).duplicable? # => false # method(:puts).dup # => TypeError: allocator undefined for Method - def duplicable?: () -> ::FalseClass + def duplicable?: () -> false end class UnboundMethod @@ -4310,7 +4306,7 @@ class UnboundMethod # # method(:puts).unbind.duplicable? # => false # method(:puts).unbind.dup # => TypeError: allocator undefined for UnboundMethod - def duplicable?: () -> ::FalseClass + def duplicable?: () -> false end class Object @@ -4765,7 +4761,7 @@ end class String # Enables more predictable duck-typing on String-like classes. See Object#acts_like?. - def acts_like_string?: () -> ::TrueClass + def acts_like_string?: () -> true end class String @@ -5078,11 +5074,11 @@ class ERB end class Object - def html_safe?: () -> ::FalseClass + def html_safe?: () -> false end class Numeric - def html_safe?: () -> ::TrueClass + def html_safe?: () -> true end module ActiveSupport @@ -5189,7 +5185,7 @@ end class Time # Duck-types as a Time-like class. See Object#acts_like?. - def acts_like_time?: () -> ::TrueClass + def acts_like_time?: () -> true end class Time @@ -5723,8 +5719,6 @@ module ActiveSupport def self.take_over: (enable_reloading: untyped enable_reloading) -> untyped - private - def self.setup_autoloaders: (untyped enable_reloading) -> untyped def self.autoload_once?: (untyped autoload_path) -> untyped @@ -5967,7 +5961,7 @@ module ActiveSupport def safe_constantize: (untyped name) -> untyped # Determine if the given constant has been automatically loaded. - def autoloaded?: (untyped desc) -> (::FalseClass | untyped) + def autoloaded?: (untyped desc) -> (false | untyped) # Will the provided constant descriptor be unloaded? def will_unload?: (untyped const_desc) -> untyped @@ -6485,7 +6479,7 @@ module ActiveSupport def raise_parsing_error: (?untyped? reason) -> untyped # Checks for various semantic errors as stated in ISO 8601 standard. - def validate!: () -> ::TrueClass + def validate!: () -> true end end end @@ -7096,7 +7090,7 @@ module ActiveSupport class HashWithIndifferentAccess[T, U] < Hash[T, U] # Returns +true+ so that Array#extract_options! finds members of # this class. - def extractable_options?: () -> ::TrueClass + def extractable_options?: () -> true def with_indifferent_access: () -> untyped @@ -7908,8 +7902,6 @@ module ActiveSupport # end def self.parse_error: () -> untyped - private - def self.convert_dates_from: (untyped data) -> untyped end end @@ -9000,9 +8992,9 @@ module ActiveSupport def publish: (untyped name, *untyped args) -> untyped - def subscribed_to?: (untyped name) -> ::TrueClass + def subscribed_to?: (untyped name) -> true - def unsubscribe!: () -> ::FalseClass + def unsubscribe!: () -> false alias matches? === end @@ -9910,7 +9902,7 @@ module ActiveSupport def nested_under_indifferent_access: () -> untyped # Returns true to make sure that this hash is extractable via Array#extract_options! - def extractable_options?: () -> ::TrueClass + def extractable_options?: () -> true end end @@ -11154,7 +11146,7 @@ module ActiveSupport alias tv_sec to_i # So that +self+ acts_like?(:time). - def acts_like_time?: () -> ::TrueClass + def acts_like_time?: () -> true # Say we're a Time to thwart type checking. def is_a?: (untyped klass) -> untyped @@ -11162,7 +11154,7 @@ module ActiveSupport alias kind_of? is_a? # An instance of ActiveSupport::TimeWithZone is never blank - def blank?: () -> ::FalseClass + def blank?: () -> false def freeze: () -> untyped @@ -11172,11 +11164,11 @@ module ActiveSupport # respond_to_missing? is not called in some cases, such as when type conversion is # performed with Kernel#String - def respond_to?: (untyped sym, ?bool include_priv) -> (::FalseClass | untyped) + def respond_to?: (untyped sym, ?bool include_priv) -> (false | untyped) # Ensure proxy class responds to all methods that underlying time instance # responds to. - def respond_to_missing?: (untyped sym, untyped include_priv) -> (::FalseClass | untyped) + def respond_to_missing?: (untyped sym, untyped include_priv) -> (false | untyped) # Send the missing method to +time+ instance, and wrap result in a new # TimeWithZone with the existing +time_zone+. @@ -11803,7 +11795,5 @@ class Object # # => 0.074 def self.ms: () { () -> untyped } -> untyped - public - def unescape: (untyped str, ?untyped escaped) -> untyped end diff --git a/gems/activesupport/6.0/activesupport.rbs b/gems/activesupport/6.0/activesupport.rbs index 8c2eba02..4d371340 100644 --- a/gems/activesupport/6.0/activesupport.rbs +++ b/gems/activesupport/6.0/activesupport.rbs @@ -234,9 +234,9 @@ module ActiveSupport def minus_with_duration: (Time | self arg0) -> Float | (Numeric arg0) -> self def minus_without_coercion: (Time | self arg0) -> Float - | (Numeric arg0) -> self + | (Numeric arg0) -> self def minus_without_duration: (Time | self arg0) -> Float - | (Numeric arg0) -> self + | (Numeric arg0) -> self def monday?: () -> bool def next_day: () -> self def next_month: () -> self @@ -381,14 +381,13 @@ module ActiveSupport end class NilClass - def try: () { (untyped) -> untyped } -> nil - | () { () -> untyped } -> nil - | (Object::name method_name, *untyped args) ?{ (*untyped) -> untyped } -> nil - - def try!: () { (untyped) -> untyped } -> nil - | () { () -> untyped } -> nil - | (Object::name method_name, *untyped args) ?{ (*untyped) -> untyped } -> nil + def try: () { (untyped) -> untyped } -> nil + | () { () -> untyped } -> nil + | (Object::name method_name, *untyped args) ?{ (*untyped) -> untyped } -> nil + def try!: () { (untyped) -> untyped } -> nil + | () { () -> untyped } -> nil + | (Object::name method_name, *untyped args) ?{ (*untyped) -> untyped } -> nil end class Array[unchecked out Elem] From ce23a55cc0226186a862c204f4796a463d477ae1 Mon Sep 17 00:00:00 2001 From: ksss Date: Thu, 26 Dec 2024 15:57:54 +0900 Subject: [PATCH 3/3] Bundle update --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 9acbff0f..3749b23e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -42,7 +42,7 @@ GEM ffi (~> 1.0) rbs (3.6.1) logger - regexp_parser (2.9.3) + regexp_parser (2.10.0) rubocop (1.69.2) json (~> 2.3) language_server-protocol (>= 3.17.0)