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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e13a3035e27d89496ce05f13f70ae7427f14ea0983296e0b2e87638c151da090
4
- data.tar.gz: 5481efe2424490d9e7b1f572702c7e1ed4ed5438da8dc4b76eaed673aefe2ba7
3
+ metadata.gz: 353f89ccc3e77dc8eaa2fe4e8df301fc1c43bda6bfd936ecd92b19e755222fec
4
+ data.tar.gz: c19938429cc2a5aed790df108ca1d232650807376c972f680fe161eeca77c072
5
5
  SHA512:
6
- metadata.gz: 86cca4540d30f7fd2b9b3ae756d671f81a1545a8db7bdf3f9df5d540a1199476068edfda2f6a8e2a07ca7f265edfe6cdb87310eb3b143aadb820f2c193166b3b
7
- data.tar.gz: 5ef5ab81b49b67b8f536de461e501b5c2e2d23dab7f742af69160f9ce055ae8c39ddeed540f72611547236722b7cb4f19fadb383f6751daa620c1e09ce1db5a4
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
- file = ProxyFactory.file_proxy(path: file_path, node: method_node, scope: "#{klass}##{name}")
59
+ begin # rubocop:disable Style/RedundantBegin
60
+ file = ProxyFactory.file_proxy(path: file_path, node: method_node, scope: "#{klass}##{name}")
60
61
 
61
- param_proxies = ProxyFactory.param_proxies(method_node:, file:)
62
- return_proxy = ProxyFactory.return_proxy(method_node:, file:)
63
- method_proxy = MethodProxy.new(name:, params: param_proxies, return_proxy:, file:)
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
- Repository.save(method: method_proxy, klass:)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LowType
4
- VERSION = '1.1.5'
4
+ VERSION = '1.1.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: low_type
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - maedi