rbs 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/rbs/constant_table.rb +6 -2
- data/lib/rbs/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: ddacdf6b9e8b5297a7a5845aa715ffc9202fa42a6a81b492e40cbeeabbc4c311
|
4
|
+
data.tar.gz: f79a70c89b49abc949dfb9d168bac9684d90036b4ef496c839ec24c20be4d972
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6beaa6a9cb76ff862057a2bc8be4260e804c3b2737ccf0d1811b0c2d5aa5aa35b3832c01d936de76ee5f2ef6d64b2182b9830dc2ae178d54971332360e190b4
|
7
|
+
data.tar.gz: ce16ec8b1174d15f5f0acf6fc9285abede6554bb036252f5ad4efab162e8a1976b9eefa37f1136a2e6b6d18e5f11505204f7fe15edf4f3c9d64a72329c9db63a
|
data/CHANGELOG.md
CHANGED
data/lib/rbs/constant_table.rb
CHANGED
@@ -57,8 +57,12 @@ module RBS
|
|
57
57
|
head, *tail = context
|
58
58
|
|
59
59
|
if head
|
60
|
-
|
61
|
-
|
60
|
+
if head.path.last == name
|
61
|
+
name_to_constant(head.to_type_name)
|
62
|
+
else
|
63
|
+
name_to_constant(TypeName.new(name: name, namespace: head)) ||
|
64
|
+
resolve_constant_reference_context(name, context: tail)
|
65
|
+
end
|
62
66
|
end
|
63
67
|
end
|
64
68
|
|
data/lib/rbs/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Soutaro Matsumoto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|