hamster 0.1.19 → 0.1.20

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