rbs_activesupport 1.4.2 → 1.5.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: ddd9bc606628feb9ac3300697d3f0c1ff82f8e1f53b01731bd3bdab771ada81b
4
- data.tar.gz: 3d88f52a450782c345d38ba07ece5f48d6c26719d77a4e53dd038c257441203c
3
+ metadata.gz: 200b969946e5e360fabb4b244f654298e6ae7836d642541ae86e41f793a2ddd3
4
+ data.tar.gz: 548522e30385d312defdddc3cfecae46d365ae2d2915627b725ea794b6abb1ee
5
5
  SHA512:
6
- metadata.gz: 4c78e09a673e6af25bbbf2d945448f0dcc19a3fa9d602187df8b807a77f8cc52f597b0e8c007d7cddc82284144b59dc31a05ccfb6a12b4fd400f26393171d214
7
- data.tar.gz: af0892f0476bb5229ae60028c729ecbc15f4f1cd35706bf465cbc3a69df33803aa3c4de50f497d7b2d0e0197e6249b5a6062d4ab4f3290dd595dfb03a8d3d7f5
6
+ metadata.gz: 137cd3708cd257b37b9ca332e09adb01a730d7e060a1301f8daa2edc40e46f252a6f89afc9a8de99137e7e346cff8461b1cc142d4ff499924ec65b688a35df4f
7
+ data.tar.gz: 26166ab5a904b6a38b5e5d6efe23f72b749a2c5eb6e566898839177ca1a5315c794342bf49fe93f3dabe76f9e57eb22559c7a10b024c221ac1b7ca836b290d08
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "rbs-helper.signature-directory": "sig/",
3
3
  "cSpell.words": [
4
+ "boolish",
4
5
  "cattr",
5
6
  "classmethods",
6
7
  "Cyclomatic",
@@ -8,6 +9,8 @@
8
9
  "FCALL",
9
10
  "mattr",
10
11
  "mkpath",
12
+ "modname",
13
+ "raketask",
11
14
  "rmtree",
12
15
  "tasklib",
13
16
  "VCALL",
@@ -32,7 +32,7 @@ module RbsActivesupport
32
32
  node.map { |e| eval_node(e) }
33
33
  when RubyVM::AbstractSyntaxTree::Node
34
34
  case node.type
35
- when :LIT, :STR
35
+ when :LIT, :STR, :SYM, :INTEGER, :FLOAT
36
36
  node.children.first
37
37
  when :HASH
38
38
  children = node.children.first&.children
@@ -13,7 +13,7 @@ module RbsActivesupport
13
13
  end
14
14
 
15
15
  def type #: String
16
- # @type var trailng_comment: String?
16
+ # @type var trailing_comment: String?
17
17
  trailing_comment = options[:trailing_comment]
18
18
  if trailing_comment&.start_with?("#:")
19
19
  trailing_comment[2..].strip
@@ -13,7 +13,7 @@ module RbsActivesupport
13
13
  end
14
14
 
15
15
  def type #: String
16
- # @type var trailng_comment: String?
16
+ # @type var trailing_comment: String?
17
17
  trailing_comment = options[:trailing_comment]
18
18
  if trailing_comment&.start_with?("#:")
19
19
  trailing_comment[2..].strip
@@ -6,11 +6,16 @@ module RbsActivesupport
6
6
 
7
7
  include AST
8
8
 
9
+ attr_reader :resolver #: RBS::Resolver::TypeNameResolver
9
10
  attr_reader :method_searcher #: MethodSearcher
11
+ attr_reader :included_modules #: Array[RBS::Namespace]
10
12
 
13
+ # @rbs resolver: RBS::Resolver::TypeNameResolver
11
14
  # @rbs method_searcher: MethodSearcher
12
- def initialize(method_searcher) #: void
15
+ def initialize(resolver, method_searcher) #: void
16
+ @resolver = resolver
13
17
  @method_searcher = method_searcher
18
+ @included_modules = []
14
19
  end
15
20
 
16
21
  # @rbs namespace: RBS::Namespace
@@ -19,7 +24,8 @@ module RbsActivesupport
19
24
  def build(namespace, method_calls, context = nil) #: [Array[String], Array[String]]
20
25
  built = build_method_calls(namespace, method_calls, context)
21
26
  public_decls, private_decls = built.partition(&:public?)
22
- [public_decls.map(&method(:render)), private_decls.map(&method(:render))] # steep:ignore BlockTypeMismatch
27
+ [public_decls.map { |decl| render(namespace, decl) },
28
+ private_decls.map { |decl| render(namespace, decl) }]
23
29
  end
24
30
 
25
31
  private
@@ -84,7 +90,7 @@ module RbsActivesupport
84
90
  # @rbs namespace: RBS::Namespace
85
91
  # @rbs method_call: Parser::MethodCall
86
92
  # @rbs context: RBS::Namespace?
87
- def build_include(namespace, method_call, context) #: Array[t]
93
+ def build_include(namespace, method_call, context) #: Array[t] # rubocop:disable Metrics/AbcSize
88
94
  module_paths = eval_include_args(method_call.args)
89
95
  module_paths.delete_if do |module_path|
90
96
  unless module_path.is_a?(RBS::Namespace)
@@ -92,21 +98,29 @@ module RbsActivesupport
92
98
  true
93
99
  end
94
100
  end
95
- module_paths.flat_map do |module_path|
101
+ module_paths.filter_map do |module_path|
96
102
  include = Include.new(context || namespace, module_path, { private: method_call.private? })
103
+
104
+ if include.module_name
105
+ next if included_modules.include?(include.module_name)
106
+
107
+ included_modules << include.module_name
108
+ end
109
+
97
110
  ([include] +
98
111
  build_method_calls(namespace, include.nested_includes, include.module_name) +
99
112
  build_method_calls(namespace, include.method_calls_in_included_block, include.module_name))
100
- end
113
+ end.flatten
101
114
  end
102
115
 
116
+ # @rbs namespace: RBS::Namespace
103
117
  # @rbs decl: t
104
- def render(decl) #: String
118
+ def render(namespace, decl) #: String
105
119
  case decl
106
120
  when AttributeAccessor
107
- render_attribute_accessor(decl)
121
+ render_attribute_accessor(namespace, decl)
108
122
  when ClassAttribute
109
- render_class_attribute(decl)
123
+ render_class_attribute(namespace, decl)
110
124
  when Delegate
111
125
  render_delegate(decl)
112
126
  when Include
@@ -114,24 +128,28 @@ module RbsActivesupport
114
128
  end
115
129
  end
116
130
 
131
+ # @rbs namespace: RBS::Namespace
117
132
  # @rbs decl: AttributeAccessor
118
- def render_attribute_accessor(decl) #: String
133
+ def render_attribute_accessor(namespace, decl) #: String
134
+ type = resolve_type(namespace, decl.type)
119
135
  methods = []
120
- methods << "def self.#{decl.name}: () -> (#{decl.type})" if decl.singleton_reader?
121
- methods << "def self.#{decl.name}=: (#{decl.type}) -> (#{decl.type})" if decl.singleton_writer?
122
- methods << "def #{decl.name}: () -> (#{decl.type})" if decl.instance_reader?
123
- methods << "def #{decl.name}=: (#{decl.type}) -> (#{decl.type})" if decl.instance_writer?
136
+ methods << "def self.#{decl.name}: () -> (#{type})" if decl.singleton_reader?
137
+ methods << "def self.#{decl.name}=: (#{type}) -> (#{type})" if decl.singleton_writer?
138
+ methods << "def #{decl.name}: () -> (#{type})" if decl.instance_reader?
139
+ methods << "def #{decl.name}=: (#{type}) -> (#{type})" if decl.instance_writer?
124
140
  methods.join("\n")
125
141
  end
126
142
 
143
+ # @rbs namespace: RBS::Namespace
127
144
  # @rbs decl: ClassAttribute
128
- def render_class_attribute(decl) #: String
145
+ def render_class_attribute(namespace, decl) #: String
146
+ type = resolve_type(namespace, decl.type)
129
147
  methods = []
130
- methods << "def self.#{decl.name}: () -> (#{decl.type})"
131
- methods << "def self.#{decl.name}=: (#{decl.type}) -> (#{decl.type})"
148
+ methods << "def self.#{decl.name}: () -> (#{type})"
149
+ methods << "def self.#{decl.name}=: (#{type}) -> (#{type})"
132
150
  methods << "def self.#{decl.name}?: () -> bool" if decl.instance_predicate?
133
- methods << "def #{decl.name}: () -> (#{decl.type})" if decl.instance_reader?
134
- methods << "def #{decl.name}=: (#{decl.type}) -> (#{decl.type})" if decl.instance_writer?
151
+ methods << "def #{decl.name}: () -> (#{type})" if decl.instance_reader?
152
+ methods << "def #{decl.name}=: (#{type}) -> (#{type})" if decl.instance_writer?
135
153
  methods << "def #{decl.name}?: () -> bool" if decl.instance_predicate? && decl.instance_reader?
136
154
  methods.join("\n")
137
155
  end
@@ -155,5 +173,28 @@ module RbsActivesupport
155
173
  "include #{module_name.to_s.delete_suffix("::")}"
156
174
  end
157
175
  end
176
+
177
+ # @rbs namespace: RBS::Namespace
178
+ # @rbs type: String
179
+ def resolve_type(namespace, type) #: String
180
+ context = context_from(namespace.to_type_name)
181
+
182
+ typ = RBS::Parser.parse_type(type)
183
+ if typ
184
+ typ.map_type_name { |type_name| resolver.resolve(type_name, context: context) || type_name }.to_s
185
+ else
186
+ type
187
+ end
188
+ end
189
+
190
+ # @rbs type_name: RBS::TypeName
191
+ def context_from(type_name) #: RBS::Resolver::context
192
+ if type_name.namespace == RBS::Namespace.root
193
+ [nil, type_name]
194
+ else
195
+ parent = context_from(type_name.namespace.to_type_name)
196
+ [parent, type_name]
197
+ end
198
+ end
158
199
  end
159
200
  end
@@ -21,7 +21,8 @@ module RbsActivesupport
21
21
  @pathname = pathname
22
22
 
23
23
  method_searcher = MethodSearcher.new(rbs_builder)
24
- @declaration_builder = DeclarationBuilder.new(method_searcher)
24
+ resolver = RBS::Resolver::TypeNameResolver.new(rbs_builder.env)
25
+ @declaration_builder = DeclarationBuilder.new(resolver, method_searcher)
25
26
  end
26
27
 
27
28
  def generate #: String?
@@ -33,6 +34,8 @@ module RbsActivesupport
33
34
  next if public_decls.empty? && private_decls.empty?
34
35
 
35
36
  <<~RBS
37
+ # resolve-type-names: false
38
+
36
39
  #{header(namespace)}
37
40
  #{public_decls.join("\n")}
38
41
 
@@ -45,7 +45,7 @@ module RbsActivesupport
45
45
 
46
46
  target_directories.each do |dir|
47
47
  dir.glob("**/*.rb").each do |file|
48
- rbs = Generator.new(file, rbs_builder).generate
48
+ rbs = Generator.generate(file, rbs_builder)
49
49
  next unless rbs
50
50
 
51
51
  rbs_path = signature_root_dir / file.sub_ext(".rbs").relative_path_from(Rails.root)
@@ -11,26 +11,26 @@ module RbsActivesupport
11
11
  when nil
12
12
  "nil"
13
13
  when Integer, Float, Symbol, String
14
- obj.class.name or raise
14
+ "::#{obj.class.name}" or raise
15
15
  when true, false
16
16
  "bool"
17
17
  when Array
18
- return "Array[untyped]" if obj.empty?
18
+ return "::Array[untyped]" if obj.empty?
19
19
 
20
20
  items = obj.map { |e| guess_type(e) }.uniq
21
21
  if items.include?("untyped")
22
- "Array[untyped]"
22
+ "::Array[untyped]"
23
23
  else
24
- "Array[#{items.join(" | ")}]"
24
+ "::Array[#{items.join(" | ")}]"
25
25
  end
26
26
  when Hash
27
- return "Hash[untyped, untyped]" if obj.empty?
27
+ return "::Hash[untyped, untyped]" if obj.empty?
28
28
 
29
29
  keys = obj.keys.map { |e| guess_type(e) }.uniq
30
30
  values = obj.values.map { |e| guess_type(e) }.uniq
31
31
  key_type = keys.include?("untyped") ? "untyped" : keys.join(" | ")
32
32
  value_type = values.include?("untyped") ? "untyped" : values.join(" | ")
33
- "Hash[#{key_type}, #{value_type}]"
33
+ "::Hash[#{key_type}, #{value_type}]"
34
34
  else
35
35
  "untyped"
36
36
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RbsActivesupport
4
- VERSION = "1.4.2" #: String
4
+ VERSION = "1.5.0" #: String
5
5
  end
@@ -6,7 +6,7 @@ gems:
6
6
  source:
7
7
  type: git
8
8
  name: ruby/gem_rbs_collection
9
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
9
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
10
10
  remote: https://github.com/ruby/gem_rbs_collection.git
11
11
  repo_dir: gems
12
12
  - name: actionview
@@ -14,7 +14,7 @@ gems:
14
14
  source:
15
15
  type: git
16
16
  name: ruby/gem_rbs_collection
17
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
17
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
18
18
  remote: https://github.com/ruby/gem_rbs_collection.git
19
19
  repo_dir: gems
20
20
  - name: activesupport
@@ -22,7 +22,7 @@ gems:
22
22
  source:
23
23
  type: git
24
24
  name: ruby/gem_rbs_collection
25
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
25
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
26
26
  remote: https://github.com/ruby/gem_rbs_collection.git
27
27
  repo_dir: gems
28
28
  - name: ast
@@ -30,7 +30,7 @@ gems:
30
30
  source:
31
31
  type: git
32
32
  name: ruby/gem_rbs_collection
33
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
33
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
34
34
  remote: https://github.com/ruby/gem_rbs_collection.git
35
35
  repo_dir: gems
36
36
  - name: base64
@@ -50,7 +50,7 @@ gems:
50
50
  source:
51
51
  type: git
52
52
  name: ruby/gem_rbs_collection
53
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
53
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
54
54
  remote: https://github.com/ruby/gem_rbs_collection.git
55
55
  repo_dir: gems
56
56
  - name: connection_pool
@@ -58,7 +58,7 @@ gems:
58
58
  source:
59
59
  type: git
60
60
  name: ruby/gem_rbs_collection
61
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
61
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
62
62
  remote: https://github.com/ruby/gem_rbs_collection.git
63
63
  repo_dir: gems
64
64
  - name: date
@@ -86,7 +86,7 @@ gems:
86
86
  source:
87
87
  type: git
88
88
  name: ruby/gem_rbs_collection
89
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
89
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
90
90
  remote: https://github.com/ruby/gem_rbs_collection.git
91
91
  repo_dir: gems
92
92
  - name: io-console
@@ -118,7 +118,7 @@ gems:
118
118
  source:
119
119
  type: git
120
120
  name: ruby/gem_rbs_collection
121
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
121
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
122
122
  remote: https://github.com/ruby/gem_rbs_collection.git
123
123
  repo_dir: gems
124
124
  - name: openssl
@@ -134,7 +134,7 @@ gems:
134
134
  source:
135
135
  type: git
136
136
  name: ruby/gem_rbs_collection
137
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
137
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
138
138
  remote: https://github.com/ruby/gem_rbs_collection.git
139
139
  repo_dir: gems
140
140
  - name: parser
@@ -142,7 +142,7 @@ gems:
142
142
  source:
143
143
  type: git
144
144
  name: ruby/gem_rbs_collection
145
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
145
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
146
146
  remote: https://github.com/ruby/gem_rbs_collection.git
147
147
  repo_dir: gems
148
148
  - name: pathname
@@ -162,7 +162,7 @@ gems:
162
162
  source:
163
163
  type: git
164
164
  name: ruby/gem_rbs_collection
165
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
165
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
166
166
  remote: https://github.com/ruby/gem_rbs_collection.git
167
167
  repo_dir: gems
168
168
  - name: rails-dom-testing
@@ -170,7 +170,7 @@ gems:
170
170
  source:
171
171
  type: git
172
172
  name: ruby/gem_rbs_collection
173
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
173
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
174
174
  remote: https://github.com/ruby/gem_rbs_collection.git
175
175
  repo_dir: gems
176
176
  - name: rails-html-sanitizer
@@ -178,7 +178,7 @@ gems:
178
178
  source:
179
179
  type: git
180
180
  name: ruby/gem_rbs_collection
181
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
181
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
182
182
  remote: https://github.com/ruby/gem_rbs_collection.git
183
183
  repo_dir: gems
184
184
  - name: railties
@@ -186,7 +186,7 @@ gems:
186
186
  source:
187
187
  type: git
188
188
  name: ruby/gem_rbs_collection
189
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
189
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
190
190
  remote: https://github.com/ruby/gem_rbs_collection.git
191
191
  repo_dir: gems
192
192
  - name: rainbow
@@ -194,7 +194,7 @@ gems:
194
194
  source:
195
195
  type: git
196
196
  name: ruby/gem_rbs_collection
197
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
197
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
198
198
  remote: https://github.com/ruby/gem_rbs_collection.git
199
199
  repo_dir: gems
200
200
  - name: rake
@@ -202,7 +202,7 @@ gems:
202
202
  source:
203
203
  type: git
204
204
  name: ruby/gem_rbs_collection
205
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
205
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
206
206
  remote: https://github.com/ruby/gem_rbs_collection.git
207
207
  repo_dir: gems
208
208
  - name: rbs
@@ -218,7 +218,7 @@ gems:
218
218
  source:
219
219
  type: git
220
220
  name: ruby/gem_rbs_collection
221
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
221
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
222
222
  remote: https://github.com/ruby/gem_rbs_collection.git
223
223
  repo_dir: gems
224
224
  - name: ripper
@@ -230,7 +230,7 @@ gems:
230
230
  source:
231
231
  type: git
232
232
  name: ruby/gem_rbs_collection
233
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
233
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
234
234
  remote: https://github.com/ruby/gem_rbs_collection.git
235
235
  repo_dir: gems
236
236
  - name: rubocop-ast
@@ -238,7 +238,7 @@ gems:
238
238
  source:
239
239
  type: git
240
240
  name: ruby/gem_rbs_collection
241
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
241
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
242
242
  remote: https://github.com/ruby/gem_rbs_collection.git
243
243
  repo_dir: gems
244
244
  - name: securerandom
@@ -266,7 +266,7 @@ gems:
266
266
  source:
267
267
  type: git
268
268
  name: ruby/gem_rbs_collection
269
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
269
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
270
270
  remote: https://github.com/ruby/gem_rbs_collection.git
271
271
  repo_dir: gems
272
272
  - name: time
@@ -286,7 +286,7 @@ gems:
286
286
  source:
287
287
  type: git
288
288
  name: ruby/gem_rbs_collection
289
- revision: 5fcf7d45b7c430a651c5996280d9991c781fcf14
289
+ revision: f720796536d6ecc9450fb43cdfc5b894a5e80ffd
290
290
  remote: https://github.com/ruby/gem_rbs_collection.git
291
291
  repo_dir: gems
292
292
  - name: uri
@@ -6,10 +6,15 @@ module RbsActivesupport
6
6
 
7
7
  include AST
8
8
 
9
+ attr_reader resolver: RBS::Resolver::TypeNameResolver
10
+
9
11
  attr_reader method_searcher: MethodSearcher
10
12
 
13
+ attr_reader included_modules: Array[RBS::Namespace]
14
+
15
+ # @rbs resolver: RBS::Resolver::TypeNameResolver
11
16
  # @rbs method_searcher: MethodSearcher
12
- def initialize: (MethodSearcher method_searcher) -> void
17
+ def initialize: (RBS::Resolver::TypeNameResolver resolver, MethodSearcher method_searcher) -> void
13
18
 
14
19
  # @rbs namespace: RBS::Namespace
15
20
  # @rbs method_calls: Array[Parser::MethodCall]
@@ -38,19 +43,29 @@ module RbsActivesupport
38
43
  # @rbs context: RBS::Namespace?
39
44
  def build_include: (RBS::Namespace namespace, Parser::MethodCall method_call, RBS::Namespace? context) -> Array[t]
40
45
 
46
+ # @rbs namespace: RBS::Namespace
41
47
  # @rbs decl: t
42
- def render: (t decl) -> String
48
+ def render: (RBS::Namespace namespace, t decl) -> String
43
49
 
50
+ # @rbs namespace: RBS::Namespace
44
51
  # @rbs decl: AttributeAccessor
45
- def render_attribute_accessor: (AttributeAccessor decl) -> String
52
+ def render_attribute_accessor: (RBS::Namespace namespace, AttributeAccessor decl) -> String
46
53
 
54
+ # @rbs namespace: RBS::Namespace
47
55
  # @rbs decl: ClassAttribute
48
- def render_class_attribute: (ClassAttribute decl) -> String
56
+ def render_class_attribute: (RBS::Namespace namespace, ClassAttribute decl) -> String
49
57
 
50
58
  # @rbs decl: Delegate
51
59
  def render_delegate: (Delegate decl) -> String
52
60
 
53
61
  # @rbs decl: Include
54
62
  def render_include: (Include decl) -> String
63
+
64
+ # @rbs namespace: RBS::Namespace
65
+ # @rbs type: String
66
+ def resolve_type: (RBS::Namespace namespace, String type) -> String
67
+
68
+ # @rbs type_name: RBS::TypeName
69
+ def context_from: (RBS::TypeName type_name) -> RBS::Resolver::context
55
70
  end
56
71
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbs_activesupport
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takeshi KOMIYA
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-24 00:00:00.000000000 Z
11
+ date: 2025-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description:
55
+ description:
56
56
  email:
57
57
  - i.tkomiya@gmail.com
58
58
  executables: []
@@ -106,7 +106,7 @@ metadata:
106
106
  homepage_uri: https://github.com/tk0miya/rbs_activesupport
107
107
  source_code_uri: https://github.com/tk0miya/rbs_activesupport
108
108
  changelog_uri: https://github.com/tk0miya/rbs_activesupport
109
- post_install_message:
109
+ post_install_message:
110
110
  rdoc_options: []
111
111
  require_paths:
112
112
  - lib
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  requirements: []
124
124
  rubygems_version: 3.5.22
125
- signing_key:
125
+ signing_key:
126
126
  specification_version: 4
127
127
  summary: A RBS files generatorfor activesupport
128
128
  test_files: []