ionian 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +63 -0
- data/doc/Ionian/Extension/IO.html +1062 -599
- data/doc/Ionian/Extension/Socket.html +2140 -1314
- data/doc/Ionian/Extension.html +98 -70
- data/doc/Ionian/Server.html +577 -345
- data/doc/Ionian/Socket.html +1100 -612
- data/doc/Ionian.html +100 -70
- data/doc/_index.html +164 -0
- data/doc/class_list.html +54 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +338 -0
- data/doc/file.README.html +133 -0
- data/doc/file.license.html +73 -0
- data/doc/file_list.html +59 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +111 -71
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -18
- data/doc/method_list.html +419 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/ionian/extension/io.rb +4 -2
- data/lib/ionian/socket.rb +1 -1
- data/license.txt +2 -0
- metadata +28 -54
- data/doc/created.rid +0 -6
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/fonts.css +0 -167
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/js/darkfish.js +0 -140
- data/doc/js/navigation.js +0 -142
- data/doc/js/search.js +0 -109
- data/doc/js/search_index.js +0 -1
- data/doc/js/searcher.js +0 -228
- data/doc/rdoc.css +0 -580
- data/doc/table_of_contents.html +0 -402
metadata
CHANGED
@@ -1,83 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ionian
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex McLain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: yard
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pry
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: fivemat
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
description: A library to simplify interaction with IO streams. This includes network
|
@@ -88,54 +88,28 @@ executables: []
|
|
88
88
|
extensions: []
|
89
89
|
extra_rdoc_files: []
|
90
90
|
files:
|
91
|
+
- README.md
|
91
92
|
- doc/Ionian.html
|
92
93
|
- doc/Ionian/Extension.html
|
93
94
|
- doc/Ionian/Extension/IO.html
|
94
95
|
- doc/Ionian/Extension/Socket.html
|
95
96
|
- doc/Ionian/Server.html
|
96
97
|
- doc/Ionian/Socket.html
|
97
|
-
- doc/
|
98
|
-
- doc/
|
99
|
-
- doc/
|
100
|
-
- doc/
|
101
|
-
- doc/
|
102
|
-
- doc/
|
103
|
-
- doc/
|
104
|
-
- doc/
|
105
|
-
- doc/
|
106
|
-
- doc/images/arrow_up.png
|
107
|
-
- doc/images/brick.png
|
108
|
-
- doc/images/brick_link.png
|
109
|
-
- doc/images/bug.png
|
110
|
-
- doc/images/bullet_black.png
|
111
|
-
- doc/images/bullet_toggle_minus.png
|
112
|
-
- doc/images/bullet_toggle_plus.png
|
113
|
-
- doc/images/date.png
|
114
|
-
- doc/images/delete.png
|
115
|
-
- doc/images/find.png
|
116
|
-
- doc/images/loadingAnimation.gif
|
117
|
-
- doc/images/macFFBgHack.png
|
118
|
-
- doc/images/package.png
|
119
|
-
- doc/images/page_green.png
|
120
|
-
- doc/images/page_white_text.png
|
121
|
-
- doc/images/page_white_width.png
|
122
|
-
- doc/images/plugin.png
|
123
|
-
- doc/images/ruby.png
|
124
|
-
- doc/images/tag_blue.png
|
125
|
-
- doc/images/tag_green.png
|
126
|
-
- doc/images/transparent.png
|
127
|
-
- doc/images/wrench.png
|
128
|
-
- doc/images/wrench_orange.png
|
129
|
-
- doc/images/zoom.png
|
98
|
+
- doc/_index.html
|
99
|
+
- doc/class_list.html
|
100
|
+
- doc/css/common.css
|
101
|
+
- doc/css/full_list.css
|
102
|
+
- doc/css/style.css
|
103
|
+
- doc/file.README.html
|
104
|
+
- doc/file.license.html
|
105
|
+
- doc/file_list.html
|
106
|
+
- doc/frames.html
|
130
107
|
- doc/index.html
|
131
|
-
- doc/js/
|
108
|
+
- doc/js/app.js
|
109
|
+
- doc/js/full_list.js
|
132
110
|
- doc/js/jquery.js
|
133
|
-
- doc/
|
134
|
-
- doc/
|
135
|
-
- doc/js/search_index.js
|
136
|
-
- doc/js/searcher.js
|
137
|
-
- doc/rdoc.css
|
138
|
-
- doc/table_of_contents.html
|
111
|
+
- doc/method_list.html
|
112
|
+
- doc/top-level-namespace.html
|
139
113
|
- lib/ionian.rb
|
140
114
|
- lib/ionian/extension/io.rb
|
141
115
|
- lib/ionian/extension/socket.rb
|
@@ -162,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
136
|
version: '0'
|
163
137
|
requirements: []
|
164
138
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.2.
|
139
|
+
rubygems_version: 2.2.2
|
166
140
|
signing_key:
|
167
141
|
specification_version: 4
|
168
142
|
summary: Regular expression matching and notification for IO streams.
|
data/doc/created.rid
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
Sun, 26 Jan 2014 18:41:21 -0800
|
2
|
-
lib/ionian.rb Mon, 20 Jan 2014 16:23:59 -0800
|
3
|
-
lib/ionian/extension/io.rb Sun, 26 Jan 2014 18:36:45 -0800
|
4
|
-
lib/ionian/extension/socket.rb Fri, 24 Jan 2014 22:04:33 -0800
|
5
|
-
lib/ionian/server.rb Sun, 26 Jan 2014 12:56:50 -0800
|
6
|
-
lib/ionian/socket.rb Sun, 26 Jan 2014 18:34:36 -0800
|
data/doc/fonts/Lato-Light.ttf
DELETED
Binary file
|
Binary file
|
data/doc/fonts/Lato-Regular.ttf
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/doc/fonts.css
DELETED
@@ -1,167 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/),
|
3
|
-
* with Reserved Font Name "Source". All Rights Reserved. Source is a
|
4
|
-
* trademark of Adobe Systems Incorporated in the United States and/or other
|
5
|
-
* countries.
|
6
|
-
*
|
7
|
-
* This Font Software is licensed under the SIL Open Font License, Version
|
8
|
-
* 1.1.
|
9
|
-
*
|
10
|
-
* This license is copied below, and is also available with a FAQ at:
|
11
|
-
* http://scripts.sil.org/OFL
|
12
|
-
*/
|
13
|
-
|
14
|
-
@font-face {
|
15
|
-
font-family: "Source Code Pro";
|
16
|
-
font-style: normal;
|
17
|
-
font-weight: 400;
|
18
|
-
src: local("Source Code Pro"),
|
19
|
-
local("SourceCodePro-Regular"),
|
20
|
-
url("fonts/SourceCodePro-Regular.ttf") format("truetype");
|
21
|
-
}
|
22
|
-
|
23
|
-
@font-face {
|
24
|
-
font-family: "Source Code Pro";
|
25
|
-
font-style: normal;
|
26
|
-
font-weight: 700;
|
27
|
-
src: local("Source Code Pro Bold"),
|
28
|
-
local("SourceCodePro-Bold"),
|
29
|
-
url("fonts/SourceCodePro-Bold.ttf") format("truetype");
|
30
|
-
}
|
31
|
-
|
32
|
-
/*
|
33
|
-
* Copyright (c) 2010, Łukasz Dziedzic (dziedzic@typoland.com),
|
34
|
-
* with Reserved Font Name Lato.
|
35
|
-
*
|
36
|
-
* This Font Software is licensed under the SIL Open Font License, Version
|
37
|
-
* 1.1.
|
38
|
-
*
|
39
|
-
* This license is copied below, and is also available with a FAQ at:
|
40
|
-
* http://scripts.sil.org/OFL
|
41
|
-
*/
|
42
|
-
|
43
|
-
@font-face {
|
44
|
-
font-family: "Lato";
|
45
|
-
font-style: normal;
|
46
|
-
font-weight: 300;
|
47
|
-
src: local("Lato Light"),
|
48
|
-
local("Lato-Light"),
|
49
|
-
url("fonts/Lato-Light.ttf") format("truetype");
|
50
|
-
}
|
51
|
-
|
52
|
-
@font-face {
|
53
|
-
font-family: "Lato";
|
54
|
-
font-style: italic;
|
55
|
-
font-weight: 300;
|
56
|
-
src: local("Lato Light Italic"),
|
57
|
-
local("Lato-LightItalic"),
|
58
|
-
url("fonts/Lato-LightItalic.ttf") format("truetype");
|
59
|
-
}
|
60
|
-
|
61
|
-
@font-face {
|
62
|
-
font-family: "Lato";
|
63
|
-
font-style: normal;
|
64
|
-
font-weight: 700;
|
65
|
-
src: local("Lato Regular"),
|
66
|
-
local("Lato-Regular"),
|
67
|
-
url("fonts/Lato-Regular.ttf") format("truetype");
|
68
|
-
}
|
69
|
-
|
70
|
-
@font-face {
|
71
|
-
font-family: "Lato";
|
72
|
-
font-style: italic;
|
73
|
-
font-weight: 700;
|
74
|
-
src: local("Lato Italic"),
|
75
|
-
local("Lato-Italic"),
|
76
|
-
url("fonts/Lato-RegularItalic.ttf") format("truetype");
|
77
|
-
}
|
78
|
-
|
79
|
-
/*
|
80
|
-
* -----------------------------------------------------------
|
81
|
-
* SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
82
|
-
* -----------------------------------------------------------
|
83
|
-
*
|
84
|
-
* PREAMBLE
|
85
|
-
* The goals of the Open Font License (OFL) are to stimulate worldwide
|
86
|
-
* development of collaborative font projects, to support the font creation
|
87
|
-
* efforts of academic and linguistic communities, and to provide a free and
|
88
|
-
* open framework in which fonts may be shared and improved in partnership
|
89
|
-
* with others.
|
90
|
-
*
|
91
|
-
* The OFL allows the licensed fonts to be used, studied, modified and
|
92
|
-
* redistributed freely as long as they are not sold by themselves. The
|
93
|
-
* fonts, including any derivative works, can be bundled, embedded,
|
94
|
-
* redistributed and/or sold with any software provided that any reserved
|
95
|
-
* names are not used by derivative works. The fonts and derivatives,
|
96
|
-
* however, cannot be released under any other type of license. The
|
97
|
-
* requirement for fonts to remain under this license does not apply
|
98
|
-
* to any document created using the fonts or their derivatives.
|
99
|
-
*
|
100
|
-
* DEFINITIONS
|
101
|
-
* "Font Software" refers to the set of files released by the Copyright
|
102
|
-
* Holder(s) under this license and clearly marked as such. This may
|
103
|
-
* include source files, build scripts and documentation.
|
104
|
-
*
|
105
|
-
* "Reserved Font Name" refers to any names specified as such after the
|
106
|
-
* copyright statement(s).
|
107
|
-
*
|
108
|
-
* "Original Version" refers to the collection of Font Software components as
|
109
|
-
* distributed by the Copyright Holder(s).
|
110
|
-
*
|
111
|
-
* "Modified Version" refers to any derivative made by adding to, deleting,
|
112
|
-
* or substituting -- in part or in whole -- any of the components of the
|
113
|
-
* Original Version, by changing formats or by porting the Font Software to a
|
114
|
-
* new environment.
|
115
|
-
*
|
116
|
-
* "Author" refers to any designer, engineer, programmer, technical
|
117
|
-
* writer or other person who contributed to the Font Software.
|
118
|
-
*
|
119
|
-
* PERMISSION & CONDITIONS
|
120
|
-
* Permission is hereby granted, free of charge, to any person obtaining
|
121
|
-
* a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
122
|
-
* redistribute, and sell modified and unmodified copies of the Font
|
123
|
-
* Software, subject to the following conditions:
|
124
|
-
*
|
125
|
-
* 1) Neither the Font Software nor any of its individual components,
|
126
|
-
* in Original or Modified Versions, may be sold by itself.
|
127
|
-
*
|
128
|
-
* 2) Original or Modified Versions of the Font Software may be bundled,
|
129
|
-
* redistributed and/or sold with any software, provided that each copy
|
130
|
-
* contains the above copyright notice and this license. These can be
|
131
|
-
* included either as stand-alone text files, human-readable headers or
|
132
|
-
* in the appropriate machine-readable metadata fields within text or
|
133
|
-
* binary files as long as those fields can be easily viewed by the user.
|
134
|
-
*
|
135
|
-
* 3) No Modified Version of the Font Software may use the Reserved Font
|
136
|
-
* Name(s) unless explicit written permission is granted by the corresponding
|
137
|
-
* Copyright Holder. This restriction only applies to the primary font name as
|
138
|
-
* presented to the users.
|
139
|
-
*
|
140
|
-
* 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
141
|
-
* Software shall not be used to promote, endorse or advertise any
|
142
|
-
* Modified Version, except to acknowledge the contribution(s) of the
|
143
|
-
* Copyright Holder(s) and the Author(s) or with their explicit written
|
144
|
-
* permission.
|
145
|
-
*
|
146
|
-
* 5) The Font Software, modified or unmodified, in part or in whole,
|
147
|
-
* must be distributed entirely under this license, and must not be
|
148
|
-
* distributed under any other license. The requirement for fonts to
|
149
|
-
* remain under this license does not apply to any document created
|
150
|
-
* using the Font Software.
|
151
|
-
*
|
152
|
-
* TERMINATION
|
153
|
-
* This license becomes null and void if any of the above conditions are
|
154
|
-
* not met.
|
155
|
-
*
|
156
|
-
* DISCLAIMER
|
157
|
-
* THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
158
|
-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
159
|
-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
160
|
-
* OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
161
|
-
* COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
162
|
-
* INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
163
|
-
* DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
164
|
-
* FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
165
|
-
* OTHER DEALINGS IN THE FONT SOFTWARE.
|
166
|
-
*/
|
167
|
-
|
data/doc/images/add.png
DELETED
Binary file
|
data/doc/images/arrow_up.png
DELETED
Binary file
|
data/doc/images/brick.png
DELETED
Binary file
|
data/doc/images/brick_link.png
DELETED
Binary file
|
data/doc/images/bug.png
DELETED
Binary file
|
data/doc/images/bullet_black.png
DELETED
Binary file
|
Binary file
|
Binary file
|
data/doc/images/date.png
DELETED
Binary file
|
data/doc/images/delete.png
DELETED
Binary file
|
data/doc/images/find.png
DELETED
Binary file
|
Binary file
|
data/doc/images/macFFBgHack.png
DELETED
Binary file
|
data/doc/images/package.png
DELETED
Binary file
|
data/doc/images/page_green.png
DELETED
Binary file
|
Binary file
|
Binary file
|
data/doc/images/plugin.png
DELETED
Binary file
|
data/doc/images/ruby.png
DELETED
Binary file
|
data/doc/images/tag_blue.png
DELETED
Binary file
|
data/doc/images/tag_green.png
DELETED
Binary file
|
data/doc/images/transparent.png
DELETED
Binary file
|
data/doc/images/wrench.png
DELETED
Binary file
|
Binary file
|
data/doc/images/zoom.png
DELETED
Binary file
|
data/doc/js/darkfish.js
DELETED
@@ -1,140 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
*
|
3
|
-
* Darkfish Page Functions
|
4
|
-
* $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $
|
5
|
-
*
|
6
|
-
* Author: Michael Granger <mgranger@laika.com>
|
7
|
-
*
|
8
|
-
*/
|
9
|
-
|
10
|
-
/* Provide console simulation for firebug-less environments */
|
11
|
-
if (!("console" in window) || !("firebug" in console)) {
|
12
|
-
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
|
13
|
-
"group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
|
14
|
-
|
15
|
-
window.console = {};
|
16
|
-
for (var i = 0; i < names.length; ++i)
|
17
|
-
window.console[names[i]] = function() {};
|
18
|
-
};
|
19
|
-
|
20
|
-
|
21
|
-
/**
|
22
|
-
* Unwrap the first element that matches the given @expr@ from the targets and return them.
|
23
|
-
*/
|
24
|
-
$.fn.unwrap = function( expr ) {
|
25
|
-
return this.each( function() {
|
26
|
-
$(this).parents( expr ).eq( 0 ).after( this ).remove();
|
27
|
-
});
|
28
|
-
};
|
29
|
-
|
30
|
-
|
31
|
-
function showSource( e ) {
|
32
|
-
var target = e.target;
|
33
|
-
var codeSections = $(target).
|
34
|
-
parents('.method-detail').
|
35
|
-
find('.method-source-code');
|
36
|
-
|
37
|
-
$(target).
|
38
|
-
parents('.method-detail').
|
39
|
-
find('.method-source-code').
|
40
|
-
slideToggle();
|
41
|
-
};
|
42
|
-
|
43
|
-
function hookSourceViews() {
|
44
|
-
$('.method-heading').click( showSource );
|
45
|
-
};
|
46
|
-
|
47
|
-
function toggleDebuggingSection() {
|
48
|
-
$('.debugging-section').slideToggle();
|
49
|
-
};
|
50
|
-
|
51
|
-
function hookDebuggingToggle() {
|
52
|
-
$('#debugging-toggle img').click( toggleDebuggingSection );
|
53
|
-
};
|
54
|
-
|
55
|
-
function hookSearch() {
|
56
|
-
var input = $('#search-field').eq(0);
|
57
|
-
var result = $('#search-results').eq(0);
|
58
|
-
$(result).show();
|
59
|
-
|
60
|
-
var search_section = $('#search-section').get(0);
|
61
|
-
$(search_section).show();
|
62
|
-
|
63
|
-
var search = new Search(search_data, input, result);
|
64
|
-
|
65
|
-
search.renderItem = function(result) {
|
66
|
-
var li = document.createElement('li');
|
67
|
-
var html = '';
|
68
|
-
|
69
|
-
// TODO add relative path to <script> per-page
|
70
|
-
html += '<p class="search-match"><a href="' + rdoc_rel_prefix + result.path + '">' + this.hlt(result.title);
|
71
|
-
if (result.params)
|
72
|
-
html += '<span class="params">' + result.params + '</span>';
|
73
|
-
html += '</a>';
|
74
|
-
|
75
|
-
|
76
|
-
if (result.namespace)
|
77
|
-
html += '<p class="search-namespace">' + this.hlt(result.namespace);
|
78
|
-
|
79
|
-
if (result.snippet)
|
80
|
-
html += '<div class="search-snippet">' + result.snippet + '</div>';
|
81
|
-
|
82
|
-
li.innerHTML = html;
|
83
|
-
|
84
|
-
return li;
|
85
|
-
}
|
86
|
-
|
87
|
-
search.select = function(result) {
|
88
|
-
var result_element = result.get(0);
|
89
|
-
window.location.href = result_element.firstChild.firstChild.href;
|
90
|
-
}
|
91
|
-
|
92
|
-
search.scrollIntoView = search.scrollInWindow;
|
93
|
-
};
|
94
|
-
|
95
|
-
function highlightTarget( anchor ) {
|
96
|
-
console.debug( "Highlighting target '%s'.", anchor );
|
97
|
-
|
98
|
-
$("a[name]").each( function() {
|
99
|
-
if ( $(this).attr("name") == anchor ) {
|
100
|
-
if ( !$(this).parent().parent().hasClass('target-section') ) {
|
101
|
-
console.debug( "Wrapping the target-section" );
|
102
|
-
$('div.method-detail').unwrap( 'div.target-section' );
|
103
|
-
$(this).parent().wrap( '<div class="target-section"></div>' );
|
104
|
-
} else {
|
105
|
-
console.debug( "Already wrapped." );
|
106
|
-
}
|
107
|
-
}
|
108
|
-
});
|
109
|
-
};
|
110
|
-
|
111
|
-
function highlightLocationTarget() {
|
112
|
-
console.debug( "Location hash: %s", window.location.hash );
|
113
|
-
if ( ! window.location.hash || window.location.hash.length == 0 ) return;
|
114
|
-
|
115
|
-
var anchor = window.location.hash.substring(1);
|
116
|
-
console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
|
117
|
-
|
118
|
-
highlightTarget( anchor );
|
119
|
-
};
|
120
|
-
|
121
|
-
function highlightClickTarget( event ) {
|
122
|
-
console.debug( "Highlighting click target for event %o", event.target );
|
123
|
-
try {
|
124
|
-
var anchor = $(event.target).attr( 'href' ).substring(1);
|
125
|
-
console.debug( "Found target anchor: %s", anchor );
|
126
|
-
highlightTarget( anchor );
|
127
|
-
} catch ( err ) {
|
128
|
-
console.error( "Exception while highlighting: %o", err );
|
129
|
-
};
|
130
|
-
};
|
131
|
-
|
132
|
-
|
133
|
-
$(document).ready( function() {
|
134
|
-
hookSourceViews();
|
135
|
-
hookDebuggingToggle();
|
136
|
-
hookSearch();
|
137
|
-
highlightLocationTarget();
|
138
|
-
|
139
|
-
$('ul.link-list a').bind( "click", highlightClickTarget );
|
140
|
-
});
|