low_type 0.8.4 → 0.8.5

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: c831cb6509bc7bb14c4843d19cc8444422000eb783c2a4274279d64bda41d743
4
- data.tar.gz: d2d113ff7ff24407cd47dbac978e553fb4c9f95e1c848a1adf4c666ffa3d93c7
3
+ metadata.gz: 40a701625494d482b8d9aa6092f8f924cd84ebc3310186e4dc9c1af38ff67cd4
4
+ data.tar.gz: f24a27f11822f27177132eb8b840a9cdc4081867a171e338131a45e3b1a3b787
5
5
  SHA512:
6
- metadata.gz: 8e0be5e215980c83778782a46fd3866a36772b72000962266c31db7d72957e4bb0956b6a69c77b3c9cb0bc7ca485627e98e87b7f7480b650a4c2e74166d5b077
7
- data.tar.gz: fab0520e84dbf26566dbae8cd1bb71767881bcb2f3f43a6edf70ad8cde67df07b2d7eccc251fb39f4c72fa83840faca2e595d93a037e15f58d5b94ccd97580ec
6
+ metadata.gz: 62f84ed471ba858386cba1a1eb8876d62612701bc5760b1e60dd78cb37e10f1741228a4ec7ccbdf0eefbbe94cb13ffca12180ea1d8feedcd7d2c42ed627c4289
7
+ data.tar.gz: 02c5577b08fc0ca6ab7e564efb550e11d80ff0521feeaff34aac291332f777507b04c40c9fea038976bacef187c5c769a6ea7a26060ba906cd0d95189b8c9c4c
@@ -27,7 +27,8 @@ module LowType
27
27
 
28
28
  pattern = arguments_node.arguments.first.content
29
29
 
30
- file = FileProxy.new(path: @file_path, line: method_call.start_line, scope: "#{@klass}##{method_call.name}")
30
+ line = method_call.respond_to?(:start_line) ? method_call.start_line : nil
31
+ file = FileProxy.new(path: @file_path, line:, scope: "#{@klass}##{method_call.name}")
31
32
  params = [ParamProxy.new(type_expression: nil, name: :route, type: :req, position: 0, file:)]
32
33
  return_proxy = return_proxy(method_node: method_call, pattern:, file:)
33
34
  next unless return_proxy
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LowType
4
- VERSION = '0.8.4'
4
+ VERSION = '0.8.5'
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: 0.8.4
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - maedi