quirkey-gembox 0.1.0 → 0.1.1
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/History.txt +6 -1
- data/Manifest.txt +8 -9
- data/PostInstall.txt +1 -4
- data/README.rdoc +4 -17
- data/Rakefile +40 -0
- data/VERSION.yml +2 -2
- data/gembox.gemspec +40 -0
- data/lib/gembox/app.rb +4 -3
- data/lib/gembox/config.ru +8 -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/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/test/.bacon +0 -0
- data/views/file_tree.haml +12 -0
- data/views/gem.haml +44 -0
- data/views/gembox.sass +166 -0
- data/views/gems_columns.haml +16 -0
- data/views/gems_header.haml +17 -0
- data/views/gems_table.haml +19 -0
- data/views/index.haml +1 -0
- data/views/layout.haml +43 -0
- data/views/no_results.haml +3 -0
- metadata +30 -6
@@ -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/test/.bacon
ADDED
File without changes
|
@@ -0,0 +1,12 @@
|
|
1
|
+
-subdirs = (files && !files.empty?)
|
2
|
+
%li
|
3
|
+
%img{'src' => "/images/#{(subdirs ? 'folder.png' : 'page.png')}"}
|
4
|
+
=dir
|
5
|
+
=link_to('<img src="/images/edit.png" alt="Edit"/>', url_for(:file => parent, :action => 'edit'))
|
6
|
+
=link_to('<img src="/images/page_white_text.png" alt="View Raw"/>', url_for(:file => parent, :action => 'view')) unless subdirs
|
7
|
+
=link_to('<img src="/images/git.gif" alt="On Github"/>', "#{@gem.homepage}/blob/master/#{parent}") if @gem.on_github?
|
8
|
+
=clippy(File.join(@gem.full_gem_path, parent))
|
9
|
+
-if subdirs
|
10
|
+
%ul
|
11
|
+
-files.each do |dir, files|
|
12
|
+
=haml(:file_tree, :locals => {:dir => dir, :files => files, :parent => File.join(parent, dir)}, :layout => false)
|
data/views/gem.haml
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
#gem
|
2
|
+
%h2
|
3
|
+
=@gem.name
|
4
|
+
%span.version=@gem.version
|
5
|
+
|
6
|
+
.description
|
7
|
+
%p=@gem.description
|
8
|
+
.meta
|
9
|
+
%p.authors
|
10
|
+
By
|
11
|
+
=@gem.authors.join(', ')
|
12
|
+
='(' + link_to(@gem.email, "mailto:#{@gem.email}") + ')'
|
13
|
+
%p.url
|
14
|
+
Homepage:
|
15
|
+
=link_to(@gem.homepage)
|
16
|
+
-unless @gem.rubyforge_project.blank?
|
17
|
+
%p.url
|
18
|
+
Rubyforge:
|
19
|
+
=link_to("http://rubyforge.org/projects/#{@gem.rubyforge_project}")
|
20
|
+
%p.released
|
21
|
+
Released
|
22
|
+
=ts(@gem.date)
|
23
|
+
%h3.toggler Dependencies
|
24
|
+
#dependencies.toggle_area
|
25
|
+
-@gem.dependencies.each do |dependency|
|
26
|
+
.gem
|
27
|
+
=link_to(dependency.name, "/gems/#{dependency.name}")
|
28
|
+
%span.version=dependency.version_requirements
|
29
|
+
%h3.toggler Other Versions
|
30
|
+
#versions.toggle_area
|
31
|
+
%table
|
32
|
+
%tbody
|
33
|
+
-@gem_versions.each do |spec|
|
34
|
+
%tr
|
35
|
+
%td=link_to(spec.version, "/gems/#{spec.name}/#{spec.version}")
|
36
|
+
%td=ts(spec.date)
|
37
|
+
|
38
|
+
%h3.toggler Files
|
39
|
+
#files.toggle_area
|
40
|
+
%ul.files
|
41
|
+
=haml(:file_tree, :locals => {:dir => '/', :files => {}, :parent => ''}, :layout => false)
|
42
|
+
-@gem.files_tree.each do |dir, files|
|
43
|
+
=haml(:file_tree, :locals => {:dir => dir, :files => files, :parent => dir}, :layout => false)
|
44
|
+
|