facets 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ProjectInfo +22 -34
- metadata +37 -895
- data/CHANGELOG +0 -254
- data/Rakefile +0 -173
- data/TODO +0 -46
- data/conf/facets/noauto +0 -48
- data/data/facets/index.yml +0 -446
- data/lib/facet/array.rb +0 -33
- data/lib/facet/array/at_rand.rb +0 -52
- data/lib/facet/array/body.rb +0 -2
- data/lib/facet/array/delete_unless.rb +0 -35
- data/lib/facet/array/delete_values.rb +0 -38
- data/lib/facet/array/delete_values_at.rb +0 -57
- data/lib/facet/array/each_with_key.rb +0 -9
- data/lib/facet/array/first.rb +0 -84
- data/lib/facet/array/foot.rb +0 -2
- data/lib/facet/array/head.rb +0 -80
- data/lib/facet/array/last.rb +0 -2
- data/lib/facet/array/last_index.rb +0 -35
- data/lib/facet/array/merge.rb +0 -40
- data/lib/facet/array/mid.rb +0 -50
- data/lib/facet/array/middle.rb +0 -45
- data/lib/facet/array/op_fetch.rb +0 -40
- data/lib/facet/array/op_store.rb +0 -47
- data/lib/facet/array/pick.rb +0 -68
- data/lib/facet/array/pos.rb +0 -39
- data/lib/facet/array/pull.rb +0 -37
- data/lib/facet/array/rand_index.rb +0 -30
- data/lib/facet/array/rand_subset.rb +0 -56
- data/lib/facet/array/range.rb +0 -47
- data/lib/facet/array/rotate.rb +0 -67
- data/lib/facet/array/select.rb +0 -37
- data/lib/facet/array/shuffle.rb +0 -66
- data/lib/facet/array/slap.rb +0 -37
- data/lib/facet/array/store.rb +0 -7
- data/lib/facet/array/tail.rb +0 -2
- data/lib/facet/array/thru.rb +0 -38
- data/lib/facet/array/to_b.rb +0 -31
- data/lib/facet/array/to_h.rb +0 -57
- data/lib/facet/array/to_hash.rb +0 -46
- data/lib/facet/array/unzip.rb +0 -20
- data/lib/facet/binding.rb +0 -14
- data/lib/facet/binding/__DIR__.rb +0 -2
- data/lib/facet/binding/__FILE__.rb +0 -2
- data/lib/facet/binding/__LINE__.rb +0 -58
- data/lib/facet/binding/call_stack.rb +0 -42
- data/lib/facet/binding/called.rb +0 -41
- data/lib/facet/binding/caller.rb +0 -42
- data/lib/facet/binding/defined.rb +0 -41
- data/lib/facet/binding/eval.rb +0 -42
- data/lib/facet/binding/local_variables.rb +0 -45
- data/lib/facet/binding/method_name.rb +0 -48
- data/lib/facet/binding/op_fetch.rb +0 -45
- data/lib/facet/binding/op_store.rb +0 -46
- data/lib/facet/binding/self.rb +0 -41
- data/lib/facet/binding/self/of_caller.rb +0 -122
- data/lib/facet/class.rb +0 -5
- data/lib/facet/class/by_name.rb +0 -1
- data/lib/facet/class/descendents.rb +0 -44
- data/lib/facet/class/remove_descendents.rb +0 -46
- data/lib/facet/class/remove_subclasses.rb +0 -2
- data/lib/facet/class/subclasses.rb +0 -2
- data/lib/facet/comparable.rb +0 -5
- data/lib/facet/comparable/at_least.rb +0 -53
- data/lib/facet/comparable/at_most.rb +0 -2
- data/lib/facet/comparable/cap.rb +0 -2
- data/lib/facet/comparable/clip.rb +0 -72
- data/lib/facet/comparable/cmp.rb +0 -38
- data/lib/facet/continuation.rb +0 -1
- data/lib/facet/continuation/self/create.rb +0 -71
- data/lib/facet/date.rb +0 -0
- data/lib/facet/date/days_in_month.rb +0 -42
- data/lib/facet/date/days_of_month.rb +0 -34
- data/lib/facet/date/stamp.rb +0 -52
- data/lib/facet/date/to_date.rb +0 -36
- data/lib/facet/date/to_s.rb +0 -33
- data/lib/facet/date/to_time.rb +0 -36
- data/lib/facet/dir.rb +0 -4
- data/lib/facet/dir/self/ancestor.rb +0 -33
- data/lib/facet/dir/self/ascend.rb +0 -56
- data/lib/facet/dir/self/ls_r.rb +0 -76
- data/lib/facet/dir/self/recurse.rb +0 -2
- data/lib/facet/enumerable.rb +0 -38
- data/lib/facet/enumerable/collect_with_counter.rb +0 -2
- data/lib/facet/enumerable/collect_with_index.rb +0 -51
- data/lib/facet/enumerable/commonality.rb +0 -63
- data/lib/facet/enumerable/compact_collect.rb +0 -50
- data/lib/facet/enumerable/compact_map.rb +0 -2
- data/lib/facet/enumerable/cross.rb +0 -44
- data/lib/facet/enumerable/each_by.rb +0 -2
- data/lib/facet/enumerable/each_combination.rb +0 -59
- data/lib/facet/enumerable/each_pair.rb +0 -50
- data/lib/facet/enumerable/each_permutation.rb +0 -2
- data/lib/facet/enumerable/each_slice.rb +0 -131
- data/lib/facet/enumerable/each_unique_pair.rb +0 -66
- data/lib/facet/enumerable/each_with_counter.rb +0 -8
- data/lib/facet/enumerable/elementwise.rb +0 -2
- data/lib/facet/enumerable/entropy.rb +0 -52
- data/lib/facet/enumerable/every.rb +0 -65
- data/lib/facet/enumerable/ew.rb +0 -64
- data/lib/facet/enumerable/filter_collect.rb +0 -58
- data/lib/facet/enumerable/filter_map.rb +0 -2
- data/lib/facet/enumerable/find_collisions.rb +0 -41
- data/lib/facet/enumerable/frequency.rb +0 -39
- data/lib/facet/enumerable/graph.rb +0 -59
- data/lib/facet/enumerable/ideal_entropy.rb +0 -49
- data/lib/facet/enumerable/map_with_counter.rb +0 -2
- data/lib/facet/enumerable/map_with_index.rb +0 -2
- data/lib/facet/enumerable/none.rb +0 -56
- data/lib/facet/enumerable/nonuniq.rb +0 -39
- data/lib/facet/enumerable/occur.rb +0 -62
- data/lib/facet/enumerable/one.rb +0 -65
- data/lib/facet/enumerable/op_pow.rb +0 -38
- data/lib/facet/enumerable/partition_by.rb +0 -55
- data/lib/facet/enumerable/permute.rb +0 -135
- data/lib/facet/enumerable/probability.rb +0 -59
- data/lib/facet/enumerable/project.rb +0 -11
- data/lib/facet/enumerable/self/combinations.rb +0 -68
- data/lib/facet/enumerable/self/cross.rb +0 -79
- data/lib/facet/enumerable/to_h.rb +0 -50
- data/lib/facet/enumerable/uniq_by.rb +0 -39
- data/lib/facet/enumerable/where.rb +0 -12
- data/lib/facet/file.rb +0 -5
- data/lib/facet/file/self/create.rb +0 -52
- data/lib/facet/file/self/open_as_string.rb +0 -81
- data/lib/facet/file/self/read_list.rb +0 -47
- data/lib/facet/file/self/sanitize.rb +0 -50
- data/lib/facet/file/self/split_all.rb +0 -36
- data/lib/facet/fileutils.rb +0 -0
- data/lib/facet/fileutils/head.rb +0 -2
- data/lib/facet/fileutils/safe_ln.rb +0 -38
- data/lib/facet/fileutils/slice.rb +0 -152
- data/lib/facet/fileutils/split_all.rb +0 -29
- data/lib/facet/fileutils/tail.rb +0 -2
- data/lib/facet/fileutils/wc.rb +0 -128
- data/lib/facet/fileutils/whereis.rb +0 -76
- data/lib/facet/fileutils/which.rb +0 -117
- data/lib/facet/float.rb +0 -3
- data/lib/facet/float/approx.rb +0 -42
- data/lib/facet/float/round_at.rb +0 -72
- data/lib/facet/float/round_to.rb +0 -73
- data/lib/facet/hash.rb +0 -40
- data/lib/facet/hash/alias.rb +0 -54
- data/lib/facet/hash/assert_has_keys.rb +0 -38
- data/lib/facet/hash/assert_has_only_keys.rb +0 -38
- data/lib/facet/hash/at.rb +0 -26
- data/lib/facet/hash/collate.rb +0 -53
- data/lib/facet/hash/delete_unless.rb +0 -15
- data/lib/facet/hash/each.rb +0 -61
- data/lib/facet/hash/each_with_index.rb +0 -35
- data/lib/facet/hash/each_with_key.rb +0 -32
- data/lib/facet/hash/graph.rb +0 -31
- data/lib/facet/hash/has_keys.rb +0 -37
- data/lib/facet/hash/has_only_keys.rb +0 -37
- data/lib/facet/hash/inverse.rb +0 -51
- data/lib/facet/hash/join.rb +0 -19
- data/lib/facet/hash/keys_to_iv.rb +0 -60
- data/lib/facet/hash/keys_to_s.rb +0 -80
- data/lib/facet/hash/keys_to_sym.rb +0 -91
- data/lib/facet/hash/op_fetch.rb +0 -146
- data/lib/facet/hash/op_lshift.rb +0 -28
- data/lib/facet/hash/op_store.rb +0 -2
- data/lib/facet/hash/rand_key.rb +0 -47
- data/lib/facet/hash/rand_pair.rb +0 -50
- data/lib/facet/hash/rand_value.rb +0 -60
- data/lib/facet/hash/replace_each.rb +0 -33
- data/lib/facet/hash/self/zipnew.rb +0 -37
- data/lib/facet/hash/shuffle.rb +0 -53
- data/lib/facet/hash/slice.rb +0 -33
- data/lib/facet/hash/stringify_keys.rb +0 -2
- data/lib/facet/hash/swap.rb +0 -36
- data/lib/facet/hash/swapkey.rb +0 -44
- data/lib/facet/hash/symoblize_keys.rb +0 -2
- data/lib/facet/hash/to_h.rb +0 -35
- data/lib/facet/hash/to_ostruct.rb +0 -40
- data/lib/facet/hash/to_ostruct_recurse.rb +0 -45
- data/lib/facet/hash/traverse.rb +0 -63
- data/lib/facet/hash/update_each.rb +0 -43
- data/lib/facet/hash/update_keys.rb +0 -31
- data/lib/facet/hash/update_values.rb +0 -32
- data/lib/facet/hash/variablize_keys.rb +0 -2
- data/lib/facet/hash/weave.rb +0 -88
- data/lib/facet/integer.rb +0 -8
- data/lib/facet/integer/even.rb +0 -2
- data/lib/facet/integer/fac.rb +0 -2
- data/lib/facet/integer/fact.rb +0 -2
- data/lib/facet/integer/factorial.rb +0 -61
- data/lib/facet/integer/multiple.rb +0 -69
- data/lib/facet/integer/odd.rb +0 -2
- data/lib/facet/integer/ordinal.rb +0 -41
- data/lib/facet/integer/times_collect.rb +0 -39
- data/lib/facet/integer/times_map.rb +0 -2
- data/lib/facet/kernel.rb +0 -65
- data/lib/facet/kernel/__DIR__.rb +0 -11
- data/lib/facet/kernel/__class__.rb +0 -31
- data/lib/facet/kernel/__meta__.rb +0 -28
- data/lib/facet/kernel/adhoc.rb +0 -11
- data/lib/facet/kernel/as.rb +0 -91
- data/lib/facet/kernel/assign_from.rb +0 -82
- data/lib/facet/kernel/assign_with.rb +0 -75
- data/lib/facet/kernel/autoreload.rb +0 -46
- data/lib/facet/kernel/autoreload_glob.rb +0 -36
- data/lib/facet/kernel/bool.rb +0 -77
- data/lib/facet/kernel/bug.rb +0 -39
- data/lib/facet/kernel/call_stack.rb +0 -59
- data/lib/facet/kernel/called.rb +0 -40
- data/lib/facet/kernel/complete.rb +0 -6
- data/lib/facet/kernel/constant.rb +0 -52
- data/lib/facet/kernel/copy.rb +0 -48
- data/lib/facet/kernel/deep_copy.rb +0 -49
- data/lib/facet/kernel/demo.rb +0 -46
- data/lib/facet/kernel/eigenclass.rb +0 -17
- data/lib/facet/kernel/false.rb +0 -2
- data/lib/facet/kernel/fn.rb +0 -33
- data/lib/facet/kernel/generate_method_name.rb +0 -39
- data/lib/facet/kernel/get_by_id.rb +0 -33
- data/lib/facet/kernel/here.rb +0 -34
- data/lib/facet/kernel/in.rb +0 -35
- data/lib/facet/kernel/instance_assign.rb +0 -25
- data/lib/facet/kernel/instvar.rb +0 -13
- data/lib/facet/kernel/is.rb +0 -5
- data/lib/facet/kernel/maybe.rb +0 -41
- data/lib/facet/kernel/me.rb +0 -17
- data/lib/facet/kernel/meta.rb +0 -2
- data/lib/facet/kernel/metaclass.rb +0 -42
- data/lib/facet/kernel/method.rb +0 -76
- data/lib/facet/kernel/method_name.rb +0 -49
- data/lib/facet/kernel/methods.rb +0 -79
- data/lib/facet/kernel/nack.rb +0 -12
- data/lib/facet/kernel/new.rb +0 -40
- data/lib/facet/kernel/object_class.rb +0 -31
- data/lib/facet/kernel/object_hexid.rb +0 -35
- data/lib/facet/kernel/op_esc.rb +0 -37
- data/lib/facet/kernel/own.rb +0 -17
- data/lib/facet/kernel/p.rb +0 -12
- data/lib/facet/kernel/require_all.rb +0 -44
- data/lib/facet/kernel/require_esc.rb +0 -42
- data/lib/facet/kernel/require_facet.rb +0 -41
- data/lib/facet/kernel/require_local.rb +0 -25
- data/lib/facet/kernel/resc.rb +0 -32
- data/lib/facet/kernel/returning.rb +0 -49
- data/lib/facet/kernel/send_as.rb +0 -34
- data/lib/facet/kernel/set_from.rb +0 -69
- data/lib/facet/kernel/set_with.rb +0 -74
- data/lib/facet/kernel/silence_warnings.rb +0 -2
- data/lib/facet/kernel/silently.rb +0 -41
- data/lib/facet/kernel/singleton.rb +0 -47
- data/lib/facet/kernel/superior.rb +0 -53
- data/lib/facet/kernel/supermethod.rb +0 -44
- data/lib/facet/kernel/this.rb +0 -33
- data/lib/facet/kernel/to_b.rb +0 -41
- data/lib/facet/kernel/to_bool.rb +0 -47
- data/lib/facet/kernel/true.rb +0 -2
- data/lib/facet/kernel/unuri.rb +0 -2
- data/lib/facet/kernel/uri.rb +0 -38
- data/lib/facet/kernel/val.rb +0 -52
- data/lib/facet/kernel/warn_with_line.rb +0 -30
- data/lib/facet/kernel/with_accessor.rb +0 -94
- data/lib/facet/kernel/with_reader.rb +0 -2
- data/lib/facet/kernel/with_writer.rb +0 -2
- data/lib/facet/logger.rb +0 -0
- data/lib/facet/logger/format.rb +0 -28
- data/lib/facet/logger/format_message.rb +0 -1
- data/lib/facet/matchdata.rb +0 -3
- data/lib/facet/matchdata/match.rb +0 -37
- data/lib/facet/matchdata/matchset.rb +0 -2
- data/lib/facet/matchdata/matchtree.rb +0 -62
- data/lib/facet/module.rb +0 -40
- data/lib/facet/module/abstract.rb +0 -50
- data/lib/facet/module/alias_module_function.rb +0 -57
- data/lib/facet/module/ancestor.rb +0 -38
- data/lib/facet/module/attr.rb +0 -23
- data/lib/facet/module/attr_setter.rb +0 -48
- data/lib/facet/module/attr_tester.rb +0 -56
- data/lib/facet/module/basename.rb +0 -39
- data/lib/facet/module/by_name.rb +0 -68
- data/lib/facet/module/cattr_accessor.rb +0 -141
- data/lib/facet/module/cattr_reader.rb +0 -2
- data/lib/facet/module/cattr_writer.rb +0 -2
- data/lib/facet/module/clone_removing.rb +0 -2
- data/lib/facet/module/clone_renaming.rb +0 -2
- data/lib/facet/module/clone_using.rb +0 -87
- data/lib/facet/module/dirname.rb +0 -42
- data/lib/facet/module/equate_on.rb +0 -70
- data/lib/facet/module/generate_instance_method_name.rb +0 -47
- data/lib/facet/module/include_as.rb +0 -102
- data/lib/facet/module/initializer.rb +0 -65
- data/lib/facet/module/instance_methods.rb +0 -186
- data/lib/facet/module/integrate.rb +0 -51
- data/lib/facet/module/is.rb +0 -34
- data/lib/facet/module/memoize.rb +0 -95
- data/lib/facet/module/modspace.rb +0 -43
- data/lib/facet/module/namespace.rb +0 -61
- data/lib/facet/module/nesting.rb +0 -45
- data/lib/facet/module/redef.rb +0 -31
- data/lib/facet/module/redefine_method.rb +0 -57
- data/lib/facet/module/redirect.rb +0 -30
- data/lib/facet/module/redirect_method.rb +0 -64
- data/lib/facet/module/remove.rb +0 -29
- data/lib/facet/module/rename.rb +0 -31
- data/lib/facet/module/rename_method.rb +0 -38
- data/lib/facet/module/revisal.rb +0 -49
- data/lib/facet/module/shadow_all.rb +0 -17
- data/lib/facet/module/shadow_method.rb +0 -42
- data/lib/facet/module/sort_on.rb +0 -73
- data/lib/facet/module/undef.rb +0 -29
- data/lib/facet/module/wrap.rb +0 -30
- data/lib/facet/module/wrap_method.rb +0 -48
- data/lib/facet/nilclass.rb +0 -7
- data/lib/facet/nilclass/empty.rb +0 -32
- data/lib/facet/nilclass/include.rb +0 -32
- data/lib/facet/nilclass/length.rb +0 -2
- data/lib/facet/nilclass/op_fetch.rb +0 -37
- data/lib/facet/nilclass/size.rb +0 -44
- data/lib/facet/nilclass/to_f.rb +0 -32
- data/lib/facet/nilclass/to_h.rb +0 -33
- data/lib/facet/numeric.rb +0 -5
- data/lib/facet/numeric/ceil_multiple.rb +0 -40
- data/lib/facet/numeric/pred.rb +0 -2
- data/lib/facet/numeric/succ.rb +0 -69
- data/lib/facet/numeric/to_b.rb +0 -38
- data/lib/facet/ostruct.rb +0 -0
- data/lib/facet/ostruct/__merge__.rb +0 -52
- data/lib/facet/ostruct/__table__.rb +0 -17
- data/lib/facet/ostruct/__update__.rb +0 -45
- data/lib/facet/ostruct/op_fetch.rb +0 -40
- data/lib/facet/ostruct/op_store.rb +0 -42
- data/lib/facet/ostruct/to_h.rb +0 -8
- data/lib/facet/pathname.rb +0 -2
- data/lib/facet/pathname/ascend.rb +0 -22
- data/lib/facet/pathname/descend.rb +0 -20
- data/lib/facet/proc.rb +0 -3
- data/lib/facet/proc/compose.rb +0 -62
- data/lib/facet/proc/op_mul.rb +0 -2
- data/lib/facet/proc/to_method.rb +0 -74
- data/lib/facet/range.rb +0 -4
- data/lib/facet/range/to_r.rb +0 -32
- data/lib/facet/range/to_range.rb +0 -36
- data/lib/facet/range/umbrella.rb +0 -67
- data/lib/facet/range/within.rb +0 -44
- data/lib/facet/regexp.rb +0 -3
- data/lib/facet/regexp/arity.rb +0 -41
- data/lib/facet/regexp/to_re.rb +0 -38
- data/lib/facet/regexp/to_regexp.rb +0 -36
- data/lib/facet/string.rb +0 -86
- data/lib/facet/string/align_center.rb +0 -87
- data/lib/facet/string/align_left.rb +0 -2
- data/lib/facet/string/align_right.rb +0 -2
- data/lib/facet/string/at.rb +0 -8
- data/lib/facet/string/at_rand.rb +0 -65
- data/lib/facet/string/basename.rb +0 -48
- data/lib/facet/string/blank.rb +0 -36
- data/lib/facet/string/bracket.rb +0 -70
- data/lib/facet/string/brief.rb +0 -33
- data/lib/facet/string/bytes.rb +0 -19
- data/lib/facet/string/camelcase.rb +0 -58
- data/lib/facet/string/camelize.rb +0 -35
- data/lib/facet/string/capitalized.rb +0 -38
- data/lib/facet/string/chars.rb +0 -34
- data/lib/facet/string/cmp.rb +0 -43
- data/lib/facet/string/demodulize.rb +0 -40
- data/lib/facet/string/dequote.rb +0 -29
- data/lib/facet/string/downcase.rb +0 -37
- data/lib/facet/string/dresner.rb +0 -49
- data/lib/facet/string/each_char.rb +0 -35
- data/lib/facet/string/each_word.rb +0 -50
- data/lib/facet/string/ends_with.rb +0 -2
- data/lib/facet/string/first.rb +0 -94
- data/lib/facet/string/first_char.rb +0 -20
- data/lib/facet/string/fold.rb +0 -67
- data/lib/facet/string/format.rb +0 -17
- data/lib/facet/string/frequency.rb +0 -39
- data/lib/facet/string/humanize.rb +0 -31
- data/lib/facet/string/indent.rb +0 -68
- data/lib/facet/string/index_all.rb +0 -40
- data/lib/facet/string/last.rb +0 -94
- data/lib/facet/string/last_char.rb +0 -22
- data/lib/facet/string/line_wrap.rb +0 -77
- data/lib/facet/string/lines.rb +0 -33
- data/lib/facet/string/lowercase.rb +0 -32
- data/lib/facet/string/margin.rb +0 -138
- data/lib/facet/string/mscan.rb +0 -42
- data/lib/facet/string/natcmp.rb +0 -108
- data/lib/facet/string/nchar.rb +0 -45
- data/lib/facet/string/ordinal.rb +0 -16
- data/lib/facet/string/plural.rb +0 -2
- data/lib/facet/string/pop.rb +0 -54
- data/lib/facet/string/probability.rb +0 -34
- data/lib/facet/string/pull.rb +0 -17
- data/lib/facet/string/push.rb +0 -44
- data/lib/facet/string/quote.rb +0 -68
- data/lib/facet/string/rand_byte.rb +0 -55
- data/lib/facet/string/rand_index.rb +0 -29
- data/lib/facet/string/range.rb +0 -37
- data/lib/facet/string/range_all.rb +0 -48
- data/lib/facet/string/range_of_line.rb +0 -42
- data/lib/facet/string/regesc.rb +0 -32
- data/lib/facet/string/self/format.rb +0 -17
- data/lib/facet/string/self/interpolate.rb +0 -31
- data/lib/facet/string/self/patterns.rb +0 -51
- data/lib/facet/string/self/rand_letter.rb +0 -34
- data/lib/facet/string/self/random.rb +0 -36
- data/lib/facet/string/shatter.rb +0 -45
- data/lib/facet/string/shift.rb +0 -42
- data/lib/facet/string/shuffle.rb +0 -42
- data/lib/facet/string/similarity.rb +0 -108
- data/lib/facet/string/singular.rb +0 -117
- data/lib/facet/string/slap.rb +0 -44
- data/lib/facet/string/soundex.rb +0 -102
- data/lib/facet/string/starts_with.rb +0 -24
- data/lib/facet/string/succ.rb +0 -38
- data/lib/facet/string/tab.rb +0 -2
- data/lib/facet/string/tabto.rb +0 -2
- data/lib/facet/string/to_a.rb +0 -35
- data/lib/facet/string/to_arr.rb +0 -55
- data/lib/facet/string/to_b.rb +0 -64
- data/lib/facet/string/to_const.rb +0 -39
- data/lib/facet/string/to_date.rb +0 -35
- data/lib/facet/string/to_proc.rb +0 -54
- data/lib/facet/string/to_re.rb +0 -46
- data/lib/facet/string/to_rx.rb +0 -2
- data/lib/facet/string/to_time.rb +0 -34
- data/lib/facet/string/unbracket.rb +0 -46
- data/lib/facet/string/underscore.rb +0 -18
- data/lib/facet/string/unix_crypt.rb +0 -41
- data/lib/facet/string/unpack.rb +0 -45
- data/lib/facet/string/unshift.rb +0 -42
- data/lib/facet/string/upcase.rb +0 -45
- data/lib/facet/string/uppercase.rb +0 -2
- data/lib/facet/string/whitespace.rb +0 -27
- data/lib/facet/string/word_filter.rb +0 -61
- data/lib/facet/string/word_wrap.rb +0 -90
- data/lib/facet/string/words.rb +0 -45
- data/lib/facet/symbol.rb +0 -13
- data/lib/facet/symbol/camelcase.rb +0 -42
- data/lib/facet/symbol/camelize.rb +0 -33
- data/lib/facet/symbol/capitalize.rb +0 -31
- data/lib/facet/symbol/capitalized.rb +0 -33
- data/lib/facet/symbol/downcase.rb +0 -36
- data/lib/facet/symbol/not.rb +0 -40
- data/lib/facet/symbol/pad.rb +0 -43
- data/lib/facet/symbol/succ.rb +0 -42
- data/lib/facet/symbol/to_const.rb +0 -40
- data/lib/facet/symbol/to_proc.rb +0 -45
- data/lib/facet/symbol/to_str.rb +0 -39
- data/lib/facet/symbol/underscore.rb +0 -32
- data/lib/facet/symbol/upcase.rb +0 -37
- data/lib/facet/time.rb +0 -7
- data/lib/facet/time/change.rb +0 -51
- data/lib/facet/time/elapse.rb +0 -41
- data/lib/facet/time/self/days_extrema.rb +0 -22
- data/lib/facet/time/stamp.rb +0 -47
- data/lib/facet/time/to_date.rb +0 -37
- data/lib/facet/time/to_s.rb +0 -33
- data/lib/facet/time/to_time.rb +0 -36
- data/lib/facet/unboundmethod.rb +0 -1
- data/lib/facet/unboundmethod/name.rb +0 -8
- data/lib/facets.rb +0 -200
- data/lib/facets/english/bytes.rb +0 -212
- data/lib/facets/english/multipliers.rb +0 -192
- data/lib/facets/english/ormsupport.rb +0 -233
- data/lib/facets/english/time.rb +0 -327
- data/lib/facets/group/inflect.rb +0 -71
- data/lib/facets/group/nilasemptiness.rb +0 -34
- data/lib/facets/group/random.rb +0 -21
- data/lib/facets/group/stringasarray.rb +0 -16
- data/lib/facets/method/README +0 -1
- data/lib/facets/support/functor.rb +0 -49
- data/setup.rb +0 -1551
- data/test/FIXTURE/create_file +0 -1
- data/test/FIXTURE/filelist/testfile.txt +0 -0
- data/test/FIXTURE/filelist/testfile2.txt +0 -0
- data/test/FIXTURE/ls_r/A.txt +0 -0
- data/test/FIXTURE/ls_r/A/B.txt +0 -0
- data/test/FIXTURE/ls_r/A/B/C.txt +0 -0
- data/test/FIXTURE/open_as_string_file +0 -1
- data/test/FIXTURE/read_list_file +0 -6
- data/test/FIXTURE/test_file.txt +0 -25
- data/test/FIXTURE/test_file2.txt +0 -25
- data/test/lib/facet/array/test_at_rand.rb +0 -34
- data/test/lib/facet/array/test_delete_unless.rb +0 -28
- data/test/lib/facet/array/test_delete_values.rb +0 -28
- data/test/lib/facet/array/test_delete_values_at.rb +0 -31
- data/test/lib/facet/array/test_first.rb +0 -46
- data/test/lib/facet/array/test_head.rb +0 -42
- data/test/lib/facet/array/test_last_index.rb +0 -26
- data/test/lib/facet/array/test_merge.rb +0 -35
- data/test/lib/facet/array/test_mid.rb +0 -33
- data/test/lib/facet/array/test_middle.rb +0 -29
- data/test/lib/facet/array/test_op_fetch.rb +0 -27
- data/test/lib/facet/array/test_op_store.rb +0 -30
- data/test/lib/facet/array/test_pick.rb +0 -40
- data/test/lib/facet/array/test_pos.rb +0 -28
- data/test/lib/facet/array/test_pull.rb +0 -28
- data/test/lib/facet/array/test_rand_index.rb +0 -29
- data/test/lib/facet/array/test_rand_subset.rb +0 -29
- data/test/lib/facet/array/test_range.rb +0 -32
- data/test/lib/facet/array/test_rotate.rb +0 -36
- data/test/lib/facet/array/test_select.rb +0 -28
- data/test/lib/facet/array/test_shuffle.rb +0 -35
- data/test/lib/facet/array/test_slap.rb +0 -28
- data/test/lib/facet/array/test_thru.rb +0 -27
- data/test/lib/facet/array/test_to_b.rb +0 -27
- data/test/lib/facet/array/test_to_h.rb +0 -33
- data/test/lib/facet/array/test_to_hash.rb +0 -27
- data/test/lib/facet/binding/self/test_of_caller.rb +0 -35
- data/test/lib/facet/binding/test___LINE__.rb +0 -43
- data/test/lib/facet/binding/test_call_stack.rb +0 -34
- data/test/lib/facet/binding/test_called.rb +0 -30
- data/test/lib/facet/binding/test_caller.rb +0 -35
- data/test/lib/facet/binding/test_defined.rb +0 -34
- data/test/lib/facet/binding/test_eval.rb +0 -34
- data/test/lib/facet/binding/test_local_variables.rb +0 -34
- data/test/lib/facet/binding/test_method_name.rb +0 -34
- data/test/lib/facet/binding/test_op_fetch.rb +0 -34
- data/test/lib/facet/binding/test_op_store.rb +0 -35
- data/test/lib/facet/binding/test_self.rb +0 -34
- data/test/lib/facet/class/test_descendents.rb +0 -30
- data/test/lib/facet/class/test_remove_descendents.rb +0 -32
- data/test/lib/facet/comparable/test_at_least.rb +0 -34
- data/test/lib/facet/comparable/test_clip.rb +0 -44
- data/test/lib/facet/comparable/test_cmp.rb +0 -28
- data/test/lib/facet/continuation/self/test_create.rb +0 -26
- data/test/lib/facet/date/test_days_in_month.rb +0 -30
- data/test/lib/facet/date/test_days_of_month.rb +0 -30
- data/test/lib/facet/date/test_stamp.rb +0 -38
- data/test/lib/facet/date/test_to_date.rb +0 -30
- data/test/lib/facet/date/test_to_s.rb +0 -30
- data/test/lib/facet/date/test_to_time.rb +0 -30
- data/test/lib/facet/dir/self/test_ancestor.rb +0 -26
- data/test/lib/facet/dir/self/test_ascend.rb +0 -41
- data/test/lib/facet/dir/self/test_ls_r.rb +0 -52
- data/test/lib/facet/enumerable/self/test_combinations.rb +0 -43
- data/test/lib/facet/enumerable/self/test_cross.rb +0 -31
- data/test/lib/facet/enumerable/test_collect_with_index.rb +0 -27
- data/test/lib/facet/enumerable/test_commonality.rb +0 -31
- data/test/lib/facet/enumerable/test_compact_collect.rb +0 -27
- data/test/lib/facet/enumerable/test_cross.rb +0 -30
- data/test/lib/facet/enumerable/test_each_combination.rb +0 -29
- data/test/lib/facet/enumerable/test_each_pair.rb +0 -29
- data/test/lib/facet/enumerable/test_each_slice.rb +0 -74
- data/test/lib/facet/enumerable/test_each_unique_pair.rb +0 -29
- data/test/lib/facet/enumerable/test_entropy.rb +0 -26
- data/test/lib/facet/enumerable/test_every.rb +0 -35
- data/test/lib/facet/enumerable/test_ew.rb +0 -31
- data/test/lib/facet/enumerable/test_filter_collect.rb +0 -31
- data/test/lib/facet/enumerable/test_find_collisions.rb +0 -30
- data/test/lib/facet/enumerable/test_frequency.rb +0 -27
- data/test/lib/facet/enumerable/test_graph.rb +0 -30
- data/test/lib/facet/enumerable/test_ideal_entropy.rb +0 -27
- data/test/lib/facet/enumerable/test_none.rb +0 -33
- data/test/lib/facet/enumerable/test_occur.rb +0 -30
- data/test/lib/facet/enumerable/test_one.rb +0 -35
- data/test/lib/facet/enumerable/test_op_pow.rb +0 -27
- data/test/lib/facet/enumerable/test_partition_by.rb +0 -31
- data/test/lib/facet/enumerable/test_permute.rb +0 -29
- data/test/lib/facet/enumerable/test_probability.rb +0 -27
- data/test/lib/facet/enumerable/test_to_h.rb +0 -27
- data/test/lib/facet/enumerable/test_uniq_by.rb +0 -28
- data/test/lib/facet/file/self/test_create.rb +0 -39
- data/test/lib/facet/file/self/test_open_as_string.rb +0 -40
- data/test/lib/facet/file/self/test_read_list.rb +0 -37
- data/test/lib/facet/file/self/test_sanitize.rb +0 -46
- data/test/lib/facet/file/self/test_split_all.rb +0 -27
- data/test/lib/facet/fileutils/test_slice.rb +0 -96
- data/test/lib/facet/fileutils/test_wc.rb +0 -68
- data/test/lib/facet/fileutils/test_which.rb +0 -61
- data/test/lib/facet/float/test_approx.rb +0 -28
- data/test/lib/facet/float/test_round_at.rb +0 -46
- data/test/lib/facet/float/test_round_to.rb +0 -46
- data/test/lib/facet/hash/self/test_zipnew.rb +0 -28
- data/test/lib/facet/hash/test_alias.rb +0 -31
- data/test/lib/facet/hash/test_assert_has_keys.rb +0 -27
- data/test/lib/facet/hash/test_assert_has_only_keys.rb +0 -27
- data/test/lib/facet/hash/test_at.rb +0 -28
- data/test/lib/facet/hash/test_collate.rb +0 -35
- data/test/lib/facet/hash/test_each.rb +0 -36
- data/test/lib/facet/hash/test_each_with_index.rb +0 -29
- data/test/lib/facet/hash/test_each_with_key.rb +0 -29
- data/test/lib/facet/hash/test_graph.rb +0 -28
- data/test/lib/facet/hash/test_has_keys.rb +0 -27
- data/test/lib/facet/hash/test_has_only_keys.rb +0 -27
- data/test/lib/facet/hash/test_inverse.rb +0 -28
- data/test/lib/facet/hash/test_keys_to_s.rb +0 -34
- data/test/lib/facet/hash/test_keys_to_sym.rb +0 -34
- data/test/lib/facet/hash/test_op_fetch.rb +0 -111
- data/test/lib/facet/hash/test_op_lshift.rb +0 -29
- data/test/lib/facet/hash/test_rand_key.rb +0 -27
- data/test/lib/facet/hash/test_rand_pair.rb +0 -27
- data/test/lib/facet/hash/test_rand_value.rb +0 -27
- data/test/lib/facet/hash/test_replace_each.rb +0 -29
- data/test/lib/facet/hash/test_shuffle.rb +0 -32
- data/test/lib/facet/hash/test_slice.rb +0 -27
- data/test/lib/facet/hash/test_swap.rb +0 -27
- data/test/lib/facet/hash/test_swapkey.rb +0 -29
- data/test/lib/facet/hash/test_to_h.rb +0 -27
- data/test/lib/facet/hash/test_to_ostruct.rb +0 -30
- data/test/lib/facet/hash/test_to_ostruct_recurse.rb +0 -30
- data/test/lib/facet/hash/test_traverse.rb +0 -37
- data/test/lib/facet/hash/test_update_each.rb +0 -29
- data/test/lib/facet/hash/test_update_keys.rb +0 -28
- data/test/lib/facet/hash/test_update_values.rb +0 -28
- data/test/lib/facet/hash/test_weave.rb +0 -29
- data/test/lib/facet/integer/test_factorial.rb +0 -30
- data/test/lib/facet/integer/test_multiple.rb +0 -43
- data/test/lib/facet/integer/test_ordinal.rb +0 -29
- data/test/lib/facet/integer/test_times_collect.rb +0 -28
- data/test/lib/facet/kernel/test___class__.rb +0 -26
- data/test/lib/facet/kernel/test_as.rb +0 -42
- data/test/lib/facet/kernel/test_assign_from.rb +0 -31
- data/test/lib/facet/kernel/test_assign_with.rb +0 -31
- data/test/lib/facet/kernel/test_bool.rb +0 -41
- data/test/lib/facet/kernel/test_bug.rb +0 -26
- data/test/lib/facet/kernel/test_call_stack.rb +0 -26
- data/test/lib/facet/kernel/test_called.rb +0 -26
- data/test/lib/facet/kernel/test_constant.rb +0 -33
- data/test/lib/facet/kernel/test_copy.rb +0 -40
- data/test/lib/facet/kernel/test_deep_copy.rb +0 -40
- data/test/lib/facet/kernel/test_demo.rb +0 -28
- data/test/lib/facet/kernel/test_fn.rb +0 -26
- data/test/lib/facet/kernel/test_generate_method_name.rb +0 -26
- data/test/lib/facet/kernel/test_get_by_id.rb +0 -28
- data/test/lib/facet/kernel/test_here.rb +0 -26
- data/test/lib/facet/kernel/test_in.rb +0 -27
- data/test/lib/facet/kernel/test_maybe.rb +0 -26
- data/test/lib/facet/kernel/test_metaclass.rb +0 -34
- data/test/lib/facet/kernel/test_method.rb +0 -32
- data/test/lib/facet/kernel/test_method_name.rb +0 -31
- data/test/lib/facet/kernel/test_methods.rb +0 -50
- data/test/lib/facet/kernel/test_new.rb +0 -30
- data/test/lib/facet/kernel/test_object_class.rb +0 -26
- data/test/lib/facet/kernel/test_object_hexid.rb +0 -27
- data/test/lib/facet/kernel/test_require_all.rb +0 -26
- data/test/lib/facet/kernel/test_require_esc.rb +0 -27
- data/test/lib/facet/kernel/test_require_facet.rb +0 -27
- data/test/lib/facet/kernel/test_resc.rb +0 -27
- data/test/lib/facet/kernel/test_returning.rb +0 -30
- data/test/lib/facet/kernel/test_send_as.rb +0 -26
- data/test/lib/facet/kernel/test_set_from.rb +0 -33
- data/test/lib/facet/kernel/test_set_with.rb +0 -33
- data/test/lib/facet/kernel/test_silently.rb +0 -28
- data/test/lib/facet/kernel/test_singleton.rb +0 -40
- data/test/lib/facet/kernel/test_superior.rb +0 -30
- data/test/lib/facet/kernel/test_supermethod.rb +0 -33
- data/test/lib/facet/kernel/test_this.rb +0 -26
- data/test/lib/facet/kernel/test_to_b.rb +0 -28
- data/test/lib/facet/kernel/test_to_bool.rb +0 -28
- data/test/lib/facet/kernel/test_uri.rb +0 -30
- data/test/lib/facet/kernel/test_val.rb +0 -43
- data/test/lib/facet/kernel/test_with_accessor.rb +0 -51
- data/test/lib/facet/matchdata/test_match.rb +0 -29
- data/test/lib/facet/matchdata/test_matchtree.rb +0 -32
- data/test/lib/facet/module/test_abstract.rb +0 -36
- data/test/lib/facet/module/test_alias_module_function.rb +0 -34
- data/test/lib/facet/module/test_ancestor.rb +0 -26
- data/test/lib/facet/module/test_basename.rb +0 -26
- data/test/lib/facet/module/test_by_name.rb +0 -29
- data/test/lib/facet/module/test_cattr_accessor.rb +0 -55
- data/test/lib/facet/module/test_clone_using.rb +0 -55
- data/test/lib/facet/module/test_dirname.rb +0 -26
- data/test/lib/facet/module/test_equate_on.rb +0 -37
- data/test/lib/facet/module/test_generate_instance_method_name.rb +0 -33
- data/test/lib/facet/module/test_include_as.rb +0 -35
- data/test/lib/facet/module/test_initializer.rb +0 -32
- data/test/lib/facet/module/test_instance_methods.rb +0 -59
- data/test/lib/facet/module/test_integrate.rb +0 -35
- data/test/lib/facet/module/test_memoize.rb +0 -50
- data/test/lib/facet/module/test_modspace.rb +0 -27
- data/test/lib/facet/module/test_namespace.rb +0 -33
- data/test/lib/facet/module/test_nesting.rb +0 -36
- data/test/lib/facet/module/test_redef.rb +0 -30
- data/test/lib/facet/module/test_redefine_method.rb +0 -30
- data/test/lib/facet/module/test_redirect.rb +0 -30
- data/test/lib/facet/module/test_redirect_method.rb +0 -30
- data/test/lib/facet/module/test_remove.rb +0 -30
- data/test/lib/facet/module/test_rename.rb +0 -31
- data/test/lib/facet/module/test_rename_method.rb +0 -31
- data/test/lib/facet/module/test_revisal.rb +0 -35
- data/test/lib/facet/module/test_shadow_method.rb +0 -30
- data/test/lib/facet/module/test_sort_on.rb +0 -42
- data/test/lib/facet/module/test_undef.rb +0 -30
- data/test/lib/facet/module/test_wrap.rb +0 -30
- data/test/lib/facet/module/test_wrap_method.rb +0 -30
- data/test/lib/facet/nilclass/test_empty.rb +0 -26
- data/test/lib/facet/nilclass/test_include.rb +0 -26
- data/test/lib/facet/nilclass/test_op_fetch.rb +0 -28
- data/test/lib/facet/nilclass/test_size.rb +0 -30
- data/test/lib/facet/nilclass/test_to_f.rb +0 -26
- data/test/lib/facet/nilclass/test_to_h.rb +0 -26
- data/test/lib/facet/numeric/test_ceil_multiple.rb +0 -31
- data/test/lib/facet/numeric/test_succ.rb +0 -40
- data/test/lib/facet/numeric/test_to_b.rb +0 -27
- data/test/lib/facet/ostruct/test___merge__.rb +0 -38
- data/test/lib/facet/ostruct/test___update__.rb +0 -29
- data/test/lib/facet/ostruct/test_op_fetch.rb +0 -27
- data/test/lib/facet/ostruct/test_op_store.rb +0 -28
- data/test/lib/facet/proc/test_compose.rb +0 -36
- data/test/lib/facet/proc/test_to_method.rb +0 -31
- data/test/lib/facet/range/test_to_r.rb +0 -27
- data/test/lib/facet/range/test_to_range.rb +0 -27
- data/test/lib/facet/range/test_umbrella.rb +0 -34
- data/test/lib/facet/range/test_within.rb +0 -29
- data/test/lib/facet/regexp/test_arity.rb +0 -33
- data/test/lib/facet/regexp/test_to_re.rb +0 -27
- data/test/lib/facet/regexp/test_to_regexp.rb +0 -27
- data/test/lib/facet/string/self/test_interpolate.rb +0 -27
- data/test/lib/facet/string/self/test_patterns.rb +0 -28
- data/test/lib/facet/string/self/test_rand_letter.rb +0 -26
- data/test/lib/facet/string/test_align_center.rb +0 -34
- data/test/lib/facet/string/test_at_rand.rb +0 -35
- data/test/lib/facet/string/test_basename.rb +0 -41
- data/test/lib/facet/string/test_blank.rb +0 -27
- data/test/lib/facet/string/test_bracket.rb +0 -49
- data/test/lib/facet/string/test_camelcase.rb +0 -39
- data/test/lib/facet/string/test_camelize.rb +0 -26
- data/test/lib/facet/string/test_capitalized.rb +0 -26
- data/test/lib/facet/string/test_chars.rb +0 -27
- data/test/lib/facet/string/test_cmp.rb +0 -30
- data/test/lib/facet/string/test_demodulize.rb +0 -38
- data/test/lib/facet/string/test_downcase.rb +0 -26
- data/test/lib/facet/string/test_dresner.rb +0 -32
- data/test/lib/facet/string/test_each_char.rb +0 -29
- data/test/lib/facet/string/test_each_word.rb +0 -29
- data/test/lib/facet/string/test_first.rb +0 -43
- data/test/lib/facet/string/test_fold.rb +0 -34
- data/test/lib/facet/string/test_frequency.rb +0 -28
- data/test/lib/facet/string/test_humanize.rb +0 -26
- data/test/lib/facet/string/test_indent.rb +0 -40
- data/test/lib/facet/string/test_index_all.rb +0 -26
- data/test/lib/facet/string/test_last.rb +0 -46
- data/test/lib/facet/string/test_line_wrap.rb +0 -27
- data/test/lib/facet/string/test_lines.rb +0 -26
- data/test/lib/facet/string/test_lowercase.rb +0 -26
- data/test/lib/facet/string/test_margin.rb +0 -117
- data/test/lib/facet/string/test_mscan.rb +0 -30
- data/test/lib/facet/string/test_natcmp.rb +0 -30
- data/test/lib/facet/string/test_nchar.rb +0 -29
- data/test/lib/facet/string/test_pop.rb +0 -47
- data/test/lib/facet/string/test_probability.rb +0 -28
- data/test/lib/facet/string/test_push.rb +0 -40
- data/test/lib/facet/string/test_quote.rb +0 -49
- data/test/lib/facet/string/test_rand_byte.rb +0 -35
- data/test/lib/facet/string/test_rand_index.rb +0 -26
- data/test/lib/facet/string/test_range.rb +0 -27
- data/test/lib/facet/string/test_range_all.rb +0 -27
- data/test/lib/facet/string/test_range_of_line.rb +0 -28
- data/test/lib/facet/string/test_regesc.rb +0 -28
- data/test/lib/facet/string/test_shatter.rb +0 -29
- data/test/lib/facet/string/test_shift.rb +0 -40
- data/test/lib/facet/string/test_shuffle.rb +0 -27
- data/test/lib/facet/string/test_similarity.rb +0 -26
- data/test/lib/facet/string/test_singular.rb +0 -32
- data/test/lib/facet/string/test_slap.rb +0 -40
- data/test/lib/facet/string/test_soundex.rb +0 -41
- data/test/lib/facet/string/test_succ.rb +0 -29
- data/test/lib/facet/string/test_to_a.rb +0 -27
- data/test/lib/facet/string/test_to_arr.rb +0 -26
- data/test/lib/facet/string/test_to_b.rb +0 -41
- data/test/lib/facet/string/test_to_const.rb +0 -28
- data/test/lib/facet/string/test_to_date.rb +0 -30
- data/test/lib/facet/string/test_to_proc.rb +0 -33
- data/test/lib/facet/string/test_to_re.rb +0 -28
- data/test/lib/facet/string/test_to_time.rb +0 -30
- data/test/lib/facet/string/test_unix_crypt.rb +0 -30
- data/test/lib/facet/string/test_unpack.rb +0 -34
- data/test/lib/facet/string/test_unshift.rb +0 -39
- data/test/lib/facet/string/test_upcase.rb +0 -30
- data/test/lib/facet/string/test_whitespace.rb +0 -27
- data/test/lib/facet/string/test_word_filter.rb +0 -34
- data/test/lib/facet/string/test_word_wrap.rb +0 -51
- data/test/lib/facet/string/test_words.rb +0 -37
- data/test/lib/facet/symbol/test_camelcase.rb +0 -26
- data/test/lib/facet/symbol/test_camelize.rb +0 -27
- data/test/lib/facet/symbol/test_capitalize.rb +0 -26
- data/test/lib/facet/symbol/test_capitalized.rb +0 -27
- data/test/lib/facet/symbol/test_downcase.rb +0 -27
- data/test/lib/facet/symbol/test_not.rb +0 -29
- data/test/lib/facet/symbol/test_pad.rb +0 -27
- data/test/lib/facet/symbol/test_succ.rb +0 -28
- data/test/lib/facet/symbol/test_to_const.rb +0 -28
- data/test/lib/facet/symbol/test_to_proc.rb +0 -27
- data/test/lib/facet/symbol/test_to_str.rb +0 -28
- data/test/lib/facet/symbol/test_underscore.rb +0 -26
- data/test/lib/facet/symbol/test_upcase.rb +0 -27
- data/test/lib/facet/time/test_change.rb +0 -33
- data/test/lib/facet/time/test_elapse.rb +0 -27
- data/test/lib/facet/time/test_stamp.rb +0 -31
- data/test/lib/facet/time/test_to_date.rb +0 -31
- data/test/lib/facet/time/test_to_s.rb +0 -31
- data/test/lib/facet/time/test_to_time.rb +0 -31
- data/test/lib/facets/english/test_bytes.rb +0 -84
- data/test/lib/facets/english/test_multipliers.rb +0 -114
- data/test/lib/facets/english/test_time.rb +0 -73
- data/test/testdir.rb +0 -8
data/CHANGELOG
DELETED
@@ -1,254 +0,0 @@
|
|
1
|
-
= Facets Change Log
|
2
|
-
|
3
|
-
== 1.0.0
|
4
|
-
* Sped up string#similarity.
|
5
|
-
* By popular protest deprecated usage of "AClass.use Facets, :amethod".
|
6
|
-
* Created nicer layout of facets/support, /group, /english (one day /method).
|
7
|
-
* Odd sets of facets have been move to facets/group/, eg. facets/group/inflect.
|
8
|
-
* All is now well preped for a Rolls release shoud that come about.
|
9
|
-
|
10
|
-
== v0.10.30 Halloween
|
11
|
-
* Change OrderedHash (ohash.rb) to Dictionary (dictionary.rb).
|
12
|
-
* Change BlankSlate (blankslate.rb) to BasicObject (basicobject.rb).
|
13
|
-
* Old versions of the above should still work, but throw warnings
|
14
|
-
and will stop working come next version.
|
15
|
-
* 1.rb has been renamed to one.rb (I know, two more characters,
|
16
|
-
but you can do it! ;)
|
17
|
-
* Methods enumerable/op_mod (%) and enumerable/eF are deprecated.
|
18
|
-
Use #every or #ew instead.
|
19
|
-
|
20
|
-
== v0.10.11 Palapable
|
21
|
-
* Merged Mega into Facets. I put the old Mega ChangeLog at
|
22
|
-
the bottom of this document.
|
23
|
-
* This represents the One-Point-Oh realease (albeit RC1) of
|
24
|
-
Facets, but from now on I'll be using date versioning
|
25
|
-
--if you look at the versions below you may understand why.
|
26
|
-
The versioning sequence has no real rationality.
|
27
|
-
Instead I will use this simple Rational Versioning Policy:
|
28
|
-
* If YYYY-MM-DD it's a development release.
|
29
|
-
* If YYYY-MM it's an official release.
|
30
|
-
* If just YYYY it's hella stable.
|
31
|
-
One might argue this is not as robust as a compatability
|
32
|
-
significant point-based versioning system, but I'd say that's
|
33
|
-
all well and good in theory, now give me something that actually
|
34
|
-
works in practice.
|
35
|
-
|
36
|
-
== v0.9.5 Rebirth
|
37
|
-
* Rebirth of Facets! As cool as the name Nano is, it became clear
|
38
|
-
that most people are drawn toward the name Facets. So we are
|
39
|
-
reverting back. Nonetheless Nano will remain a viable alias for
|
40
|
-
Facets.
|
41
|
-
* Must now use <code>require 'facets'</code> prior to using
|
42
|
-
other Facets. This does two things. First it loads the
|
43
|
-
base methods, which ensures that all programs have them
|
44
|
-
readibly available when using Facets. Secondly it supplements
|
45
|
-
#require to handle aliases. In essence, require 'facet/...',
|
46
|
-
require 'facets/...' and require 'nano/...' all point to the
|
47
|
-
same place(s). (NOTE This is a precursor to a more universal
|
48
|
-
system that will handle aliasing automatically.)
|
49
|
-
* kernel/require_esc has been removed. #require_nano will be also
|
50
|
-
in the next release. These will no longer be needed thanks to
|
51
|
-
the aliasing system.
|
52
|
-
|
53
|
-
== v0.9.2 Littles
|
54
|
-
* Added string/starts_with? and string/ends_with?
|
55
|
-
* Fixed module/memoize to cache on a per class/module bases.
|
56
|
-
* Added module/is as an alias for /include.
|
57
|
-
* Added module/shadow_method and shadow_all.
|
58
|
-
* Renamed module/superup (which was module/supers) to module/as. And defined a new
|
59
|
-
method called /superior which is like /super but skips to a sepecified ancestor.
|
60
|
-
* Renamed module/super_send to module/send_as.
|
61
|
-
|
62
|
-
== v0.9.1 Wraps
|
63
|
-
* Added module/nesting (not to be confused with the class method Module::nesting).
|
64
|
-
* Thanks goes to Gavien Kistner for new string/word_wrap methods
|
65
|
-
(with additioanl thanks to Dyane Borderson for his suggestions).
|
66
|
-
* Added hash/each_with_key and each_with_index, as well as array/each_with_key;
|
67
|
-
increasing polymorphism between the two classes.
|
68
|
-
* Moved array/each_pair to enumerable/each_pair and changed how it worked to
|
69
|
-
what one might expect.
|
70
|
-
|
71
|
-
== v0.9.0 NotUorI
|
72
|
-
* Deprecated object#special_class, which was a method for (class<<self;self;end).
|
73
|
-
Already have too many aliases for this, and though the name is fitting, the simpler
|
74
|
-
method #own is better (alternative: #singleton).
|
75
|
-
* Fixed enumerable/uniq_by file which was misnamed 'unique_by.rb'.
|
76
|
-
* BIG CHANGE! Got rid of URI encoding on file names and sub'd a converson table
|
77
|
-
of english readable names. Thanks Jeff Wood, Florain Gross, Dav Burt,
|
78
|
-
Gavin Kistner, James Edward Gray II, Brian Schröder, Mauricio Fernández,
|
79
|
-
David A. Black, Gavin Sinclair, Nikolai Weibull and Christian Neukirchen.
|
80
|
-
|
81
|
-
== v0.8.3 UorI
|
82
|
-
* Added kernel/uri and kernel/unuri
|
83
|
-
* (Good idea?) removed methods module/sattr, sattr_reader, &c. Instead created object/meta
|
84
|
-
in which attr, attr_reader, &c. are made public. So, sattr -> meta.attr.
|
85
|
-
* Added array/unzip
|
86
|
-
* Added logger/format and logger/format_message (stub).
|
87
|
-
* Added string/dequote.
|
88
|
-
* Class method file names now begin with '::' to separate them from instance methods.
|
89
|
-
|
90
|
-
== v0.8.2 Nano Revolution
|
91
|
-
* Name Change! What was Ruby Facets is now Nano Methods!
|
92
|
-
* New minor version as there has been a change of plans with the integration of what was Carats.
|
93
|
-
The classes and modules have been reseperated into their own project called Mega Modules.
|
94
|
-
* Modified the #firstxxx/#lastxxx methods to be more congruent and comprehensible.
|
95
|
-
* Renamed object/supers to object/superup. Better!
|
96
|
-
* Got rid ot symbol/gen. Use object/generate_method_name or module#generate_instance_method_name
|
97
|
-
instead ( Is that the longest non-foo method name ever? :)
|
98
|
-
* The file 1st.rb has moved to object/method. This modifies #method to persist the returned
|
99
|
-
Method object. The original non-persitent version of #method is aliased to #original_method.
|
100
|
-
(This arrangement is not set in stone though, and is still be considered.)
|
101
|
-
* Added module/clone_using, module/clone_ranaming and module/clone_removing.
|
102
|
-
* Added module/integrate (I love this one!)
|
103
|
-
* Added many new enumerable methods: #filter_map, #compact_map, #commonality, #frequency,
|
104
|
-
#probability and #find_collisions.
|
105
|
-
* Moved some methods from array to enumerable: #each_permutation, #each_combination,
|
106
|
-
#each_unique_pair and the class method ::combinations.
|
107
|
-
* Added string/bytes per ruby-dev summary 26385-26467.
|
108
|
-
* Moved #cattr_reader, #cattr_writer and #cattr_accessor from Class to Module.
|
109
|
-
* Renamed numeric/octet_units to numeric/bytes_to_s and added a #bits_to_s as well.
|
110
|
-
* Added class/descendants (alias subclasses) and class/remove_descendents, as well as
|
111
|
-
object/descendents_of and object/remove_descendents_of.
|
112
|
-
* Added methods to comparable: #cap, #clip. There are also #at_least and
|
113
|
-
#at_most, although FYI #cap and #clip handle the same functionality.
|
114
|
-
* Removed string/table_name and string/class_name (they were too Rails specific).
|
115
|
-
Note: A new module has been added to Mega Modules, called orm-inflect.rb. It contains numerous
|
116
|
-
methods for doing this sort of thing.
|
117
|
-
* Added numeric/ceil_multiple (not sure about name though, perhaps a better name like "ceil_to"?).
|
118
|
-
* Added string/soundex for calculating the soundex code of a word/name.
|
119
|
-
* Added io/expect. I thought Ruby already had this but can't find it, so here it is for now.
|
120
|
-
* Placed Florian's binding-of-caller.rb in binding/of_caller. Makes more sense there.
|
121
|
-
* Fixed bug with Continuation::create (it wasn't defined as a class method and should have been).
|
122
|
-
* Fixed bug with string/capitalized? which wasn't always giving the correct result.
|
123
|
-
|
124
|
-
== v0.7.2 George II
|
125
|
-
* Added a class method dir/recurse which allows one to loop through a dir and all its
|
126
|
-
subdirs, etc. It also has an alias #ls_r. Thanks goes to George Maschovitis for this.
|
127
|
-
* Changed array/permute to array/each_permutation.
|
128
|
-
|
129
|
-
== v0.7.1 Quick George
|
130
|
-
* Added facet.rb, although expiremental it makes it possible to use atomic methods without
|
131
|
-
specificaly requiring them. It uses Object#method_missing to require them as needed.
|
132
|
-
* Improved on "molecules", i.e. files that require numerous related atoms in a single go.
|
133
|
-
These will see a great deal of continued improvement in the future.
|
134
|
-
|
135
|
-
== v0.7.0 Georgian Transform
|
136
|
-
* All methods with names containing non-alphanumeric characters now have facet
|
137
|
-
files without those special characters. This removes some incompatibilites with
|
138
|
-
certain systems (including Windows). All such symbols have been replaced with
|
139
|
-
CGI escape sequences, for instance 'in?.rb' becomes 'in%3F.rb'. To avoid having
|
140
|
-
to use these "ugly" names, a new method has been added, kernel/require_facet.
|
141
|
-
* Methods that were grouped together in the same file have been separated
|
142
|
-
into their own files. Pure Atomicity has been achieved!
|
143
|
-
* The method array/put has been dropped in favor of array/top (as a better alias for #unshift).
|
144
|
-
* Methods #matchdata/post_match_from and #matchdata/pre_match_from have deprecated
|
145
|
-
in favor of more generalized methods that serves the same purposes,
|
146
|
-
matchdata/matchtree and matchdata/matchset.
|
147
|
-
* Added module/include_as.
|
148
|
-
* Added array/permute.
|
149
|
-
|
150
|
-
== v0.6.3 Gemstone
|
151
|
-
* Gem is now avaliable!
|
152
|
-
* Added kernel/require_all which allows one to require a pattern of files,
|
153
|
-
making it easy to require every file in a directory.
|
154
|
-
* Added hash/traverse and hash/traverse!, which takes a block and iterates over
|
155
|
-
each key-value pair descending into subhash values and applying the block.
|
156
|
-
(Thanks goes to Ara T. Howard and robert for their help.)
|
157
|
-
* Added hash/collect. This uses enumerable/graph so that
|
158
|
-
hash/collect will return a hash rather then an array.
|
159
|
-
* Added numeric/before and numeric/after in place of #ago and #since
|
160
|
-
and aliased #ago and #since to them, per the suggestions of
|
161
|
-
Francis Hwang.
|
162
|
-
* Added "poor man's profiler", time/elapse. (Thanks goes to Hal Fulton).
|
163
|
-
* Changed enumerable/build_hash to enumerable/graph. The method #build_hash
|
164
|
-
has been aliased to #graph for the time being for backward compatability.
|
165
|
-
* Added array/last_index. (Thanks goes to Jabari)
|
166
|
-
|
167
|
-
== v0.6.2 Refinement I
|
168
|
-
* Added kernel/resc as a shortcut for Regexp.escape.
|
169
|
-
* Renamed hash/keys_to_string to hash/key_to_s and
|
170
|
-
hash/keys_to_symbol to hash/keys_to_sym to be more consistant
|
171
|
-
with other methods and what these methods specifically do.
|
172
|
-
The old names have been deprecated.
|
173
|
-
* Added hash/has_keys?, which allows for checking mutliple keys at once.
|
174
|
-
Also includes #has_only_keys?
|
175
|
-
* Added Rail's Time and Byte modules for Numeric with
|
176
|
-
numeric/times.rb and numeric/bytes.rb (I've been informed that
|
177
|
-
thanks go to Richard Kilmer for this. Thanks!)
|
178
|
-
* Added numeric/octet_unit which utilizes numeric/bytes.
|
179
|
-
(The name of this method may change in the future though.)
|
180
|
-
* Added enumerable/uniq_by.
|
181
|
-
* Added module/abstract.
|
182
|
-
* Added module/redirect which is similar to alias, but does not
|
183
|
-
copy the method, but rather wraps it. It also takes a hash so
|
184
|
-
multiple methods can be redirected all at once.
|
185
|
-
* Added string/shatter which is similar to split but includes
|
186
|
-
the matched portions of text.
|
187
|
-
|
188
|
-
== v0.6.1 Florian's Mixes
|
189
|
-
* Updated the current set of mix files which were still from
|
190
|
-
version 0.5.0. (2004-12-31)
|
191
|
-
|
192
|
-
== v0.6.0 Florian's Onslaught
|
193
|
-
* Major revisions made by Florian's onslaught. (2004-12-28)
|
194
|
-
* First general public release.
|
195
|
-
|
196
|
-
== v0.5.0 Fit for First
|
197
|
-
* This is the beginning of offical releases. (2004-12-23)
|
198
|
-
* Now called Facets.
|
199
|
-
* Changed layout to be completely atomic! (2004-10-30)
|
200
|
-
|
201
|
-
== v0.4.0 Raspberry
|
202
|
-
* Scoured the Ruby world for useful additions.
|
203
|
-
* Changed name again from A.B.C. to Raspberry.
|
204
|
-
I can't seem to settle on a name. Even the new
|
205
|
-
subsections have changed five times. (2004-08-08)
|
206
|
-
|
207
|
-
== v0.3.0 ABC
|
208
|
-
* Reorganinzed all of this together in a nice neat way.
|
209
|
-
* Changed name of library from Succ to A.B.C.
|
210
|
-
which stands for All Base Common. (2004-02-02)
|
211
|
-
|
212
|
-
== v0.2.0 Succ
|
213
|
-
* A number of new methods added.
|
214
|
-
* Renamed it Succ for "successor". (2003-05-31)
|
215
|
-
|
216
|
-
== v0.1.0 TomsLib
|
217
|
-
* Tomslib's just a few useful methods. (2002-07-01)
|
218
|
-
|
219
|
-
|
220
|
-
== Old Mega/Carats ChangeLog
|
221
|
-
|
222
|
-
== v0.4.0
|
223
|
-
* Adjusted Tuple to use Tuple::[*args] instead of ::new, which now takes
|
224
|
-
a single argument instead, either an Array or a String which it splits.
|
225
|
-
* Removed services.rb unitl in gets fixed and a better name.
|
226
|
-
|
227
|
-
== v0.3.3
|
228
|
-
* Added inheritable.rb, a lib for creating class vars inherit from ancestors
|
229
|
-
* Addes annotations.rb, a lightweight metadata system good for annotating
|
230
|
-
methods esspecially. It is built on top of inheritable.rb.
|
231
|
-
|
232
|
-
== 0.3.2
|
233
|
-
* Added services.rb, a lib for managing methods as first class objects
|
234
|
-
* Fixed/cleaned-up orm_supprt.rb
|
235
|
-
|
236
|
-
== 0.3.1
|
237
|
-
* Aliased #autoload_classes with #autorequire.
|
238
|
-
* Added #strfbits and #strfbytes to binary_multiplers.rb.
|
239
|
-
|
240
|
-
== 0.3.0
|
241
|
-
* Name change to Mega Modules!
|
242
|
-
* Added a few important files: multipliers.rb, binary_multipliers.rb,
|
243
|
-
time_in_english.rb and orm_inlectors.rb.
|
244
|
-
* Each one of these is a "Methods Module", i.e. They are a collection of
|
245
|
-
closely related methods that modify one or more core classes/modules.
|
246
|
-
Individually these methods could have very well ended up in Nano Methods,
|
247
|
-
but given there quantity and interrelation they were more suitable to a
|
248
|
-
module, and thus placed here.
|
249
|
-
|
250
|
-
== 0.2.0
|
251
|
-
* Initial public release
|
252
|
-
|
253
|
-
== 0.1.0
|
254
|
-
* Early Development as Ruby Carats
|
data/Rakefile
DELETED
@@ -1,173 +0,0 @@
|
|
1
|
-
|
2
|
-
# $:.unshift('lib')
|
3
|
-
|
4
|
-
#require 'uri'
|
5
|
-
require 'yaml'
|
6
|
-
require 'fileutils'
|
7
|
-
|
8
|
-
require './lib/facets/2005-11-05/ext/file/self/read_list'
|
9
|
-
|
10
|
-
VERSION = "2005-11-05"
|
11
|
-
REQPATH = "facets/#{ver}"
|
12
|
-
DATPATH = "data/facets"
|
13
|
-
ETCPATH = "conf/facets"
|
14
|
-
MTHPATH = "lib/facets/#{ver}/ext"
|
15
|
-
GENPATH = "lib/facets/#{ver}/set/general"
|
16
|
-
|
17
|
-
#-----------------------------------------------------
|
18
|
-
# Generate facet/ redirect to nano/, mega/ and unit/
|
19
|
-
#-----------------------------------------------------
|
20
|
-
desc %{Build facet redirect directory}
|
21
|
-
task :facet do
|
22
|
-
sh %{rm -R './lib/facet'}
|
23
|
-
['ext','set/special','set/general'].each{ |d|
|
24
|
-
from = "lib/facets/2005-11-05"
|
25
|
-
rbs = Dir.glob( File.join( from, d, '**/*.rb' ) )
|
26
|
-
rbs.each { |e|
|
27
|
-
nolib = e.gsub( /^lib\//, '' )
|
28
|
-
re = Regexp.new( Regexp.escape( File.join( from, d ) + '/' ) )
|
29
|
-
link = e.gsub( re, 'lib/facet/')
|
30
|
-
FileUtils.mkdir_p( File.dirname( link ) )
|
31
|
-
File.open( link, "w+" ) { |w|
|
32
|
-
w << "require '#{nolib}'"
|
33
|
-
}
|
34
|
-
}
|
35
|
-
}
|
36
|
-
end
|
37
|
-
|
38
|
-
#-----------------------------------------------------
|
39
|
-
# Read in the facets/ext directory and sort-out per class
|
40
|
-
#-----------------------------------------------------
|
41
|
-
Methods = {}
|
42
|
-
task :methods do
|
43
|
-
Dir.chdir(MTHPATH) do
|
44
|
-
dg = Dir.glob('*/**/*.rb')
|
45
|
-
dg.each { |f|
|
46
|
-
klass, *meth= f.split('/')
|
47
|
-
Methods[ klass ] ||= []
|
48
|
-
Methods[ klass ] << "#{meth.join('/').chomp('.rb')}"
|
49
|
-
}
|
50
|
-
Methods.keys.each { |k| Methods[k].sort! }
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
#-----------------------------------------------------
|
55
|
-
# Save method index to file in yaml format
|
56
|
-
#-----------------------------------------------------
|
57
|
-
desc %{Generate method index file}
|
58
|
-
task :index => [ :methods ] do
|
59
|
-
print "Creating method index... "
|
60
|
-
loc = File.join( DATPATH, 'index.yml' )
|
61
|
-
File.open( loc, 'w' ) { |f|
|
62
|
-
f << Methods.to_yaml
|
63
|
-
}
|
64
|
-
puts "[done]"
|
65
|
-
end
|
66
|
-
|
67
|
-
#-----------------------------------------------------
|
68
|
-
# Create per class feature files
|
69
|
-
#-----------------------------------------------------
|
70
|
-
desc %Q{Generate per-class feature files}
|
71
|
-
task :class => [:methods ] do
|
72
|
-
print "Creating per class files... "
|
73
|
-
|
74
|
-
index = Methods
|
75
|
-
noauto = File.read_list( File.join( ETCPATH, 'noauto' ) )
|
76
|
-
allfiles = index.collect{ |k,ms| ms.collect{ |m| "#{k}/#{m}" } }.flatten
|
77
|
-
full = calc_full(allfiles, noauto)
|
78
|
-
|
79
|
-
index.each { |classname, method_files|
|
80
|
-
File.open( "#{GENPATH}/#{classname.downcase}.rb", 'w' ) { |f|
|
81
|
-
method_files.each { |rf|
|
82
|
-
mfn = "#{classname.downcase}/#{rf}"
|
83
|
-
if full.include?(mfn)
|
84
|
-
f << %Q{require '#{REQPATH}/#{mfn}'\n}
|
85
|
-
end
|
86
|
-
}
|
87
|
-
}
|
88
|
-
}
|
89
|
-
puts "[done]"
|
90
|
-
end
|
91
|
-
|
92
|
-
#-----------------------------------------------------
|
93
|
-
# Do all prep tasks (do this to generate data index
|
94
|
-
# file and method group files)
|
95
|
-
#-----------------------------------------------------
|
96
|
-
desc %{Do all preperation (index, class)}
|
97
|
-
task :prep => [ :index, :class, :facet ] do
|
98
|
-
end
|
99
|
-
|
100
|
-
#-----------------------------------------------------
|
101
|
-
# List Methods
|
102
|
-
#-----------------------------------------------------
|
103
|
-
desc %{Output a list of all methods}
|
104
|
-
task 'list' => [ :methods ] do
|
105
|
-
puts method_list_outline
|
106
|
-
end
|
107
|
-
|
108
|
-
# #-----------------------------------------------------
|
109
|
-
# # HTML List MethodsFile.new(
|
110
|
-
# #-----------------------------------------------------
|
111
|
-
#
|
112
|
-
# HEAD = <<-HERE
|
113
|
-
# <html>
|
114
|
-
# <head>
|
115
|
-
# <style>
|
116
|
-
# pre#methods {
|
117
|
-
# font-size: .8em;
|
118
|
-
# line-height: 1em;
|
119
|
-
# }
|
120
|
-
# </style>
|
121
|
-
# </head>
|
122
|
-
# <body>
|
123
|
-
# <pre id="methods">
|
124
|
-
# HERE
|
125
|
-
#
|
126
|
-
# FOOT=<<-HERE
|
127
|
-
# </pre>
|
128
|
-
# </body>
|
129
|
-
# </html>
|
130
|
-
# HERE
|
131
|
-
#
|
132
|
-
# desc %{generate method list html file}
|
133
|
-
# task 'listHtml' => [ :scrape_methods ] do
|
134
|
-
# s = HEAD + method_list_outline + FOOT
|
135
|
-
# File.open('pub/www/methods.html', 'w') { |f| f << s }
|
136
|
-
# end
|
137
|
-
|
138
|
-
=begin
|
139
|
-
desc "Check for open comment tests"
|
140
|
-
task :testchk do
|
141
|
-
system %q{grep -r ^#=begin\ test ./lib}
|
142
|
-
end
|
143
|
-
=end
|
144
|
-
|
145
|
-
#-----------------------------------------------------
|
146
|
-
# Support Methods
|
147
|
-
#-----------------------------------------------------
|
148
|
-
|
149
|
-
private
|
150
|
-
|
151
|
-
def method_list_outline
|
152
|
-
s = ''
|
153
|
-
Methods.keys.sort.each { |k|
|
154
|
-
ms = Methods[k].collect{|m| m.gsub(%r{^self\/},'::')}.sort
|
155
|
-
s << "#{k}:\n"
|
156
|
-
ms.each { |m| s << " #{m}\n" }
|
157
|
-
}
|
158
|
-
s
|
159
|
-
end
|
160
|
-
|
161
|
-
# Full set of require files (allfiles minus noauto and unsafe)
|
162
|
-
def calc_full( allfiles, noauto )
|
163
|
-
sf = allfiles.dup
|
164
|
-
noauto.each do |f|
|
165
|
-
if f.include?('*')
|
166
|
-
re = %r"#{f.gsub('*','.*')}"
|
167
|
-
sf.reject!{ |x| x =~ re }
|
168
|
-
elsif sf.include?(f)
|
169
|
-
sf.delete f
|
170
|
-
end
|
171
|
-
end
|
172
|
-
sf.sort
|
173
|
-
end
|
data/TODO
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
|
2
|
-
= Facets' To Do List
|
3
|
-
|
4
|
-
IT IS ALWAYS A GOOD IDEA TO WRITE A TEST!
|
5
|
-
AND ITS ALWAYS A FINE THING TO IMPROVE DOCUMENTATION!
|
6
|
-
|
7
|
-
* Move methods to facets/method and link back to facet/ but prefer library alias
|
8
|
-
instead. (Rolls)
|
9
|
-
|
10
|
-
* hash/invert: What about letting Hash#invert take a block that specifies
|
11
|
-
what to do when a collision occurs?
|
12
|
-
|
13
|
-
* hash/at_rand: allow for a _number_ of values, keys and pairs to be returned.
|
14
|
-
|
15
|
-
* > Yep. Gone. But I may replace with a version that deletes only the first
|
16
|
-
> matching element. Thoughts?
|
17
|
-
If you don't want to do that I would rather add an option hash to .delete and
|
18
|
-
use :once => true or something similar. (More expressive)
|
19
|
-
|
20
|
-
* numeric/bound_by: Numeric includes Comparable. Maybe drop this, but
|
21
|
-
might it be reasonable for Numeric but no other comparables?
|
22
|
-
|
23
|
-
* nil/[]: Why should nil respond to [], but not to .each? I don't think
|
24
|
-
nil should be treated as a container.
|
25
|
-
nil/length: See above.
|
26
|
-
|
27
|
-
* nil/method_missing: I'm not so sure about this. There is a lot of
|
28
|
-
libraries depending on nil raising exceptions on failed method access. I
|
29
|
-
also think that this could make programming errors very hard to find.
|
30
|
-
|
31
|
-
* fileutils/head&tail: Hm, I think the block forms ought to be equivalent to
|
32
|
-
tail -f and so on. Then the block forms should also return all lines by default
|
33
|
-
instead of only the first 10.
|
34
|
-
|
35
|
-
* fileutils/which: Should probably be based on fileutils/where_is as they have
|
36
|
-
lots of common code. The two methods should probably also use RUBY_PLATFORM instead
|
37
|
-
of checking for ALT_SEPARATOR.
|
38
|
-
|
39
|
-
* module/memoize: Should the main memoize method be defined as it is?
|
40
|
-
(see bottom of file).
|
41
|
-
|
42
|
-
* kernel/demo: It can be implemented as demo "1+1" using Binding.of_caller.
|
43
|
-
Using only the block is possibly with SCRIPT_LINES__ or File access and is quite ugly.
|
44
|
-
|
45
|
-
* hash/weave: Document how does it compare to Hash#merge?
|
46
|
-
|