rbs 3.9.0.pre.2 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4c12dc48aff1dbea42a5a3b744a3f4c60ec4636ff31254abbba54edff3b3e1d
4
- data.tar.gz: 69aa96a394191b63d825071352e35221534925980e13001e83dce553efa458d2
3
+ metadata.gz: 99881d9d6dc3248787fcd06f704731455c6a295f040dea8f325b6d4575906de0
4
+ data.tar.gz: fbb1b6add7b4bba7469e9e33cddecf88d4b566517f385869d7878de519538579
5
5
  SHA512:
6
- metadata.gz: '0875e68b5e75f08901125ae81e186979822fb6eca9e50bac68bcd78b7b379b004407c490833a885ed6d931353b3f53dd5509a854c57781659cc9f2c78bff6843'
7
- data.tar.gz: 7fbc423409626a355aebc89d4c7dfd99bb81b3e522f3e443f43448b145508f367bab2d68d432aa4248e5029640b61ac79ab55af489f01f9249a0d5c30affa108
6
+ metadata.gz: e3c303d4e3e34b75e5041a42050891868fc52f6a6f66dec8877b56adaef5d039045029e7210e7d597ab7f88f5ec52862437cdbc18e8c0e086b4810559a05b643
7
+ data.tar.gz: 0b0de8c8ba60b21b53f6e66004afe2519bb34f9c535d54636bc3f4b0772c67f62b7a09399ba88e1df84b482be75601380105a0bad89b3613e2896d158672a648
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 3.9.0 (2025-03-18)
4
+
5
+ ### Miscellaneous
6
+
7
+ * Update steep ([#2328](https://github.com/ruby/rbs/pull/2328))
8
+
3
9
  ## 3.9.0.pre.2 (2025-03-14)
4
10
 
5
11
  ### Signature updates
data/core/kernel.rbs CHANGED
@@ -1729,7 +1729,7 @@ module Kernel : BasicObject
1729
1729
  def self?.sleep: (?nil) -> bot
1730
1730
  | (Time::_Timeout duration) -> Integer
1731
1731
 
1732
- %a{steep:deprecated}
1732
+ %a{deprecated}
1733
1733
  interface _Divmod
1734
1734
  def divmod: (Numeric) -> [ Numeric, Numeric ]
1735
1735
  end
data/core/module.rbs CHANGED
@@ -1699,6 +1699,6 @@ class Module < Object
1699
1699
  def attr: (*interned arg0) -> Array[Symbol]
1700
1700
 
1701
1701
  # A previous incarnation of `interned` for backward-compatibility (see #1499)
1702
- %a{steep:deprecated}
1702
+ %a{deprecated: Use `interned`}
1703
1703
  type id = interned
1704
1704
  end
data/core/object.rbs CHANGED
@@ -106,5 +106,5 @@ class Object < BasicObject
106
106
  end
107
107
 
108
108
  # A previous incarnation of `interned` for backward-compatibility (see #1499)
109
- %a{steep:deprecated}
109
+ %a{deprecated: Use `interned` instead}
110
110
  type Object::name = interned
data/core/string.rbs CHANGED
@@ -3574,10 +3574,10 @@ class String
3574
3574
  def valid_encoding?: () -> bool
3575
3575
  end
3576
3576
 
3577
- %a{steep:deprecated}
3577
+ %a{deprecated}
3578
3578
  interface _ArefFromStringToString
3579
3579
  def []: (String) -> String
3580
3580
  end
3581
3581
 
3582
- %a{steep:deprecated}
3582
+ %a{deprecated}
3583
3583
  type String::encode_fallback = Hash[String, String] | Proc | Method | _ArefFromStringToString
@@ -56,16 +56,6 @@ module RBS
56
56
  }.to_json(state)
57
57
  end
58
58
 
59
- def rename(name)
60
- TypeParam.new(
61
- name: name,
62
- variance: variance,
63
- upper_bound: upper_bound_type,
64
- location: location,
65
- default_type: default_type
66
- ).unchecked!(unchecked?)
67
- end
68
-
69
59
  def map_type(&block)
70
60
  if b = upper_bound_type
71
61
  _upper_bound_type = yield(b)
@@ -382,7 +382,8 @@ module RBS
382
382
  name: const_name,
383
383
  type: type,
384
384
  location: nil,
385
- comment: comments[node.first_lineno - 1]
385
+ comment: comments[node.first_lineno - 1],
386
+ annotations: []
386
387
  )
387
388
 
388
389
  when :IASGN
@@ -257,7 +257,8 @@ module RBS
257
257
  name: name,
258
258
  type: type,
259
259
  location: nil,
260
- comment: nil
260
+ comment: nil,
261
+ annotations: []
261
262
  )
262
263
  end
263
264
  when :ALIAS
@@ -250,6 +250,8 @@ module RBS
250
250
  method = builder.build_singleton(module_name.absolute!).methods[singleton]
251
251
  method_name = singleton
252
252
  kind = :singleton
253
+ else
254
+ raise
253
255
  end
254
256
 
255
257
  if method
@@ -462,6 +464,7 @@ module RBS
462
464
  name: to_type_name(name.to_s),
463
465
  type: type,
464
466
  location: nil,
467
+ annotations: [],
465
468
  comment: nil
466
469
  )
467
470
  end
data/lib/rbs/types.rb CHANGED
@@ -109,18 +109,14 @@ module RBS
109
109
  class Any < Base
110
110
  def initialize(location:, todo: false)
111
111
  super(location: location)
112
- todo! if todo
112
+ if todo
113
+ @string = "__todo__"
114
+ end
113
115
  end
114
116
 
115
117
  def to_s(level=0)
116
118
  @string || "untyped"
117
119
  end
118
-
119
- # @deprecated: this method is now called from the constructor, do not call it from outside
120
- def todo!
121
- @string = '__todo__'
122
- self
123
- end
124
120
  end
125
121
  class Nil < Base; end
126
122
  class Top < Base; end
@@ -127,7 +127,9 @@ module RBS
127
127
 
128
128
  # `Range` requires `begin <=> end` to return non-nil, but doesn't actually
129
129
  # end up using the return value of it. This is to add that in when needed.
130
- def lower.<=>(rhs) = :not_nil unless defined? lower.<=>
130
+ unless defined? lower.<=>
131
+ def lower.<=>(rhs) = :not_nil # steep:ignore MethodDefinitionInUndeclaredModule
132
+ end
131
133
 
132
134
  # If `lower <=> rhs` is defined but nil, then that means we're going to be constructing
133
135
  # an illegal range (eg `3..ToInt.new(4)`). So, we need to skip yielding an invalid range
data/lib/rbs/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RBS
4
- VERSION = "3.9.0.pre.2"
4
+ VERSION = "3.9.0"
5
5
  end
@@ -25,6 +25,8 @@ module RBS
25
25
  | (TypeName, singleton_method: Symbol) -> Array[RDoc::AnyMethod]?
26
26
 
27
27
  def find_attribute: (TypeName, Symbol, singleton: bool) -> Array[RDoc::Attr]?
28
+
29
+ def class_docs: (TypeName) -> Array[::RDoc::Markup::Document | ::RDoc::Comment | ::String]?
28
30
  end
29
31
  end
30
32
  end
data/sig/cli.rbs CHANGED
@@ -80,6 +80,8 @@ module RBS
80
80
 
81
81
  def run_subtract: (Array[String], top) -> void
82
82
 
83
+ def run_diff: (Array[String], LibraryOptions) -> void
84
+
83
85
  def test_opt: (LibraryOptions) -> String?
84
86
 
85
87
  def collection_options: (Array[String]) -> OptionParser
data/sig/namespace.rbs CHANGED
@@ -142,5 +142,5 @@ end
142
142
 
143
143
  module Kernel
144
144
  # Deprecated: Use `RBS::Namespace.parse` instead
145
- %a{steep:deprecated} def Namespace: (String) -> RBS::Namespace
145
+ %a{deprecated} def Namespace: (String) -> RBS::Namespace
146
146
  end
data/sig/typename.rbs CHANGED
@@ -75,5 +75,5 @@ end
75
75
 
76
76
  module Kernel
77
77
  # Deprecated: Use `RBS::TypeName.parse` instead
78
- %a{steep:deprecated} def TypeName: (String name) -> RBS::TypeName
78
+ %a{deprecated: Use `RBS::TypeName.parse` instead} def TypeName: (String name) -> RBS::TypeName
79
79
  end
data/sig/types.rbs CHANGED
@@ -114,9 +114,6 @@ module RBS
114
114
  @string: String?
115
115
 
116
116
  def initialize: (location: Location[bot, bot]?, ?todo: bool) -> void
117
-
118
- %a{steep:deprecated}
119
- def todo!: () -> self
120
117
  end
121
118
 
122
119
  class Nil < Base
@@ -2404,7 +2404,7 @@ module Net
2404
2404
  alias length size
2405
2405
 
2406
2406
  # A previous incarnation of `interned` for backward-compatibility (see #1499)
2407
- %a{steep:deprecated}
2407
+ %a{deprecated: Use `interned` instead}
2408
2408
  type key = interned
2409
2409
 
2410
2410
  # <!--
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.9.0.pre.2
4
+ version: 3.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soutaro Matsumoto
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-03-14 00:00:00.000000000 Z
10
+ date: 2025-03-18 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: logger