rbi 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/rbi/model.rb +2 -2
- data/lib/rbi/parser.rb +0 -7
- data/lib/rbi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8f99c70643c9f05b1b7dda28cb2091654c1865b124b01a981fc4a3b6f59275f
|
4
|
+
data.tar.gz: 9d0b4626b14eced346dd4899cce76996137a84047f4b10142e01d0c35655b450
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e02a6ffba6687475814388820be9ae352ec732fa288f2295af75959a0ad7b3032992fa6c17b4cb2b03cdcb26667c48b5038c7c4d04babe25be77e0404ff41880
|
7
|
+
data.tar.gz: 0dd7254c9b7ac5c204654bd71f1a26b6b8597e2c5b10a199c5e0ab40224d5444d38eaf4c1e1c4a2acb9c75e482464ef55b7419216dc2f02556d8c8b2317e0f84
|
data/Gemfile
CHANGED
@@ -10,7 +10,7 @@ group(:development, :test) do
|
|
10
10
|
gem("minitest")
|
11
11
|
gem("minitest-reporters")
|
12
12
|
gem("rake", "~> 13.2")
|
13
|
-
gem("rubocop", "~> 1.
|
13
|
+
gem("rubocop", "~> 1.70", require: false)
|
14
14
|
gem("rubocop-shopify", require: false)
|
15
15
|
gem("rubocop-sorbet", require: false)
|
16
16
|
gem("sorbet", ">= 0.5.9204", require: false)
|
data/lib/rbi/model.rb
CHANGED
@@ -261,7 +261,7 @@ module RBI
|
|
261
261
|
).void
|
262
262
|
end
|
263
263
|
def initialize(loc: nil, comments: [], &block)
|
264
|
-
super
|
264
|
+
super {}
|
265
265
|
block&.call(self)
|
266
266
|
end
|
267
267
|
|
@@ -1357,7 +1357,7 @@ module RBI
|
|
1357
1357
|
).void
|
1358
1358
|
end
|
1359
1359
|
def initialize(loc: nil, comments: [], &block)
|
1360
|
-
super
|
1360
|
+
super {}
|
1361
1361
|
block&.call(self)
|
1362
1362
|
end
|
1363
1363
|
|
data/lib/rbi/parser.rb
CHANGED
@@ -451,11 +451,6 @@ module RBI
|
|
451
451
|
loc: node_loc(node),
|
452
452
|
comments: node_comments(node),
|
453
453
|
)
|
454
|
-
else
|
455
|
-
raise ParseError.new(
|
456
|
-
"Unexpected token `#{node.message}` before `#{last_node&.string&.strip}`",
|
457
|
-
node_loc(node),
|
458
|
-
)
|
459
454
|
end
|
460
455
|
else
|
461
456
|
current_scope << parse_visibility(node.name.to_s, node)
|
@@ -722,8 +717,6 @@ module RBI
|
|
722
717
|
|
723
718
|
keyword_init = val == "true" if key == "keyword_init:"
|
724
719
|
end
|
725
|
-
else
|
726
|
-
raise ParseError.new("Unexpected node type `#{arg.class}`", node_loc(arg))
|
727
720
|
end
|
728
721
|
end
|
729
722
|
end
|
data/lib/rbi/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre Terrasa
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-01-
|
10
|
+
date: 2025-01-21 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: prism
|