allgems 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +0 -0
- data/README.rdoc +16 -0
- data/allgems.gemspec +24 -0
- data/bin/allgems +215 -0
- data/config.ru +11 -0
- data/lib/allgems.rb +69 -0
- data/lib/allgems/App.rb +92 -0
- data/lib/allgems/Configurator.rb +0 -0
- data/lib/allgems/GemWorker.rb +229 -0
- data/lib/allgems/IndexBuilder.rb +17 -0
- data/lib/allgems/Indexer.rb +23 -0
- data/lib/allgems/Runner.rb +59 -0
- data/lib/allgems/Specer.rb +12 -0
- data/lib/allgems/ViewHelpers.rb +48 -0
- data/lib/allgems/hanna_hack.rb +82 -0
- data/lib/allgems/migrations/001_initialize.rb +39 -0
- data/public/images/edit.png +0 -0
- data/public/images/folder.png +0 -0
- data/public/images/git.gif +0 -0
- data/public/images/page.png +0 -0
- data/public/images/page_white_text.png +0 -0
- data/public/images/rubygems-125x125t.png +0 -0
- data/public/javascripts/base.js +212 -0
- data/public/javascripts/gembox.js +77 -0
- data/public/javascripts/jquery.form.js +632 -0
- data/public/javascripts/jquery.js +4241 -0
- data/public/javascripts/jquery.metadata.js +121 -0
- data/public/javascripts/jquery.ui.js +273 -0
- data/public/swf/clippy.swf +0 -0
- data/views/doc.haml +17 -0
- data/views/file_tree.haml +9 -0
- data/views/gem.haml +45 -0
- data/views/gembox.sass +188 -0
- data/views/gems_columns.haml +24 -0
- data/views/gems_header.haml +15 -0
- data/views/gems_table.haml +28 -0
- data/views/index.haml +1 -0
- data/views/layout.haml +59 -0
- data/views/load.haml +16 -0
- data/views/no_results.haml +3 -0
- metadata +185 -0
@@ -0,0 +1,121 @@
|
|
1
|
+
/*
|
2
|
+
* Metadata - jQuery plugin for parsing metadata from elements
|
3
|
+
*
|
4
|
+
* Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan
|
5
|
+
*
|
6
|
+
* Dual licensed under the MIT and GPL licenses:
|
7
|
+
* http://www.opensource.org/licenses/mit-license.php
|
8
|
+
* http://www.gnu.org/licenses/gpl.html
|
9
|
+
*
|
10
|
+
* Revision: $Id: jquery.metadata.js 3640 2007-10-11 18:34:38Z pmclanahan $
|
11
|
+
*
|
12
|
+
*/
|
13
|
+
|
14
|
+
/**
|
15
|
+
* Sets the type of metadata to use. Metadata is encoded in JSON, and each property
|
16
|
+
* in the JSON will become a property of the element itself.
|
17
|
+
*
|
18
|
+
* There are three supported types of metadata storage:
|
19
|
+
*
|
20
|
+
* attr: Inside an attribute. The name parameter indicates *which* attribute.
|
21
|
+
*
|
22
|
+
* class: Inside the class attribute, wrapped in curly braces: { }
|
23
|
+
*
|
24
|
+
* elem: Inside a child element (e.g. a script tag). The
|
25
|
+
* name parameter indicates *which* element.
|
26
|
+
*
|
27
|
+
* The metadata for an element is loaded the first time the element is accessed via jQuery.
|
28
|
+
*
|
29
|
+
* As a result, you can define the metadata type, use $(expr) to load the metadata into the elements
|
30
|
+
* matched by expr, then redefine the metadata type and run another $(expr) for other elements.
|
31
|
+
*
|
32
|
+
* @name $.metadata.setType
|
33
|
+
*
|
34
|
+
* @example <p id="one" class="some_class {item_id: 1, item_label: 'Label'}">This is a p</p>
|
35
|
+
* @before $.metadata.setType("class")
|
36
|
+
* @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
|
37
|
+
* @desc Reads metadata from the class attribute
|
38
|
+
*
|
39
|
+
* @example <p id="one" class="some_class" data="{item_id: 1, item_label: 'Label'}">This is a p</p>
|
40
|
+
* @before $.metadata.setType("attr", "data")
|
41
|
+
* @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
|
42
|
+
* @desc Reads metadata from a "data" attribute
|
43
|
+
*
|
44
|
+
* @example <p id="one" class="some_class"><script>{item_id: 1, item_label: 'Label'}</script>This is a p</p>
|
45
|
+
* @before $.metadata.setType("elem", "script")
|
46
|
+
* @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
|
47
|
+
* @desc Reads metadata from a nested script element
|
48
|
+
*
|
49
|
+
* @param String type The encoding type
|
50
|
+
* @param String name The name of the attribute to be used to get metadata (optional)
|
51
|
+
* @cat Plugins/Metadata
|
52
|
+
* @descr Sets the type of encoding to be used when loading metadata for the first time
|
53
|
+
* @type undefined
|
54
|
+
* @see metadata()
|
55
|
+
*/
|
56
|
+
|
57
|
+
(function($) {
|
58
|
+
|
59
|
+
$.extend({
|
60
|
+
metadata : {
|
61
|
+
defaults : {
|
62
|
+
type: 'class',
|
63
|
+
name: 'metadata',
|
64
|
+
cre: /({.*})/,
|
65
|
+
single: 'metadata'
|
66
|
+
},
|
67
|
+
setType: function( type, name ){
|
68
|
+
this.defaults.type = type;
|
69
|
+
this.defaults.name = name;
|
70
|
+
},
|
71
|
+
get: function( elem, opts ){
|
72
|
+
var settings = $.extend({},this.defaults,opts);
|
73
|
+
// check for empty string in single property
|
74
|
+
if ( !settings.single.length ) settings.single = 'metadata';
|
75
|
+
|
76
|
+
var data = $.data(elem, settings.single);
|
77
|
+
// returned cached data if it already exists
|
78
|
+
if ( data ) return data;
|
79
|
+
|
80
|
+
data = "{}";
|
81
|
+
|
82
|
+
if ( settings.type == "class" ) {
|
83
|
+
var m = settings.cre.exec( elem.className );
|
84
|
+
if ( m )
|
85
|
+
data = m[1];
|
86
|
+
} else if ( settings.type == "elem" ) {
|
87
|
+
if( !elem.getElementsByTagName ) return;
|
88
|
+
var e = elem.getElementsByTagName(settings.name);
|
89
|
+
if ( e.length )
|
90
|
+
data = $.trim(e[0].innerHTML);
|
91
|
+
} else if ( elem.getAttribute != undefined ) {
|
92
|
+
var attr = elem.getAttribute( settings.name );
|
93
|
+
if ( attr )
|
94
|
+
data = attr;
|
95
|
+
}
|
96
|
+
|
97
|
+
if ( data.indexOf( '{' ) <0 )
|
98
|
+
data = "{" + data + "}";
|
99
|
+
|
100
|
+
data = eval("(" + data + ")");
|
101
|
+
|
102
|
+
$.data( elem, settings.single, data );
|
103
|
+
return data;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
});
|
107
|
+
|
108
|
+
/**
|
109
|
+
* Returns the metadata object for the first member of the jQuery object.
|
110
|
+
*
|
111
|
+
* @name metadata
|
112
|
+
* @descr Returns element's metadata object
|
113
|
+
* @param Object opts An object contianing settings to override the defaults
|
114
|
+
* @type jQuery
|
115
|
+
* @cat Plugins/Metadata
|
116
|
+
*/
|
117
|
+
$.fn.metadata = function( opts ){
|
118
|
+
return $.metadata.get( this[0], opts );
|
119
|
+
};
|
120
|
+
|
121
|
+
})(jQuery);
|
@@ -0,0 +1,273 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery UI 1.6rc6
|
3
|
+
*
|
4
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
5
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
6
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
7
|
+
*
|
8
|
+
* http://docs.jquery.com/UI
|
9
|
+
*/
|
10
|
+
* jQuery UI Draggable 1.6rc6
|
11
|
+
*
|
12
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
13
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
14
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
15
|
+
*
|
16
|
+
* http://docs.jquery.com/UI/Draggables
|
17
|
+
*
|
18
|
+
* Depends:
|
19
|
+
* ui.core.js
|
20
|
+
*/
|
21
|
+
* jQuery UI Droppable 1.6rc6
|
22
|
+
*
|
23
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
24
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
25
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
26
|
+
*
|
27
|
+
* http://docs.jquery.com/UI/Droppables
|
28
|
+
*
|
29
|
+
* Depends:
|
30
|
+
* ui.core.js
|
31
|
+
* ui.draggable.js
|
32
|
+
*/
|
33
|
+
* jQuery UI Resizable 1.6rc6
|
34
|
+
*
|
35
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
36
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
37
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
38
|
+
*
|
39
|
+
* http://docs.jquery.com/UI/Resizables
|
40
|
+
*
|
41
|
+
* Depends:
|
42
|
+
* ui.core.js
|
43
|
+
*/
|
44
|
+
* jQuery UI Selectable 1.6rc6
|
45
|
+
*
|
46
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
47
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
48
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
49
|
+
*
|
50
|
+
* http://docs.jquery.com/UI/Selectables
|
51
|
+
*
|
52
|
+
* Depends:
|
53
|
+
* ui.core.js
|
54
|
+
*/
|
55
|
+
* jQuery UI Sortable 1.6rc6
|
56
|
+
*
|
57
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
58
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
59
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
60
|
+
*
|
61
|
+
* http://docs.jquery.com/UI/Sortables
|
62
|
+
*
|
63
|
+
* Depends:
|
64
|
+
* ui.core.js
|
65
|
+
*/
|
66
|
+
* jQuery UI Accordion 1.6rc6
|
67
|
+
*
|
68
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
69
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
70
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
71
|
+
*
|
72
|
+
* http://docs.jquery.com/UI/Accordion
|
73
|
+
*
|
74
|
+
* Depends:
|
75
|
+
* ui.core.js
|
76
|
+
*/
|
77
|
+
* jQuery UI Dialog 1.6rc6
|
78
|
+
*
|
79
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
80
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
81
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
82
|
+
*
|
83
|
+
* http://docs.jquery.com/UI/Dialog
|
84
|
+
*
|
85
|
+
* Depends:
|
86
|
+
* ui.core.js
|
87
|
+
* ui.draggable.js
|
88
|
+
* ui.resizable.js
|
89
|
+
*/
|
90
|
+
* jQuery UI Slider 1.6rc6
|
91
|
+
*
|
92
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
93
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
94
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
95
|
+
*
|
96
|
+
* http://docs.jquery.com/UI/Slider
|
97
|
+
*
|
98
|
+
* Depends:
|
99
|
+
* ui.core.js
|
100
|
+
*/
|
101
|
+
* jQuery UI Tabs 1.6rc6
|
102
|
+
*
|
103
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
104
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
105
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
106
|
+
*
|
107
|
+
* http://docs.jquery.com/UI/Tabs
|
108
|
+
*
|
109
|
+
* Depends:
|
110
|
+
* ui.core.js
|
111
|
+
*/
|
112
|
+
* jQuery UI Datepicker 1.6rc6
|
113
|
+
*
|
114
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
115
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
116
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
117
|
+
*
|
118
|
+
* http://docs.jquery.com/UI/Datepicker
|
119
|
+
*
|
120
|
+
* Depends:
|
121
|
+
* ui.core.js
|
122
|
+
*/
|
123
|
+
* jQuery UI Progressbar 1.6rc6
|
124
|
+
*
|
125
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
126
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
127
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
128
|
+
*
|
129
|
+
* http://docs.jquery.com/UI/Progressbar
|
130
|
+
*
|
131
|
+
* Depends:
|
132
|
+
* ui.core.js
|
133
|
+
*/
|
134
|
+
* jQuery UI Effects 1.6rc6
|
135
|
+
*
|
136
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
137
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
138
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
139
|
+
*
|
140
|
+
* http://docs.jquery.com/UI/Effects/
|
141
|
+
*/
|
142
|
+
* jQuery UI Effects Blind 1.6rc6
|
143
|
+
*
|
144
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
145
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
146
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
147
|
+
*
|
148
|
+
* http://docs.jquery.com/UI/Effects/Blind
|
149
|
+
*
|
150
|
+
* Depends:
|
151
|
+
* effects.core.js
|
152
|
+
*/
|
153
|
+
* jQuery UI Effects Bounce 1.6rc6
|
154
|
+
*
|
155
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
156
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
157
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
158
|
+
*
|
159
|
+
* http://docs.jquery.com/UI/Effects/Bounce
|
160
|
+
*
|
161
|
+
* Depends:
|
162
|
+
* effects.core.js
|
163
|
+
*/
|
164
|
+
* jQuery UI Effects Clip 1.6rc6
|
165
|
+
*
|
166
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
167
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
168
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
169
|
+
*
|
170
|
+
* http://docs.jquery.com/UI/Effects/Clip
|
171
|
+
*
|
172
|
+
* Depends:
|
173
|
+
* effects.core.js
|
174
|
+
*/
|
175
|
+
* jQuery UI Effects Drop 1.6rc6
|
176
|
+
*
|
177
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
178
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
179
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
180
|
+
*
|
181
|
+
* http://docs.jquery.com/UI/Effects/Drop
|
182
|
+
*
|
183
|
+
* Depends:
|
184
|
+
* effects.core.js
|
185
|
+
*/
|
186
|
+
* jQuery UI Effects Explode 1.6rc6
|
187
|
+
*
|
188
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
189
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
190
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
191
|
+
*
|
192
|
+
* http://docs.jquery.com/UI/Effects/Explode
|
193
|
+
*
|
194
|
+
* Depends:
|
195
|
+
* effects.core.js
|
196
|
+
*/
|
197
|
+
* jQuery UI Effects Fold 1.6rc6
|
198
|
+
*
|
199
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
200
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
201
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
202
|
+
*
|
203
|
+
* http://docs.jquery.com/UI/Effects/Fold
|
204
|
+
*
|
205
|
+
* Depends:
|
206
|
+
* effects.core.js
|
207
|
+
*/
|
208
|
+
* jQuery UI Effects Highlight 1.6rc6
|
209
|
+
*
|
210
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
211
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
212
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
213
|
+
*
|
214
|
+
* http://docs.jquery.com/UI/Effects/Highlight
|
215
|
+
*
|
216
|
+
* Depends:
|
217
|
+
* effects.core.js
|
218
|
+
*/
|
219
|
+
* jQuery UI Effects Pulsate 1.6rc6
|
220
|
+
*
|
221
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
222
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
223
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
224
|
+
*
|
225
|
+
* http://docs.jquery.com/UI/Effects/Pulsate
|
226
|
+
*
|
227
|
+
* Depends:
|
228
|
+
* effects.core.js
|
229
|
+
*/
|
230
|
+
* jQuery UI Effects Scale 1.6rc6
|
231
|
+
*
|
232
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
233
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
234
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
235
|
+
*
|
236
|
+
* http://docs.jquery.com/UI/Effects/Scale
|
237
|
+
*
|
238
|
+
* Depends:
|
239
|
+
* effects.core.js
|
240
|
+
*/
|
241
|
+
* jQuery UI Effects Shake 1.6rc6
|
242
|
+
*
|
243
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
244
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
245
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
246
|
+
*
|
247
|
+
* http://docs.jquery.com/UI/Effects/Shake
|
248
|
+
*
|
249
|
+
* Depends:
|
250
|
+
* effects.core.js
|
251
|
+
*/
|
252
|
+
* jQuery UI Effects Slide 1.6rc6
|
253
|
+
*
|
254
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
255
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
256
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
257
|
+
*
|
258
|
+
* http://docs.jquery.com/UI/Effects/Slide
|
259
|
+
*
|
260
|
+
* Depends:
|
261
|
+
* effects.core.js
|
262
|
+
*/
|
263
|
+
* jQuery UI Effects Transfer 1.6rc6
|
264
|
+
*
|
265
|
+
* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
|
266
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
267
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
268
|
+
*
|
269
|
+
* http://docs.jquery.com/UI/Effects/Transfer
|
270
|
+
*
|
271
|
+
* Depends:
|
272
|
+
* effects.core.js
|
273
|
+
*/
|
Binary file
|
data/views/doc.haml
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
%html{:xmlns=> "http://www.w3.org/1999/xhtml", 'xml:lang' => "en", :lang => "en"}
|
2
|
+
%head
|
3
|
+
%meta{'http-equiv' => "Content-Type", 'content' => "text/html; charset=utf-8"}
|
4
|
+
%title AllGems
|
5
|
+
%link{'href' => '/stylesheets/gembox.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen'}
|
6
|
+
-['jquery', 'jquery.ui', 'jquery.metadata', 'jquery.form', 'base', 'gembox'].each do |jslib|
|
7
|
+
%script{'type' => 'text/javascript', 'src' => "/javascripts/#{jslib}.js"}
|
8
|
+
%body
|
9
|
+
#container
|
10
|
+
#smallnav
|
11
|
+
.back_link=link_to_gem(@gem_name, :version => @gem_version, :text => '« Back to Gembox')
|
12
|
+
.viewing
|
13
|
+
Viewing RDoc for
|
14
|
+
=@gem_name
|
15
|
+
|
16
|
+
=@gem_version
|
17
|
+
%object#docframe{:data => @path}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
-subdirs = (files && !files.empty?)
|
2
|
+
%li.dir
|
3
|
+
%img{'src' => "/images/#{(subdirs ? 'folder.png' : 'page.png')}"}
|
4
|
+
%span.file{'data' => "{subdirs: #{!!subdirs}, filename:\'#{parent}\', url: \'#{url_for(:file => parent)}\', github: #{@gem.on_github? ? "\'" + @gem.homepage + "/blob/master/#{parent}\'" : false}}"}
|
5
|
+
=dir
|
6
|
+
-if subdirs
|
7
|
+
%ul{'style' => 'display:none'}
|
8
|
+
-files.each do |dir, files|
|
9
|
+
=haml(:file_tree, :locals => {:dir => dir, :files => files, :parent => File.join(parent, dir)}, :layout => false)
|
data/views/gem.haml
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
#gem
|
2
|
+
%h2
|
3
|
+
=@gem.name
|
4
|
+
%span.version=@gem.version
|
5
|
+
- if @gem.description
|
6
|
+
.description
|
7
|
+
=rdocify @gem.description
|
8
|
+
- if @gem.summary
|
9
|
+
.description
|
10
|
+
=rdocify @gem.summary
|
11
|
+
.meta
|
12
|
+
%p.authors
|
13
|
+
By
|
14
|
+
=@gem.authors.join(', ')
|
15
|
+
='(' + link_to(@gem.email, "mailto:#{@gem.email}") + ')'
|
16
|
+
%p.url
|
17
|
+
Homepage:
|
18
|
+
=link_to(@gem.homepage)
|
19
|
+
%p.url
|
20
|
+
Documentation:
|
21
|
+
=link_to("RDoc", "/docs/#{@gem.name}/#{@gem.version}/doc/rdoc") if File.exists?("#{AllGems.data_directory}/#{@gem.name}/#{@gem.version}/doc/rdoc")
|
22
|
+
=link_to("SDoc", "/docs/#{@gem.name}/#{@gem.version}/doc/sdoc") if File.exists?("#{AllGems.data_directory}/#{@gem.name}/#{@gem.version}/doc/sdoc")
|
23
|
+
=link_to("Hanna", "/docs/#{@gem.name}/#{@gem.version}/doc/hanna") if File.exists?("#{AllGems.data_directory}/#{@gem.name}/#{@gem.version}/doc/hanna")
|
24
|
+
-unless @gem.rubyforge_project.nil?
|
25
|
+
%p.url
|
26
|
+
Rubyforge:
|
27
|
+
=link_to("http://rubyforge.org/projects/#{@gem.rubyforge_project}")
|
28
|
+
%p.released
|
29
|
+
Released
|
30
|
+
=ts(@gem.date)
|
31
|
+
%h3.toggler Dependencies
|
32
|
+
#dependencies.toggle_area
|
33
|
+
-@gem.dependencies.each do |dependency|
|
34
|
+
.gem
|
35
|
+
=link_to(dependency.name, "/gems/#{dependency.name}")
|
36
|
+
%span.version=dependency.version_requirements
|
37
|
+
%h3.toggler Other Versions
|
38
|
+
#versions.toggle_area
|
39
|
+
%table
|
40
|
+
%tbody
|
41
|
+
-@versions.each do |info|
|
42
|
+
%tr
|
43
|
+
%td=link_to(info[:version], "/gems/#{@gem.name}/#{info[:version]}")
|
44
|
+
%td=ts(info[:release])
|
45
|
+
|