no_comments 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/no_comments/content_processor.rb +4 -1
- data/lib/no_comments/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: 4bd25fbe95f21f9b67340ed123921b6b483c3134edbc4b8924f4bff6395daaa8
|
4
|
+
data.tar.gz: de4c4dd2964da1ed0720f7265813c27a54f2a98dc5cd66a6c56544276709d9e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58cd74ff623136cd6af53270606a9db22bdd7ea6dec8c7e8b952d05b4c2c91079b53c029a21c8b60fa8e90a2d721cc3a0a39f5807a5fd56bfe82ba4351e4503d
|
7
|
+
data.tar.gz: 860f0e0646154364946327a9294464dc933fd191e20cbb2a47f25b342798af9afd5587d8118a134897735f12f08d9420ea9bea0b685f81db3fa8f03a726e3a02
|
@@ -93,7 +93,10 @@ module NoComments
|
|
93
93
|
|
94
94
|
def process_code_line(line)
|
95
95
|
code_part, comment_part = split_line(line)
|
96
|
-
|
96
|
+
|
97
|
+
if code_part.strip.empty? && comment_part.nil?
|
98
|
+
@result_lines << line.rstrip
|
99
|
+
elsif comment_part && tool_comment?(comment_part.strip)
|
97
100
|
@result_lines << ("#{code_part.rstrip} #{comment_part.strip}")
|
98
101
|
else
|
99
102
|
@comments << [@line_number, comment_part.strip] if comment_part
|
data/lib/no_comments/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: no_comments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justyna
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|