spoom 1.7.5 → 1.7.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/spoom/rbs.rb +8 -0
- data/lib/spoom/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: dec9f21040705b60c827261ea327500b26e3e7c66c773c489d85bc429e140c77
|
4
|
+
data.tar.gz: 70bc96fd29f8063b9bb406694c7b995fd69b1cffb06a1351b4b1949e2bb934af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a72173af92b3561d80b0fde5489906761aae18f27c0b65fd95d4e862d3912ab819a04dba5dcf52de86b5e22859b837d57c2c2d01dea5bb61469537d2814c739
|
7
|
+
data.tar.gz: bdff8e05e1de869f65ce1ee841b5a5bd87622cd3671a373a1b8f442a4c45f2460ae0c7ff6efe5d79ba23ae58e3eb233be6302059c1c6d16edfbe5140ac4577c0
|
data/lib/spoom/rbs.rb
CHANGED
@@ -75,9 +75,17 @@ module Spoom
|
|
75
75
|
|
76
76
|
continuation_comments = [] #: Array[Prism::Comment]
|
77
77
|
|
78
|
+
last_line = node.location.start_line
|
79
|
+
|
78
80
|
comments.each do |comment|
|
79
81
|
string = comment.slice
|
80
82
|
|
83
|
+
comment_line = comment.location.end_line
|
84
|
+
|
85
|
+
break if comment_line < last_line - 1
|
86
|
+
|
87
|
+
last_line = comment_line
|
88
|
+
|
81
89
|
if string.start_with?("# @")
|
82
90
|
string = string.delete_prefix("#").strip
|
83
91
|
res.annotations << Annotation.new(string, comment.location)
|
data/lib/spoom/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spoom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre Terrasa
|
@@ -274,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
274
274
|
- !ruby/object:Gem::Version
|
275
275
|
version: '0'
|
276
276
|
requirements: []
|
277
|
-
rubygems_version: 3.
|
277
|
+
rubygems_version: 3.7.1
|
278
278
|
specification_version: 4
|
279
279
|
summary: Useful tools for Sorbet enthusiasts.
|
280
280
|
test_files: []
|