bovem 4.0.1 → 4.0.2

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.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -1
  3. data/.travis-gemfile +1 -1
  4. data/.travis.yml +1 -4
  5. data/.yardopts +1 -1
  6. data/CHANGELOG.md +7 -0
  7. data/Gemfile +1 -1
  8. data/LICENSE.md +21 -0
  9. data/README.md +21 -16
  10. data/Rakefile +1 -1
  11. data/bovem.gemspec +1 -1
  12. data/docs/Bovem.html +184 -0
  13. data/{doc → docs}/Bovem/Application.html +139 -140
  14. data/{doc → docs}/Bovem/Command.html +171 -169
  15. data/{doc → docs}/Bovem/CommandMethods.html +38 -38
  16. data/{doc → docs}/Bovem/CommandMethods/Children.html +69 -68
  17. data/{doc → docs}/Bovem/CommandMethods/Help.html +45 -44
  18. data/{doc → docs}/Bovem/Configuration.html +58 -57
  19. data/{doc → docs}/Bovem/Console.html +87 -88
  20. data/{doc → docs}/Bovem/ConsoleMethods.html +38 -38
  21. data/{doc → docs}/Bovem/ConsoleMethods/Interactions.html +52 -50
  22. data/{doc → docs}/Bovem/ConsoleMethods/Interactions/ClassMethods.html +41 -41
  23. data/{doc → docs}/Bovem/ConsoleMethods/Logging.html +81 -81
  24. data/{doc → docs}/Bovem/ConsoleMethods/Logging/ClassMethods.html +41 -41
  25. data/{doc → docs}/Bovem/ConsoleMethods/Output.html +59 -58
  26. data/{doc → docs}/Bovem/ConsoleMethods/StyleHandling.html +52 -50
  27. data/{doc → docs}/Bovem/ConsoleMethods/StyleHandling/ClassMethods.html +51 -51
  28. data/{doc → docs}/Bovem/Errors.html +38 -38
  29. data/{doc → docs}/Bovem/Errors/Error.html +57 -56
  30. data/{doc → docs}/Bovem/Errors/InvalidConfiguration.html +44 -43
  31. data/{doc → docs}/Bovem/Errors/InvalidLogger.html +44 -43
  32. data/{doc → docs}/Bovem/I18n.html +45 -44
  33. data/{doc → docs}/Bovem/Logger.html +79 -80
  34. data/{doc → docs}/Bovem/Option.html +138 -137
  35. data/{doc → docs}/Bovem/Parser.html +52 -50
  36. data/{doc → docs}/Bovem/ParserMethods.html +38 -38
  37. data/{doc → docs}/Bovem/ParserMethods/General.html +47 -45
  38. data/{doc → docs}/Bovem/ParserMethods/General/ClassMethods.html +47 -47
  39. data/docs/Bovem/Shell.html +625 -0
  40. data/{doc → docs}/Bovem/ShellMethods.html +38 -38
  41. data/{doc → docs}/Bovem/ShellMethods/Directories.html +47 -46
  42. data/{doc → docs}/Bovem/ShellMethods/Execute.html +47 -46
  43. data/docs/Bovem/ShellMethods/General.html +120 -0
  44. data/{doc → docs}/Bovem/ShellMethods/Read.html +47 -46
  45. data/{doc → docs}/Bovem/ShellMethods/Write.html +47 -46
  46. data/docs/Bovem/Version.html +187 -0
  47. data/{doc → docs}/_index.html +32 -35
  48. data/docs/class_list.html +51 -0
  49. data/{doc → docs}/css/common.css +0 -0
  50. data/{doc → docs}/css/full_list.css +32 -31
  51. data/{doc → docs}/css/style.css +244 -91
  52. data/{doc → docs}/file.README.html +34 -35
  53. data/docs/file_list.html +56 -0
  54. data/docs/frames.html +17 -0
  55. data/{doc → docs}/index.html +34 -35
  56. data/{doc → docs}/js/app.js +101 -77
  57. data/docs/js/full_list.js +216 -0
  58. data/{doc → docs}/js/jquery.js +0 -0
  59. data/docs/method_list.html +1115 -0
  60. data/docs/top-level-namespace.html +110 -0
  61. data/lib/bovem.rb +1 -1
  62. data/lib/bovem/application.rb +1 -1
  63. data/lib/bovem/command.rb +1 -1
  64. data/lib/bovem/configuration.rb +1 -1
  65. data/lib/bovem/console.rb +1 -1
  66. data/lib/bovem/errors.rb +1 -1
  67. data/lib/bovem/i18n.rb +1 -1
  68. data/lib/bovem/logger.rb +1 -1
  69. data/lib/bovem/option.rb +1 -1
  70. data/lib/bovem/parser.rb +1 -1
  71. data/lib/bovem/shell.rb +1 -1
  72. data/lib/bovem/version.rb +2 -2
  73. data/locales/en.yml +1 -1
  74. data/locales/it.yml +1 -1
  75. data/spec/bovem/application_spec.rb +1 -1
  76. data/spec/bovem/command_spec.rb +1 -1
  77. data/spec/bovem/configuration_spec.rb +1 -1
  78. data/spec/bovem/console_spec.rb +1 -1
  79. data/spec/bovem/errors_spec.rb +1 -1
  80. data/spec/bovem/i18n_spec.rb +1 -1
  81. data/spec/bovem/logger_spec.rb +1 -1
  82. data/spec/bovem/option_spec.rb +1 -1
  83. data/spec/bovem/parser_spec.rb +1 -1
  84. data/spec/bovem/shell_spec.rb +1 -1
  85. data/spec/spec_helper.rb +1 -1
  86. metadata +53 -52
  87. data/doc/Bovem.html +0 -186
  88. data/doc/Bovem/Shell.html +0 -623
  89. data/doc/Bovem/ShellMethods/General.html +0 -119
  90. data/doc/Bovem/Version.html +0 -189
  91. data/doc/class_list.html +0 -58
  92. data/doc/file_list.html +0 -60
  93. data/doc/frames.html +0 -26
  94. data/doc/js/full_list.js +0 -181
  95. data/doc/method_list.html +0 -855
  96. data/doc/top-level-namespace.html +0 -112
@@ -1,12 +1,12 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
1
+ <!DOCTYPE html>
2
+ <html>
4
3
  <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.6
9
+ &mdash; Documentation by YARD 0.9.7
10
10
 
11
11
  </title>
12
12
 
@@ -15,9 +15,8 @@
15
15
  <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
16
 
17
17
  <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
18
+ pathId = "README";
19
19
  relpath = '';
20
- framesUrl = "frames.html#!file.README.html";
21
20
  </script>
22
21
 
23
22
 
@@ -28,52 +27,47 @@
28
27
 
29
28
  </head>
30
29
  <body>
31
- <div id="header">
32
- <div id="menu">
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="file_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
33
38
 
34
39
  <a href="_index.html">Index</a> &raquo;
35
40
  <span class="title">File: README</span>
36
41
 
37
-
38
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
39
42
  </div>
40
43
 
41
- <div id="search">
44
+ <div id="search">
42
45
 
43
46
  <a class="full_list_link" id="class_list_link"
44
47
  href="class_list.html">
45
- Class List
46
- </a>
47
-
48
- <a class="full_list_link" id="method_list_link"
49
- href="method_list.html">
50
- Method List
51
- </a>
52
-
53
- <a class="full_list_link" id="file_list_link"
54
- href="file_list.html">
55
- File List
48
+
49
+ <svg width="24" height="24">
50
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
51
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
52
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
53
+ </svg>
56
54
  </a>
57
55
 
58
56
  </div>
59
- <div class="clear"></div>
60
- </div>
57
+ <div class="clear"></div>
58
+ </div>
61
59
 
62
- <iframe id="search_frame"></iframe>
63
-
64
- <div id="content"><div id='filecontents'><h1 id="bovem">bovem</h1>
60
+ <div id="content"><div id='filecontents'><h1 id="bovem">bovem</h1>
65
61
 
66
62
  <p><a href="http://badge.fury.io/rb/bovem"><img src="https://badge.fury.io/rb/bovem.png" alt="Gem Version" /></a>
67
63
  <a href="https://gemnasium.com/ShogunPanda/bovem"><img src="https://gemnasium.com/ShogunPanda/bovem.png?travis" alt="Dependency Status" /></a>
68
64
  <a href="http://travis-ci.org/ShogunPanda/bovem"><img src="https://secure.travis-ci.org/ShogunPanda/bovem.png?branch=master" alt="Build Status" /></a>
69
65
  <a href="https://codeclimate.com/github/ShogunPanda/bovem"><img src="https://codeclimate.com/github/ShogunPanda/bovem.png" alt="Code Climate" /></a>
70
- <a href="https://coveralls.io/r/ShogunPanda/bovem"><img src="https://coveralls.io/repos/ShogunPanda/bovem/badge.png" alt="Coverage Status" /></a></p>
66
+ <a href="https://coveralls.io/github/ShogunPanda/bovem?branch=master"><img src="https://coveralls.io/repos/github/ShogunPanda/bovem/badge.svg?branch=master" alt="Coverage Status" /></a></p>
71
67
 
72
68
  <p>A command line manager and a collection of utilities for developers.</p>
73
69
 
74
- <p>http://sw.cowtech.it/bovem</p>
75
-
76
- <p>http://rdoc.info/gems/bovem</p>
70
+ <p>https://sw.cowtech.it/bovem</p>
77
71
 
78
72
  <h2 id="description">Description</h2>
79
73
 
@@ -174,6 +168,10 @@ $ ./test help manage
174
168
 
175
169
  <p>See documentation for more information.</p>
176
170
 
171
+ <h2 id="api-documentation">API Documentation</h2>
172
+
173
+ <p>The API documentation can be found <a href="https://sw.cowtech.it/bovem/docs">here</a>.</p>
174
+
177
175
  <h2 id="contributing-to-bovem">Contributing to bovem</h2>
178
176
 
179
177
  <ul>
@@ -193,11 +191,12 @@ $ ./test help manage
193
191
  <p>Licensed under the MIT license, which can be found at <a href="http://www.opensource.org/licenses/mit-license.php">http://www.opensource.org/licenses/mit-license.php</a>.</p>
194
192
  </div></div>
195
193
 
196
- <div id="footer">
197
- Generated on Wed Mar 30 11:49:26 2016 by
194
+ <div id="footer">
195
+ Generated on Thu Jan 12 16:10:57 2017 by
198
196
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
199
- 0.8.7.6 (ruby-2.3.0).
197
+ 0.9.7 (ruby-2.3.0).
200
198
  </div>
201
199
 
200
+ </div>
202
201
  </body>
203
202
  </html>
@@ -0,0 +1,56 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
+ <meta charset="utf-8" />
6
+
7
+ <link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
8
+
9
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
10
+
11
+
12
+
13
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
16
+
17
+
18
+ <title>File List</title>
19
+ <base id="base_target" target="_parent" />
20
+ </head>
21
+ <body>
22
+ <div id="content">
23
+ <div class="fixed_header">
24
+ <h1 id="full_list_header">File List</h1>
25
+ <div id="full_list_nav">
26
+
27
+ <span><a target="_self" href="class_list.html">
28
+ Classes
29
+ </a></span>
30
+
31
+ <span><a target="_self" href="method_list.html">
32
+ Methods
33
+ </a></span>
34
+
35
+ <span><a target="_self" href="file_list.html">
36
+ Files
37
+ </a></span>
38
+
39
+ </div>
40
+
41
+ <div id="search">Search: <input type="text" /></div>
42
+ </div>
43
+
44
+ <ul id="full_list" class="file">
45
+
46
+
47
+ <li id="object_README" class="odd">
48
+ <div class="item"><span class="object_link"><a href="index.html" title="README">README</a></span></div>
49
+ </li>
50
+
51
+
52
+
53
+ </ul>
54
+ </div>
55
+ </body>
56
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Documentation by YARD 0.9.7</title>
6
+ </head>
7
+ <script type="text/javascript" charset="utf-8">
8
+ var match = unescape(window.location.hash).match(/^#!(.+)/);
9
+ var name = match ? match[1] : 'index.html';
10
+ name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
11
+ window.top.location = name;
12
+ </script>
13
+ <noscript>
14
+ <h1>Oops!</h1>
15
+ <h2>YARD requires JavaScript!</h2>
16
+ </noscript>
17
+ </html>
@@ -1,12 +1,12 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
1
+ <!DOCTYPE html>
2
+ <html>
4
3
  <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.6
9
+ &mdash; Documentation by YARD 0.9.7
10
10
 
11
11
  </title>
12
12
 
@@ -15,9 +15,8 @@
15
15
  <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
16
 
17
17
  <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
18
+ pathId = "README";
19
19
  relpath = '';
20
- framesUrl = "frames.html#!file.README.html";
21
20
  </script>
22
21
 
23
22
 
@@ -28,52 +27,47 @@
28
27
 
29
28
  </head>
30
29
  <body>
31
- <div id="header">
32
- <div id="menu">
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
33
38
 
34
39
  <a href="_index.html">Index</a> &raquo;
35
40
  <span class="title">File: README</span>
36
41
 
37
-
38
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
39
42
  </div>
40
43
 
41
- <div id="search">
44
+ <div id="search">
42
45
 
43
46
  <a class="full_list_link" id="class_list_link"
44
47
  href="class_list.html">
45
- Class List
46
- </a>
47
-
48
- <a class="full_list_link" id="method_list_link"
49
- href="method_list.html">
50
- Method List
51
- </a>
52
-
53
- <a class="full_list_link" id="file_list_link"
54
- href="file_list.html">
55
- File List
48
+
49
+ <svg width="24" height="24">
50
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
51
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
52
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
53
+ </svg>
56
54
  </a>
57
55
 
58
56
  </div>
59
- <div class="clear"></div>
60
- </div>
57
+ <div class="clear"></div>
58
+ </div>
61
59
 
62
- <iframe id="search_frame"></iframe>
63
-
64
- <div id="content"><div id='filecontents'><h1 id="bovem">bovem</h1>
60
+ <div id="content"><div id='filecontents'><h1 id="bovem">bovem</h1>
65
61
 
66
62
  <p><a href="http://badge.fury.io/rb/bovem"><img src="https://badge.fury.io/rb/bovem.png" alt="Gem Version" /></a>
67
63
  <a href="https://gemnasium.com/ShogunPanda/bovem"><img src="https://gemnasium.com/ShogunPanda/bovem.png?travis" alt="Dependency Status" /></a>
68
64
  <a href="http://travis-ci.org/ShogunPanda/bovem"><img src="https://secure.travis-ci.org/ShogunPanda/bovem.png?branch=master" alt="Build Status" /></a>
69
65
  <a href="https://codeclimate.com/github/ShogunPanda/bovem"><img src="https://codeclimate.com/github/ShogunPanda/bovem.png" alt="Code Climate" /></a>
70
- <a href="https://coveralls.io/r/ShogunPanda/bovem"><img src="https://coveralls.io/repos/ShogunPanda/bovem/badge.png" alt="Coverage Status" /></a></p>
66
+ <a href="https://coveralls.io/github/ShogunPanda/bovem?branch=master"><img src="https://coveralls.io/repos/github/ShogunPanda/bovem/badge.svg?branch=master" alt="Coverage Status" /></a></p>
71
67
 
72
68
  <p>A command line manager and a collection of utilities for developers.</p>
73
69
 
74
- <p>http://sw.cowtech.it/bovem</p>
75
-
76
- <p>http://rdoc.info/gems/bovem</p>
70
+ <p>https://sw.cowtech.it/bovem</p>
77
71
 
78
72
  <h2 id="description">Description</h2>
79
73
 
@@ -174,6 +168,10 @@ $ ./test help manage
174
168
 
175
169
  <p>See documentation for more information.</p>
176
170
 
171
+ <h2 id="api-documentation">API Documentation</h2>
172
+
173
+ <p>The API documentation can be found <a href="https://sw.cowtech.it/bovem/docs">here</a>.</p>
174
+
177
175
  <h2 id="contributing-to-bovem">Contributing to bovem</h2>
178
176
 
179
177
  <ul>
@@ -193,11 +191,12 @@ $ ./test help manage
193
191
  <p>Licensed under the MIT license, which can be found at <a href="http://www.opensource.org/licenses/mit-license.php">http://www.opensource.org/licenses/mit-license.php</a>.</p>
194
192
  </div></div>
195
193
 
196
- <div id="footer">
197
- Generated on Wed Mar 30 11:49:25 2016 by
194
+ <div id="footer">
195
+ Generated on Thu Jan 12 16:10:57 2017 by
198
196
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
199
- 0.8.7.6 (ruby-2.3.0).
197
+ 0.9.7 (ruby-2.3.0).
200
198
  </div>
201
199
 
200
+ </div>
202
201
  </body>
203
202
  </html>
@@ -1,3 +1,9 @@
1
+ (function() {
2
+
3
+ var localStorage = {}, sessionStorage = {};
4
+ try { localStorage = window.localStorage; } catch (e) { }
5
+ try { sessionStorage = window.sessionStorage; } catch (e) { }
6
+
1
7
  function createSourceLinks() {
2
8
  $('.method_details_list .source_code').
3
9
  before("<span class='showSource'>[<a href='#' class='toggleSource'>View source</a>]</span>");
@@ -16,7 +22,7 @@ function createDefineLinks() {
16
22
  $('.defines').after(" <a href='#' class='toggleDefines'>more...</a>");
17
23
  $('.toggleDefines').toggle(function() {
18
24
  tHeight = $(this).parent().prev().height();
19
- $(this).prev().show();
25
+ $(this).prev().css('display', 'inline');
20
26
  $(this).parent().prev().height($(this).parent().height());
21
27
  $(this).text("(less)");
22
28
  },
@@ -42,29 +48,39 @@ function createFullTreeLinks() {
42
48
  });
43
49
  }
44
50
 
45
- function fixBoxInfoHeights() {
46
- $('dl.box dd.r1, dl.box dd.r2').each(function() {
47
- $(this).prev().height($(this).height());
48
- });
49
- }
50
-
51
- function searchFrameLinks() {
51
+ function searchFrameButtons() {
52
52
  $('.full_list_link').click(function() {
53
53
  toggleSearchFrame(this, $(this).attr('href'));
54
54
  return false;
55
55
  });
56
+ window.addEventListener('message', function(e) {
57
+ if (e.data === 'navEscape') {
58
+ $('#nav').slideUp(100);
59
+ $('#search a').removeClass('active inactive');
60
+ $(window).focus();
61
+ }
62
+ });
63
+
64
+ $(window).resize(function() {
65
+ if ($('#search:visible').length === 0) {
66
+ $('#nav').removeAttr('style');
67
+ $('#search a').removeClass('active inactive');
68
+ $(window).focus();
69
+ }
70
+ });
56
71
  }
57
72
 
58
73
  function toggleSearchFrame(id, link) {
59
- var frame = $('#search_frame');
74
+ var frame = $('#nav');
60
75
  $('#search a').removeClass('active').addClass('inactive');
61
- if (frame.attr('src') == link && frame.css('display') != "none") {
76
+ if (frame.attr('src') === link && frame.css('display') !== "none") {
62
77
  frame.slideUp(100);
63
78
  $('#search a').removeClass('active inactive');
64
79
  }
65
80
  else {
66
81
  $(id).addClass('active').removeClass('inactive');
67
- frame.attr('src', link).slideDown(100);
82
+ if (frame.attr('src') !== link) frame.attr('src', link);
83
+ frame.slideDown(100);
68
84
  }
69
85
  }
70
86
 
@@ -74,43 +90,10 @@ function linkSummaries() {
74
90
  });
75
91
  }
76
92
 
77
- function framesInit() {
78
- if (hasFrames) {
79
- document.body.className = 'frames';
80
- $('#menu .noframes a').attr('href', document.location);
81
- try {
82
- window.top.document.title = $('html head title').text();
83
- } catch(error) {
84
- // some browsers will not allow this when serving from file://
85
- // but we don't want to stop the world.
86
- }
87
- }
88
- else {
89
- $('#menu .noframes a').text('frames').attr('href', framesUrl);
90
- }
91
- }
92
-
93
- function keyboardShortcuts() {
94
- if (window.top.frames.main) return;
95
- $(document).keypress(function(evt) {
96
- if (evt.altKey || evt.ctrlKey || evt.metaKey || evt.shiftKey) return;
97
- if (typeof evt.target !== "undefined" &&
98
- (evt.target.nodeName == "INPUT" ||
99
- evt.target.nodeName == "TEXTAREA")) return;
100
- switch (evt.charCode) {
101
- case 67: case 99: $('#class_list_link').click(); break; // 'c'
102
- case 77: case 109: $('#method_list_link').click(); break; // 'm'
103
- case 70: case 102: $('#file_list_link').click(); break; // 'f'
104
- default: break;
105
- }
106
- });
107
- }
108
-
109
93
  function summaryToggle() {
110
- $('.summary_toggle').click(function() {
111
- if (localStorage) {
112
- localStorage.summaryCollapsed = $(this).text();
113
- }
94
+ $('.summary_toggle').click(function(e) {
95
+ e.preventDefault();
96
+ localStorage.summaryCollapsed = $(this).text();
114
97
  $('.summary_toggle').each(function() {
115
98
  $(this).text($(this).text() == "collapse" ? "expand" : "collapse");
116
99
  var next = $(this).parent().parent().nextAll('ul.summary').first();
@@ -132,18 +115,9 @@ function summaryToggle() {
132
115
  });
133
116
  return false;
134
117
  });
135
- if (localStorage) {
136
- if (localStorage.summaryCollapsed == "collapse") {
137
- $('.summary_toggle').first().click();
138
- }
139
- else localStorage.summaryCollapsed = "expand";
140
- }
141
- }
142
-
143
- function fixOutsideWorldLinks() {
144
- $('a').each(function() {
145
- if (window.location.host != this.host) this.target = '_parent';
146
- });
118
+ if (localStorage.summaryCollapsed == "collapse") {
119
+ $('.summary_toggle').first().click();
120
+ } else { localStorage.summaryCollapsed = "expand"; }
147
121
  }
148
122
 
149
123
  function generateTOC() {
@@ -185,7 +159,7 @@ function generateTOC() {
185
159
  lastTag = thisTag;
186
160
  });
187
161
  if (!show) return;
188
- html = '<div id="toc"><p class="title"><a class="hide_toc" href="#"><strong>Table of Contents</strong></a> <small>(<a href="#" class="float_toc">left</a>)</small></p></div>';
162
+ html = '<div id="toc"><p class="title hide_toc"><a href="#"><strong>Table of Contents</strong></a></p></div>';
189
163
  $('#content').prepend(html);
190
164
  $('#toc').append(_toc);
191
165
  $('#toc .hide_toc').toggle(function() {
@@ -197,23 +171,73 @@ function generateTOC() {
197
171
  $('#toc').toggleClass('hidden');
198
172
  $('#toc .title small').toggle();
199
173
  });
200
- $('#toc .float_toc').toggle(function() {
201
- $(this).text('float');
202
- $('#toc').toggleClass('nofloat');
203
- }, function() {
204
- $(this).text('left');
205
- $('#toc').toggleClass('nofloat');
174
+ }
175
+
176
+ function navResizeFn(e) {
177
+ if (e.which !== 1) {
178
+ navResizeFnStop();
179
+ return;
180
+ }
181
+
182
+ sessionStorage.navWidth = e.pageX.toString();
183
+ $('.nav_wrap').css('width', e.pageX);
184
+ $('.nav_wrap').css('-ms-flex', 'inherit');
185
+ }
186
+
187
+ function navResizeFnStop() {
188
+ $(window).unbind('mousemove', navResizeFn);
189
+ window.removeEventListener('message', navMessageFn, false);
190
+ }
191
+
192
+ function navMessageFn(e) {
193
+ if (e.data.action === 'mousemove') navResizeFn(e.data.event);
194
+ if (e.data.action === 'mouseup') navResizeFnStop();
195
+ }
196
+
197
+ function navResizer() {
198
+ $('#resizer').mousedown(function(e) {
199
+ e.preventDefault();
200
+ $(window).mousemove(navResizeFn);
201
+ window.addEventListener('message', navMessageFn, false);
206
202
  });
203
+ $(window).mouseup(navResizeFnStop);
204
+
205
+ if (sessionStorage.navWidth) {
206
+ navResizeFn({which: 1, pageX: parseInt(sessionStorage.navWidth, 10)});
207
+ }
207
208
  }
208
209
 
209
- $(framesInit);
210
- $(createSourceLinks);
211
- $(createDefineLinks);
212
- $(createFullTreeLinks);
213
- $(fixBoxInfoHeights);
214
- $(searchFrameLinks);
215
- $(linkSummaries);
216
- $(keyboardShortcuts);
217
- $(summaryToggle);
218
- $(fixOutsideWorldLinks);
219
- $(generateTOC);
210
+ function navExpander() {
211
+ var done = false, timer = setTimeout(postMessage, 500);
212
+ function postMessage() {
213
+ if (done) return;
214
+ clearTimeout(timer);
215
+ var opts = { action: 'expand', path: pathId };
216
+ document.getElementById('nav').contentWindow.postMessage(opts, '*');
217
+ done = true;
218
+ }
219
+
220
+ window.addEventListener('message', function(event) {
221
+ if (event.data === 'navReady') postMessage();
222
+ return false;
223
+ }, false);
224
+ }
225
+
226
+ function mainFocus() {
227
+ $('#main')[0].focus();
228
+ }
229
+
230
+ $(document).ready(function() {
231
+ navResizer();
232
+ navExpander();
233
+ createSourceLinks();
234
+ createDefineLinks();
235
+ createFullTreeLinks();
236
+ searchFrameButtons();
237
+ linkSummaries();
238
+ summaryToggle();
239
+ generateTOC();
240
+ mainFocus();
241
+ });
242
+
243
+ })();