rbi 0.2.1 → 0.2.2
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 +1 -1
- data/lib/rbi/rbs_printer.rb +4 -11
- data/lib/rbi/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c651b1059238b331d30239d5f366dc771fa9e3a3cd5ae8341cd41afcd8f4fbd
|
4
|
+
data.tar.gz: 1c46c0ca74094a0a74fe6b5e8de3ab6ca23c1a4f441ca88eb2733a0b56c42031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 339001680272e363ee1bb55170bce1e1af78fbb70a718359a9a0b56db0c8c73210043fca56b6f65d4a45da6bafbbd10f7a6162fe03351a8f7b409781d752ccaf
|
7
|
+
data.tar.gz: 0e97a47c78aec83d044ceaa901b79e3ebdfd2219cfe787d7645faf070f83c317cd47239c41c424737ef5172cfb4ebfac96fb9a2939e863543290168e167243d3
|
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.69", 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
data/lib/rbi/rbs_printer.rb
CHANGED
@@ -770,17 +770,10 @@ module RBI
|
|
770
770
|
return unless node.name == :let
|
771
771
|
return unless node.receiver&.slice =~ /^(::)?T$/
|
772
772
|
|
773
|
-
node.arguments&.arguments
|
774
|
-
|
775
|
-
|
776
|
-
sig { params(node: Type).returns(T::Boolean) }
|
777
|
-
def bare_proc?(node)
|
778
|
-
node.is_a?(Type::Simple) && node.name == "Proc"
|
779
|
-
end
|
773
|
+
arguments = node.arguments&.arguments
|
774
|
+
return unless arguments
|
780
775
|
|
781
|
-
|
782
|
-
def bare_nilable_proc?(node)
|
783
|
-
node.is_a?(Type::Nilable) && bare_proc?(node.type)
|
776
|
+
arguments.fetch(1, nil)&.slice
|
784
777
|
end
|
785
778
|
end
|
786
779
|
|
@@ -887,7 +880,7 @@ module RBI
|
|
887
880
|
|
888
881
|
sig { params(type: Type::AttachedClass).void }
|
889
882
|
def visit_attached_class(type)
|
890
|
-
@string << "
|
883
|
+
@string << "instance"
|
891
884
|
end
|
892
885
|
|
893
886
|
sig { params(type: Type::Nilable).void }
|
data/lib/rbi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre Terrasa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: prism
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
|
-
rubygems_version: 3.5.
|
98
|
+
rubygems_version: 3.5.23
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: RBI generation framework
|