rdoc-generator-fivefish 0.0.1.pre34 → 0.0.1.pre38

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.
data.tar.gz.sig CHANGED
Binary file
@@ -1,62 +1,367 @@
1
+ /**
2
+ * Fivefish CSS
3
+ * $Id$
4
+ *
5
+ * Copyright (c) 2012 by the authors
6
+ *
7
+ * Authors:
8
+ * - Michael Granger <ged@FaerieMUD.org>
9
+ */
10
+
1
11
  @import url(bootstrap.min.css);
12
+ body {
13
+ font-family: 'Istok Web';
14
+ padding-top: 45px;
15
+ background: #efefef;
16
+ }
2
17
  @import url(bootstrap-responsive.min.css);
3
- body{font-family:'Istok Web';padding-top:45px;}
4
- @font-face{font-family:'Istok Web';font-style:normal;font-weight:400;src:local('Istok Web Regular'),local('IstokWeb-Regular'),url('../fonts/IstokWeb-Regular.woff') format('woff');}@font-face{font-family:'Istok Web';font-style:italic;font-weight:400;src:local('Istok Web Italic'),local('IstokWeb-Italic'),url('../fonts/IstokWeb-Italic.woff') format('woff');}@font-face{font-family:'Istok Web';font-style:normal;font-weight:700;src:local('Istok Web Bold'),local('IstokWeb-Bold'),url('../fonts/IstokWeb-Bold.woff') format('woff');}h2.namespace{color:#666;}
5
- div.container>header.hero-unit{background-image:-webkit-gradient(linear, left bottom, left top, from(#c9c9c9), color-stop(0.701, #d8d8d8), to(#c6c6c6));background-image:-moz-linear-gradient(90deg, #c9c9c9 0%, #d8d8d8 70.1%, #c6c6c6 100%);}
6
- div.container>header.hero-unit h1{display:inline-block;text-shadow:1px 1px 3px rgba(25, 25, 25, 0.2);}
7
- section#indexes{max-height:460px;}
8
- section#indexes ul.nav-list{max-height:440px;overflow-y:scroll;overflow-x:hidden;background:#f5f5f5;}
9
- section#indexes a .method-parent{color:#666;font-size:11px;font-variant:small-caps;}
10
- section.description p{font-size:1.2em;margin:1em 0;}
11
- section.description p+p{margin:1em 0;}
12
- section.description h2{margin-top:1.5em;}
13
- section.documentation-section{margin-top:3em;}
14
- section .section-click-top{float:right;}
15
- dl.rdoc-list{margin:0.5em 1em;background:#f5f5f5;padding:1em;border-radius:1em;}
16
- section.constants-list dt i{margin-right:0.5em;background-position:-24px -72px;}
17
- section.attributes-list dt i{margin-right:0.5em;background-position:-456px -96px;}
18
- dl.rdoc-list dd,section.constants-list dd,section.attributes-list dd{margin:0 0 1em;}
19
- dd>p:first-child{margin-top:0;}
20
- section.methods+section.methods{margin-top:3em;}
21
- section.public-methods div.method header i{background-position:0 -96px;margin-top:4px;}
22
- section.protected-methods div.method header i{background-position:-24px -96px;margin-top:4px;}
23
- div.method+div.method{margin-top:1em;}
24
- div.method header,dl.rdoc-list dt,section.constants-list dt,section.attributes-list dt{font-weight:bold;font-size:1.2em;background:#eee;}
25
- div.method header span.method-args{color:#666;}
26
- div.method div.method-description p{color:#666;}
27
- #incremental-search header{background:#eee;border-radius:3px;padding:2px;}
28
- #incremental-search .search-string{padding:0 0 1em;}
29
- #incremental-search .search-input{background-color:rgba(153, 203, 255, 0.64);font:22px monospace;padding:1px 4px;display:inline-block;}
30
- #incremental-search .search-input-label{vertical-align:baseline;}
31
- #incremental-search header h4{font-size:14px;}
32
- #incremental-search ul{list-style:none;padding:0;margin:0 0 1em;}
33
- div.method-source-code{display:none;}
34
- div.method-source-code pre,pre.ruby{overflow:auto;background:-moz-linear-gradient(90deg, #424242 0%, #363636 100%),#262626;color:#ccc;padding:0.5em;border-radius:5px;background:-webkit-gradient(linear, left bottom, left top, from(#424242), to(#363636)),#262626;border-style:inset;border-width:3px;}
35
- .description pre{margin:0 0.4em;}
36
- .ruby-constant{color:#7fffd4;background:transparent;}
37
- .ruby-keyword{color:#00ffff;background:transparent;}
38
- .ruby-ivar{color:#eedd82;background:transparent;}
39
- .ruby-operator{color:#00ffee;background:transparent;}
40
- .ruby-identifier{color:#ffe780;background:transparent;}
41
- .ruby-node{color:#ffa07a;background:transparent;}
42
- .ruby-comment{color:#d22e2e;background:transparent;font-style:italic;}
43
- .ruby-regexp{color:#ffa07a;background:transparent;}
44
- .ruby-value{color:#7fffd4;background:transparent;}
45
- .ruby-string{color:#ffa963;background-color:rgba(190, 190, 190, 0.15);}
46
- div.file-metadata{float:right;}
47
- .modal{display:none;}
48
- .dropdown-menu{font:14px sans-serif;position:absolute;z-index:9999999;display:none;}
49
- .dropdown-menu UL{min-width:160px;list-style:none;background:#FFF;border:solid 1px #DDD;border:solid 1px rgba(0, 0, 0, 0.2);border-radius:6px;box-shadow:0 5px 10px rgba(0, 0, 0, 0.2);overflow:visible;padding:4px 0;margin:0;}
50
- .dropdown-menu.has-tip{margin-top:8px;}
51
- .dropdown-menu.has-tip:before{position:absolute;top:-6px;left:9px;content:'';border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #CCC;border-bottom-color:rgba(0, 0, 0, 0.2);display:inline-block;}
52
- .dropdown-menu.has-tip.anchor-right:before{left:auto;right:9px;}
53
- .dropdown-menu.has-tip:after{position:absolute;top:-5px;left:10px;content:'';border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #FFF;display:inline-block;}
54
- .dropdown-menu.has-tip.anchor-right:after{left:auto;right:10px;}
55
- .dropdown-menu.has-scroll ul{max-height:558px;overflow:auto;}
56
- .dropdown-menu li{list-style:none;padding:0;margin:0;line-height:18px;}
57
- .dropdown-menu li>a,.dropdown-menu label{display:block;color:#555;text-decoration:none;line-height:18px;padding:3px 15px;white-space:nowrap;}
58
- .dropdown-menu li>a:hover,.dropdown-menu label:hover{background-color:#08C;color:#FFF;cursor:pointer;}
59
- .dropdown-menu .divider{height:1px;background:#E5E5E5;margin:5px 1px;overflow:hidden;}
60
- .navbar .nav .dropdown-toggle .caret,.navbar .nav .open.dropdown .caret{border-top-color:white;border-bottom-color:white;}
61
- .dropdown-toggle .caret{margin-top:8px;margin-left:2px;}
62
- .caret{display:inline-block;width:0;height:0;vertical-align:top;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid black;opacity:0.3;filter:alpha(opacity=30);content:"";}
18
+
19
+ @font-face {
20
+ font-family: 'Istok Web';
21
+ font-style: normal;
22
+ font-weight: 400;
23
+ src: local('Istok Web Regular'),
24
+ local('IstokWeb-Regular'),
25
+ url('../fonts/IstokWeb-Regular.woff') format('woff');
26
+ }
27
+ @font-face {
28
+ font-family: 'Istok Web';
29
+ font-style: italic;
30
+ font-weight: 400;
31
+ src: local('Istok Web Italic'),
32
+ local('IstokWeb-Italic'),
33
+ url('../fonts/IstokWeb-Italic.woff') format('woff');
34
+ }
35
+ @font-face {
36
+ font-family: 'Istok Web';
37
+ font-style: normal;
38
+ font-weight: 700;
39
+ src: local('Istok Web Bold'),
40
+ local('IstokWeb-Bold'),
41
+ url('../fonts/IstokWeb-Bold.woff') format('woff');
42
+ }
43
+
44
+
45
+ /* Page header */
46
+ h2.namespace {
47
+ color: #666;
48
+ }
49
+
50
+ div.container > header.hero-unit {
51
+ background-image: -webkit-gradient(
52
+ linear,
53
+ left bottom,
54
+ left top,
55
+ from(#c9c9c9),
56
+ color-stop(0.701, #d8d8d8),
57
+ to(#c6c6c6) );
58
+ background-image: -moz-linear-gradient(
59
+ 90deg, #c9c9c9 0%, #d8d8d8 70.1%, #c6c6c6 100%);
60
+ }
61
+
62
+ /* Butt the popover up to the right of the word */
63
+ div.container > header.hero-unit h1 {
64
+ display: inline-block;
65
+ text-shadow: 1px 1px 3px rgba( 25,25,25, 0.2 );
66
+ }
67
+
68
+ /* Indexes */
69
+ section#indexes {
70
+ max-height: 460px;
71
+ }
72
+ section#indexes ul.nav-list {
73
+ max-height: 440px;
74
+ overflow-y: scroll;
75
+ overflow-x: hidden;
76
+ background: #f5f5f5;
77
+ }
78
+
79
+ section#indexes a .method-parent {
80
+ color: #666;
81
+ font-size: 11px;
82
+ font-variant: small-caps;
83
+ }
84
+
85
+ /* Class/module description */
86
+ section.description p {
87
+ font-size: 1.2em;
88
+ margin: 1em 0;
89
+ }
90
+ section.description p + p {
91
+ margin: 1em 0;
92
+ }
93
+ section.description h2 {
94
+ margin-top: 1.5em;
95
+ }
96
+
97
+
98
+ /* :section: groups */
99
+ section.documentation-section {
100
+ margin-top: 3em;
101
+ }
102
+ section .section-click-top {
103
+ float: right;
104
+ }
105
+
106
+ dl.rdoc-list {
107
+ margin: 0.5em 1em;
108
+ background: #f5f5f5;
109
+ padding: 1em;
110
+ border-radius: 1em;
111
+ }
112
+ section.constants-list dt i {
113
+ margin-right: 0.5em;
114
+ background-position: -24px -72px;
115
+ }
116
+ section.attributes-list dt i {
117
+ margin-right: 0.5em;
118
+ background-position: -456px -96px;
119
+ }
120
+ dl.rdoc-list dd,
121
+ section.constants-list dd,
122
+ section.attributes-list dd {
123
+ margin: 0 0 1em;
124
+ }
125
+ dd > p:first-child {
126
+ margin-top: 0;
127
+ }
128
+
129
+
130
+ /* "Public instance methods" + method list */
131
+ section.methods {
132
+ margin-top: 3em;
133
+ }
134
+ section.public-methods div.method header i {
135
+ background-position:0 -96px;
136
+ margin-top: 4px;
137
+ }
138
+ section.protected-methods div.method header i {
139
+ background-position:-24px -96px;
140
+ margin-top: 4px;
141
+ }
142
+
143
+
144
+
145
+ /* Individual method */
146
+ div.method {
147
+ }
148
+ div.method + div.method {
149
+ margin-top: 1em;
150
+ }
151
+ div.method header,
152
+ dl.rdoc-list dt,
153
+ section.constants-list dt,
154
+ section.attributes-list dt {
155
+ font-weight: bold;
156
+ font-size: 1.2em;
157
+ background: #eee;
158
+ }
159
+ div.method header span.method-args {
160
+ color: #666;
161
+ }
162
+ div.method div.method-description p {
163
+ color: #666;
164
+ }
165
+
166
+
167
+ /* Incremental search modal dialog */
168
+ #incremental-search header {
169
+ background: #eee;
170
+ border-radius: 3px;
171
+ padding: 2px;
172
+ }
173
+ #incremental-search .search-string {
174
+ padding: 0 0 1em;
175
+ }
176
+ #incremental-search .search-input-label {
177
+ width: 20%;
178
+ }
179
+ #incremental-search .search-input {
180
+ background-color: rgba(153, 203, 255, 0.64);
181
+ font: 22px monospace;
182
+ padding: 1px 4px;
183
+ display: inline-block;
184
+ width: 80%;
185
+ }
186
+ #incremental-search .search-input:empty:after {
187
+ color: #999;
188
+ content: "(Start typing to search)";
189
+ }
190
+ #incremental-search .search-input-label {
191
+ vertical-align: baseline;
192
+ }
193
+ #incremental-search header h4 {
194
+ font-size: 14px;
195
+ }
196
+ #incremental-search .search-results dl:empty:after {
197
+ content: "No matches.";
198
+ color: #666;
199
+ }
200
+
201
+ /* @group Source Code */
202
+
203
+ div.method-source-code {
204
+ display: none;
205
+ }
206
+ div.method-source-code pre,
207
+ .description pre,
208
+ pre.ruby {
209
+ overflow: auto;
210
+ color: #586e75;
211
+ padding: 0.5em;
212
+ border-radius: 5px;
213
+ border-color: transparent;
214
+ box-shadow: 0 0 8px rgba(25,25,25, 0.2);
215
+ background-color: #fdf6e3;
216
+ }
217
+
218
+ /* Source highlight colors courtesy of Solarized (http://ethanschoonover.com/solarized) */
219
+ .ruby-constant { color: #586e75; background: transparent; }
220
+ .ruby-keyword { color: #1360a9; background: transparent; font-weight: bold; }
221
+ .ruby-ivar { color: #2aa198; background: transparent; }
222
+ .ruby-operator { color: #859900; background: transparent; }
223
+ .ruby-identifier { color: #1d544c; background: transparent; }
224
+ .ruby-node { color: #a73407; background: transparent; }
225
+ .ruby-comment { color: #dc322f; background: transparent; font-style: italic; }
226
+ .ruby-regexp { color: #ffa07a; background: transparent; }
227
+ .ruby-value { color: #009705; background: transparent; }
228
+ .ruby-string { color: #657b83; background-color: rgba(190, 190, 190, 0.35); }
229
+
230
+ /* @end */
231
+
232
+
233
+ div.file-metadata {
234
+ float: right;
235
+ }
236
+
237
+
238
+ /* Don't show DIVs for modal dialogs at startup */
239
+ .modal {
240
+ display: none;
241
+ }
242
+
243
+
244
+
245
+ /*
246
+ Part of the jquery.dropdowns plugin
247
+ by Cory LaViska
248
+ http://labs.abeautifulsite.net/jquery-dropdown/
249
+ */
250
+ .dropdown-menu {
251
+ font: 14px sans-serif;
252
+ position: absolute;
253
+ z-index: 9999999;
254
+ display: none;
255
+ }
256
+
257
+ .dropdown-menu UL {
258
+ min-width: 160px;
259
+ list-style: none;
260
+ background: #FFF;
261
+ border: solid 1px #DDD;
262
+ border: solid 1px rgba(0, 0, 0, .2);
263
+ border-radius: 6px;
264
+ box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
265
+ overflow: visible;
266
+ padding: 4px 0;
267
+ margin: 0;
268
+ }
269
+
270
+ .dropdown-menu.has-tip {
271
+ margin-top: 8px;
272
+ }
273
+
274
+ .dropdown-menu.has-tip:before {
275
+ position: absolute;
276
+ top: -6px;
277
+ left: 9px;
278
+ content: '';
279
+ border-left: 7px solid transparent;
280
+ border-right: 7px solid transparent;
281
+ border-bottom: 7px solid #CCC;
282
+ border-bottom-color: rgba(0, 0, 0, 0.2);
283
+ display: inline-block;
284
+ }
285
+
286
+ .dropdown-menu.has-tip.anchor-right:before {
287
+ left: auto;
288
+ right: 9px;
289
+ }
290
+
291
+ .dropdown-menu.has-tip:after {
292
+ position: absolute;
293
+ top: -5px;
294
+ left: 10px;
295
+ content: '';
296
+ border-left: 6px solid transparent;
297
+ border-right: 6px solid transparent;
298
+ border-bottom: 6px solid #FFF;
299
+ display: inline-block;
300
+ }
301
+
302
+ .dropdown-menu.has-tip.anchor-right:after {
303
+ left: auto;
304
+ right: 10px;
305
+ }
306
+
307
+
308
+ .dropdown-menu.has-scroll ul {
309
+ max-height: 558px;
310
+ overflow: auto;
311
+ }
312
+
313
+ .dropdown-menu li {
314
+ list-style: none;
315
+ padding: 0;
316
+ margin: 0;
317
+ line-height: 18px;
318
+ }
319
+
320
+ .dropdown-menu li > a,
321
+ .dropdown-menu label {
322
+ display: block;
323
+ color: #555;
324
+ text-decoration: none;
325
+ line-height: 18px;
326
+ padding: 3px 15px;
327
+ white-space: nowrap;
328
+ }
329
+
330
+ .dropdown-menu li > a:hover,
331
+ .dropdown-menu label:hover {
332
+ background-color: #08C;
333
+ color: #FFF;
334
+ cursor: pointer;
335
+ }
336
+
337
+ .dropdown-menu .divider {
338
+ height: 1px;
339
+ background: #E5E5E5;
340
+ margin: 5px 1px;
341
+ overflow: hidden;
342
+ }
343
+
344
+ /* Keep the .caret from Bootstrap's dropdowns 'cause it looks nifty */
345
+ .navbar .nav .dropdown-toggle .caret,
346
+ .navbar .nav .open.dropdown .caret {
347
+ border-top-color: white;
348
+ border-bottom-color: white;
349
+ }
350
+ .dropdown-toggle .caret {
351
+ margin-top: 8px;
352
+ margin-left: 2px;
353
+ }
354
+ .caret {
355
+ display: inline-block;
356
+ width: 0;
357
+ height: 0;
358
+ vertical-align: top;
359
+ border-left: 4px solid transparent;
360
+ border-right: 4px solid transparent;
361
+ border-top: 4px solid black;
362
+ opacity: 0.3;
363
+ filter: alpha(opacity=30);
364
+ content: "";
365
+ }
366
+
367
+
@@ -8,7 +8,40 @@
8
8
  * Dual licensed under the MIT or GPL Version 2 licenses
9
9
  *
10
10
  */
11
- jQuery&&function(a){function b(b){var d=a(this),e=a(a(this).attr("data-dropdown")),f=d.hasClass("dropdown-open");b.preventDefault(),b.stopPropagation(),c();if(f||d.hasClass("dropdown-disabled"))return;e.css({left:e.hasClass("anchor-right")?d.offset().left-(e.outerWidth()-d.outerWidth()):d.offset().left,top:d.offset().top+d.outerHeight()}).show(),d.addClass("dropdown-open")}function c(b){var c=b?a(b.target).parents().andSelf():null;if(c&&c.is(".dropdown-menu")&&!c.is("A"))return;a("BODY").find(".dropdown-menu").hide().end().find("[data-dropdown]").removeClass("dropdown-open")}a.extend(a.fn,{dropdown:function(b,d){switch(b){case"hide":return c(),a(this);case"attach":return a(this).attr("data-dropdown",d);case"detach":return c(),a(this).removeAttr("data-dropdown");case"disable":return a(this).addClass("dropdown-disabled");case"enable":return c(),a(this).removeClass("dropdown-disabled")}}}),a(function(){a("BODY").on("click.dropdown","[data-dropdown]",b),a("HTML").on("click.dropdown",c)})}(jQuery);
11
+ jQuery && function(a) {
12
+ function b(b) {
13
+ var d = a(this), e = a(a(this).attr("data-dropdown")), f = d.hasClass("dropdown-open");
14
+ b.preventDefault(), b.stopPropagation(), c();
15
+ if (f || d.hasClass("dropdown-disabled")) return;
16
+ e.css({
17
+ left: e.hasClass("anchor-right") ? d.offset().left - (e.outerWidth() - d.outerWidth()) : d.offset().left,
18
+ top: d.offset().top + d.outerHeight()
19
+ }).show(), d.addClass("dropdown-open");
20
+ }
21
+ function c(b) {
22
+ var c = b ? a(b.target).parents().andSelf() : null;
23
+ if (c && c.is(".dropdown-menu") && !c.is("A")) return;
24
+ a("BODY").find(".dropdown-menu").hide().end().find("[data-dropdown]").removeClass("dropdown-open");
25
+ }
26
+ a.extend(a.fn, {
27
+ dropdown: function(b, d) {
28
+ switch (b) {
29
+ case "hide":
30
+ return c(), a(this);
31
+ case "attach":
32
+ return a(this).attr("data-dropdown", d);
33
+ case "detach":
34
+ return c(), a(this).removeAttr("data-dropdown");
35
+ case "disable":
36
+ return a(this).addClass("dropdown-disabled");
37
+ case "enable":
38
+ return c(), a(this).removeClass("dropdown-disabled");
39
+ }
40
+ }
41
+ }), a(function() {
42
+ a("BODY").on("click.dropdown", "[data-dropdown]", b), a("HTML").on("click.dropdown", c);
43
+ });
44
+ }(jQuery);;
12
45
  /*
13
46
  * jQuery Hotkeys Plugin
14
47
  * Copyright 2010, John Resig
@@ -20,7 +53,99 @@ jQuery&&function(a){function b(b){var d=a(this),e=a(a(this).attr("data-dropdown"
20
53
  * Original idea by:
21
54
  * Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/
22
55
  */
23
- (function(a){function b(b){if(typeof b.data!="string")return;var c=b.handler,d=b.data.toLowerCase().split(" ");b.handler=function(b){if(!(this===b.target||!/textarea|select/i.test(b.target.nodeName)&&b.target.type!=="text"))return;var e=b.type!=="keypress"&&a.hotkeys.specialKeys[b.which],f=String.fromCharCode(b.which).toLowerCase(),g,h="",i={};b.altKey&&e!=="alt"&&(h+="alt+"),b.ctrlKey&&e!=="ctrl"&&(h+="ctrl+"),b.metaKey&&!b.ctrlKey&&e!=="meta"&&(h+="meta+"),b.shiftKey&&e!=="shift"&&(h+="shift+"),e?i[h+e]=!0:(i[h+f]=!0,i[h+a.hotkeys.shiftNums[f]]=!0,h==="shift+"&&(i[a.hotkeys.shiftNums[f]]=!0));for(var j=0,k=d.length;j<k;j++)if(i[d[j]])return c.apply(this,arguments)}}a.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta"},shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}},a.each(["keydown","keyup","keypress"],function(){a.event.special[this]={add:b}})})(jQuery);
56
+ (function(a) {
57
+ function b(b) {
58
+ if (typeof b.data != "string") return;
59
+ var c = b.handler, d = b.data.toLowerCase().split(" ");
60
+ b.handler = function(b) {
61
+ if (!(this === b.target || !/textarea|select/i.test(b.target.nodeName) && b.target.type !== "text")) return;
62
+ var e = b.type !== "keypress" && a.hotkeys.specialKeys[b.which], f = String.fromCharCode(b.which).toLowerCase(), g, h = "", i = {};
63
+ b.altKey && e !== "alt" && (h += "alt+"), b.ctrlKey && e !== "ctrl" && (h += "ctrl+"), b.metaKey && !b.ctrlKey && e !== "meta" && (h += "meta+"), b.shiftKey && e !== "shift" && (h += "shift+"), e ? i[h + e] = !0 : (i[h + f] = !0, i[h + a.hotkeys.shiftNums[f]] = !0, h === "shift+" && (i[a.hotkeys.shiftNums[f]] = !0));
64
+ for (var j = 0, k = d.length; j < k; j++) if (i[d[j]]) return c.apply(this, arguments);
65
+ };
66
+ }
67
+ a.hotkeys = {
68
+ version: "0.8",
69
+ specialKeys: {
70
+ 8: "backspace",
71
+ 9: "tab",
72
+ 13: "return",
73
+ 16: "shift",
74
+ 17: "ctrl",
75
+ 18: "alt",
76
+ 19: "pause",
77
+ 20: "capslock",
78
+ 27: "esc",
79
+ 32: "space",
80
+ 33: "pageup",
81
+ 34: "pagedown",
82
+ 35: "end",
83
+ 36: "home",
84
+ 37: "left",
85
+ 38: "up",
86
+ 39: "right",
87
+ 40: "down",
88
+ 45: "insert",
89
+ 46: "del",
90
+ 96: "0",
91
+ 97: "1",
92
+ 98: "2",
93
+ 99: "3",
94
+ 100: "4",
95
+ 101: "5",
96
+ 102: "6",
97
+ 103: "7",
98
+ 104: "8",
99
+ 105: "9",
100
+ 106: "*",
101
+ 107: "+",
102
+ 109: "-",
103
+ 110: ".",
104
+ 111: "/",
105
+ 112: "f1",
106
+ 113: "f2",
107
+ 114: "f3",
108
+ 115: "f4",
109
+ 116: "f5",
110
+ 117: "f6",
111
+ 118: "f7",
112
+ 119: "f8",
113
+ 120: "f9",
114
+ 121: "f10",
115
+ 122: "f11",
116
+ 123: "f12",
117
+ 144: "numlock",
118
+ 145: "scroll",
119
+ 191: "/",
120
+ 224: "meta"
121
+ },
122
+ shiftNums: {
123
+ "`": "~",
124
+ "1": "!",
125
+ "2": "@",
126
+ "3": "#",
127
+ "4": "$",
128
+ "5": "%",
129
+ "6": "^",
130
+ "7": "&",
131
+ "8": "*",
132
+ "9": "(",
133
+ "0": ")",
134
+ "-": "_",
135
+ "=": "+",
136
+ ";": ": ",
137
+ "'": '"',
138
+ ",": "<",
139
+ ".": ">",
140
+ "/": "?",
141
+ "\\": "|"
142
+ }
143
+ }, a.each([ "keydown", "keyup", "keypress" ], function() {
144
+ a.event.special[this] = {
145
+ add: b
146
+ };
147
+ });
148
+ })(jQuery);;
24
149
  /**
25
150
  * Fivefish Javascript
26
151
  * $Id$
@@ -35,4 +160,148 @@ jQuery&&function(a){function b(b){var d=a(this),e=a(a(this).attr("data-dropdown"
35
160
  * @version $Rev$
36
161
  * @requires bootstrap.modal.js
37
162
  */
38
- function initFivefish(){console.debug("Loaded. Waiting for DOM to be ready."),$(document).ready(onReady)}function hookTooltips(){$("header.hero-unit h1").popover({placement:"right"})}function hookKeyboardShortcuts(){$.each(keyboardShortcuts,function(a,b){console.debug("Registering shortcut: %s -> %o",a,b),$("body").bind("keyup",a,b)})}function hookSourceToggles(){$("div.method header i").click(function(a){var b=a.target,c=$(b).parents("div").get(0),d=$(c).find("div.method-source-code");console.debug("Toggling: %o",d),d.fadeToggle()})}function doIncrementalSearch(){}function hookSearchOverlay(){console.debug("Setting up searchbox"),$("#incremental-search").searchbox(SearchIndex),$("#search-button").click(function(){$("#incremental-search").searchbox("show")})}function onReady(){console.debug("Ready!"),hookTooltips(),hookKeyboardShortcuts(),hookSourceToggles(),hookSearchOverlay()}(function(a){"use strict";var b=function(a,b){this.init("searchbox",a,b)};b.prototype=a.extend({},a.fn.modal.Constructor.prototype,{constructor:b,init:function(b,c,d){this.$element=a(b),this.$input=this.$element.find(".search-input"),this.$meth_list=this.$element.find(".method-search-results dl"),this.$mod_list=this.$element.find(".module-search-results dl"),this.$file_list=this.$element.find(".file-search-results dl"),this.options=d,this.data(c),this.listen()},data:function(a){return a&&(console.debug("Populating searchbox with index data: %o",a),this.data=a),this.data},listen:function(){this.$element.on("blur",a.proxy(this.blur,this)).on("keypress",a.proxy(this.keypress,this)).on("keyup",a.proxy(this.keyup,this)),(a.browser.webkit||a.browser.msie)&&this.$element.on("keydown",a.proxy(this.keypress,this))},keyup:function(a){var b=a.which;console.debug("Keycode: %d",b),b===27&&this.hide(),a.stopPropagation(),a.preventDefault()},keypress:function(a){if(!this.shown)return;switch(a.keyCode){case 9:case 13:case 27:a.preventDefault();break;case 38:a.preventDefault(),this.prev();break;case 40:a.preventDefault(),this.next()}a.stopPropagation()},blur:function(a){var b=this;setTimeout(function(){b.hide()},150)},click:function(a){a.stopPropagation(),a.preventDefault(),this.select()}}),a.fn.searchbox=function(c,d){return this.each(function(){var e=a(this),f=e.data("searchbox"),g=typeof c=="object"?c:[],h=a.extend({},a.fn.modal.defaults,e.data(),typeof d=="object"&&d);f||(console.debug("Creating a new searchbox for data: %s",typeof g),f=new b(this,g,h),e.data("searchbox",f)),typeof c=="string"&&f[c]()})},a.fn.searchbox.Constructor=b,a.fn.searchbox.defaults=a.extend({},a.fn.modal.defaults)})(window.jQuery);var keyboardShortcuts={"/":function(a){$("#incremental-search").searchbox("show")},"shift+/":function(a){$("#shortcut-help").modal()}};
163
+ function initFivefish() {
164
+ console.debug("Loaded. Waiting for DOM to be ready."), $(document).ready(onReady);
165
+ }
166
+
167
+ function hookTooltips() {
168
+ $("header.hero-unit h1").popover({
169
+ placement: "right"
170
+ });
171
+ }
172
+
173
+ function hookKeyboardShortcuts() {
174
+ $.each(keyboardShortcuts, function(a, b) {
175
+ console.debug("Registering shortcut: %s -> %o", a, b), $("body").bind("keyup", a, b);
176
+ });
177
+ }
178
+
179
+ function hookSourceToggles() {
180
+ $("div.method header i").click(function(a) {
181
+ var b = a.target, c = $(b).parents("div").get(0), d = $(c).find("div.method-source-code");
182
+ console.debug("Toggling: %o", d), d.fadeToggle();
183
+ });
184
+ }
185
+
186
+ function doIncrementalSearch() {}
187
+
188
+ function hookSearchOverlay() {
189
+ console.debug("Setting up searchbox"), $("#incremental-search").searchbox(SearchIndex), $("#search-button").click(function() {
190
+ $("#incremental-search").searchbox("show");
191
+ });
192
+ }
193
+
194
+ function onReady() {
195
+ console.debug("Ready!"), hookTooltips(), hookKeyboardShortcuts(), hookSourceToggles(), hookSearchOverlay();
196
+ }
197
+
198
+ (function(a) {
199
+ "use strict";
200
+ var b = function(a, b, c) {
201
+ this.init(a, b, c);
202
+ };
203
+ b.prototype = a.extend({}, a.fn.modal.Constructor.prototype, {
204
+ constructor: b,
205
+ searchTimeout: null,
206
+ data: [],
207
+ relPrefix: ".",
208
+ init: function(b, c, d) {
209
+ this.$element = a(b), this.$input = this.$element.find(".search-input"), this.$meth_list = this.$element.find(".method-search-results dl"), this.$mod_list = this.$element.find(".module-search-results dl"), this.$file_list = this.$element.find(".file-search-results dl"), this.options = d, this.data = c, this.relPrefix = a("link[rel=prefix]").attr("href"), this.$element.on("shown", a.proxy(this.shown, this)).on("hide", a.proxy(this.hided, this)).on("search", a.proxy(this.startSearch, this)).on("clear", a.proxy(this.clearSearch, this));
210
+ },
211
+ shown: function() {
212
+ console.debug("Listening for keyboard input."), a(document).on("keypress", a.proxy(this.keypress, this)).on("keyup", a.proxy(this.keyup, this)), (a.browser.webkit || a.browser.msie) && a(document).on("keydown", a.proxy(this.keypress, this));
213
+ },
214
+ hided: function(b) {
215
+ console.debug("Done listening for keyboard input."), a(document).off("keypress keyup keydown");
216
+ },
217
+ keyup: function(a) {
218
+ var b = a.which, c = a.shiftKey;
219
+ console.debug("Keycode: %d, shifted: %o", b, c);
220
+ if (a.ctrlKey) switch (b) {
221
+ case 85:
222
+ this.$element.trigger("clear");
223
+ } else if (b >= 65 && b <= 90 || b == 32 || b >= 48 && b <= 57) {
224
+ var d = String.fromCharCode(b);
225
+ c || (d = d.toLowerCase()), this.$input.append(d), this.$element.trigger("search");
226
+ } else switch (b) {
227
+ case 27:
228
+ this.hide();
229
+ break;
230
+ case 8:
231
+ this.$input.html(this.$input.html().slice(0, -1)), this.$element.trigger("search");
232
+ }
233
+ a.stopPropagation(), a.preventDefault();
234
+ },
235
+ keypress: function(a) {
236
+ console.debug("Keypress event: %o", a);
237
+ },
238
+ clearSearch: function() {
239
+ console.debug("Clearing the search input."), this.$input.html(""), this.$element.trigger("search");
240
+ },
241
+ startSearch: function(a) {
242
+ var b = this;
243
+ this.searchTimeout && (console.debug("Interrupting a previous search."), clearTimeout(this.searchTimeout)), console.debug("Scheduling a search..."), this.searchTimeout = setTimeout(function() {
244
+ b.search();
245
+ }, 500);
246
+ },
247
+ search: function() {
248
+ var b = this.$input.html();
249
+ console.debug("Searching for: '%s'!", b);
250
+ if (b == "") this.displayMatches(this.data); else {
251
+ var c = new RegExp(b, "i");
252
+ console.debug(" pattern is: %s", c);
253
+ var d = a.grep(this.data, function(a) {
254
+ return console.debug(" testing: %s", a.name), c.test(a.name);
255
+ });
256
+ this.displayMatches(d, c);
257
+ }
258
+ },
259
+ displayMatches: function(b, c) {
260
+ var d = 0, e = 0, f = 0, g = 5, h, i = this;
261
+ this.$element.find(".search-results dl").empty(), console.debug("Sorting %d matching items...", b.length), a.each(b, function(b, j) {
262
+ h = null;
263
+ switch (j.type) {
264
+ case "anymethod":
265
+ d < g && (console.debug(" adding method '%s'", j.name), h = i.$meth_list, d++);
266
+ break;
267
+ case "normalclass":
268
+ case "normalmodule":
269
+ e < g && (console.debug(" adding mod '%s'", j.name), h = i.$mod_list, e++);
270
+ break;
271
+ case "toplevel":
272
+ f < g && (console.debug(" adding file '%s'", j.name), h = i.$file_list, f++);
273
+ break;
274
+ default:
275
+ console.debug("ignoring unknown item '%s'", j.type);
276
+ }
277
+ if (h) {
278
+ var k;
279
+ c ? k = j.name.replace(c, '<span class="highlight">$&</span>') : k = j.name, a("<a>").attr("href", i.relPrefix + "/" + j.link).html(k).wrap("<dt>").appendTo(h), a("<dd>").html(j.snippet).appendTo(h);
280
+ } else console.debug(" no more room for %s '%s'", j.type, j.name);
281
+ });
282
+ },
283
+ blur: function(a) {
284
+ var b = this;
285
+ setTimeout(function() {
286
+ b.hide();
287
+ }, 150);
288
+ },
289
+ click: function(a) {
290
+ a.stopPropagation(), a.preventDefault(), this.select();
291
+ }
292
+ }), a.fn.searchbox = function(c, d) {
293
+ return this.each(function() {
294
+ var e = a(this), f = e.data("searchbox"), g = typeof c == "object" ? c : [], h = a.extend({}, a.fn.modal.defaults, e.data(), typeof d == "object" && d);
295
+ f || (console.debug("Creating a new searchbox for data: %s", typeof g), f = new b(this, g, h), e.data("searchbox", f)), typeof c == "string" && f[c]();
296
+ });
297
+ }, a.fn.searchbox.Constructor = b, a.fn.searchbox.defaults = a.extend({}, a.fn.modal.defaults);
298
+ })(window.jQuery);
299
+
300
+ var keyboardShortcuts = {
301
+ "/": function(a) {
302
+ $("#incremental-search").searchbox("show");
303
+ },
304
+ "shift+/": function(a) {
305
+ $("#shortcut-help").modal();
306
+ }
307
+ };;
@@ -25,6 +25,8 @@
25
25
  <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
26
26
  <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
27
27
 
28
+ <link href="[?attr rel_prefix ?]" rel="prefix" />
29
+
28
30
  <link href="[?attr rel_prefix ?]/css/fivefish.min.css" rel="stylesheet" />
29
31
 
30
32
  <script src="[?attr rel_prefix ?]/js/jquery-1.7.1.min.js" type="text/javascript"
@@ -145,7 +147,7 @@
145
147
  <div class="modal-body">
146
148
  <section class="search-string">
147
149
  <span class="search-input-label">Searching for:</span>
148
- <span class="search-input">inde</span>
150
+ <span class="search-input"></span>
149
151
  </section>
150
152
 
151
153
  <section class="search-results method-search-results">
@@ -312,7 +312,8 @@ class RDoc::Generator::Fivefish
312
312
  index << {
313
313
  name: record[2],
314
314
  link: record[4],
315
- snippet: record[6]
315
+ snippet: record[6],
316
+ type: codeobj.class.name.downcase.sub( /.*::/, '' )
316
317
  }
317
318
  end
318
319
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdoc-generator-fivefish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre34
4
+ version: 0.0.1.pre38
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -36,11 +36,11 @@ cert_chain:
36
36
  YUhDS0xaZFNLai9SSHVUT3QrZ2JsUmV4OEZBaDhOZUEKY21saFhlNDZwWk5K
37
37
  Z1dLYnhaYWg4NWpJang5NWhSOHZPSStOQU01aUg5a09xSzEzRHJ4YWNUS1Bo
38
38
  cWo1UGp3RgotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
39
- date: 2012-04-06 00:00:00.000000000 Z
39
+ date: 2012-04-08 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: inversion
43
- requirement: &70304626086940 !ruby/object:Gem::Requirement
43
+ requirement: &70281475847840 !ruby/object:Gem::Requirement
44
44
  none: false
45
45
  requirements:
46
46
  - - ~>
@@ -48,10 +48,10 @@ dependencies:
48
48
  version: '0.8'
49
49
  type: :runtime
50
50
  prerelease: false
51
- version_requirements: *70304626086940
51
+ version_requirements: *70281475847840
52
52
  - !ruby/object:Gem::Dependency
53
53
  name: yajl-ruby
54
- requirement: &70304626085860 !ruby/object:Gem::Requirement
54
+ requirement: &70281475847260 !ruby/object:Gem::Requirement
55
55
  none: false
56
56
  requirements:
57
57
  - - ~>
@@ -59,10 +59,10 @@ dependencies:
59
59
  version: '1.1'
60
60
  type: :runtime
61
61
  prerelease: false
62
- version_requirements: *70304626085860
62
+ version_requirements: *70281475847260
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: rdoc
65
- requirement: &70304626085120 !ruby/object:Gem::Requirement
65
+ requirement: &70281475863060 !ruby/object:Gem::Requirement
66
66
  none: false
67
67
  requirements:
68
68
  - - ~>
@@ -70,32 +70,32 @@ dependencies:
70
70
  version: '3.12'
71
71
  type: :runtime
72
72
  prerelease: false
73
- version_requirements: *70304626085120
73
+ version_requirements: *70281475863060
74
74
  - !ruby/object:Gem::Dependency
75
75
  name: hoe-mercurial
76
- requirement: &70304626100820 !ruby/object:Gem::Requirement
76
+ requirement: &70281475862440 !ruby/object:Gem::Requirement
77
77
  none: false
78
78
  requirements:
79
79
  - - ~>
80
80
  - !ruby/object:Gem::Version
81
- version: 1.3.1
81
+ version: 1.4.0
82
82
  type: :development
83
83
  prerelease: false
84
- version_requirements: *70304626100820
84
+ version_requirements: *70281475862440
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: hoe-highline
87
- requirement: &70304626100040 !ruby/object:Gem::Requirement
87
+ requirement: &70281475861740 !ruby/object:Gem::Requirement
88
88
  none: false
89
89
  requirements:
90
90
  - - ~>
91
91
  - !ruby/object:Gem::Version
92
- version: 0.0.1
92
+ version: 0.1.0
93
93
  type: :development
94
94
  prerelease: false
95
- version_requirements: *70304626100040
95
+ version_requirements: *70281475861740
96
96
  - !ruby/object:Gem::Dependency
97
97
  name: uglifier
98
- requirement: &70304626099040 !ruby/object:Gem::Requirement
98
+ requirement: &70281475860980 !ruby/object:Gem::Requirement
99
99
  none: false
100
100
  requirements:
101
101
  - - ~>
@@ -103,10 +103,10 @@ dependencies:
103
103
  version: '1.2'
104
104
  type: :development
105
105
  prerelease: false
106
- version_requirements: *70304626099040
106
+ version_requirements: *70281475860980
107
107
  - !ruby/object:Gem::Dependency
108
108
  name: less
109
- requirement: &70304626098140 !ruby/object:Gem::Requirement
109
+ requirement: &70281475860320 !ruby/object:Gem::Requirement
110
110
  none: false
111
111
  requirements:
112
112
  - - ~>
@@ -114,18 +114,18 @@ dependencies:
114
114
  version: '2.1'
115
115
  type: :development
116
116
  prerelease: false
117
- version_requirements: *70304626098140
117
+ version_requirements: *70281475860320
118
118
  - !ruby/object:Gem::Dependency
119
119
  name: hoe
120
- requirement: &70304626097480 !ruby/object:Gem::Requirement
120
+ requirement: &70281475870320 !ruby/object:Gem::Requirement
121
121
  none: false
122
122
  requirements:
123
123
  - - ~>
124
124
  - !ruby/object:Gem::Version
125
- version: '2.16'
125
+ version: '3.0'
126
126
  type: :development
127
127
  prerelease: false
128
- version_requirements: *70304626097480
128
+ version_requirements: *70281475870320
129
129
  description: ! 'A(nother) HTML(5) generator for RDoc.
130
130
 
131
131
 
metadata.gz.sig CHANGED
@@ -1 +1 @@
1
- ���Ps~{�/�󉽴�{mWN�K����f&�p �0��'�:��ɓ=��06Z�K�1��!�E��d���}��W~���^8�%�������3����4��rXٺc���p�_�
1
+ UQ H�̺�^ܛ��ޯ6C{���d%xU퇾�M