hamster 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +16 -0
- data/lib/hamster/core_ext/enumerable.rb +9 -1
- data/lib/hamster/hash.rb +7 -0
- data/lib/hamster/list.rb +110 -109
- data/lib/hamster/set.rb +4 -3
- data/lib/hamster/sorter.rb +19 -0
- data/lib/hamster/tuple.rb +7 -0
- data/lib/hamster/version.rb +1 -1
- data/spec/hamster/core_ext/array_spec.rb +20 -0
- data/spec/hamster/core_ext/enumerable_spec.rb +1 -1
- data/spec/hamster/core_ext/io_spec.rb +1 -1
- data/spec/hamster/hash/all_spec.rb +1 -1
- data/spec/hamster/hash/any_spec.rb +1 -1
- data/spec/hamster/hash/construction_spec.rb +1 -1
- data/spec/hamster/hash/copying_spec.rb +1 -1
- data/spec/hamster/hash/delete_spec.rb +1 -1
- data/spec/hamster/hash/each_spec.rb +1 -1
- data/spec/hamster/hash/empty_spec.rb +1 -1
- data/spec/hamster/hash/eql_spec.rb +1 -1
- data/spec/hamster/hash/filter_spec.rb +1 -1
- data/spec/hamster/hash/find_spec.rb +58 -0
- data/spec/hamster/hash/get_spec.rb +1 -1
- data/spec/hamster/hash/has_key_spec.rb +7 -3
- data/spec/hamster/hash/inspect_spec.rb +1 -1
- data/spec/hamster/hash/map_spec.rb +1 -1
- data/spec/hamster/hash/none_spec.rb +1 -1
- data/spec/hamster/hash/put_spec.rb +1 -1
- data/spec/hamster/hash/reduce_spec.rb +1 -1
- data/spec/hamster/hash/remove_spec.rb +1 -1
- data/spec/hamster/hash/size_spec.rb +1 -1
- data/spec/hamster/hash/uniq_spec.rb +1 -1
- data/spec/hamster/list/all_spec.rb +1 -1
- data/spec/hamster/list/any_spec.rb +1 -1
- data/spec/hamster/list/append_spec.rb +1 -1
- data/spec/hamster/list/at_spec.rb +1 -1
- data/spec/hamster/list/break_spec.rb +1 -1
- data/spec/hamster/list/cadr_spec.rb +1 -1
- data/spec/hamster/list/chunk_spec.rb +1 -1
- data/spec/hamster/list/clear_spec.rb +1 -1
- data/spec/hamster/list/combinations_spec.rb +1 -1
- data/spec/hamster/list/compact_spec.rb +1 -1
- data/spec/hamster/list/cons_spec.rb +1 -1
- data/spec/hamster/list/construction_spec.rb +1 -1
- data/spec/hamster/list/copying_spec.rb +1 -1
- data/spec/hamster/list/count_spec.rb +1 -1
- data/spec/hamster/list/cycle_spec.rb +1 -1
- data/spec/hamster/list/drop_spec.rb +1 -1
- data/spec/hamster/list/drop_while_spec.rb +1 -1
- data/spec/hamster/list/each_slice_spec.rb +1 -1
- data/spec/hamster/list/each_spec.rb +1 -1
- data/spec/hamster/list/elem_index_spec.rb +58 -0
- data/spec/hamster/list/elem_indices_spec.rb +45 -0
- data/spec/hamster/list/empty_spec.rb +1 -1
- data/spec/hamster/list/eql_spec.rb +1 -1
- data/spec/hamster/list/filter_spec.rb +1 -1
- data/spec/hamster/list/find_index_spec.rb +58 -0
- data/spec/hamster/list/find_indices_spec.rb +45 -0
- data/spec/hamster/list/find_spec.rb +1 -1
- data/spec/hamster/list/flatten_spec.rb +1 -1
- data/spec/hamster/list/grep_spec.rb +1 -1
- data/spec/hamster/list/group_by_spec.rb +1 -1
- data/spec/hamster/list/head_spec.rb +1 -1
- data/spec/hamster/list/include_spec.rb +1 -1
- data/spec/hamster/list/init_spec.rb +1 -1
- data/spec/hamster/list/inits_spec.rb +1 -1
- data/spec/hamster/list/inspect_spec.rb +1 -1
- data/spec/hamster/list/intersperse_spec.rb +1 -1
- data/spec/hamster/list/join_spec.rb +1 -1
- data/spec/hamster/list/last_spec.rb +1 -1
- data/spec/hamster/list/map_spec.rb +1 -1
- data/spec/hamster/list/maximum_spec.rb +1 -1
- data/spec/hamster/list/minimum_spec.rb +1 -1
- data/spec/hamster/list/none_spec.rb +1 -1
- data/spec/hamster/list/one_spec.rb +2 -2
- data/spec/hamster/list/partition_spec.rb +1 -1
- data/spec/hamster/list/product_spec.rb +1 -1
- data/spec/hamster/list/reduce_spec.rb +1 -1
- data/spec/hamster/list/remove_spec.rb +1 -1
- data/spec/hamster/list/reverse_spec.rb +1 -1
- data/spec/hamster/list/size_spec.rb +1 -1
- data/spec/hamster/list/slice_spec.rb +1 -1
- data/spec/hamster/list/sorting_spec.rb +1 -1
- data/spec/hamster/list/span_spec.rb +1 -1
- data/spec/hamster/list/split_at_spec.rb +1 -1
- data/spec/hamster/list/sum_spec.rb +1 -1
- data/spec/hamster/list/tail_spec.rb +1 -1
- data/spec/hamster/list/tails_spec.rb +1 -1
- data/spec/hamster/list/take_spec.rb +1 -1
- data/spec/hamster/list/take_while_spec.rb +1 -1
- data/spec/hamster/list/to_a_spec.rb +1 -1
- data/spec/hamster/list/to_ary_spec.rb +1 -1
- data/spec/hamster/list/to_list_spec.rb +1 -1
- data/spec/hamster/list/union_spec.rb +1 -1
- data/spec/hamster/list/uniq_spec.rb +1 -1
- data/spec/hamster/list/zip_spec.rb +1 -1
- data/spec/hamster/set/add_spec.rb +1 -1
- data/spec/hamster/set/all_spec.rb +1 -1
- data/spec/hamster/set/any_spec.rb +1 -1
- data/spec/hamster/set/clear_spec.rb +1 -1
- data/spec/hamster/set/compact_spec.rb +1 -1
- data/spec/hamster/set/construction_spec.rb +1 -1
- data/spec/hamster/set/copying_spec.rb +1 -1
- data/spec/hamster/set/count_spec.rb +1 -1
- data/spec/hamster/set/delete_spec.rb +1 -1
- data/spec/hamster/set/each_spec.rb +1 -1
- data/spec/hamster/set/empty_spec.rb +1 -1
- data/spec/hamster/set/eql_spec.rb +1 -1
- data/spec/hamster/set/filter_spec.rb +1 -1
- data/spec/hamster/set/find_spec.rb +1 -1
- data/spec/hamster/set/grep_spec.rb +1 -1
- data/spec/hamster/set/group_by_spec.rb +1 -1
- data/spec/hamster/set/head_spec.rb +1 -1
- data/spec/hamster/set/include_spec.rb +1 -1
- data/spec/hamster/set/inspect_spec.rb +1 -1
- data/spec/hamster/set/join_spec.rb +1 -1
- data/spec/hamster/set/map_spec.rb +1 -1
- data/spec/hamster/set/maximum_spec.rb +1 -1
- data/spec/hamster/set/minimum_spec.rb +1 -1
- data/spec/hamster/set/none_spec.rb +1 -1
- data/spec/hamster/set/one_spec.rb +2 -2
- data/spec/hamster/set/partition_spec.rb +1 -1
- data/spec/hamster/set/product_spec.rb +1 -1
- data/spec/hamster/set/reduce_spec.rb +1 -1
- data/spec/hamster/set/remove_spec.rb +1 -1
- data/spec/hamster/set/size_spec.rb +1 -1
- data/spec/hamster/set/sorting_spec.rb +1 -1
- data/spec/hamster/set/sum_spec.rb +1 -1
- data/spec/hamster/set/to_a_spec.rb +1 -1
- data/spec/hamster/set/to_list_spec.rb +1 -1
- data/spec/hamster/set/to_set_spec.rb +1 -1
- data/spec/hamster/set/uniq_spec.rb +1 -1
- data/spec/hamster/stack/clear_spec.rb +1 -1
- data/spec/hamster/stack/construction_spec.rb +1 -1
- data/spec/hamster/stack/copying_spec.rb +1 -1
- data/spec/hamster/stack/empty_spec.rb +1 -1
- data/spec/hamster/stack/eql_spec.rb +1 -1
- data/spec/hamster/stack/inspect_spec.rb +1 -1
- data/spec/hamster/stack/pop_spec.rb +1 -1
- data/spec/hamster/stack/push_spec.rb +1 -1
- data/spec/hamster/stack/size_spec.rb +1 -1
- data/spec/hamster/stack/to_a_spec.rb +1 -1
- data/spec/hamster/stack/to_list_spec.rb +1 -1
- data/spec/hamster/stack/top_spec.rb +1 -1
- data/spec/hamster/trie/remove_spec.rb +1 -1
- data/spec/hamster/tuple/copying_spec.rb +1 -1
- data/spec/hamster/tuple/eql_spec.rb +61 -0
- data/spec/hamster/tuple/first_spec.rb +1 -1
- data/spec/hamster/tuple/inspect_spec.rb +1 -1
- data/spec/hamster/tuple/last_spec.rb +1 -1
- data/spec/hamster/tuple/to_a_spec.rb +1 -1
- data/spec/hamster/tuple/to_ary_spec.rb +1 -1
- data/spec/spec_helper.rb +9 -6
- metadata +20 -148
- data/lib/hamster.rbc +0 -133
- data/lib/hamster/core_ext.rbc +0 -69
- data/lib/hamster/core_ext/enumerable.rbc +0 -481
- data/lib/hamster/core_ext/io.rbc +0 -652
- data/lib/hamster/hash.rbc +0 -3537
- data/lib/hamster/list.rbc +0 -14428
- data/lib/hamster/set.rbc +0 -5541
- data/lib/hamster/stack.rbc +0 -1623
- data/lib/hamster/trie.rbc +0 -3449
- data/lib/hamster/tuple.rbc +0 -800
- data/lib/hamster/version.rbc +0 -143
- data/spec/hamster/core_ext/enumerable_spec.rbc +0 -751
- data/spec/hamster/core_ext/io_spec.rbc +0 -413
- data/spec/hamster/hash/all_spec.rbc +0 -1312
- data/spec/hamster/hash/any_spec.rbc +0 -1501
- data/spec/hamster/hash/construction_spec.rbc +0 -750
- data/spec/hamster/hash/copying_spec.rbc +0 -524
- data/spec/hamster/hash/delete_spec.rbc +0 -1146
- data/spec/hamster/hash/each_spec.rbc +0 -997
- data/spec/hamster/hash/empty_spec.rbc +0 -597
- data/spec/hamster/hash/eql_spec.rbc +0 -1704
- data/spec/hamster/hash/filter_spec.rbc +0 -1450
- data/spec/hamster/hash/get_spec.rbc +0 -793
- data/spec/hamster/hash/has_key_spec.rbc +0 -720
- data/spec/hamster/hash/inspect_spec.rbc +0 -658
- data/spec/hamster/hash/map_spec.rbc +0 -1471
- data/spec/hamster/hash/none_spec.rbc +0 -1404
- data/spec/hamster/hash/put_spec.rbc +0 -1346
- data/spec/hamster/hash/reduce_spec.rbc +0 -1255
- data/spec/hamster/hash/remove_spec.rbc +0 -1467
- data/spec/hamster/hash/size_spec.rbc +0 -598
- data/spec/hamster/hash/uniq_spec.rbc +0 -529
- data/spec/hamster/list/all_spec.rbc +0 -2158
- data/spec/hamster/list/any_spec.rbc +0 -1751
- data/spec/hamster/list/append_spec.rbc +0 -1193
- data/spec/hamster/list/break_spec.rbc +0 -1804
- data/spec/hamster/list/cadr_spec.rbc +0 -1065
- data/spec/hamster/list/chunk_spec.rbc +0 -920
- data/spec/hamster/list/clear_spec.rbc +0 -635
- data/spec/hamster/list/combinations_spec.rbc +0 -1308
- data/spec/hamster/list/compact_spec.rbc +0 -987
- data/spec/hamster/list/cons_spec.rbc +0 -853
- data/spec/hamster/list/construction_spec.rbc +0 -2532
- data/spec/hamster/list/copying_spec.rbc +0 -576
- data/spec/hamster/list/count_spec.rbc +0 -1216
- data/spec/hamster/list/cycle_spec.rbc +0 -1003
- data/spec/hamster/list/drop_spec.rbc +0 -949
- data/spec/hamster/list/drop_while_spec.rbc +0 -1289
- data/spec/hamster/list/each_slice_spec.rbc +0 -1659
- data/spec/hamster/list/each_spec.rbc +0 -1403
- data/spec/hamster/list/empty_spec.rbc +0 -947
- data/spec/hamster/list/eql_spec.rbc +0 -1669
- data/spec/hamster/list/filter_spec.rbc +0 -1379
- data/spec/hamster/list/find_spec.rbc +0 -1322
- data/spec/hamster/list/flatten_spec.rbc +0 -954
- data/spec/hamster/list/grep_spec.rbc +0 -1517
- data/spec/hamster/list/group_by_spec.rbc +0 -1536
- data/spec/hamster/list/head_spec.rbc +0 -948
- data/spec/hamster/list/include_spec.rbc +0 -1044
- data/spec/hamster/list/init_spec.rbc +0 -877
- data/spec/hamster/list/inits_spec.rbc +0 -988
- data/spec/hamster/list/inspect_spec.rbc +0 -855
- data/spec/hamster/list/intersperse_spec.rbc +0 -912
- data/spec/hamster/list/join_spec.rbc +0 -1357
- data/spec/hamster/list/last_spec.rbc +0 -856
- data/spec/hamster/list/map_spec.rbc +0 -1548
- data/spec/hamster/list/maximum_spec.rbc +0 -1498
- data/spec/hamster/list/minimum_spec.rbc +0 -1498
- data/spec/hamster/list/none_spec.rbc +0 -1647
- data/spec/hamster/list/one_spec.rbc +0 -1664
- data/spec/hamster/list/partition_spec.rbc +0 -1528
- data/spec/hamster/list/product_spec.rbc +0 -844
- data/spec/hamster/list/reduce_spec.rbc +0 -1943
- data/spec/hamster/list/remove_spec.rbc +0 -1518
- data/spec/hamster/list/reverse_spec.rbc +0 -1204
- data/spec/hamster/list/size_spec.rbc +0 -920
- data/spec/hamster/list/sorting_spec.rbc +0 -1612
- data/spec/hamster/list/span_spec.rbc +0 -1798
- data/spec/hamster/list/split_at_spec.rbc +0 -1139
- data/spec/hamster/list/sum_spec.rbc +0 -842
- data/spec/hamster/list/tail_spec.rbc +0 -994
- data/spec/hamster/list/tails_spec.rbc +0 -988
- data/spec/hamster/list/take_spec.rbc +0 -943
- data/spec/hamster/list/take_while_spec.rbc +0 -1399
- data/spec/hamster/list/to_a_spec.rbc +0 -1140
- data/spec/hamster/list/to_ary_spec.rbc +0 -1128
- data/spec/hamster/list/to_list_spec.rbc +0 -561
- data/spec/hamster/list/union_spec.rbc +0 -1147
- data/spec/hamster/list/uniq_spec.rbc +0 -1007
- data/spec/hamster/list/zip_spec.rbc +0 -1020
- data/spec/hamster/set/add_spec.rbc +0 -1051
- data/spec/hamster/set/all_spec.rbc +0 -1418
- data/spec/hamster/set/any_spec.rbc +0 -1449
- data/spec/hamster/set/compact_spec.rbc +0 -807
- data/spec/hamster/set/construction_spec.rbc +0 -426
- data/spec/hamster/set/copying_spec.rbc +0 -474
- data/spec/hamster/set/count_spec.rbc +0 -953
- data/spec/hamster/set/delete_spec.rbc +0 -958
- data/spec/hamster/set/each_spec.rbc +0 -909
- data/spec/hamster/set/empty_spec.rbc +0 -656
- data/spec/hamster/set/eql_spec.rbc +0 -1311
- data/spec/hamster/set/filter_spec.rbc +0 -1289
- data/spec/hamster/set/find_spec.rbc +0 -1017
- data/spec/hamster/set/grep_spec.rbc +0 -1181
- data/spec/hamster/set/group_by_spec.rbc +0 -1276
- data/spec/hamster/set/head_spec.rbc +0 -659
- data/spec/hamster/set/include_spec.rbc +0 -668
- data/spec/hamster/set/inspect_spec.rbc +0 -593
- data/spec/hamster/set/join_spec.rbc +0 -1075
- data/spec/hamster/set/map_spec.rbc +0 -1302
- data/spec/hamster/set/maximum_spec.rbc +0 -1334
- data/spec/hamster/set/minimum_spec.rbc +0 -1334
- data/spec/hamster/set/none_spec.rbc +0 -1348
- data/spec/hamster/set/one_spec.rbc +0 -1708
- data/spec/hamster/set/partition_spec.rbc +0 -1348
- data/spec/hamster/set/product_spec.rbc +0 -581
- data/spec/hamster/set/reduce_spec.rbc +0 -1198
- data/spec/hamster/set/remove_spec.rbc +0 -1295
- data/spec/hamster/set/size_spec.rbc +0 -533
- data/spec/hamster/set/sorting_spec.rbc +0 -1228
- data/spec/hamster/set/sum_spec.rbc +0 -579
- data/spec/hamster/set/to_a_spec.rbc +0 -774
- data/spec/hamster/set/to_list_spec.rbc +0 -862
- data/spec/hamster/set/to_set_spec.rbc +0 -561
- data/spec/hamster/set/uniq_spec.rbc +0 -479
- data/spec/hamster/stack/clear_spec.rbc +0 -635
- data/spec/hamster/stack/construction_spec.rbc +0 -872
- data/spec/hamster/stack/copying_spec.rbc +0 -561
- data/spec/hamster/stack/empty_spec.rbc +0 -577
- data/spec/hamster/stack/eql_spec.rbc +0 -1283
- data/spec/hamster/stack/inspect_spec.rbc +0 -592
- data/spec/hamster/stack/pop_spec.rbc +0 -1098
- data/spec/hamster/stack/push_spec.rbc +0 -853
- data/spec/hamster/stack/size_spec.rbc +0 -657
- data/spec/hamster/stack/to_a_spec.rbc +0 -801
- data/spec/hamster/stack/to_list_spec.rbc +0 -635
- data/spec/hamster/stack/top_spec.rbc +0 -683
- data/spec/hamster/trie/remove_spec.rbc +0 -40
- data/spec/hamster/tuple/copying_spec.rbc +0 -511
- data/spec/hamster/tuple/first_spec.rbc +0 -423
- data/spec/hamster/tuple/inspect_spec.rbc +0 -423
- data/spec/hamster/tuple/last_spec.rbc +0 -423
- data/spec/hamster/tuple/to_a_spec.rbc +0 -803
- data/spec/hamster/tuple/to_ary_spec.rbc +0 -908
- data/spec/spec_helper.rbc +0 -184
- data/tasks/spec.rbc +0 -202
data/spec/spec_helper.rb
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
-
|
1
|
+
# Common spec-related code goes here
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
STACK_OVERFLOW_DEPTH = begin
|
4
|
+
def calculate_stack_overflow_depth(n)
|
5
|
+
calculate_stack_overflow_depth(n + 1)
|
6
|
+
rescue SystemStackError
|
7
|
+
n
|
8
|
+
end
|
9
|
+
calculate_stack_overflow_depth(2)
|
10
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hamster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Harris
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-29 00:00:00 +11:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -22,6 +22,16 @@ dependencies:
|
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 1.2.9
|
24
24
|
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: diff-lcs
|
27
|
+
type: :development
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.1.2
|
34
|
+
version:
|
25
35
|
description: Efficient, Immutable, Thread-Safe Collection classes for Ruby
|
26
36
|
email: haruki.zaemon@gmail.com
|
27
37
|
executables: []
|
@@ -34,302 +44,164 @@ extra_rdoc_files:
|
|
34
44
|
- LICENSE
|
35
45
|
files:
|
36
46
|
- lib/hamster/core_ext/enumerable.rb
|
37
|
-
- lib/hamster/core_ext/enumerable.rbc
|
38
47
|
- lib/hamster/core_ext/io.rb
|
39
|
-
- lib/hamster/core_ext/io.rbc
|
40
48
|
- lib/hamster/core_ext.rb
|
41
|
-
- lib/hamster/core_ext.rbc
|
42
49
|
- lib/hamster/hash.rb
|
43
|
-
- lib/hamster/hash.rbc
|
44
50
|
- lib/hamster/list.rb
|
45
|
-
- lib/hamster/list.rbc
|
46
51
|
- lib/hamster/set.rb
|
47
|
-
- lib/hamster/
|
52
|
+
- lib/hamster/sorter.rb
|
48
53
|
- lib/hamster/stack.rb
|
49
|
-
- lib/hamster/stack.rbc
|
50
54
|
- lib/hamster/trie.rb
|
51
|
-
- lib/hamster/trie.rbc
|
52
55
|
- lib/hamster/tuple.rb
|
53
|
-
- lib/hamster/tuple.rbc
|
54
56
|
- lib/hamster/version.rb
|
55
|
-
- lib/hamster/version.rbc
|
56
57
|
- lib/hamster.rb
|
57
|
-
-
|
58
|
+
- spec/hamster/core_ext/array_spec.rb
|
58
59
|
- spec/hamster/core_ext/enumerable_spec.rb
|
59
|
-
- spec/hamster/core_ext/enumerable_spec.rbc
|
60
60
|
- spec/hamster/core_ext/io_spec.rb
|
61
|
-
- spec/hamster/core_ext/io_spec.rbc
|
62
61
|
- spec/hamster/core_ext/io_spec.txt
|
63
62
|
- spec/hamster/hash/all_spec.rb
|
64
|
-
- spec/hamster/hash/all_spec.rbc
|
65
63
|
- spec/hamster/hash/any_spec.rb
|
66
|
-
- spec/hamster/hash/any_spec.rbc
|
67
64
|
- spec/hamster/hash/construction_spec.rb
|
68
|
-
- spec/hamster/hash/construction_spec.rbc
|
69
65
|
- spec/hamster/hash/copying_spec.rb
|
70
|
-
- spec/hamster/hash/copying_spec.rbc
|
71
66
|
- spec/hamster/hash/delete_spec.rb
|
72
|
-
- spec/hamster/hash/delete_spec.rbc
|
73
67
|
- spec/hamster/hash/each_spec.rb
|
74
|
-
- spec/hamster/hash/each_spec.rbc
|
75
68
|
- spec/hamster/hash/empty_spec.rb
|
76
|
-
- spec/hamster/hash/empty_spec.rbc
|
77
69
|
- spec/hamster/hash/eql_spec.rb
|
78
|
-
- spec/hamster/hash/eql_spec.rbc
|
79
70
|
- spec/hamster/hash/filter_spec.rb
|
80
|
-
- spec/hamster/hash/
|
71
|
+
- spec/hamster/hash/find_spec.rb
|
81
72
|
- spec/hamster/hash/get_spec.rb
|
82
|
-
- spec/hamster/hash/get_spec.rbc
|
83
73
|
- spec/hamster/hash/has_key_spec.rb
|
84
|
-
- spec/hamster/hash/has_key_spec.rbc
|
85
74
|
- spec/hamster/hash/inspect_spec.rb
|
86
|
-
- spec/hamster/hash/inspect_spec.rbc
|
87
75
|
- spec/hamster/hash/map_spec.rb
|
88
|
-
- spec/hamster/hash/map_spec.rbc
|
89
76
|
- spec/hamster/hash/none_spec.rb
|
90
|
-
- spec/hamster/hash/none_spec.rbc
|
91
77
|
- spec/hamster/hash/put_spec.rb
|
92
|
-
- spec/hamster/hash/put_spec.rbc
|
93
78
|
- spec/hamster/hash/reduce_spec.rb
|
94
|
-
- spec/hamster/hash/reduce_spec.rbc
|
95
79
|
- spec/hamster/hash/remove_spec.rb
|
96
|
-
- spec/hamster/hash/remove_spec.rbc
|
97
80
|
- spec/hamster/hash/size_spec.rb
|
98
|
-
- spec/hamster/hash/size_spec.rbc
|
99
81
|
- spec/hamster/hash/uniq_spec.rb
|
100
|
-
- spec/hamster/hash/uniq_spec.rbc
|
101
82
|
- spec/hamster/list/all_spec.rb
|
102
|
-
- spec/hamster/list/all_spec.rbc
|
103
83
|
- spec/hamster/list/any_spec.rb
|
104
|
-
- spec/hamster/list/any_spec.rbc
|
105
84
|
- spec/hamster/list/append_spec.rb
|
106
|
-
- spec/hamster/list/append_spec.rbc
|
107
85
|
- spec/hamster/list/at_spec.rb
|
108
86
|
- spec/hamster/list/break_spec.rb
|
109
|
-
- spec/hamster/list/break_spec.rbc
|
110
87
|
- spec/hamster/list/cadr_spec.rb
|
111
|
-
- spec/hamster/list/cadr_spec.rbc
|
112
88
|
- spec/hamster/list/chunk_spec.rb
|
113
|
-
- spec/hamster/list/chunk_spec.rbc
|
114
89
|
- spec/hamster/list/clear_spec.rb
|
115
|
-
- spec/hamster/list/clear_spec.rbc
|
116
90
|
- spec/hamster/list/combinations_spec.rb
|
117
|
-
- spec/hamster/list/combinations_spec.rbc
|
118
91
|
- spec/hamster/list/compact_spec.rb
|
119
|
-
- spec/hamster/list/compact_spec.rbc
|
120
92
|
- spec/hamster/list/cons_spec.rb
|
121
|
-
- spec/hamster/list/cons_spec.rbc
|
122
93
|
- spec/hamster/list/construction_spec.rb
|
123
|
-
- spec/hamster/list/construction_spec.rbc
|
124
94
|
- spec/hamster/list/copying_spec.rb
|
125
|
-
- spec/hamster/list/copying_spec.rbc
|
126
95
|
- spec/hamster/list/count_spec.rb
|
127
|
-
- spec/hamster/list/count_spec.rbc
|
128
96
|
- spec/hamster/list/cycle_spec.rb
|
129
|
-
- spec/hamster/list/cycle_spec.rbc
|
130
97
|
- spec/hamster/list/drop_spec.rb
|
131
|
-
- spec/hamster/list/drop_spec.rbc
|
132
98
|
- spec/hamster/list/drop_while_spec.rb
|
133
|
-
- spec/hamster/list/drop_while_spec.rbc
|
134
99
|
- spec/hamster/list/each_slice_spec.rb
|
135
|
-
- spec/hamster/list/each_slice_spec.rbc
|
136
100
|
- spec/hamster/list/each_spec.rb
|
137
|
-
- spec/hamster/list/
|
101
|
+
- spec/hamster/list/elem_index_spec.rb
|
102
|
+
- spec/hamster/list/elem_indices_spec.rb
|
138
103
|
- spec/hamster/list/empty_spec.rb
|
139
|
-
- spec/hamster/list/empty_spec.rbc
|
140
104
|
- spec/hamster/list/eql_spec.rb
|
141
|
-
- spec/hamster/list/eql_spec.rbc
|
142
105
|
- spec/hamster/list/filter_spec.rb
|
143
|
-
- spec/hamster/list/
|
106
|
+
- spec/hamster/list/find_index_spec.rb
|
107
|
+
- spec/hamster/list/find_indices_spec.rb
|
144
108
|
- spec/hamster/list/find_spec.rb
|
145
|
-
- spec/hamster/list/find_spec.rbc
|
146
109
|
- spec/hamster/list/flatten_spec.rb
|
147
|
-
- spec/hamster/list/flatten_spec.rbc
|
148
110
|
- spec/hamster/list/grep_spec.rb
|
149
|
-
- spec/hamster/list/grep_spec.rbc
|
150
111
|
- spec/hamster/list/group_by_spec.rb
|
151
|
-
- spec/hamster/list/group_by_spec.rbc
|
152
112
|
- spec/hamster/list/head_spec.rb
|
153
|
-
- spec/hamster/list/head_spec.rbc
|
154
113
|
- spec/hamster/list/include_spec.rb
|
155
|
-
- spec/hamster/list/include_spec.rbc
|
156
114
|
- spec/hamster/list/init_spec.rb
|
157
|
-
- spec/hamster/list/init_spec.rbc
|
158
115
|
- spec/hamster/list/inits_spec.rb
|
159
|
-
- spec/hamster/list/inits_spec.rbc
|
160
116
|
- spec/hamster/list/inspect_spec.rb
|
161
|
-
- spec/hamster/list/inspect_spec.rbc
|
162
117
|
- spec/hamster/list/intersperse_spec.rb
|
163
|
-
- spec/hamster/list/intersperse_spec.rbc
|
164
118
|
- spec/hamster/list/join_spec.rb
|
165
|
-
- spec/hamster/list/join_spec.rbc
|
166
119
|
- spec/hamster/list/last_spec.rb
|
167
|
-
- spec/hamster/list/last_spec.rbc
|
168
120
|
- spec/hamster/list/map_spec.rb
|
169
|
-
- spec/hamster/list/map_spec.rbc
|
170
121
|
- spec/hamster/list/maximum_spec.rb
|
171
|
-
- spec/hamster/list/maximum_spec.rbc
|
172
122
|
- spec/hamster/list/minimum_spec.rb
|
173
|
-
- spec/hamster/list/minimum_spec.rbc
|
174
123
|
- spec/hamster/list/none_spec.rb
|
175
|
-
- spec/hamster/list/none_spec.rbc
|
176
124
|
- spec/hamster/list/one_spec.rb
|
177
|
-
- spec/hamster/list/one_spec.rbc
|
178
125
|
- spec/hamster/list/partition_spec.rb
|
179
|
-
- spec/hamster/list/partition_spec.rbc
|
180
126
|
- spec/hamster/list/product_spec.rb
|
181
|
-
- spec/hamster/list/product_spec.rbc
|
182
127
|
- spec/hamster/list/reduce_spec.rb
|
183
|
-
- spec/hamster/list/reduce_spec.rbc
|
184
128
|
- spec/hamster/list/remove_spec.rb
|
185
|
-
- spec/hamster/list/remove_spec.rbc
|
186
129
|
- spec/hamster/list/reverse_spec.rb
|
187
|
-
- spec/hamster/list/reverse_spec.rbc
|
188
130
|
- spec/hamster/list/size_spec.rb
|
189
|
-
- spec/hamster/list/size_spec.rbc
|
190
131
|
- spec/hamster/list/slice_spec.rb
|
191
132
|
- spec/hamster/list/sorting_spec.rb
|
192
|
-
- spec/hamster/list/sorting_spec.rbc
|
193
133
|
- spec/hamster/list/span_spec.rb
|
194
|
-
- spec/hamster/list/span_spec.rbc
|
195
134
|
- spec/hamster/list/split_at_spec.rb
|
196
|
-
- spec/hamster/list/split_at_spec.rbc
|
197
135
|
- spec/hamster/list/sum_spec.rb
|
198
|
-
- spec/hamster/list/sum_spec.rbc
|
199
136
|
- spec/hamster/list/tail_spec.rb
|
200
|
-
- spec/hamster/list/tail_spec.rbc
|
201
137
|
- spec/hamster/list/tails_spec.rb
|
202
|
-
- spec/hamster/list/tails_spec.rbc
|
203
138
|
- spec/hamster/list/take_spec.rb
|
204
|
-
- spec/hamster/list/take_spec.rbc
|
205
139
|
- spec/hamster/list/take_while_spec.rb
|
206
|
-
- spec/hamster/list/take_while_spec.rbc
|
207
140
|
- spec/hamster/list/to_a_spec.rb
|
208
|
-
- spec/hamster/list/to_a_spec.rbc
|
209
141
|
- spec/hamster/list/to_ary_spec.rb
|
210
|
-
- spec/hamster/list/to_ary_spec.rbc
|
211
142
|
- spec/hamster/list/to_list_spec.rb
|
212
|
-
- spec/hamster/list/to_list_spec.rbc
|
213
143
|
- spec/hamster/list/union_spec.rb
|
214
|
-
- spec/hamster/list/union_spec.rbc
|
215
144
|
- spec/hamster/list/uniq_spec.rb
|
216
|
-
- spec/hamster/list/uniq_spec.rbc
|
217
145
|
- spec/hamster/list/zip_spec.rb
|
218
|
-
- spec/hamster/list/zip_spec.rbc
|
219
146
|
- spec/hamster/set/add_spec.rb
|
220
|
-
- spec/hamster/set/add_spec.rbc
|
221
147
|
- spec/hamster/set/all_spec.rb
|
222
|
-
- spec/hamster/set/all_spec.rbc
|
223
148
|
- spec/hamster/set/any_spec.rb
|
224
|
-
- spec/hamster/set/any_spec.rbc
|
225
149
|
- spec/hamster/set/clear_spec.rb
|
226
150
|
- spec/hamster/set/compact_spec.rb
|
227
|
-
- spec/hamster/set/compact_spec.rbc
|
228
151
|
- spec/hamster/set/construction_spec.rb
|
229
|
-
- spec/hamster/set/construction_spec.rbc
|
230
152
|
- spec/hamster/set/copying_spec.rb
|
231
|
-
- spec/hamster/set/copying_spec.rbc
|
232
153
|
- spec/hamster/set/count_spec.rb
|
233
|
-
- spec/hamster/set/count_spec.rbc
|
234
154
|
- spec/hamster/set/delete_spec.rb
|
235
|
-
- spec/hamster/set/delete_spec.rbc
|
236
155
|
- spec/hamster/set/each_spec.rb
|
237
|
-
- spec/hamster/set/each_spec.rbc
|
238
156
|
- spec/hamster/set/empty_spec.rb
|
239
|
-
- spec/hamster/set/empty_spec.rbc
|
240
157
|
- spec/hamster/set/eql_spec.rb
|
241
|
-
- spec/hamster/set/eql_spec.rbc
|
242
158
|
- spec/hamster/set/filter_spec.rb
|
243
|
-
- spec/hamster/set/filter_spec.rbc
|
244
159
|
- spec/hamster/set/find_spec.rb
|
245
|
-
- spec/hamster/set/find_spec.rbc
|
246
160
|
- spec/hamster/set/grep_spec.rb
|
247
|
-
- spec/hamster/set/grep_spec.rbc
|
248
161
|
- spec/hamster/set/group_by_spec.rb
|
249
|
-
- spec/hamster/set/group_by_spec.rbc
|
250
162
|
- spec/hamster/set/head_spec.rb
|
251
|
-
- spec/hamster/set/head_spec.rbc
|
252
163
|
- spec/hamster/set/include_spec.rb
|
253
|
-
- spec/hamster/set/include_spec.rbc
|
254
164
|
- spec/hamster/set/inspect_spec.rb
|
255
|
-
- spec/hamster/set/inspect_spec.rbc
|
256
165
|
- spec/hamster/set/join_spec.rb
|
257
|
-
- spec/hamster/set/join_spec.rbc
|
258
166
|
- spec/hamster/set/map_spec.rb
|
259
|
-
- spec/hamster/set/map_spec.rbc
|
260
167
|
- spec/hamster/set/maximum_spec.rb
|
261
|
-
- spec/hamster/set/maximum_spec.rbc
|
262
168
|
- spec/hamster/set/minimum_spec.rb
|
263
|
-
- spec/hamster/set/minimum_spec.rbc
|
264
169
|
- spec/hamster/set/none_spec.rb
|
265
|
-
- spec/hamster/set/none_spec.rbc
|
266
170
|
- spec/hamster/set/one_spec.rb
|
267
|
-
- spec/hamster/set/one_spec.rbc
|
268
171
|
- spec/hamster/set/partition_spec.rb
|
269
|
-
- spec/hamster/set/partition_spec.rbc
|
270
172
|
- spec/hamster/set/product_spec.rb
|
271
|
-
- spec/hamster/set/product_spec.rbc
|
272
173
|
- spec/hamster/set/reduce_spec.rb
|
273
|
-
- spec/hamster/set/reduce_spec.rbc
|
274
174
|
- spec/hamster/set/remove_spec.rb
|
275
|
-
- spec/hamster/set/remove_spec.rbc
|
276
175
|
- spec/hamster/set/size_spec.rb
|
277
|
-
- spec/hamster/set/size_spec.rbc
|
278
176
|
- spec/hamster/set/sorting_spec.rb
|
279
|
-
- spec/hamster/set/sorting_spec.rbc
|
280
177
|
- spec/hamster/set/sum_spec.rb
|
281
|
-
- spec/hamster/set/sum_spec.rbc
|
282
178
|
- spec/hamster/set/to_a_spec.rb
|
283
|
-
- spec/hamster/set/to_a_spec.rbc
|
284
179
|
- spec/hamster/set/to_list_spec.rb
|
285
|
-
- spec/hamster/set/to_list_spec.rbc
|
286
180
|
- spec/hamster/set/to_set_spec.rb
|
287
|
-
- spec/hamster/set/to_set_spec.rbc
|
288
181
|
- spec/hamster/set/uniq_spec.rb
|
289
|
-
- spec/hamster/set/uniq_spec.rbc
|
290
182
|
- spec/hamster/stack/clear_spec.rb
|
291
|
-
- spec/hamster/stack/clear_spec.rbc
|
292
183
|
- spec/hamster/stack/construction_spec.rb
|
293
|
-
- spec/hamster/stack/construction_spec.rbc
|
294
184
|
- spec/hamster/stack/copying_spec.rb
|
295
|
-
- spec/hamster/stack/copying_spec.rbc
|
296
185
|
- spec/hamster/stack/empty_spec.rb
|
297
|
-
- spec/hamster/stack/empty_spec.rbc
|
298
186
|
- spec/hamster/stack/eql_spec.rb
|
299
|
-
- spec/hamster/stack/eql_spec.rbc
|
300
187
|
- spec/hamster/stack/inspect_spec.rb
|
301
|
-
- spec/hamster/stack/inspect_spec.rbc
|
302
188
|
- spec/hamster/stack/pop_spec.rb
|
303
|
-
- spec/hamster/stack/pop_spec.rbc
|
304
189
|
- spec/hamster/stack/push_spec.rb
|
305
|
-
- spec/hamster/stack/push_spec.rbc
|
306
190
|
- spec/hamster/stack/size_spec.rb
|
307
|
-
- spec/hamster/stack/size_spec.rbc
|
308
191
|
- spec/hamster/stack/to_a_spec.rb
|
309
|
-
- spec/hamster/stack/to_a_spec.rbc
|
310
192
|
- spec/hamster/stack/to_list_spec.rb
|
311
|
-
- spec/hamster/stack/to_list_spec.rbc
|
312
193
|
- spec/hamster/stack/top_spec.rb
|
313
|
-
- spec/hamster/stack/top_spec.rbc
|
314
194
|
- spec/hamster/trie/remove_spec.rb
|
315
|
-
- spec/hamster/trie/remove_spec.rbc
|
316
195
|
- spec/hamster/tuple/copying_spec.rb
|
317
|
-
- spec/hamster/tuple/
|
196
|
+
- spec/hamster/tuple/eql_spec.rb
|
318
197
|
- spec/hamster/tuple/first_spec.rb
|
319
|
-
- spec/hamster/tuple/first_spec.rbc
|
320
198
|
- spec/hamster/tuple/inspect_spec.rb
|
321
|
-
- spec/hamster/tuple/inspect_spec.rbc
|
322
199
|
- spec/hamster/tuple/last_spec.rb
|
323
|
-
- spec/hamster/tuple/last_spec.rbc
|
324
200
|
- spec/hamster/tuple/to_a_spec.rb
|
325
|
-
- spec/hamster/tuple/to_a_spec.rbc
|
326
201
|
- spec/hamster/tuple/to_ary_spec.rb
|
327
|
-
- spec/hamster/tuple/to_ary_spec.rbc
|
328
202
|
- spec/spec.opts
|
329
203
|
- spec/spec_helper.rb
|
330
|
-
- spec/spec_helper.rbc
|
331
204
|
- tasks/spec.rb
|
332
|
-
- tasks/spec.rbc
|
333
205
|
- Rakefile
|
334
206
|
- README.rdoc
|
335
207
|
- History.rdoc
|
data/lib/hamster.rbc
DELETED
@@ -1,133 +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
|
-
56
|
13
|
-
5
|
14
|
-
7
|
15
|
-
0
|
16
|
-
61
|
17
|
-
44
|
18
|
-
46
|
19
|
-
1
|
20
|
-
1
|
21
|
-
14
|
22
|
-
5
|
23
|
-
7
|
24
|
-
2
|
25
|
-
61
|
26
|
-
44
|
27
|
-
46
|
28
|
-
1
|
29
|
-
1
|
30
|
-
14
|
31
|
-
5
|
32
|
-
7
|
33
|
-
3
|
34
|
-
61
|
35
|
-
44
|
36
|
-
46
|
37
|
-
1
|
38
|
-
1
|
39
|
-
14
|
40
|
-
5
|
41
|
-
7
|
42
|
-
4
|
43
|
-
61
|
44
|
-
44
|
45
|
-
46
|
46
|
-
1
|
47
|
-
1
|
48
|
-
14
|
49
|
-
5
|
50
|
-
7
|
51
|
-
5
|
52
|
-
61
|
53
|
-
44
|
54
|
-
46
|
55
|
-
1
|
56
|
-
1
|
57
|
-
14
|
58
|
-
5
|
59
|
-
7
|
60
|
-
6
|
61
|
-
61
|
62
|
-
44
|
63
|
-
46
|
64
|
-
1
|
65
|
-
1
|
66
|
-
14
|
67
|
-
2
|
68
|
-
11
|
69
|
-
I
|
70
|
-
2
|
71
|
-
I
|
72
|
-
0
|
73
|
-
I
|
74
|
-
0
|
75
|
-
I
|
76
|
-
0
|
77
|
-
n
|
78
|
-
p
|
79
|
-
7
|
80
|
-
s
|
81
|
-
16
|
82
|
-
hamster/core_ext
|
83
|
-
x
|
84
|
-
7
|
85
|
-
require
|
86
|
-
s
|
87
|
-
12
|
88
|
-
hamster/list
|
89
|
-
s
|
90
|
-
13
|
91
|
-
hamster/stack
|
92
|
-
s
|
93
|
-
11
|
94
|
-
hamster/set
|
95
|
-
s
|
96
|
-
12
|
97
|
-
hamster/hash
|
98
|
-
s
|
99
|
-
15
|
100
|
-
hamster/version
|
101
|
-
p
|
102
|
-
13
|
103
|
-
I
|
104
|
-
0
|
105
|
-
I
|
106
|
-
1
|
107
|
-
I
|
108
|
-
9
|
109
|
-
I
|
110
|
-
2
|
111
|
-
I
|
112
|
-
12
|
113
|
-
I
|
114
|
-
3
|
115
|
-
I
|
116
|
-
1b
|
117
|
-
I
|
118
|
-
4
|
119
|
-
I
|
120
|
-
24
|
121
|
-
I
|
122
|
-
5
|
123
|
-
I
|
124
|
-
2d
|
125
|
-
I
|
126
|
-
6
|
127
|
-
I
|
128
|
-
38
|
129
|
-
x
|
130
|
-
52
|
131
|
-
/Users/haruki_zaemon/Projects/hamster/lib/hamster.rb
|
132
|
-
p
|
133
|
-
0
|