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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 018bc2a6c15d0274f028720661ad5a6d77f9bd8c
4
- data.tar.gz: 7cc54bfe4c54f1f8e3a7a129b342e39aa530deed
3
+ metadata.gz: a2878138b4b14b6cf1713e3964b8cfc3b43e6521
4
+ data.tar.gz: 4f44b0c341cabe2ae704bdd5adb10cf40f201f50
5
5
  SHA512:
6
- metadata.gz: 74c2f8090ef9c12c4847f88b7ca1b2886235e34e00ebb5ebacb82db46addb250c866c0ba6d8f04cff35f55b3a33df678576d8446b9d6f35fd4e4447a3809c289
7
- data.tar.gz: 73741d08264c9c2b80b4e3c0c0507944c69a6d5031bb986ee97201156e68b42cfdc2fcab302ee9ea3d2ea3cd853a82d1010864344706299a2d4f030eab0fedc9
6
+ metadata.gz: f074416865024e0696aabd8e37603acf8786209aa8eba50bef5e43349a27c65bf924dd725859e19ca6cb15e5f68cd5fa0a6264f563aeb42fc06b38899e1bfe25
7
+ data.tar.gz: 803eb6cd7b085566815291ddcd9a8d295bd67536a48a9c6053c466d7a71867b503c71497c8490446e073425cda9c6f9d4c0bac1975457585ce03fc777ba3a2ce
@@ -26,7 +26,7 @@
26
26
 
27
27
  module NaslDoc
28
28
  APP_NAME = "nasldoc"
29
- VERSION = "0.3.0"
29
+ VERSION = "0.3.1"
30
30
  end
31
31
 
32
32
  require 'erb'
@@ -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 #@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.0
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-01 00:00:00.000000000 Z
13
+ date: 2018-06-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake