low_type 1.1.5 → 1.1.6
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 +4 -4
- data/lib/definitions/redefiner.rb +10 -5
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 353f89ccc3e77dc8eaa2fe4e8df301fc1c43bda6bfd936ecd92b19e755222fec
|
|
4
|
+
data.tar.gz: c19938429cc2a5aed790df108ca1d232650807376c972f680fe161eeca77c072
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0baaf85c1edffcad962cde102756894d3a2c806ded41f98b442c84a5e79fbefaecbbd19859674839e57bd6357bd850b8a799837919a7b5fcf4481022274ff9f0
|
|
7
|
+
data.tar.gz: 83d641896ca7dbf6fe8289d8870941b31a3bdc5327f4a429ba0463d14c4df206179373d4deb77f8330db6e940a84c9154e7d8bb8177f6991cd8a5958414c9cad
|
|
@@ -56,13 +56,18 @@ module LowType
|
|
|
56
56
|
|
|
57
57
|
def build_methods(method_nodes:, klass:, file_path:)
|
|
58
58
|
method_nodes.each do |name, method_node|
|
|
59
|
-
|
|
59
|
+
begin # rubocop:disable Style/RedundantBegin
|
|
60
|
+
file = ProxyFactory.file_proxy(path: file_path, node: method_node, scope: "#{klass}##{name}")
|
|
60
61
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
param_proxies = ProxyFactory.param_proxies(method_node:, file:)
|
|
63
|
+
return_proxy = ProxyFactory.return_proxy(method_node:, file:)
|
|
64
|
+
method_proxy = MethodProxy.new(name:, params: param_proxies, return_proxy:, file:)
|
|
64
65
|
|
|
65
|
-
|
|
66
|
+
Repository.save(method: method_proxy, klass:)
|
|
67
|
+
# When we can't parse the method's params or return type then skip it.
|
|
68
|
+
rescue SyntaxError
|
|
69
|
+
next
|
|
70
|
+
end
|
|
66
71
|
end
|
|
67
72
|
|
|
68
73
|
Repository.all(klass:)
|
data/lib/version.rb
CHANGED