hamster 0.1.19 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +10 -0
- data/README.rdoc +1 -1
- data/lib/hamster/list.rb +19 -1
- data/lib/hamster/stack.rb +4 -0
- data/lib/hamster/version.rb +1 -1
- data/spec/hamster/hash/all_spec.rb +5 -5
- data/spec/hamster/hash/any_spec.rb +5 -5
- data/spec/hamster/hash/eql_spec.rb +2 -2
- data/spec/hamster/hash/has_key_spec.rb +2 -2
- data/spec/hamster/hash/none_spec.rb +5 -5
- data/spec/hamster/list/all_spec.rb +44 -12
- data/spec/hamster/list/any_spec.rb +8 -8
- data/spec/hamster/list/append_spec.rb +2 -2
- data/spec/hamster/list/break_spec.rb +183 -0
- data/spec/hamster/list/cadr_spec.rb +7 -2
- data/spec/hamster/list/clear_spec.rb +36 -0
- data/spec/hamster/list/copying_spec.rb +3 -2
- data/spec/hamster/list/cycle_spec.rb +20 -7
- data/spec/hamster/list/drop_spec.rb +10 -5
- data/spec/hamster/list/drop_while_spec.rb +17 -5
- data/spec/hamster/list/each_spec.rb +15 -8
- data/spec/hamster/list/empty_spec.rb +2 -2
- data/spec/hamster/list/eql_spec.rb +6 -6
- data/spec/hamster/list/filter_spec.rb +14 -6
- data/spec/hamster/list/find_spec.rb +2 -2
- data/spec/hamster/list/grep_spec.rb +10 -5
- data/spec/hamster/list/head_spec.rb +16 -12
- data/spec/hamster/list/include_spec.rb +2 -2
- data/spec/hamster/list/inspect_spec.rb +2 -2
- data/spec/hamster/list/map_spec.rb +18 -6
- data/spec/hamster/list/maximum_spec.rb +2 -2
- data/spec/hamster/list/minimum_spec.rb +2 -2
- data/spec/hamster/list/none_spec.rb +8 -8
- data/spec/hamster/list/one_spec.rb +9 -9
- data/spec/hamster/list/partition_spec.rb +87 -39
- data/spec/hamster/list/reduce_spec.rb +2 -2
- data/spec/hamster/list/reject_spec.rb +14 -6
- data/spec/hamster/list/reverse_spec.rb +9 -4
- data/spec/hamster/list/size_spec.rb +2 -2
- data/spec/hamster/list/span_spec.rb +183 -0
- data/spec/hamster/list/split_at_spec.rb +68 -17
- data/spec/hamster/list/tail_spec.rb +2 -2
- data/spec/hamster/list/take_spec.rb +10 -5
- data/spec/hamster/list/take_while_spec.rb +15 -6
- data/spec/hamster/list/to_a_spec.rb +2 -2
- data/spec/hamster/list/to_ary_spec.rb +3 -3
- data/spec/hamster/list/to_list_spec.rb +3 -2
- data/spec/hamster/list/zip_spec.rb +16 -7
- data/spec/hamster/set/all_spec.rb +6 -6
- data/spec/hamster/set/any_spec.rb +6 -6
- data/spec/hamster/set/eql_spec.rb +2 -2
- data/spec/hamster/set/include_spec.rb +2 -2
- data/spec/hamster/set/none_spec.rb +6 -6
- data/spec/hamster/set/to_list.rb +1 -1
- data/spec/hamster/stack/clear_spec.rb +36 -0
- data/spec/hamster/stack/eql_spec.rb +2 -2
- data/spec/hamster/stack/pop_spec.rb +2 -2
- data/spec/hamster/trie/remove_spec.rb +3 -3
- data/spec/spec_helper.rb +2 -0
- metadata +9 -89
- data/lib/hamster/core_ext/enumerable.rbc +0 -481
- data/lib/hamster/core_ext/io.rbc +0 -604
- data/lib/hamster/hash.rbc +0 -3117
- data/lib/hamster/list.rbc +0 -7274
- data/lib/hamster/set.rbc +0 -3152
- data/lib/hamster/stack.rbc +0 -1358
- data/lib/hamster/trie.rbc +0 -3416
- data/spec/hamster/core_ext/enumerable_spec.rbc +0 -747
- data/spec/hamster/core_ext/io_spec.rbc +0 -409
- data/spec/hamster/hash/all_spec.rbc +0 -1214
- data/spec/hamster/hash/any_spec.rbc +0 -1495
- data/spec/hamster/hash/construction_spec.rbc +0 -742
- data/spec/hamster/hash/copying_spec.rbc +0 -519
- data/spec/hamster/hash/each_spec.rbc +0 -908
- data/spec/hamster/hash/empty_spec.rbc +0 -517
- data/spec/hamster/hash/eql_spec.rbc +0 -1702
- data/spec/hamster/hash/filter_spec.rbc +0 -1433
- data/spec/hamster/hash/get_spec.rbc +0 -791
- data/spec/hamster/hash/has_key_spec.rbc +0 -719
- data/spec/hamster/hash/map_spec.rbc +0 -1454
- data/spec/hamster/hash/none_spec.rbc +0 -1399
- data/spec/hamster/hash/put_spec.rbc +0 -1334
- data/spec/hamster/hash/reduce_spec.rbc +0 -1234
- data/spec/hamster/hash/reject_spec.rbc +0 -1445
- data/spec/hamster/hash/remove_spec.rbc +0 -1135
- data/spec/hamster/hash/size_spec.rbc +0 -596
- data/spec/hamster/list/all_spec.rbc +0 -1760
- data/spec/hamster/list/any_spec.rbc +0 -1888
- data/spec/hamster/list/append_spec.rbc +0 -1555
- data/spec/hamster/list/cadr_spec.rbc +0 -855
- data/spec/hamster/list/cons_spec.rbc +0 -848
- data/spec/hamster/list/construction_spec.rbc +0 -1732
- data/spec/hamster/list/copying_spec.rbc +0 -555
- data/spec/hamster/list/drop_spec.rbc +0 -1081
- data/spec/hamster/list/drop_while_spec.rbc +0 -1286
- data/spec/hamster/list/each_spec.rbc +0 -1365
- data/spec/hamster/list/empty_spec.rbc +0 -571
- data/spec/hamster/list/eql_spec.rbc +0 -1819
- data/spec/hamster/list/filter_spec.rbc +0 -1595
- data/spec/hamster/list/find_spec.rbc +0 -1456
- data/spec/hamster/list/head_spec.rbc +0 -575
- data/spec/hamster/list/include_spec.rbc +0 -1173
- data/spec/hamster/list/inspect_spec.rbc +0 -995
- data/spec/hamster/list/map_spec.rbc +0 -1545
- data/spec/hamster/list/none_spec.rbc +0 -1788
- data/spec/hamster/list/partition_spec.rbc +0 -2715
- data/spec/hamster/list/reduce_spec.rbc +0 -2081
- data/spec/hamster/list/reject_spec.rbc +0 -1590
- data/spec/hamster/list/reverse_spec.rbc +0 -1061
- data/spec/hamster/list/size_spec.rbc +0 -1063
- data/spec/hamster/list/tail_spec.rbc +0 -595
- data/spec/hamster/list/take_spec.rbc +0 -1075
- data/spec/hamster/list/take_while_spec.rbc +0 -1446
- data/spec/hamster/list/to_a_spec.rbc +0 -961
- data/spec/hamster/list/to_ary_spec.rbc +0 -1080
- data/spec/hamster/set/add_spec.rbc +0 -1039
- data/spec/hamster/set/all_spec.rbc +0 -1316
- data/spec/hamster/set/any_spec.rbc +0 -1444
- data/spec/hamster/set/construction_spec.rbc +0 -422
- data/spec/hamster/set/copying_spec.rbc +0 -469
- data/spec/hamster/set/each_spec.rbc +0 -820
- data/spec/hamster/set/empty_spec.rbc +0 -452
- data/spec/hamster/set/eql_spec.rbc +0 -1309
- data/spec/hamster/set/filter_spec.rbc +0 -1272
- data/spec/hamster/set/include_spec.rbc +0 -657
- data/spec/hamster/set/map_spec.rbc +0 -1285
- data/spec/hamster/set/none_spec.rbc +0 -1344
- data/spec/hamster/set/reduce_spec.rbc +0 -1177
- data/spec/hamster/set/reject_spec.rbc +0 -1273
- data/spec/hamster/set/remove_spec.rbc +0 -947
- data/spec/hamster/set/size_spec.rbc +0 -531
- data/spec/hamster/set/to_a_spec.rbc +0 -559
- data/spec/hamster/stack/construction_spec.rbc +0 -862
- data/spec/hamster/stack/copying_spec.rbc +0 -555
- data/spec/hamster/stack/empty_spec.rbc +0 -571
- data/spec/hamster/stack/eql_spec.rbc +0 -1281
- data/spec/hamster/stack/inspect_spec.rbc +0 -586
- data/spec/hamster/stack/pop_spec.rbc +0 -1099
- data/spec/hamster/stack/push_spec.rbc +0 -848
- data/spec/hamster/stack/size_spec.rbc +0 -650
- data/spec/hamster/stack/top_spec.rbc +0 -676
- data/spec/hamster/trie/remove_spec.rbc +0 -40
- data/spec/spec_helper.rbc +0 -163
- data/tasks/spec.rbc +0 -201
@@ -1,517 +0,0 @@
|
|
1
|
-
!RBIX
|
2
|
-
0
|
3
|
-
x
|
4
|
-
M
|
5
|
-
1
|
6
|
-
n
|
7
|
-
n
|
8
|
-
x
|
9
|
-
10
|
10
|
-
__script__
|
11
|
-
i
|
12
|
-
50
|
13
|
-
5
|
14
|
-
42
|
15
|
-
0
|
16
|
-
1
|
17
|
-
42
|
18
|
-
0
|
19
|
-
2
|
20
|
-
61
|
21
|
-
45
|
22
|
-
3
|
23
|
-
46
|
24
|
-
4
|
25
|
-
1
|
26
|
-
7
|
27
|
-
5
|
28
|
-
60
|
29
|
-
77
|
30
|
-
6
|
31
|
-
46
|
32
|
-
7
|
33
|
-
1
|
34
|
-
44
|
35
|
-
46
|
36
|
-
8
|
37
|
-
1
|
38
|
-
14
|
39
|
-
5
|
40
|
-
7
|
41
|
-
9
|
42
|
-
60
|
43
|
-
44
|
44
|
-
46
|
45
|
-
8
|
46
|
-
1
|
47
|
-
14
|
48
|
-
5
|
49
|
-
42
|
50
|
-
10
|
51
|
-
11
|
52
|
-
40
|
53
|
-
12
|
54
|
-
53
|
55
|
-
13
|
56
|
-
44
|
57
|
-
47
|
58
|
-
14
|
59
|
-
1
|
60
|
-
14
|
61
|
-
2
|
62
|
-
11
|
63
|
-
I
|
64
|
-
4
|
65
|
-
I
|
66
|
-
0
|
67
|
-
I
|
68
|
-
0
|
69
|
-
I
|
70
|
-
0
|
71
|
-
n
|
72
|
-
p
|
73
|
-
15
|
74
|
-
x
|
75
|
-
4
|
76
|
-
File
|
77
|
-
n
|
78
|
-
n
|
79
|
-
x
|
80
|
-
11
|
81
|
-
active_path
|
82
|
-
x
|
83
|
-
7
|
84
|
-
dirname
|
85
|
-
s
|
86
|
-
18
|
87
|
-
/../../spec_helper
|
88
|
-
x
|
89
|
-
1
|
90
|
-
+
|
91
|
-
x
|
92
|
-
11
|
93
|
-
expand_path
|
94
|
-
x
|
95
|
-
7
|
96
|
-
require
|
97
|
-
s
|
98
|
-
12
|
99
|
-
hamster/hash
|
100
|
-
x
|
101
|
-
7
|
102
|
-
Hamster
|
103
|
-
n
|
104
|
-
x
|
105
|
-
4
|
106
|
-
Hash
|
107
|
-
M
|
108
|
-
1
|
109
|
-
n
|
110
|
-
n
|
111
|
-
x
|
112
|
-
9
|
113
|
-
__block__
|
114
|
-
i
|
115
|
-
11
|
116
|
-
5
|
117
|
-
7
|
118
|
-
0
|
119
|
-
60
|
120
|
-
53
|
121
|
-
1
|
122
|
-
44
|
123
|
-
47
|
124
|
-
2
|
125
|
-
1
|
126
|
-
11
|
127
|
-
I
|
128
|
-
4
|
129
|
-
I
|
130
|
-
0
|
131
|
-
I
|
132
|
-
-1
|
133
|
-
I
|
134
|
-
-1
|
135
|
-
n
|
136
|
-
p
|
137
|
-
3
|
138
|
-
s
|
139
|
-
7
|
140
|
-
#empty?
|
141
|
-
M
|
142
|
-
1
|
143
|
-
n
|
144
|
-
n
|
145
|
-
x
|
146
|
-
9
|
147
|
-
__block__
|
148
|
-
i
|
149
|
-
82
|
150
|
-
32
|
151
|
-
0
|
152
|
-
2
|
153
|
-
32
|
154
|
-
2
|
155
|
-
41
|
156
|
-
40
|
157
|
-
0
|
158
|
-
75
|
159
|
-
46
|
160
|
-
1
|
161
|
-
1
|
162
|
-
13
|
163
|
-
7
|
164
|
-
2
|
165
|
-
60
|
166
|
-
7
|
167
|
-
3
|
168
|
-
60
|
169
|
-
46
|
170
|
-
4
|
171
|
-
2
|
172
|
-
14
|
173
|
-
32
|
174
|
-
1
|
175
|
-
3
|
176
|
-
32
|
177
|
-
2
|
178
|
-
41
|
179
|
-
40
|
180
|
-
0
|
181
|
-
4
|
182
|
-
3
|
183
|
-
46
|
184
|
-
1
|
185
|
-
1
|
186
|
-
13
|
187
|
-
7
|
188
|
-
2
|
189
|
-
60
|
190
|
-
7
|
191
|
-
3
|
192
|
-
60
|
193
|
-
46
|
194
|
-
4
|
195
|
-
2
|
196
|
-
14
|
197
|
-
13
|
198
|
-
7
|
199
|
-
5
|
200
|
-
60
|
201
|
-
7
|
202
|
-
6
|
203
|
-
60
|
204
|
-
46
|
205
|
-
4
|
206
|
-
2
|
207
|
-
14
|
208
|
-
13
|
209
|
-
7
|
210
|
-
7
|
211
|
-
60
|
212
|
-
7
|
213
|
-
8
|
214
|
-
60
|
215
|
-
46
|
216
|
-
4
|
217
|
-
2
|
218
|
-
14
|
219
|
-
32
|
220
|
-
1
|
221
|
-
3
|
222
|
-
32
|
223
|
-
2
|
224
|
-
32
|
225
|
-
3
|
226
|
-
53
|
227
|
-
9
|
228
|
-
47
|
229
|
-
10
|
230
|
-
0
|
231
|
-
11
|
232
|
-
I
|
233
|
-
7
|
234
|
-
I
|
235
|
-
0
|
236
|
-
I
|
237
|
-
-1
|
238
|
-
I
|
239
|
-
-1
|
240
|
-
n
|
241
|
-
p
|
242
|
-
11
|
243
|
-
x
|
244
|
-
4
|
245
|
-
Hash
|
246
|
-
x
|
247
|
-
16
|
248
|
-
new_from_literal
|
249
|
-
s
|
250
|
-
1
|
251
|
-
A
|
252
|
-
s
|
253
|
-
3
|
254
|
-
aye
|
255
|
-
x
|
256
|
-
3
|
257
|
-
[]=
|
258
|
-
s
|
259
|
-
1
|
260
|
-
B
|
261
|
-
s
|
262
|
-
3
|
263
|
-
bee
|
264
|
-
s
|
265
|
-
1
|
266
|
-
C
|
267
|
-
s
|
268
|
-
3
|
269
|
-
see
|
270
|
-
M
|
271
|
-
1
|
272
|
-
n
|
273
|
-
n
|
274
|
-
x
|
275
|
-
9
|
276
|
-
__block__
|
277
|
-
i
|
278
|
-
40
|
279
|
-
55
|
280
|
-
33
|
281
|
-
34
|
282
|
-
17
|
283
|
-
0
|
284
|
-
14
|
285
|
-
34
|
286
|
-
17
|
287
|
-
1
|
288
|
-
14
|
289
|
-
14
|
290
|
-
5
|
291
|
-
18
|
292
|
-
0
|
293
|
-
45
|
294
|
-
0
|
295
|
-
44
|
296
|
-
45
|
297
|
-
1
|
298
|
-
7
|
299
|
-
2
|
300
|
-
60
|
301
|
-
18
|
302
|
-
1
|
303
|
-
44
|
304
|
-
45
|
305
|
-
1
|
306
|
-
7
|
307
|
-
3
|
308
|
-
60
|
309
|
-
59
|
310
|
-
59
|
311
|
-
59
|
312
|
-
53
|
313
|
-
4
|
314
|
-
44
|
315
|
-
47
|
316
|
-
5
|
317
|
-
1
|
318
|
-
11
|
319
|
-
I
|
320
|
-
8
|
321
|
-
I
|
322
|
-
2
|
323
|
-
I
|
324
|
-
2
|
325
|
-
I
|
326
|
-
2
|
327
|
-
n
|
328
|
-
p
|
329
|
-
6
|
330
|
-
x
|
331
|
-
7
|
332
|
-
inspect
|
333
|
-
x
|
334
|
-
4
|
335
|
-
to_s
|
336
|
-
s
|
337
|
-
5
|
338
|
-
for
|
339
|
-
s
|
340
|
-
8
|
341
|
-
returns
|
342
|
-
M
|
343
|
-
1
|
344
|
-
n
|
345
|
-
n
|
346
|
-
x
|
347
|
-
9
|
348
|
-
__block__
|
349
|
-
i
|
350
|
-
21
|
351
|
-
42
|
352
|
-
0
|
353
|
-
1
|
354
|
-
19
|
355
|
-
1
|
356
|
-
0
|
357
|
-
33
|
358
|
-
1
|
359
|
-
48
|
360
|
-
2
|
361
|
-
0
|
362
|
-
45
|
363
|
-
3
|
364
|
-
45
|
365
|
-
4
|
366
|
-
19
|
367
|
-
1
|
368
|
-
1
|
369
|
-
79
|
370
|
-
5
|
371
|
-
11
|
372
|
-
I
|
373
|
-
4
|
374
|
-
I
|
375
|
-
0
|
376
|
-
I
|
377
|
-
-1
|
378
|
-
I
|
379
|
-
-1
|
380
|
-
n
|
381
|
-
p
|
382
|
-
6
|
383
|
-
x
|
384
|
-
7
|
385
|
-
Hamster
|
386
|
-
n
|
387
|
-
x
|
388
|
-
4
|
389
|
-
hash
|
390
|
-
x
|
391
|
-
6
|
392
|
-
empty?
|
393
|
-
x
|
394
|
-
6
|
395
|
-
should
|
396
|
-
x
|
397
|
-
2
|
398
|
-
==
|
399
|
-
p
|
400
|
-
5
|
401
|
-
I
|
402
|
-
0
|
403
|
-
I
|
404
|
-
f
|
405
|
-
I
|
406
|
-
0
|
407
|
-
I
|
408
|
-
10
|
409
|
-
I
|
410
|
-
15
|
411
|
-
x
|
412
|
-
33
|
413
|
-
./spec/hamster/hash/empty_spec.rb
|
414
|
-
p
|
415
|
-
0
|
416
|
-
x
|
417
|
-
2
|
418
|
-
it
|
419
|
-
p
|
420
|
-
7
|
421
|
-
I
|
422
|
-
0
|
423
|
-
I
|
424
|
-
a
|
425
|
-
I
|
426
|
-
3
|
427
|
-
I
|
428
|
-
d
|
429
|
-
I
|
430
|
-
b
|
431
|
-
I
|
432
|
-
f
|
433
|
-
I
|
434
|
-
28
|
435
|
-
x
|
436
|
-
33
|
437
|
-
./spec/hamster/hash/empty_spec.rb
|
438
|
-
p
|
439
|
-
2
|
440
|
-
x
|
441
|
-
5
|
442
|
-
pairs
|
443
|
-
x
|
444
|
-
6
|
445
|
-
result
|
446
|
-
x
|
447
|
-
4
|
448
|
-
each
|
449
|
-
p
|
450
|
-
9
|
451
|
-
I
|
452
|
-
0
|
453
|
-
I
|
454
|
-
7
|
455
|
-
I
|
456
|
-
0
|
457
|
-
I
|
458
|
-
a
|
459
|
-
I
|
460
|
-
5
|
461
|
-
I
|
462
|
-
b
|
463
|
-
I
|
464
|
-
1c
|
465
|
-
I
|
466
|
-
c
|
467
|
-
I
|
468
|
-
52
|
469
|
-
x
|
470
|
-
33
|
471
|
-
./spec/hamster/hash/empty_spec.rb
|
472
|
-
p
|
473
|
-
0
|
474
|
-
x
|
475
|
-
8
|
476
|
-
describe
|
477
|
-
p
|
478
|
-
5
|
479
|
-
I
|
480
|
-
0
|
481
|
-
I
|
482
|
-
5
|
483
|
-
I
|
484
|
-
0
|
485
|
-
I
|
486
|
-
7
|
487
|
-
I
|
488
|
-
b
|
489
|
-
x
|
490
|
-
33
|
491
|
-
./spec/hamster/hash/empty_spec.rb
|
492
|
-
p
|
493
|
-
0
|
494
|
-
x
|
495
|
-
8
|
496
|
-
describe
|
497
|
-
p
|
498
|
-
7
|
499
|
-
I
|
500
|
-
0
|
501
|
-
I
|
502
|
-
1
|
503
|
-
I
|
504
|
-
1a
|
505
|
-
I
|
506
|
-
3
|
507
|
-
I
|
508
|
-
23
|
509
|
-
I
|
510
|
-
5
|
511
|
-
I
|
512
|
-
32
|
513
|
-
x
|
514
|
-
33
|
515
|
-
./spec/hamster/hash/empty_spec.rb
|
516
|
-
p
|
517
|
-
0
|