low_type 0.8.1 → 0.8.3

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: a7a3792bcc3da1ed2798c92606fd0e4b75ffe054a6afd32b5c7e0afd42c34620
4
- data.tar.gz: 95fd0724a694f585441caf354d74534acb3288204cfbee143157ee34d8c5f28a
3
+ metadata.gz: 667a67d5804487b7c8f4e05e48d8d38bf1d5c268f948514f717b6dd8d3226e39
4
+ data.tar.gz: 74f74a2e53a1f39cd26fd3063156538a4249590fb38951638f91db808395ac77
5
5
  SHA512:
6
- metadata.gz: a53b6098fbab6c32cb108a44932cc96a2a3c3b6b1732e788675496bfc002c3287748e3e0b500a8f6be599d988029ed2d7d6a989b7c565d88af54c0b1c060a79a
7
- data.tar.gz: 622216f5999480de5b5334c65ce3f97c47be1eae78b6e527293c30b328bced9f2783920f767dbfd3300011202fc567c84bccc37f6cf91cb1290765e4d528e4c7
6
+ metadata.gz: 6153895702897f11aac6b4ba7334d434996749a0c192c618727f5018e77d191f9068805100bbea346cad20365a0efd730d1521dd48080408601914ae43f1434d
7
+ data.tar.gz: 12fc3c99abbaf58b4b72b2dc75a3b3e5e70cdd3da4bee1b2520217292f471a0303db3ed1582f1bc8a3d2c16c2dac7c58bb76620c598986b94a52a95b1cfb1691
data/lib/parser.rb CHANGED
@@ -67,7 +67,7 @@ module LowType
67
67
  end
68
68
 
69
69
  def visit_call_node(node)
70
- @private_start_line = node.start_line if node.name == :private
70
+ @private_start_line = node.start_line if node.name == :private && node.respond_to?(:start_line)
71
71
  end
72
72
 
73
73
  private
data/lib/redefiner.rb CHANGED
@@ -14,7 +14,7 @@ module LowType
14
14
  Module.new do
15
15
  method_nodes.each do |method_node|
16
16
  name = method_node.name
17
- file = FileProxy.new(path: file_path, line: method_node.start_line, scope: "#{klass}##{method_node.name}")
17
+ file = FileProxy.new(path: file_path, line: method_node&.start_line, scope: "#{klass}##{method_node.name}")
18
18
  params = Redefiner.params_with_type_expressions(method_node:, file:)
19
19
  return_proxy = Redefiner.return_proxy(method_node:, file:)
20
20
 
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.1'
4
+ VERSION = '0.8.3'
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.1
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - maedi