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,555 +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
- 13
99
- hamster/stack
100
- x
101
- 7
102
- Hamster
103
- n
104
- x
105
- 5
106
- Stack
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
- 3
141
- dup
142
- x
143
- 5
144
- clone
145
- M
146
- 1
147
- n
148
- n
149
- x
150
- 9
151
- __block__
152
- i
153
- 30
154
- 54
155
- 17
156
- 0
157
- 14
158
- 32
159
- 0
160
- 7
161
- 0
162
- 60
163
- 32
164
- 1
165
- 7
166
- 0
167
- 60
168
- 7
169
- 1
170
- 60
171
- 7
172
- 2
173
- 60
174
- 32
175
- 3
176
- 32
177
- 3
178
- 53
179
- 3
180
- 47
181
- 4
182
- 0
183
- 11
184
- I
185
- 7
186
- I
187
- 1
188
- I
189
- 1
190
- I
191
- 1
192
- n
193
- p
194
- 5
195
- s
196
- 1
197
- A
198
- s
199
- 1
200
- B
201
- s
202
- 1
203
- C
204
- M
205
- 1
206
- n
207
- n
208
- x
209
- 9
210
- __block__
211
- i
212
- 23
213
- 54
214
- 17
215
- 0
216
- 14
217
- 5
218
- 18
219
- 0
220
- 45
221
- 0
222
- 44
223
- 45
224
- 1
225
- 7
226
- 2
227
- 60
228
- 59
229
- 53
230
- 3
231
- 44
232
- 47
233
- 4
234
- 1
235
- 11
236
- I
237
- 5
238
- I
239
- 1
240
- I
241
- 1
242
- I
243
- 1
244
- n
245
- p
246
- 5
247
- x
248
- 7
249
- inspect
250
- x
251
- 4
252
- to_s
253
- s
254
- 3
255
- on
256
- M
257
- 1
258
- n
259
- n
260
- x
261
- 9
262
- __block__
263
- i
264
- 19
265
- 5
266
- 53
267
- 0
268
- 44
269
- 47
270
- 1
271
- 0
272
- 14
273
- 5
274
- 7
275
- 2
276
- 60
277
- 53
278
- 3
279
- 44
280
- 47
281
- 4
282
- 1
283
- 11
284
- I
285
- 4
286
- I
287
- 0
288
- I
289
- -1
290
- I
291
- -1
292
- n
293
- p
294
- 5
295
- M
296
- 1
297
- n
298
- n
299
- x
300
- 9
301
- __block__
302
- i
303
- 14
304
- 42
305
- 0
306
- 1
307
- 19
308
- 2
309
- 0
310
- 33
311
- 1
312
- 48
313
- 2
314
- 0
315
- 35
316
- 3
317
- 11
318
- I
319
- 4
320
- I
321
- 0
322
- I
323
- -1
324
- I
325
- -1
326
- n
327
- p
328
- 4
329
- x
330
- 7
331
- Hamster
332
- n
333
- x
334
- 5
335
- stack
336
- x
337
- 6
338
- @stack
339
- p
340
- 5
341
- I
342
- 0
343
- I
344
- 11
345
- I
346
- 0
347
- I
348
- 12
349
- I
350
- e
351
- x
352
- 36
353
- ./spec/hamster/stack/copying_spec.rb
354
- p
355
- 0
356
- x
357
- 6
358
- before
359
- s
360
- 12
361
- returns self
362
- M
363
- 1
364
- n
365
- n
366
- x
367
- 9
368
- __block__
369
- i
370
- 19
371
- 36
372
- 0
373
- 19
374
- 3
375
- 0
376
- 46
377
- 1
378
- 1
379
- 5
380
- 36
381
- 0
382
- 44
383
- 46
384
- 2
385
- 1
386
- 46
387
- 3
388
- 1
389
- 11
390
- I
391
- 4
392
- I
393
- 0
394
- I
395
- -1
396
- I
397
- -1
398
- n
399
- p
400
- 4
401
- x
402
- 6
403
- @stack
404
- x
405
- 4
406
- send
407
- x
408
- 5
409
- equal
410
- x
411
- 6
412
- should
413
- p
414
- 5
415
- I
416
- 0
417
- I
418
- 15
419
- I
420
- 0
421
- I
422
- 16
423
- I
424
- 13
425
- x
426
- 36
427
- ./spec/hamster/stack/copying_spec.rb
428
- p
429
- 0
430
- x
431
- 2
432
- it
433
- p
434
- 7
435
- I
436
- 0
437
- I
438
- f
439
- I
440
- 0
441
- I
442
- 11
443
- I
444
- 8
445
- I
446
- 15
447
- I
448
- 13
449
- x
450
- 36
451
- ./spec/hamster/stack/copying_spec.rb
452
- p
453
- 0
454
- x
455
- 8
456
- describe
457
- p
458
- 7
459
- I
460
- 0
461
- I
462
- a
463
- I
464
- 1
465
- I
466
- d
467
- I
468
- 4
469
- I
470
- f
471
- I
472
- 17
473
- x
474
- 36
475
- ./spec/hamster/stack/copying_spec.rb
476
- p
477
- 1
478
- x
479
- 6
480
- values
481
- x
482
- 4
483
- each
484
- p
485
- 9
486
- I
487
- 0
488
- I
489
- 7
490
- I
491
- 4
492
- I
493
- a
494
- I
495
- 6
496
- I
497
- b
498
- I
499
- b
500
- I
501
- c
502
- I
503
- 1e
504
- x
505
- 36
506
- ./spec/hamster/stack/copying_spec.rb
507
- p
508
- 1
509
- x
510
- 6
511
- method
512
- x
513
- 4
514
- each
515
- p
516
- 5
517
- I
518
- 0
519
- I
520
- 5
521
- I
522
- 0
523
- I
524
- 7
525
- I
526
- c
527
- x
528
- 36
529
- ./spec/hamster/stack/copying_spec.rb
530
- p
531
- 0
532
- x
533
- 8
534
- describe
535
- p
536
- 7
537
- I
538
- 0
539
- I
540
- 1
541
- I
542
- 1a
543
- I
544
- 3
545
- I
546
- 23
547
- I
548
- 5
549
- I
550
- 32
551
- x
552
- 36
553
- ./spec/hamster/stack/copying_spec.rb
554
- p
555
- 0