nasldoc 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nasldoc.rb +1 -1
- data/lib/nasldoc/cli/comment.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2878138b4b14b6cf1713e3964b8cfc3b43e6521
|
4
|
+
data.tar.gz: 4f44b0c341cabe2ae704bdd5adb10cf40f201f50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f074416865024e0696aabd8e37603acf8786209aa8eba50bef5e43349a27c65bf924dd725859e19ca6cb15e5f68cd5fa0a6264f563aeb42fc06b38899e1bfe25
|
7
|
+
data.tar.gz: 803eb6cd7b085566815291ddcd9a8d295bd67536a48a9c6053c466d7a71867b503c71497c8490446e073425cda9c6f9d4c0bac1975457585ce03fc777ba3a2ce
|
data/lib/nasldoc.rb
CHANGED
data/lib/nasldoc/cli/comment.rb
CHANGED
@@ -142,6 +142,8 @@ module NaslDoc
|
|
142
142
|
re_sig = Regexp.new(trusted_regex)
|
143
143
|
text.gsub!(re_sig, '');
|
144
144
|
|
145
|
+
# strip out empty comment lines with accidental whitespace afterwards
|
146
|
+
text.gsub!(/^#+[ \t]+$/, '');
|
145
147
|
# Remove the comment prefixes ('#') from the text.
|
146
148
|
text.gsub!(/^#+/, '');
|
147
149
|
|
@@ -302,7 +304,7 @@ module NaslDoc
|
|
302
304
|
@fn_type = fn.fn_type
|
303
305
|
|
304
306
|
# Name this comment for use in error messages.
|
305
|
-
@name = "function
|
307
|
+
@name = "function " + fn.name.name
|
306
308
|
|
307
309
|
# Add in all named parameters, even ones that weren't annotated.
|
308
310
|
fn.params.each { |arg| @params[arg.name] = nil }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nasldoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacob Hammack
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-06-
|
13
|
+
date: 2018-06-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|