nasldoc 0.3.1 → 0.3.2

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: a2878138b4b14b6cf1713e3964b8cfc3b43e6521
4
- data.tar.gz: 4f44b0c341cabe2ae704bdd5adb10cf40f201f50
3
+ metadata.gz: 70d7cd9fda02d6dd7cd2ea8dd28b7d3d9390cac4
4
+ data.tar.gz: f43d4868c4613f431d54b556ef593c94029785a7
5
5
  SHA512:
6
- metadata.gz: f074416865024e0696aabd8e37603acf8786209aa8eba50bef5e43349a27c65bf924dd725859e19ca6cb15e5f68cd5fa0a6264f563aeb42fc06b38899e1bfe25
7
- data.tar.gz: 803eb6cd7b085566815291ddcd9a8d295bd67536a48a9c6053c466d7a71867b503c71497c8490446e073425cda9c6f9d4c0bac1975457585ce03fc777ba3a2ce
6
+ metadata.gz: 786ca64620d3e53cecfc1063bd721f2686ff6228f2c83c1f9d45b94aa40758f94c458ceced4d15a2615ca471b29b3af4c1d0f66d4147a27f097adf70ca9e9b78
7
+ data.tar.gz: cebb455516255c64dfeda90786a4c3b5538a6c676e045a9fcb12d3026762fcea98ef66e8d14338a25d3ec74481f536097b202202077ad47a3386da8532a80f2c
@@ -26,7 +26,7 @@
26
26
 
27
27
  module NaslDoc
28
28
  APP_NAME = "nasldoc"
29
- VERSION = "0.3.1"
29
+ VERSION = "0.3.2"
30
30
  end
31
31
 
32
32
  require 'erb'
@@ -7,7 +7,8 @@
7
7
  var constants = 'FALSE NULL TRUE';
8
8
 
9
9
  var keywords = 'break continue else export for foreach function global_var if ' +
10
- 'import include local_var repeat return until while';
10
+ 'import include local_var repeat return until while namespace object ' +
11
+ 'var public private case switch default do';
11
12
 
12
13
  this.regexList = [
13
14
  { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comment' },
@@ -253,29 +253,25 @@ module NaslDoc
253
253
  def remove_blacklist file_list
254
254
  blacklist = [
255
255
  "apple_device_model_list.inc",
256
- "blacklist_dss.inc",
257
- "blacklist_rsa.inc",
258
- "blacklist_ssl_rsa1024.inc",
259
- "blacklist_ssl_rsa2048.inc",
256
+ "blacklist_",
260
257
  "custom_CA.inc",
261
- "daily_badip.inc",
262
- "daily_badip2.inc",
258
+ "daily_badip",
263
259
  "daily_badurl.inc",
264
260
  "known_CA.inc",
265
261
  "oui.inc",
266
262
  "oval-definitions-schematron.inc",
267
- "ovaldi32-rhel5.inc",
268
- "ovaldi32-win-dyn-v100.inc",
269
- "ovaldi32-win-dyn-v90.inc",
270
- "ovaldi32-win-static.inc",
271
- "ovaldi64-rhel5.inc",
272
- "ovaldi64-win-dyn-v100.inc",
273
- "ovaldi64-win-dyn-v90.inc",
274
- "ovaldi64-win-static.inc",
275
263
  "plugin_feed_info.inc",
276
264
  "sc_families.inc",
277
265
  "scap_schema.inc",
278
- "ssl_known_cert.inc"
266
+ "ssl_known_cert.inc",
267
+ "ssh_get_info2",
268
+ "torture_cgi",
269
+ "daily_badip3.inc",
270
+ "cisco_ios.inc",
271
+ "ovaldi32",
272
+ "ovaldi64",
273
+ "os_cves.inc",
274
+ "kernel_cves.inc"
279
275
  ]
280
276
 
281
277
  new_file_list = file_list.dup
@@ -371,11 +371,11 @@
371
371
 
372
372
  <h3>Code</h3>
373
373
  <!-- The contents must not have indentation, else formatting is off. -->
374
- <pre class="brush: nasl">
374
+ <script type="syntaxhighlighter" class="brush: nasl"><![CDATA[
375
375
  <% unless @functions[name][:code].nil? %>
376
- <%= CGI::escapeHTML(@functions[name][:code]) %>
376
+ <%= @functions[name][:code] %>
377
377
  <% end %>
378
- </pre>
378
+ ]]></script>
379
379
  <a href="#top">top</a>
380
380
  <hr>
381
381
  <% end %>
@@ -388,7 +388,7 @@
388
388
  <hr>
389
389
 
390
390
  <footer>
391
- <p>&copy; Tenable Network Security 2018</p>
391
+ <p>&copy; Tenable Network Security <%= Time.new.year %></p>
392
392
  </footer>
393
393
 
394
394
  </div><!--/.fluid-container-->
@@ -71,6 +71,7 @@
71
71
  <div class="span9">
72
72
  <div class="hero-unit">
73
73
  <h1>Welcome to nasldoc!</h1>
74
+ <h3> Generated <%= Time.now.inspect %></h3>
74
75
  <p>Select a file to view the docs!</p>
75
76
  <p><a class="btn btn-primary btn-large">Learn more &raquo;</a></p>
76
77
  </div>
@@ -82,7 +83,7 @@
82
83
  <hr>
83
84
 
84
85
  <footer>
85
- <p>&copy; Tenable Network Security 2018</p>
86
+ <p>&copy; Tenable Network Security <%= Time.new.year %></p>
86
87
  </footer>
87
88
 
88
89
  </div><!--/.fluid-container-->
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.1
4
+ version: 0.3.2
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-04 00:00:00.000000000 Z
13
+ date: 2018-06-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake