murlsh 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +5 -3
- data/VERSION +1 -1
- data/config.yaml +1 -1
- data/lib/murlsh/atom_feed.rb +13 -14
- data/lib/murlsh/doc.rb +34 -0
- data/lib/murlsh/failproof.rb +15 -0
- data/lib/murlsh/uri.rb +12 -0
- data/lib/murlsh/uri_ask.rb +84 -0
- data/lib/murlsh/url.rb +4 -4
- data/lib/murlsh/url_body.rb +4 -10
- data/lib/murlsh.rb +4 -3
- data/murlsh.gemspec +12 -15
- data/plugins/lookup_content_type_title.rb +3 -2
- data/public/css/jquery.jgrowl.css +8 -7
- data/public/css/screen.css +10 -2
- data/public/js/jquery-1.4.min.js +151 -0
- data/public/js/jquery.jgrowl_compressed.js +38 -18
- data/public/js/js.js +222 -203
- data/test/atom_feed_test.rb +101 -0
- data/test/uri_ask_test.rb +100 -0
- metadata +11 -14
- data/lib/murlsh/get_content_type.rb +0 -92
- data/lib/murlsh/get_title.rb +0 -72
- data/lib/murlsh/referrer.rb +0 -50
- data/public/js/jquery-1.3.2.min.js +0 -19
- data/test/get_charset_test.rb +0 -25
- data/test/get_content_type_test.rb +0 -63
- data/test/get_title_test.rb +0 -43
- data/test/referrer_test.rb +0 -71
data/public/js/js.js
CHANGED
@@ -1,256 +1,275 @@
|
|
1
|
+
/*global $, window*/
|
2
|
+
|
1
3
|
"use strict";
|
2
4
|
|
3
5
|
var Murlsh = {};
|
4
6
|
|
5
|
-
Murlsh.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
delete attr.klass;
|
13
|
-
}
|
14
|
-
result.attr(attr);
|
15
|
-
}
|
16
|
-
|
17
|
-
if (text) {
|
18
|
-
result.text(text);
|
19
|
-
}
|
20
|
-
|
21
|
-
if (klass) {
|
22
|
-
result.addClass(klass);
|
23
|
-
}
|
24
|
-
|
25
|
-
return result;
|
7
|
+
Murlsh.img = function (src, text) {
|
8
|
+
text = text || '';
|
9
|
+
return $('<img />', {
|
10
|
+
src : src,
|
11
|
+
alt : text,
|
12
|
+
title : text
|
13
|
+
});
|
26
14
|
};
|
27
15
|
|
28
|
-
Murlsh.
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
16
|
+
Murlsh.closer_add = function (x, header) {
|
17
|
+
var html = (typeof x === 'object') ? $('<div />').append(x).html() : x;
|
18
|
+
|
19
|
+
$.jGrowl(html, {
|
20
|
+
closeTemplate : 'X',
|
21
|
+
glue : 'before',
|
22
|
+
header : header,
|
23
|
+
sticky : true
|
24
|
+
});
|
35
25
|
};
|
36
26
|
|
37
|
-
Murlsh.
|
38
|
-
|
27
|
+
Murlsh.object_tag = function (data, height, width, params) {
|
28
|
+
var object = $('<object />').attr({
|
29
|
+
data : data,
|
30
|
+
height : height,
|
31
|
+
type : 'application/x-shockwave-flash',
|
32
|
+
width : width
|
33
|
+
});
|
39
34
|
|
40
|
-
|
41
|
-
|
42
|
-
glue :'before',
|
43
|
-
header : header,
|
44
|
-
sticky : true
|
35
|
+
$.each(params, function (i, v) {
|
36
|
+
object.append($('<param />', v));
|
45
37
|
});
|
46
|
-
};
|
47
38
|
|
48
|
-
|
49
|
-
var result = '<object data="' + data + '" height="' + height +
|
50
|
-
'" type="application/x-shockwave-flash" width="' + width + '">';
|
51
|
-
$.each(params, function(i, v) {
|
52
|
-
result += '<param name="' + v.name + '" value="' + v.value + '" />';
|
53
|
-
});
|
54
|
-
result += '</object>';
|
55
|
-
return result;
|
39
|
+
return object;
|
56
40
|
};
|
57
41
|
|
58
|
-
Murlsh.flickr_thumb = function(d) {
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
42
|
+
Murlsh.flickr_thumb = function (d) {
|
43
|
+
var photo = d.photo,
|
44
|
+
base,
|
45
|
+
owner,
|
46
|
+
zoom;
|
47
|
+
if (d.stat === 'ok') {
|
48
|
+
base = 'http://farm' + photo.farm + '.static.flickr.com/' +
|
49
|
+
photo.server + '/' + photo.id + '_';
|
50
|
+
zoom = base + photo.secret + '_m.jpg';
|
51
|
+
|
52
|
+
if (photo.originalsecret) {
|
53
|
+
zoom = base + photo.originalsecret + '_o.' + photo.originalformat;
|
54
|
+
}
|
55
|
+
|
56
|
+
owner = photo.owner;
|
57
|
+
return Murlsh.img(base + photo.secret + '_s.jpg',
|
58
|
+
photo.title._content +
|
59
|
+
(owner && owner.username ? ' by ' + owner.username : '')
|
60
|
+
).addClass('thumb flickr').data('zoom', zoom);
|
68
61
|
}
|
69
|
-
|
70
|
-
var owner = photo.owner;
|
71
|
-
return Murlsh.img(base + photo.secret + '_s.jpg',
|
72
|
-
photo.title._content +
|
73
|
-
(owner && owner.username ? ' by ' + owner.username : '')
|
74
|
-
).addClass('thumb flickr').data('zoom', zoom);
|
75
|
-
}
|
76
62
|
};
|
77
63
|
|
78
|
-
Murlsh.flickr_click = function() {
|
79
|
-
|
64
|
+
Murlsh.flickr_click = function () {
|
65
|
+
Murlsh.closer_add(Murlsh.img($(this).data('zoom')));
|
80
66
|
};
|
81
67
|
|
82
|
-
Murlsh.img_thumb = function(prefix, ext) {
|
83
|
-
|
84
|
-
|
68
|
+
Murlsh.img_thumb = function (prefix, ext) {
|
69
|
+
return Murlsh.img(prefix + 'th.' +
|
70
|
+
(ext.match(/^pdf$/i) ? 'png' : ext)).addClass('thumb');
|
85
71
|
};
|
86
72
|
|
87
|
-
Murlsh.img_click = function() {
|
88
|
-
|
73
|
+
Murlsh.img_click = function () {
|
74
|
+
Murlsh.closer_add(Murlsh.img($(this).data('href')));
|
89
75
|
};
|
90
76
|
|
91
|
-
Murlsh.vimeo_thumb = function(d) {
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
77
|
+
Murlsh.vimeo_thumb = function (d) {
|
78
|
+
return Murlsh.img(d.thumbnail_url, d.title).addClass('thumb vimeo').attr({
|
79
|
+
height : d.thumbnail_height,
|
80
|
+
width : d.thumbnail_width
|
81
|
+
});
|
96
82
|
};
|
97
83
|
|
98
|
-
Murlsh.vimeo_click = function() {
|
99
|
-
|
84
|
+
Murlsh.vimeo_click = function () {
|
85
|
+
Murlsh.closer_add($(this).data('embed_html'));
|
100
86
|
};
|
101
87
|
|
102
|
-
Murlsh.youtube_thumb = function(id) {
|
103
|
-
|
104
|
-
|
88
|
+
Murlsh.youtube_thumb = function (id) {
|
89
|
+
return Murlsh.img('http://img.youtube.com/vi/' + id + '/1.jpg',
|
90
|
+
'click to watch').addClass('thumb youtube').data('id', id);
|
105
91
|
};
|
106
92
|
|
107
|
-
Murlsh.youtube_click = function() {
|
108
|
-
|
109
|
-
|
110
|
-
|
93
|
+
Murlsh.youtube_click = function () {
|
94
|
+
var movie = 'http://www.youtube.com/v/' + $(this).data('id') + '?' +
|
95
|
+
$.param({
|
96
|
+
hd : 1,
|
97
|
+
hl : 'en',
|
98
|
+
fs : 1,
|
99
|
+
showinfo : 0,
|
100
|
+
showsearch : 0
|
101
|
+
});
|
102
|
+
Murlsh.closer_add(Murlsh.object_tag(movie, 344, 425,
|
103
|
+
[{ name : 'movie', value : movie }]));
|
111
104
|
};
|
112
105
|
|
113
|
-
Murlsh.thumb_insert = function(img, click_function, a) {
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
106
|
+
Murlsh.thumb_insert = function (img, click_function, a) {
|
107
|
+
if (img) {
|
108
|
+
if (Murlsh.is_iphone()) {
|
109
|
+
a.prepend(img);
|
110
|
+
} else {
|
111
|
+
a.before(img.click(click_function));
|
112
|
+
}
|
119
113
|
}
|
120
|
-
}
|
121
114
|
};
|
122
115
|
|
123
|
-
Murlsh.is_iphone = function() {
|
124
|
-
|
116
|
+
Murlsh.is_iphone = function () {
|
117
|
+
return navigator.userAgent.match(/i(phone|pod)/i);
|
125
118
|
};
|
126
119
|
|
127
120
|
Murlsh.href_res = {
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
121
|
+
flickr :
|
122
|
+
/^http:\/\/(?:www\.)?flickr\.com\/photos\/[@\w\-]+?\/([\d]+)/i,
|
123
|
+
imageshack :
|
124
|
+
/^(http:\/\/img\d+\.imageshack\.us\/img\d+\/\d+\/\w+\.)(jpe?g|gif|png)$/i,
|
125
|
+
mp3 :
|
126
|
+
/\.mp3$/i,
|
127
|
+
s3 :
|
128
|
+
/^(http:\/\/static\.mmb\.s3\.amazonaws\.com\/\w+\.)(jpe?g|gif|pdf|png)$/i,
|
129
|
+
vimeo :
|
130
|
+
/^http:\/\/(?:www\.)?vimeo\.com\/(\d+)$/i,
|
131
|
+
youtube :
|
132
|
+
/^http:\/\/(?:(?:www|uk)\.)?youtube\.com\/watch\?v=([\w\-]+)(?:&|$)/i
|
140
133
|
};
|
141
134
|
|
142
|
-
Murlsh.add_extra = function() {
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
var match = {};
|
148
|
-
$.each(Murlsh.href_res, function(x, re) { return !(match[x] = re.exec(href)); });
|
135
|
+
Murlsh.add_extra = function () {
|
136
|
+
var href = $(this).attr('href'),
|
137
|
+
match = {},
|
138
|
+
swf = 'swf/player_mp3_mini.swf',
|
139
|
+
thumb;
|
149
140
|
|
150
|
-
|
141
|
+
$.each(Murlsh.href_res, function (x, re) {
|
142
|
+
return !(match[x] = re.exec(href));
|
143
|
+
});
|
151
144
|
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
145
|
+
if (match.flickr) {
|
146
|
+
$.ajax({
|
147
|
+
url : 'http://api.flickr.com/services/rest/',
|
148
|
+
data : {
|
149
|
+
api_key : 'd04e574aaf11bf2e1c03cba4ee7e5725',
|
150
|
+
format : 'json',
|
151
|
+
method : 'flickr.photos.getinfo',
|
152
|
+
photo_id : match.flickr[1]
|
153
|
+
},
|
154
|
+
dataType : 'jsonp',
|
155
|
+
jsonp : 'jsoncallback',
|
156
|
+
success : function (d) {
|
157
|
+
Murlsh.thumb_insert(Murlsh.flickr_thumb(d),
|
158
|
+
Murlsh.flickr_click, $(this));
|
159
|
+
},
|
160
|
+
context : $(this)
|
161
|
+
});
|
162
|
+
} else if (match.imageshack) {
|
163
|
+
Murlsh.thumb_insert(
|
164
|
+
Murlsh.img_thumb(match.imageshack[1], match.imageshack[2]).data(
|
165
|
+
'href', match.imageshack[0]),
|
166
|
+
Murlsh.img_click, $(this).html('imageshack.us'));
|
167
|
+
} else if (match.mp3) {
|
168
|
+
$(this).before(Murlsh.object_tag(swf, 20, 200, [
|
169
|
+
{ name : 'bgcolor', value : '#000000' },
|
170
|
+
{ name : 'FlashVars', value : 'mp3=' + href },
|
171
|
+
{ name : 'movie', value : swf }
|
172
|
+
]));
|
173
|
+
} else if (match.s3) {
|
174
|
+
thumb = Murlsh.img_thumb(match.s3[1], match.s3[2]);
|
175
|
+
|
176
|
+
if (match.s3[2].match(/^pdf$/i)) {
|
177
|
+
$(this).before(thumb).html('pdf');
|
178
|
+
} else {
|
179
|
+
if (Murlsh.is_iphone()) {
|
180
|
+
$(this).html(thumb);
|
181
|
+
} else {
|
182
|
+
$(this).html('link');
|
183
|
+
$(this).before(thumb.data('href', match.s3[0]).click(
|
184
|
+
Murlsh.img_click));
|
185
|
+
}
|
186
|
+
}
|
187
|
+
} else if (match.vimeo) {
|
188
|
+
$.ajax({
|
189
|
+
url : 'http://vimeo.com/api/oembed.json',
|
190
|
+
data : { url : 'http://vimeo.com/' + match.vimeo[1] },
|
191
|
+
dataType : 'jsonp',
|
192
|
+
success : function (d) {
|
193
|
+
Murlsh.thumb_insert(Murlsh.vimeo_thumb(d).data('embed_html',
|
194
|
+
d.html.replace(/&/g, '&')),
|
195
|
+
Murlsh.vimeo_click, $(this));
|
196
|
+
},
|
197
|
+
context : $(this)
|
198
|
+
});
|
199
|
+
} else if (match.youtube) {
|
200
|
+
Murlsh.thumb_insert(Murlsh.youtube_thumb(match.youtube[1]),
|
201
|
+
Murlsh.youtube_click, $(this));
|
180
202
|
}
|
181
|
-
} else if (match.vimeo) {
|
182
|
-
var callback = function(d) {
|
183
|
-
var thumb = Murlsh.vimeo_thumb(d).data('embed_html', d.html);
|
184
|
-
Murlsh.thumb_insert(thumb, Murlsh.vimeo_click, this_a);
|
185
|
-
};
|
186
|
-
$.getJSON('http://vimeo.com/api/oembed.json?url=http%3A//vimeo.com/' +
|
187
|
-
match.vimeo[1] + '&callback=?', callback);
|
188
|
-
} else if (match.youtube) {
|
189
|
-
thumb = Murlsh.youtube_thumb(match.youtube[1]);
|
190
|
-
Murlsh.thumb_insert(thumb, Murlsh.youtube_click, this_a);
|
191
|
-
}
|
192
203
|
};
|
193
204
|
|
194
|
-
Murlsh.format_li = function(d) {
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
205
|
+
Murlsh.format_li = function (d) {
|
206
|
+
var li = $('<li />').append($('a', {
|
207
|
+
href : d.url,
|
208
|
+
text : d.title
|
209
|
+
})),
|
210
|
+
icon_size = 32;
|
200
211
|
|
201
|
-
|
212
|
+
if (d.name) {
|
213
|
+
li.prepend($('<div />', { text : d.name }).addClass('name'));
|
214
|
+
}
|
202
215
|
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
216
|
+
if (d.email) {
|
217
|
+
li.prepend($('<div />').addClass('icon').append(
|
218
|
+
Murlsh.img(
|
219
|
+
'http://www.gravatar.com/avatar/' + d.email + '?s=' + icon_size,
|
220
|
+
d.name).attr({
|
221
|
+
width : icon_size,
|
222
|
+
height : icon_size
|
223
|
+
})));
|
224
|
+
}
|
212
225
|
|
213
|
-
|
226
|
+
return li;
|
214
227
|
};
|
215
228
|
|
216
|
-
Murlsh.iphone_init = function() {
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
229
|
+
Murlsh.iphone_init = function () {
|
230
|
+
window.onorientationchange = function () {
|
231
|
+
var width = 450;
|
232
|
+
if (window.orientation === 0 || window.orientation === 180) {
|
233
|
+
width = 290;
|
234
|
+
}
|
235
|
+
$('#urls').width(width);
|
236
|
+
};
|
224
237
|
|
225
|
-
|
238
|
+
window.onorientationchange();
|
226
239
|
|
227
|
-
|
228
|
-
|
240
|
+
$('#urls li:first').prepend($('<a />', {
|
241
|
+
href : '#bottom',
|
242
|
+
text : 'bottom'
|
243
|
+
}));
|
244
|
+
$('#urls li:last').append($('<a />', {
|
245
|
+
href : '#urls',
|
246
|
+
text : 'top'
|
247
|
+
}));
|
229
248
|
};
|
230
249
|
|
231
|
-
$(document).ready(function() {
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
250
|
+
$(document).ready(function () {
|
251
|
+
if (Murlsh.is_iphone()) {
|
252
|
+
Murlsh.iphone_init();
|
253
|
+
}
|
254
|
+
$('#urls a').map(Murlsh.add_extra);
|
255
|
+
|
256
|
+
$('#submit').click(function () {
|
257
|
+
$.post('url', {
|
258
|
+
url : $('#url').val(),
|
259
|
+
via : $('#via').val(),
|
260
|
+
auth : $('#auth').val()
|
261
|
+
}, function (d) {
|
262
|
+
$.each(d, function (i, v) {
|
263
|
+
var li = Murlsh.format_li(v);
|
264
|
+
$('#urls > li:first').after(li);
|
265
|
+
$(li).children('a:first').map(Murlsh.add_extra);
|
266
|
+
});
|
267
|
+
$('#url').val('');
|
268
|
+
$('#via').val('');
|
269
|
+
}, 'json');
|
270
|
+
});
|
271
|
+
|
272
|
+
if ($.cookie('auth')) {
|
273
|
+
$('#auth').val($.cookie('auth'));
|
274
|
+
}
|
256
275
|
});
|
@@ -0,0 +1,101 @@
|
|
1
|
+
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
|
3
|
+
require 'tempfile'
|
4
|
+
require 'time'
|
5
|
+
|
6
|
+
require 'murlsh'
|
7
|
+
|
8
|
+
require 'test/unit'
|
9
|
+
|
10
|
+
class AtomFeedTest < Test::Unit::TestCase
|
11
|
+
|
12
|
+
class MockUrl
|
13
|
+
|
14
|
+
def initialize(content_type, id, is_image, name, time, title_stripped,
|
15
|
+
url, via)
|
16
|
+
@content_type,
|
17
|
+
@id,
|
18
|
+
@is_image,
|
19
|
+
@name,
|
20
|
+
@time,
|
21
|
+
@title_stripped,
|
22
|
+
@url,
|
23
|
+
@via =
|
24
|
+
content_type,
|
25
|
+
id,
|
26
|
+
is_image,
|
27
|
+
name,
|
28
|
+
time,
|
29
|
+
title_stripped,
|
30
|
+
url,
|
31
|
+
via
|
32
|
+
end
|
33
|
+
|
34
|
+
def is_image?; is_image; end
|
35
|
+
|
36
|
+
attr_reader :content_type
|
37
|
+
attr_reader :id
|
38
|
+
attr_reader :is_image
|
39
|
+
attr_reader :name
|
40
|
+
attr_reader :time
|
41
|
+
attr_reader :title_stripped
|
42
|
+
attr_reader :url
|
43
|
+
attr_reader :via
|
44
|
+
end
|
45
|
+
|
46
|
+
def test_atom_feed
|
47
|
+
feed = Murlsh::AtomFeed.new('http://test.com/test/', :title => 'test')
|
48
|
+
time1 = Time.parse('dec 19 2009 12:34:56pm').utc
|
49
|
+
time2 = Time.parse('dec 20 2009 10:10:10am').utc
|
50
|
+
|
51
|
+
entries = [
|
52
|
+
MockUrl.new('text/html', 1, false, 'test 1', time1, 'test title',
|
53
|
+
'http://matthewm.boedicker.org/', 'http://www.google.com'),
|
54
|
+
MockUrl.new('image/jpeg', 2, true, 'test 2', time2, 'image test',
|
55
|
+
'http://matthewm.boedicker.org/test.jpg', nil)
|
56
|
+
]
|
57
|
+
|
58
|
+
expected = <<EOS
|
59
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
60
|
+
<feed xmlns="http://www.w3.org/2005/Atom">
|
61
|
+
<id>http://test.com/test/</id>
|
62
|
+
<link href="http://test.com/test/atom.xml" rel="self"/>
|
63
|
+
<title>test</title>
|
64
|
+
<updated>2009-12-20T15:10:10Z</updated>
|
65
|
+
<entry>
|
66
|
+
<author>
|
67
|
+
<name>test 1</name>
|
68
|
+
</author>
|
69
|
+
<title>test title</title>
|
70
|
+
<id>tag:test.com,2009-12-19:test.com/test/1</id>
|
71
|
+
<summary>test title</summary>
|
72
|
+
<updated>2009-12-19T17:34:56Z</updated>
|
73
|
+
<link href="http://matthewm.boedicker.org/"/>
|
74
|
+
<link type="text/html" title="google.com" href="http://www.google.com" rel="via"/>
|
75
|
+
</entry>
|
76
|
+
<entry>
|
77
|
+
<author>
|
78
|
+
<name>test 2</name>
|
79
|
+
</author>
|
80
|
+
<title>image test</title>
|
81
|
+
<id>tag:test.com,2009-12-20:test.com/test/2</id>
|
82
|
+
<summary>image test</summary>
|
83
|
+
<updated>2009-12-20T15:10:10Z</updated>
|
84
|
+
<link href="http://matthewm.boedicker.org/test.jpg"/>
|
85
|
+
<link type="image/jpeg" title="Full-size" href="http://matthewm.boedicker.org/test.jpg" rel="enclosure"/>
|
86
|
+
</entry>
|
87
|
+
</feed>
|
88
|
+
EOS
|
89
|
+
|
90
|
+
assert_equal(expected, feed.make(entries, :indent => 2))
|
91
|
+
|
92
|
+
f = Tempfile.open('test_atom_feed')
|
93
|
+
feed.make(entries, :indent => 2, :target => f)
|
94
|
+
|
95
|
+
f.open
|
96
|
+
assert_equal(expected, f.read)
|
97
|
+
f.close
|
98
|
+
|
99
|
+
end
|
100
|
+
|
101
|
+
end
|