facets 1.8.54 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +65 -0
- data/LICENSE +344 -0
- data/README +132 -176
- data/demo/bench/bench_factorial.rb +31 -0
- data/demo/sample/annotations/annotations1.rb +22 -0
- data/demo/{ansicolor → sample/ansicolor}/cdiff.rb +0 -0
- data/demo/{ansicolor → sample/ansicolor}/example.rb +0 -0
- data/lib/core/facets.rb +46 -0
- data/lib/core/facets/1stclassmethod.rb +113 -0
- data/lib/core/facets/array.rb +10 -0
- data/lib/core/facets/array/conjoin.rb +15 -0
- data/lib/core/facets/array/delete.rb +95 -0
- data/lib/core/facets/array/indexable.rb +206 -0
- data/lib/core/facets/array/merge.rb +62 -0
- data/lib/core/facets/array/pad.rb +87 -0
- data/lib/core/facets/array/rotate.rb +72 -0
- data/lib/core/facets/array/select.rb +39 -0
- data/lib/core/facets/array/splice.rb +16 -0
- data/lib/core/facets/array/stackable.rb +64 -0
- data/lib/core/facets/array/unzip.rb +15 -0
- data/lib/core/facets/binding.rb +3 -0
- data/lib/core/facets/binding/cflow.rb +121 -0
- data/lib/core/facets/binding/eval.rb +83 -0
- data/lib/core/facets/binding/vars.rb +86 -0
- data/lib/core/facets/boolean.rb +233 -0
- data/lib/core/facets/class.rb +2 -0
- data/lib/core/facets/class/descendents.rb +68 -0
- data/lib/core/facets/class/initializer.rb +66 -0
- data/lib/core/facets/comparable.rb +2 -0
- data/lib/core/facets/comparable/bound.rb +120 -0
- data/lib/core/facets/comparable/cmp.rb +172 -0
- data/lib/core/facets/continuation.rb +1 -0
- data/lib/{facets/core/continuation/self → core/facets/continuation}/create.rb +0 -0
- data/lib/core/facets/conversion.rb +699 -0
- data/lib/core/facets/dir.rb +2 -0
- data/lib/core/facets/dir/multiglob.rb +143 -0
- data/lib/core/facets/dir/traverse.rb +148 -0
- data/lib/core/facets/enumerable.rb +9 -0
- data/lib/core/facets/enumerable/cartesian.rb +156 -0
- data/lib/core/facets/enumerable/collate.rb +115 -0
- data/lib/core/facets/enumerable/collect.rb +155 -0
- data/lib/core/facets/enumerable/combination.rb +154 -0
- data/lib/core/facets/enumerable/count.rb +252 -0
- data/lib/core/facets/enumerable/instance_map.rb +0 -0
- data/lib/core/facets/enumerable/partition.rb +285 -0
- data/lib/core/facets/enumerable/permutation.rb +125 -0
- data/lib/core/facets/enumerable/probability.rb +218 -0
- data/lib/core/facets/file.rb +3 -0
- data/lib/core/facets/file/read.rb +84 -0
- data/lib/core/facets/file/topath.rb +153 -0
- data/lib/core/facets/file/write.rb +153 -0
- data/lib/core/facets/filetest.rb +1 -0
- data/lib/core/facets/filetest/root.rb +15 -0
- data/lib/core/facets/float.rb +1 -0
- data/lib/core/facets/float/round.rb +8 -0
- data/lib/core/facets/functor.rb +102 -0
- data/lib/core/facets/hash.rb +14 -0
- data/lib/core/facets/hash/at.rb +44 -0
- data/lib/core/facets/hash/delete.rb +95 -0
- data/lib/core/facets/hash/has_keys.rb +70 -0
- data/lib/core/facets/hash/insert.rb +52 -0
- data/lib/core/facets/hash/inverse.rb +66 -0
- data/lib/core/facets/hash/iterate.rb +69 -0
- data/lib/core/facets/hash/keyize.rb +249 -0
- data/lib/core/facets/hash/merge.rb +63 -0
- data/lib/core/facets/hash/new.rb +74 -0
- data/lib/core/facets/hash/op.rb +154 -0
- data/lib/core/facets/hash/rekey.rb +173 -0
- data/lib/core/facets/hash/traverse.rb +81 -0
- data/lib/core/facets/hash/update.rb +93 -0
- data/lib/core/facets/hash/weave.rb +101 -0
- data/lib/core/facets/indexable.rb +213 -0
- data/lib/core/facets/integer.rb +4 -0
- data/lib/core/facets/integer/bitmask.rb +141 -0
- data/lib/core/facets/integer/factorial.rb +72 -0
- data/lib/core/facets/integer/multiples.rb +82 -0
- data/lib/core/facets/integer/of.rb +49 -0
- data/lib/core/facets/kernel.rb +19 -0
- data/lib/core/facets/kernel/ask.rb +14 -0
- data/lib/core/facets/kernel/callstack.rb +119 -0
- data/lib/core/facets/kernel/constant.rb +60 -0
- data/lib/core/facets/kernel/deepcopy.rb +111 -0
- data/lib/core/facets/kernel/dir.rb +12 -0
- data/lib/core/facets/kernel/instance.rb +245 -0
- data/lib/core/facets/kernel/metaid.rb +198 -0
- data/lib/core/facets/kernel/object.rb +93 -0
- data/lib/core/facets/kernel/op_esc.rb +40 -0
- data/lib/core/facets/kernel/populate.rb +199 -0
- data/lib/core/facets/kernel/report.rb +83 -0
- data/lib/core/facets/kernel/require.rb +69 -0
- data/lib/core/facets/kernel/require_esc.rb +44 -0
- data/lib/core/facets/kernel/respond.rb +13 -0
- data/lib/core/facets/kernel/silence.rb +91 -0
- data/lib/core/facets/kernel/super.rb +222 -0
- data/lib/core/facets/kernel/tap.rb +105 -0
- data/lib/core/facets/kernel/val.rb +65 -0
- data/lib/core/facets/kernel/withattr.rb +111 -0
- data/lib/core/facets/matchdata.rb +1 -0
- data/lib/core/facets/matchdata/matchset.rb +98 -0
- data/lib/core/facets/module.rb +11 -0
- data/lib/core/facets/module/abstract.rb +59 -0
- data/lib/core/facets/module/alias.rb +153 -0
- data/lib/core/facets/module/attr.rb +139 -0
- data/lib/core/facets/module/cattr.rb +178 -0
- data/lib/core/facets/module/clone.rb +101 -0
- data/lib/core/facets/module/include.rb +229 -0
- data/lib/core/facets/module/methods.rb +16 -0
- data/lib/core/facets/module/modify.rb +359 -0
- data/lib/core/facets/module/name.rb +186 -0
- data/lib/core/facets/module/require.rb +62 -0
- data/lib/core/facets/module/traits.rb +110 -0
- data/lib/core/facets/nilclass.rb +2 -0
- data/lib/core/facets/nilclass/ergo.rb +13 -0
- data/lib/{facets/core → core/facets}/nilclass/status.rb +0 -0
- data/lib/core/facets/numeric.rb +1 -0
- data/lib/core/facets/numeric/round.rb +143 -0
- data/lib/core/facets/proc.rb +3 -0
- data/lib/core/facets/proc/bind.rb +107 -0
- data/lib/core/facets/proc/compose.rb +78 -0
- data/lib/core/facets/proc/fn.rb +10 -0
- data/lib/core/facets/range.rb +2 -0
- data/lib/core/facets/range/combine.rb +83 -0
- data/lib/core/facets/range/overlap.rb +130 -0
- data/lib/core/facets/regexp.rb +1 -0
- data/lib/core/facets/regexp/arity.rb +52 -0
- data/lib/core/facets/stackable.rb +46 -0
- data/lib/core/facets/string.rb +18 -0
- data/lib/core/facets/string/align.rb +102 -0
- data/lib/core/facets/string/blank.rb +60 -0
- data/lib/core/facets/string/bracket.rb +176 -0
- data/lib/core/facets/string/case.rb +105 -0
- data/lib/core/facets/string/crypt.rb +59 -0
- data/lib/core/facets/string/filter.rb +102 -0
- data/lib/core/facets/string/format.rb +283 -0
- data/lib/core/facets/string/indexable.rb +248 -0
- data/lib/core/facets/string/interpolate.rb +70 -0
- data/lib/core/facets/string/natcmp.rb +122 -0
- data/lib/core/facets/string/nchar.rb +88 -0
- data/lib/core/facets/string/partitions.rb +139 -0
- data/lib/core/facets/string/range.rb +95 -0
- data/lib/core/facets/string/regesc.rb +63 -0
- data/lib/core/facets/string/scan.rb +100 -0
- data/lib/core/facets/string/splice.rb +29 -0
- data/lib/core/facets/string/stackable.rb +181 -0
- data/lib/core/facets/string/tabs.rb +202 -0
- data/lib/core/facets/symbol.rb +5 -0
- data/lib/core/facets/symbol/chomp.rb +41 -0
- data/lib/core/facets/symbol/generate.rb +59 -0
- data/lib/{facets/core → core/facets}/symbol/not.rb +0 -0
- data/lib/core/facets/symbol/shadow.rb +61 -0
- data/lib/core/facets/symbol/succ.rb +60 -0
- data/lib/core/facets/time.rb +2 -0
- data/lib/core/facets/time/change.rb +61 -0
- data/lib/core/facets/time/elapse.rb +55 -0
- data/lib/core/facets/unboundmethod.rb +2 -0
- data/lib/core/facets/unboundmethod/arguments.rb +21 -0
- data/lib/core/facets/unboundmethod/name.rb +12 -0
- data/lib/methods/facets/array/conjoin.rb +1 -0
- data/lib/methods/facets/array/delete_unless.rb +1 -0
- data/lib/methods/facets/array/delete_values.rb +1 -0
- data/lib/methods/facets/array/delete_values_at.rb +1 -0
- data/lib/methods/facets/array/first.rb +1 -0
- data/lib/methods/facets/array/join_sentence.rb +1 -0
- data/lib/methods/facets/array/last.rb +1 -0
- data/lib/methods/facets/array/merge.rb +1 -0
- data/lib/methods/facets/array/pad.rb +1 -0
- data/lib/methods/facets/array/poke.rb +1 -0
- data/lib/methods/facets/array/pull.rb +1 -0
- data/lib/methods/facets/array/rotate.rb +1 -0
- data/lib/methods/facets/array/select.rb +1 -0
- data/lib/methods/facets/array/splice.rb +1 -0
- data/lib/methods/facets/array/store.rb +1 -0
- data/lib/methods/facets/array/to_b.rb +1 -0
- data/lib/methods/facets/array/to_h.rb +1 -0
- data/lib/methods/facets/array/to_path.rb +1 -0
- data/lib/methods/facets/array/unzip.rb +1 -0
- data/lib/methods/facets/binding/__DIR__.rb +1 -0
- data/lib/methods/facets/binding/__FILE__.rb +1 -0
- data/lib/methods/facets/binding/__LINE__.rb +1 -0
- data/lib/methods/facets/binding/call_stack.rb +1 -0
- data/lib/methods/facets/binding/called.rb +1 -0
- data/lib/methods/facets/binding/caller.rb +1 -0
- data/lib/methods/facets/binding/defined.rb +1 -0
- data/lib/methods/facets/binding/eval.rb +1 -0
- data/lib/methods/facets/binding/included.rb +1 -0
- data/lib/methods/facets/binding/local_variables.rb +1 -0
- data/lib/methods/facets/binding/methodname.rb +1 -0
- data/lib/methods/facets/binding/op_fetch.rb +1 -0
- data/lib/methods/facets/binding/self.rb +1 -0
- data/lib/methods/facets/class/cattr.rb +1 -0
- data/lib/methods/facets/class/cattr_accessor.rb +1 -0
- data/lib/methods/facets/class/cattr_reader.rb +1 -0
- data/lib/methods/facets/class/cattr_writer.rb +1 -0
- data/lib/methods/facets/class/class_load.rb +1 -0
- data/lib/methods/facets/class/class_require.rb +1 -0
- data/lib/methods/facets/class/descendents.rb +1 -0
- data/lib/methods/facets/class/initializer.rb +1 -0
- data/lib/methods/facets/class/mattr.rb +1 -0
- data/lib/methods/facets/class/mattr_accessor.rb +1 -0
- data/lib/methods/facets/class/mattr_reader.rb +1 -0
- data/lib/methods/facets/class/mattr_writer.rb +1 -0
- data/lib/methods/facets/class/remove_descendents.rb +1 -0
- data/lib/methods/facets/class/remove_subclasses.rb +1 -0
- data/lib/methods/facets/class/subclasses.rb +1 -0
- data/lib/methods/facets/class/to_proc.rb +1 -0
- data/lib/methods/facets/comparable/at_least.rb +1 -0
- data/lib/methods/facets/comparable/at_most.rb +1 -0
- data/lib/methods/facets/comparable/bound.rb +1 -0
- data/lib/methods/facets/comparable/cap.rb +1 -0
- data/lib/methods/facets/comparable/clip.rb +1 -0
- data/lib/methods/facets/comparable/cmp.rb +1 -0
- data/lib/methods/facets/dir/ancestor.rb +1 -0
- data/lib/methods/facets/dir/ascend.rb +1 -0
- data/lib/methods/facets/dir/descend.rb +1 -0
- data/lib/methods/facets/dir/ls_r.rb +1 -0
- data/lib/methods/facets/dir/multiglob.rb +1 -0
- data/lib/methods/facets/dir/multiglob_r.rb +1 -0
- data/lib/methods/facets/dir/multiglob_with_default.rb +1 -0
- data/lib/methods/facets/dir/parent.rb +1 -0
- data/lib/methods/facets/dir/recurse.rb +1 -0
- data/lib/methods/facets/enumerable/cart.rb +1 -0
- data/lib/methods/facets/enumerable/cartesian_product.rb +1 -0
- data/lib/methods/facets/enumerable/cluster_by.rb +1 -0
- data/lib/methods/facets/enumerable/collate.rb +1 -0
- data/lib/methods/facets/enumerable/collect_if.rb +1 -0
- data/lib/methods/facets/enumerable/collect_with_counter.rb +1 -0
- data/lib/methods/facets/enumerable/collect_with_index.rb +1 -0
- data/lib/methods/facets/enumerable/combinations.rb +1 -0
- data/lib/methods/facets/enumerable/combos.rb +1 -0
- data/lib/methods/facets/enumerable/commonality.rb +1 -0
- data/lib/methods/facets/enumerable/compact_collect.rb +1 -0
- data/lib/methods/facets/enumerable/compact_map.rb +1 -0
- data/lib/methods/facets/enumerable/count.rb +1 -0
- data/lib/methods/facets/enumerable/divide.rb +1 -0
- data/lib/methods/facets/enumerable/duplicates.rb +1 -0
- data/lib/methods/facets/enumerable/each_by.rb +1 -0
- data/lib/methods/facets/enumerable/each_combination.rb +1 -0
- data/lib/methods/facets/enumerable/each_combo.rb +1 -0
- data/lib/methods/facets/enumerable/each_pair.rb +1 -0
- data/lib/methods/facets/enumerable/each_permutation.rb +1 -0
- data/lib/methods/facets/enumerable/each_unique_pair.rb +1 -0
- data/lib/methods/facets/enumerable/each_with_counter.rb +1 -0
- data/lib/methods/facets/enumerable/eachn.rb +1 -0
- data/lib/methods/facets/enumerable/entropy.rb +1 -0
- data/lib/methods/facets/enumerable/filter_collect.rb +1 -0
- data/lib/methods/facets/enumerable/filter_map.rb +1 -0
- data/lib/methods/facets/enumerable/frequency.rb +1 -0
- data/lib/methods/facets/enumerable/graph.rb +1 -0
- data/lib/methods/facets/enumerable/ideal_entropy.rb +1 -0
- data/lib/methods/facets/enumerable/injecting.rb +1 -0
- data/lib/methods/facets/enumerable/map_if.rb +1 -0
- data/lib/methods/facets/enumerable/map_with_counter.rb +1 -0
- data/lib/methods/facets/enumerable/map_with_index.rb +1 -0
- data/lib/methods/facets/enumerable/mode.rb +1 -0
- data/lib/methods/facets/enumerable/none.rb +1 -0
- data/lib/methods/facets/enumerable/nonuniq.rb +1 -0
- data/lib/methods/facets/enumerable/occur.rb +1 -0
- data/lib/methods/facets/enumerable/one.rb +1 -0
- data/lib/methods/facets/enumerable/op_pow.rb +1 -0
- data/lib/methods/facets/enumerable/partition_by.rb +1 -0
- data/lib/methods/facets/enumerable/permutation.rb +1 -0
- data/lib/methods/facets/enumerable/permutation_number.rb +1 -0
- data/lib/methods/facets/enumerable/permute.rb +1 -0
- data/lib/methods/facets/enumerable/probability.rb +1 -0
- data/lib/methods/facets/enumerable/sum.rb +1 -0
- data/lib/methods/facets/enumerable/to_h.rb +1 -0
- data/lib/methods/facets/enumerable/to_hash.rb +1 -0
- data/lib/methods/facets/enumerable/uniq_by.rb +1 -0
- data/lib/methods/facets/falseclass/to_bool.rb +1 -0
- data/lib/methods/facets/file/append.rb +1 -0
- data/lib/methods/facets/file/create.rb +1 -0
- data/lib/methods/facets/file/null.rb +1 -0
- data/lib/methods/facets/file/read_binary.rb +1 -0
- data/lib/methods/facets/file/read_list.rb +1 -0
- data/lib/methods/facets/file/rewrite.rb +1 -0
- data/lib/methods/facets/file/rootname.rb +1 -0
- data/lib/methods/facets/file/sanitize.rb +1 -0
- data/lib/methods/facets/file/split_all.rb +1 -0
- data/lib/methods/facets/file/write.rb +1 -0
- data/lib/methods/facets/filetest/root.rb +1 -0
- data/lib/methods/facets/float/round_at.rb +1 -0
- data/lib/methods/facets/float/round_off.rb +1 -0
- data/lib/methods/facets/float/round_to.rb +1 -0
- data/lib/methods/facets/hash/alias.rb +1 -0
- data/lib/methods/facets/hash/at.rb +1 -0
- data/lib/methods/facets/hash/autonew.rb +1 -0
- data/lib/methods/facets/hash/collate.rb +1 -0
- data/lib/methods/facets/hash/delete_at.rb +1 -0
- data/lib/methods/facets/hash/delete_unless.rb +1 -0
- data/lib/methods/facets/hash/delete_values.rb +1 -0
- data/lib/methods/facets/hash/delete_values_at.rb +1 -0
- data/lib/methods/facets/hash/diff.rb +1 -0
- data/lib/methods/facets/hash/each_with_index.rb +1 -0
- data/lib/methods/facets/hash/each_with_key.rb +1 -0
- data/lib/methods/facets/hash/graph.rb +1 -0
- data/lib/methods/facets/hash/has_keys.rb +1 -0
- data/lib/methods/facets/hash/has_only_keys.rb +1 -0
- data/lib/methods/facets/hash/insert.rb +1 -0
- data/lib/methods/facets/hash/inverse.rb +1 -0
- data/lib/methods/facets/hash/join.rb +1 -0
- data/lib/methods/facets/hash/keys_to_s.rb +1 -0
- data/lib/methods/facets/hash/keys_to_sym.rb +1 -0
- data/lib/methods/facets/hash/normalize_keys.rb +1 -0
- data/lib/methods/facets/hash/op_and.rb +1 -0
- data/lib/methods/facets/hash/op_div.rb +1 -0
- data/lib/methods/facets/hash/op_lshift.rb +1 -0
- data/lib/methods/facets/hash/op_minus.rb +1 -0
- data/lib/methods/facets/hash/op_mul.rb +1 -0
- data/lib/methods/facets/hash/op_or.rb +1 -0
- data/lib/methods/facets/hash/op_plus.rb +1 -0
- data/lib/methods/facets/hash/pairs_at.rb +1 -0
- data/lib/methods/facets/hash/rekey.rb +1 -0
- data/lib/methods/facets/hash/replace_each.rb +1 -0
- data/lib/methods/facets/hash/reverse_merge.rb +1 -0
- data/lib/methods/facets/hash/reverse_update.rb +1 -0
- data/lib/methods/facets/hash/stringify_keys.rb +1 -0
- data/lib/methods/facets/hash/swap.rb +1 -0
- data/lib/methods/facets/hash/swapkey.rb +1 -0
- data/lib/methods/facets/hash/symbolize_keys.rb +1 -0
- data/lib/methods/facets/hash/to_h.rb +1 -0
- data/lib/methods/facets/hash/to_proc.rb +1 -0
- data/lib/methods/facets/hash/to_proc_with_reponse.rb +1 -0
- data/lib/methods/facets/hash/to_struct.rb +1 -0
- data/lib/methods/facets/hash/traverse.rb +1 -0
- data/lib/methods/facets/hash/update_each.rb +1 -0
- data/lib/methods/facets/hash/update_keys.rb +1 -0
- data/lib/methods/facets/hash/update_values.rb +1 -0
- data/lib/methods/facets/hash/variablize_keys.rb +1 -0
- data/lib/methods/facets/hash/weave.rb +1 -0
- data/lib/methods/facets/hash/zipnew.rb +1 -0
- data/lib/methods/facets/integer/bit.rb +1 -0
- data/lib/methods/facets/integer/bit_set.rb +1 -0
- data/lib/methods/facets/integer/bitmask.rb +1 -0
- data/lib/methods/facets/integer/clear_bit.rb +1 -0
- data/lib/methods/facets/integer/clear_bitmask.rb +1 -0
- data/lib/methods/facets/integer/even.rb +1 -0
- data/lib/methods/facets/integer/fac.rb +1 -0
- data/lib/methods/facets/integer/fact.rb +1 -0
- data/lib/methods/facets/integer/factorial.rb +1 -0
- data/lib/methods/facets/integer/multiple.rb +1 -0
- data/lib/methods/facets/integer/odd.rb +1 -0
- data/lib/methods/facets/integer/of.rb +1 -0
- data/lib/methods/facets/integer/round_at.rb +1 -0
- data/lib/methods/facets/integer/round_to.rb +1 -0
- data/lib/methods/facets/integer/set_bit.rb +1 -0
- data/lib/methods/facets/integer/set_bitmask.rb +1 -0
- data/lib/methods/facets/integer/test_bit.rb +1 -0
- data/lib/methods/facets/integer/test_bitmask.rb +1 -0
- data/lib/methods/facets/integer/times_collect.rb +1 -0
- data/lib/methods/facets/integer/times_map.rb +1 -0
- data/lib/methods/facets/kernel/__DIR__.rb +1 -0
- data/lib/methods/facets/kernel/__assign__.rb +1 -0
- data/lib/methods/facets/kernel/__callee__.rb +1 -0
- data/lib/methods/facets/kernel/__class__.rb +1 -0
- data/lib/methods/facets/kernel/__get__.rb +1 -0
- data/lib/methods/facets/kernel/__method__.rb +1 -0
- data/lib/methods/facets/kernel/__real__.rb +1 -0
- data/lib/methods/facets/kernel/__set__.rb +1 -0
- data/lib/methods/facets/kernel/__singleton_class__.rb +1 -0
- data/lib/methods/facets/kernel/as.rb +1 -0
- data/lib/methods/facets/kernel/ask.rb +1 -0
- data/lib/methods/facets/kernel/assign_from.rb +1 -0
- data/lib/methods/facets/kernel/assign_with.rb +1 -0
- data/lib/methods/facets/kernel/bitmask.rb +1 -0
- data/lib/methods/facets/kernel/bool.rb +1 -0
- data/lib/methods/facets/kernel/call_stack.rb +1 -0
- data/lib/methods/facets/kernel/called.rb +1 -0
- data/lib/methods/facets/kernel/callee.rb +1 -0
- data/lib/methods/facets/kernel/class_def.rb +1 -0
- data/lib/methods/facets/kernel/complete.rb +1 -0
- data/lib/methods/facets/kernel/constant.rb +1 -0
- data/lib/methods/facets/kernel/copy.rb +1 -0
- data/lib/methods/facets/kernel/d.rb +1 -0
- data/lib/methods/facets/kernel/deep_clone.rb +1 -0
- data/lib/methods/facets/kernel/deep_copy.rb +1 -0
- data/lib/methods/facets/kernel/demo.rb +1 -0
- data/lib/methods/facets/kernel/eigenclass.rb +1 -0
- data/lib/methods/facets/kernel/enable_warnings.rb +1 -0
- data/lib/methods/facets/kernel/false.rb +1 -0
- data/lib/methods/facets/kernel/fn.rb +1 -0
- data/lib/methods/facets/kernel/here.rb +1 -0
- data/lib/methods/facets/kernel/in.rb +1 -0
- data/lib/methods/facets/kernel/instance_assign.rb +1 -0
- data/lib/methods/facets/kernel/instance_assume.rb +1 -0
- data/lib/methods/facets/kernel/instance_class.rb +1 -0
- data/lib/methods/facets/kernel/instance_exec.rb +1 -0
- data/lib/methods/facets/kernel/instance_send.rb +1 -0
- data/lib/methods/facets/kernel/instance_values.rb +1 -0
- data/lib/methods/facets/kernel/is.rb +1 -0
- data/lib/methods/facets/kernel/load_local.rb +1 -0
- data/lib/methods/facets/kernel/meta.rb +1 -0
- data/lib/methods/facets/kernel/meta_alias.rb +1 -0
- data/lib/methods/facets/kernel/meta_class.rb +1 -0
- data/lib/methods/facets/kernel/meta_def.rb +1 -0
- data/lib/methods/facets/kernel/meta_eval.rb +1 -0
- data/lib/methods/facets/kernel/metaclass.rb +1 -0
- data/lib/methods/facets/kernel/method.rb +1 -0
- data/lib/methods/facets/kernel/object_class.rb +1 -0
- data/lib/methods/facets/kernel/object_clone.rb +1 -0
- data/lib/methods/facets/kernel/object_dup.rb +1 -0
- data/lib/methods/facets/kernel/object_hexid.rb +1 -0
- data/lib/methods/facets/kernel/object_send.rb +1 -0
- data/lib/methods/facets/kernel/op_esc.rb +1 -0
- data/lib/methods/facets/kernel/p.rb +1 -0
- data/lib/methods/facets/kernel/populate.rb +1 -0
- data/lib/methods/facets/kernel/pp_call_stack.rb +1 -0
- data/lib/methods/facets/kernel/pp_exception.rb +1 -0
- data/lib/methods/facets/kernel/qua_class.rb +1 -0
- data/lib/methods/facets/kernel/require_all.rb +1 -0
- data/lib/methods/facets/kernel/require_esc.rb +1 -0
- data/lib/methods/facets/kernel/require_local.rb +1 -0
- data/lib/methods/facets/kernel/resc.rb +1 -0
- data/lib/methods/facets/kernel/respond.rb +1 -0
- data/lib/methods/facets/kernel/returning.rb +1 -0
- data/lib/methods/facets/kernel/send_as.rb +1 -0
- data/lib/methods/facets/kernel/set_from.rb +1 -0
- data/lib/methods/facets/kernel/set_with.rb +1 -0
- data/lib/methods/facets/kernel/silence_stderr.rb +1 -0
- data/lib/methods/facets/kernel/silence_stream.rb +1 -0
- data/lib/methods/facets/kernel/silence_warnings.rb +1 -0
- data/lib/methods/facets/kernel/singleton.rb +1 -0
- data/lib/methods/facets/kernel/singleton_class.rb +1 -0
- data/lib/methods/facets/kernel/super_at.rb +1 -0
- data/lib/methods/facets/kernel/super_method.rb +1 -0
- data/lib/methods/facets/kernel/superior.rb +1 -0
- data/lib/methods/facets/kernel/supermethod.rb +1 -0
- data/lib/methods/facets/kernel/suppress.rb +1 -0
- data/lib/methods/facets/kernel/tap.rb +1 -0
- data/lib/methods/facets/kernel/this.rb +1 -0
- data/lib/methods/facets/kernel/to_b.rb +1 -0
- data/lib/methods/facets/kernel/true.rb +1 -0
- data/lib/methods/facets/kernel/val.rb +1 -0
- data/lib/methods/facets/kernel/warn_with_line.rb +1 -0
- data/lib/methods/facets/kernel/with.rb +1 -0
- data/lib/methods/facets/matchdata/match.rb +1 -0
- data/lib/methods/facets/matchdata/matchset.rb +1 -0
- data/lib/methods/facets/matchdata/matchtree.rb +1 -0
- data/lib/methods/facets/module/abstract.rb +1 -0
- data/lib/methods/facets/module/alias_accessor.rb +1 -0
- data/lib/methods/facets/module/alias_method_chain.rb +1 -0
- data/lib/methods/facets/module/alias_module_function.rb +1 -0
- data/lib/methods/facets/module/all_instance_methods.rb +1 -0
- data/lib/methods/facets/module/ancestor.rb +1 -0
- data/lib/methods/facets/module/attr_setter.rb +1 -0
- data/lib/methods/facets/module/attr_tester.rb +1 -0
- data/lib/methods/facets/module/attr_toggler.rb +1 -0
- data/lib/methods/facets/module/attr_validator.rb +1 -0
- data/lib/methods/facets/module/basename.rb +1 -0
- data/lib/methods/facets/module/by_name.rb +1 -0
- data/lib/methods/facets/module/can.rb +1 -0
- data/lib/methods/facets/module/class.rb +1 -0
- data/lib/methods/facets/module/clone_removing.rb +1 -0
- data/lib/methods/facets/module/clone_renaming.rb +1 -0
- data/lib/methods/facets/module/clone_using.rb +1 -0
- data/lib/methods/facets/module/dirname.rb +1 -0
- data/lib/methods/facets/module/include_and_extend.rb +1 -0
- data/lib/methods/facets/module/include_as.rb +1 -0
- data/lib/methods/facets/module/include_function_module.rb +1 -0
- data/lib/methods/facets/module/instance_method.rb +1 -0
- data/lib/methods/facets/module/integrate.rb +1 -0
- data/lib/methods/facets/module/is.rb +1 -0
- data/lib/methods/facets/module/modspace.rb +1 -0
- data/lib/methods/facets/module/module_load.rb +1 -0
- data/lib/methods/facets/module/module_method.rb +1 -0
- data/lib/methods/facets/module/module_require.rb +1 -0
- data/lib/methods/facets/module/nesting.rb +1 -0
- data/lib/methods/facets/module/nodef.rb +1 -0
- data/lib/methods/facets/module/on_included.rb +1 -0
- data/lib/methods/facets/module/op_minus.rb +1 -0
- data/lib/methods/facets/module/op_mul.rb +1 -0
- data/lib/methods/facets/module/op_plus.rb +1 -0
- data/lib/methods/facets/module/redef.rb +1 -0
- data/lib/methods/facets/module/redefine_method.rb +1 -0
- data/lib/methods/facets/module/redirect.rb +1 -0
- data/lib/methods/facets/module/redirect_method.rb +1 -0
- data/lib/methods/facets/module/remove.rb +1 -0
- data/lib/methods/facets/module/rename.rb +1 -0
- data/lib/methods/facets/module/rename_method.rb +1 -0
- data/lib/methods/facets/module/revisal.rb +1 -0
- data/lib/methods/facets/module/wrap.rb +1 -0
- data/lib/methods/facets/module/wrap_method.rb +1 -0
- data/lib/methods/facets/nilclass/ergo.rb +1 -0
- data/lib/methods/facets/nilclass/status.rb +1 -0
- data/lib/methods/facets/nilclass/to_bool.rb +1 -0
- data/lib/methods/facets/nilclass/to_f.rb +1 -0
- data/lib/methods/facets/nilclass/to_h.rb +1 -0
- data/lib/methods/facets/numeric/approx.rb +1 -0
- data/lib/methods/facets/numeric/distance.rb +1 -0
- data/lib/methods/facets/numeric/pred.rb +1 -0
- data/lib/methods/facets/numeric/round_at.rb +1 -0
- data/lib/methods/facets/numeric/round_to.rb +1 -0
- data/lib/methods/facets/numeric/succ.rb +1 -0
- data/lib/methods/facets/numeric/to_b.rb +1 -0
- data/lib/methods/facets/object/to_bool.rb +1 -0
- data/lib/methods/facets/object/with_accessor.rb +1 -0
- data/lib/methods/facets/object/with_reader.rb +1 -0
- data/lib/methods/facets/object/with_writer.rb +1 -0
- data/lib/methods/facets/proc/bind.rb +1 -0
- data/lib/methods/facets/proc/compose.rb +1 -0
- data/lib/methods/facets/proc/op_mul.rb +1 -0
- data/lib/methods/facets/proc/to_h.rb +1 -0
- data/lib/methods/facets/proc/to_method.rb +1 -0
- data/lib/methods/facets/proc/update.rb +1 -0
- data/lib/methods/facets/range/combine.rb +1 -0
- data/lib/methods/facets/range/overlap.rb +1 -0
- data/lib/methods/facets/range/to_r.rb +1 -0
- data/lib/methods/facets/range/to_range.rb +1 -0
- data/lib/methods/facets/range/umbrella.rb +1 -0
- data/lib/methods/facets/range/within.rb +1 -0
- data/lib/methods/facets/regexp/arity.rb +1 -0
- data/lib/methods/facets/regexp/to_re.rb +1 -0
- data/lib/methods/facets/regexp/to_regexp.rb +1 -0
- data/lib/methods/facets/string/_crypt.rb +1 -0
- data/lib/methods/facets/string/align_center.rb +1 -0
- data/lib/methods/facets/string/align_left.rb +1 -0
- data/lib/methods/facets/string/align_right.rb +1 -0
- data/lib/methods/facets/string/at.rb +1 -0
- data/lib/methods/facets/string/blank.rb +1 -0
- data/lib/methods/facets/string/bracket.rb +1 -0
- data/lib/methods/facets/string/brief.rb +1 -0
- data/lib/methods/facets/string/bytes.rb +1 -0
- data/lib/methods/facets/string/capitalized.rb +1 -0
- data/lib/methods/facets/string/chars.rb +1 -0
- data/lib/methods/facets/string/cleave.rb +1 -0
- data/lib/methods/facets/string/cmp.rb +1 -0
- data/lib/methods/facets/string/crypt.rb +1 -0
- data/lib/methods/facets/string/dequote.rb +1 -0
- data/lib/methods/facets/string/divide.rb +1 -0
- data/lib/methods/facets/string/downcase.rb +1 -0
- data/lib/methods/facets/string/each_char.rb +1 -0
- data/lib/methods/facets/string/each_character.rb +1 -0
- data/lib/methods/facets/string/each_word.rb +1 -0
- data/lib/methods/facets/string/ends_with.rb +1 -0
- data/lib/methods/facets/string/first.rb +1 -0
- data/lib/methods/facets/string/fold.rb +1 -0
- data/lib/methods/facets/string/format.rb +1 -0
- data/lib/methods/facets/string/indent.rb +1 -0
- data/lib/methods/facets/string/index_all.rb +1 -0
- data/lib/methods/facets/string/interpolate.rb +1 -0
- data/lib/methods/facets/string/last.rb +1 -0
- data/lib/methods/facets/string/lchomp.rb +1 -0
- data/lib/methods/facets/string/line_wrap.rb +1 -0
- data/lib/methods/facets/string/lines.rb +1 -0
- data/lib/methods/facets/string/lowercase.rb +1 -0
- data/lib/methods/facets/string/margin.rb +1 -0
- data/lib/methods/facets/string/mscan.rb +1 -0
- data/lib/methods/facets/string/natcmp.rb +1 -0
- data/lib/methods/facets/string/nchar.rb +1 -0
- data/lib/methods/facets/string/peek.rb +1 -0
- data/lib/methods/facets/string/poke.rb +1 -0
- data/lib/methods/facets/string/pop.rb +1 -0
- data/lib/methods/facets/string/pull.rb +1 -0
- data/lib/methods/facets/string/push.rb +1 -0
- data/lib/methods/facets/string/quote.rb +1 -0
- data/lib/methods/facets/string/range.rb +1 -0
- data/lib/methods/facets/string/range_all.rb +1 -0
- data/lib/methods/facets/string/range_of_line.rb +1 -0
- data/lib/methods/facets/string/regesc.rb +1 -0
- data/lib/methods/facets/string/rewrite.rb +1 -0
- data/lib/methods/facets/string/shatter.rb +1 -0
- data/lib/methods/facets/string/shift.rb +1 -0
- data/lib/methods/facets/string/splice.rb +1 -0
- data/lib/methods/facets/string/sprintf.rb +1 -0
- data/lib/methods/facets/string/starts_with.rb +1 -0
- data/lib/methods/facets/string/store.rb +1 -0
- data/lib/methods/facets/string/succ.rb +1 -0
- data/lib/methods/facets/string/tab.rb +1 -0
- data/lib/methods/facets/string/tabto.rb +1 -0
- data/lib/methods/facets/string/to_b.rb +1 -0
- data/lib/methods/facets/string/to_const.rb +1 -0
- data/lib/methods/facets/string/to_date.rb +1 -0
- data/lib/methods/facets/string/to_proc.rb +1 -0
- data/lib/methods/facets/string/to_re.rb +1 -0
- data/lib/methods/facets/string/to_rx.rb +1 -0
- data/lib/methods/facets/string/to_time.rb +1 -0
- data/lib/methods/facets/string/unbracket.rb +1 -0
- data/lib/methods/facets/string/unshift.rb +1 -0
- data/lib/methods/facets/string/upcase.rb +1 -0
- data/lib/methods/facets/string/uppercase.rb +1 -0
- data/lib/methods/facets/string/whitespace.rb +1 -0
- data/lib/methods/facets/string/word_filter.rb +1 -0
- data/lib/methods/facets/string/word_wrap.rb +1 -0
- data/lib/methods/facets/string/words.rb +1 -0
- data/lib/methods/facets/symbol/chomp.rb +1 -0
- data/lib/methods/facets/symbol/generate.rb +1 -0
- data/lib/methods/facets/symbol/lchomp.rb +1 -0
- data/lib/methods/facets/symbol/not.rb +1 -0
- data/lib/methods/facets/symbol/op_tilde.rb +1 -0
- data/lib/methods/facets/symbol/pad.rb +1 -0
- data/lib/methods/facets/symbol/shadow.rb +1 -0
- data/lib/methods/facets/symbol/succ.rb +1 -0
- data/lib/methods/facets/symbol/to_const.rb +1 -0
- data/lib/methods/facets/symbol/to_proc.rb +1 -0
- data/lib/methods/facets/time/change.rb +1 -0
- data/lib/methods/facets/time/elapse.rb +1 -0
- data/lib/methods/facets/time/stamp.rb +1 -0
- data/lib/methods/facets/time/to_date.rb +1 -0
- data/lib/methods/facets/time/to_s.rb +1 -0
- data/lib/methods/facets/time/to_time.rb +1 -0
- data/lib/methods/facets/trueclass/to_bool.rb +1 -0
- data/lib/methods/facets/unboundmethod/arguments.rb +1 -0
- data/lib/methods/facets/unboundmethod/name.rb +1 -0
- data/lib/more/facets/advice.rb +132 -0
- data/lib/more/facets/annotations.rb +154 -0
- data/lib/more/facets/ansicode.rb +268 -0
- data/lib/more/facets/aop.rb +212 -0
- data/lib/more/facets/arguments.rb +387 -0
- data/lib/more/facets/association.rb +203 -0
- data/lib/more/facets/attributes.rb +168 -0
- data/lib/more/facets/autoarray.rb +87 -0
- data/lib/more/facets/autoreload.rb +150 -0
- data/lib/more/facets/basicobject.rb +296 -0
- data/lib/more/facets/bbcode.rb +376 -0
- data/lib/more/facets/behavior.rb +91 -0
- data/lib/more/facets/binreadable.rb +286 -0
- data/lib/more/facets/buildable.rb +130 -0
- data/lib/more/facets/buildingblock.rb +263 -0
- data/lib/more/facets/bytes.rb +244 -0
- data/lib/more/facets/cachedelegator.rb +90 -0
- data/lib/more/facets/capsule.rb +254 -0
- data/lib/more/facets/class_extension.rb +160 -0
- data/lib/more/facets/classmethods.rb +221 -0
- data/lib/more/facets/cloneable.rb +75 -0
- data/lib/more/facets/command.rb +262 -0
- data/lib/more/facets/command_options.rb +328 -0
- data/lib/more/facets/compare_on.rb +143 -0
- data/lib/more/facets/console.rb +107 -0
- data/lib/more/facets/coroutine.rb +176 -0
- data/lib/more/facets/crypt.rb +214 -0
- data/lib/more/facets/curry.rb +96 -0
- data/lib/more/facets/cut.rb +217 -0
- data/lib/more/facets/daemonize.rb +50 -0
- data/lib/more/facets/date.rb +133 -0
- data/lib/more/facets/dependency.rb +205 -0
- data/lib/more/facets/dictionary.rb +537 -0
- data/lib/more/facets/downloader.rb +279 -0
- data/lib/more/facets/elementor.rb +288 -0
- data/lib/more/facets/enumerablepass.rb +285 -0
- data/lib/more/facets/eventhook.rb +121 -0
- data/lib/more/facets/expirable.rb +89 -0
- data/lib/more/facets/fileable.rb +155 -0
- data/lib/more/facets/filelist.rb +493 -0
- data/lib/more/facets/fileshell.rb +198 -0
- data/lib/more/facets/fileutils.rb +443 -0
- data/lib/more/facets/getoptlong.rb +113 -0
- data/lib/more/facets/hashbuilder.rb +97 -0
- data/lib/more/facets/heap.rb +27 -0
- data/lib/more/facets/infinity.rb +229 -0
- data/lib/more/facets/inheritor.rb +258 -0
- data/lib/more/facets/instantiable.rb +75 -0
- data/lib/more/facets/instantise.rb +126 -0
- data/lib/more/facets/interface.rb +230 -0
- data/lib/more/facets/interval.rb +427 -0
- data/lib/more/facets/ioredirect.rb +133 -0
- data/lib/more/facets/lazy.rb +245 -0
- data/lib/more/facets/let.rb +91 -0
- data/lib/more/facets/linkedlist.rb +256 -0
- data/lib/more/facets/logger.rb +60 -0
- data/lib/more/facets/lrucache.rb +179 -0
- data/lib/more/facets/main.rb +77 -0
- data/lib/more/facets/mapsend.rb +98 -0
- data/lib/more/facets/memoize.rb +155 -0
- data/lib/more/facets/minitar.rb +999 -0
- data/lib/more/facets/multipliers.rb +209 -0
- data/lib/more/facets/multiton.rb +353 -0
- data/lib/more/facets/nackclass.rb +43 -0
- data/lib/more/facets/namespace.rb +161 -0
- data/lib/more/facets/nullclass.rb +79 -0
- data/lib/more/facets/opencascade.rb +162 -0
- data/lib/more/facets/opencollection.rb +46 -0
- data/lib/more/facets/openobject.rb +362 -0
- data/lib/more/facets/orderedhash.rb +42 -0
- data/lib/more/facets/ostruct.rb +314 -0
- data/lib/more/facets/overload.rb +151 -0
- data/lib/more/facets/paramix.rb +245 -0
- data/lib/more/facets/pathlist.rb +106 -0
- data/lib/more/facets/pathname.rb +120 -0
- data/lib/more/facets/pool.rb +97 -0
- data/lib/more/facets/pqueue.rb +468 -0
- data/lib/more/facets/prepend.rb +92 -0
- data/lib/more/facets/progressbar.rb +237 -0
- data/lib/more/facets/prototype.rb +128 -0
- data/lib/more/facets/random.rb +525 -0
- data/lib/more/facets/rbconfig.rb +55 -0
- data/lib/more/facets/rbsystem.rb +190 -0
- data/lib/more/facets/recorder.rb +137 -0
- data/lib/more/facets/recursive.rb +67 -0
- data/lib/more/facets/reference.rb +100 -0
- data/lib/more/facets/reflection.rb +103 -0
- data/lib/more/facets/rwdelegator.rb +79 -0
- data/lib/more/facets/semaphore.rb +97 -0
- data/lib/more/facets/settings.rb +250 -0
- data/lib/more/facets/shellwords.rb +43 -0
- data/lib/more/facets/smtp_tls.rb +134 -0
- data/lib/more/facets/snapshot.rb +206 -0
- data/lib/more/facets/stylize.rb +355 -0
- data/lib/more/facets/syncarray.rb +146 -0
- data/lib/more/facets/synchash.rb +173 -0
- data/lib/more/facets/timer.rb +309 -0
- data/lib/more/facets/times.rb +444 -0
- data/lib/more/facets/tracepoint.rb +194 -0
- data/lib/more/facets/tuple.rb +370 -0
- data/lib/more/facets/typecast.rb +296 -0
- data/lib/more/facets/uninheritable.rb +93 -0
- data/lib/more/facets/uploadutils.rb +441 -0
- data/lib/more/facets/version.rb +127 -0
- data/lib/more/facets/yaml.rb +40 -0
- data/lib/more/facets/ziputils.rb +350 -0
- data/meta/manifest.txt +969 -0
- data/meta/project.yaml +34 -0
- data/meta/version.txt +1 -0
- data/task/clean +17 -0
- data/task/config.yaml +43 -0
- data/task/extest +129 -0
- data/task/groups +23 -0
- data/task/install +92 -0
- data/task/load +39 -0
- data/task/methods +120 -0
- data/task/publish +43 -0
- data/task/rdoc +113 -0
- data/task/rdoc.yaml +478 -0
- data/task/stats +138 -0
- data/task/test +25 -0
- data/test/unit/array/test_delete.rb +45 -0
- data/test/unit/array/test_indexable.rb +136 -0
- data/test/unit/array/test_merge.rb +51 -0
- data/test/unit/array/test_pad.rb +50 -0
- data/test/unit/array/test_rotate.rb +39 -0
- data/test/unit/array/test_select.rb +31 -0
- data/test/unit/array/test_stackable.rb +36 -0
- data/test/unit/binding/test_cflow.rb +62 -0
- data/test/unit/binding/test_eval.rb +45 -0
- data/test/unit/binding/test_vars.rb +46 -0
- data/test/unit/class/test_descendents.rb +38 -0
- data/test/unit/class/test_initializer.rb +34 -0
- data/test/unit/comparable/test_bound.rb +58 -0
- data/test/unit/comparable/test_cmp.rb +78 -0
- data/test/unit/continuation/test_create.rb +28 -0
- data/test/unit/enumerable/test_cartesian.rb +52 -0
- data/test/unit/enumerable/test_collate.rb +55 -0
- data/test/unit/enumerable/test_collect.rb +52 -0
- data/test/unit/enumerable/test_combination.rb +49 -0
- data/test/unit/enumerable/test_count.rb +78 -0
- data/test/unit/enumerable/test_partition.rb +134 -0
- data/test/unit/enumerable/test_permutation.rb +32 -0
- data/test/unit/enumerable/test_probability.rb +57 -0
- data/test/unit/file/test_topath.rb +74 -0
- data/test/unit/hash/test_at.rb +29 -0
- data/test/unit/hash/test_delete.rb +45 -0
- data/test/unit/hash/test_has_keys.rb +36 -0
- data/test/unit/hash/test_insert.rb +29 -0
- data/test/unit/hash/test_inverse.rb +32 -0
- data/test/unit/hash/test_iterate.rb +38 -0
- data/test/unit/hash/test_keyize.rb +60 -0
- data/test/unit/hash/test_merge.rb +31 -0
- data/test/unit/hash/test_new.rb +30 -0
- data/test/unit/hash/test_op.rb +52 -0
- data/test/unit/hash/test_rekey.rb +75 -0
- data/test/unit/hash/test_traverse.rb +39 -0
- data/test/unit/hash/test_update.rb +50 -0
- data/test/unit/hash/test_weave.rb +31 -0
- data/test/unit/integer/test_bitmask.rb +49 -0
- data/test/unit/integer/test_factorial.rb +32 -0
- data/test/unit/integer/test_multiples.rb +45 -0
- data/test/unit/integer/test_of.rb +36 -0
- data/test/unit/kernel/test_callstack.rb +36 -0
- data/test/unit/kernel/test_constant.rb +35 -0
- data/test/unit/kernel/test_deepcopy.rb +45 -0
- data/test/unit/kernel/test_instance.rb +78 -0
- data/test/unit/kernel/test_metaid.rb +62 -0
- data/test/unit/kernel/test_object.rb +37 -0
- data/test/unit/kernel/test_populate.rb +64 -0
- data/test/unit/kernel/test_report.rb +18 -0
- data/test/unit/kernel/test_require_esc.rb +29 -0
- data/test/unit/kernel/test_silence.rb +30 -0
- data/test/unit/kernel/test_super.rb +68 -0
- data/test/unit/kernel/test_tap.rb +45 -0
- data/test/unit/kernel/test_val.rb +50 -0
- data/test/unit/kernel/test_withattr.rb +53 -0
- data/test/unit/matchdata/test_matchset.rb +44 -0
- data/test/unit/module/test_abstract.rb +38 -0
- data/test/unit/module/test_alias.rb +60 -0
- data/test/unit/module/test_cattr.rb +65 -0
- data/test/unit/module/test_clone.rb +57 -0
- data/test/unit/module/test_include.rb +78 -0
- data/test/unit/module/test_modify.rb +189 -0
- data/test/unit/module/test_name.rb +66 -0
- data/test/unit/module/test_traits.rb +52 -0
- data/test/unit/numeric/test_round.rb +74 -0
- data/test/unit/proc/test_bind.rb +53 -0
- data/test/unit/proc/test_compose.rb +43 -0
- data/test/unit/range/test_combine.rb +36 -0
- data/test/unit/range/test_overlap.rb +56 -0
- data/test/unit/regexp/test_arity.rb +35 -0
- data/test/unit/string/test_align.rb +36 -0
- data/test/unit/string/test_blank.rb +33 -0
- data/test/unit/string/test_bracket.rb +79 -0
- data/test/unit/string/test_case.rb +48 -0
- data/test/unit/string/test_crypt.rb +32 -0
- data/test/unit/string/test_filter.rb +42 -0
- data/test/unit/string/test_format.rb +96 -0
- data/test/unit/string/test_indexable.rb +83 -0
- data/test/unit/string/test_interpolate.rb +29 -0
- data/test/unit/string/test_natcmp.rb +32 -0
- data/test/unit/string/test_nchar.rb +29 -0
- data/test/unit/string/test_partitions.rb +67 -0
- data/test/unit/string/test_range.rb +40 -0
- data/test/unit/string/test_regesc.rb +35 -0
- data/test/unit/string/test_scan.rb +46 -0
- data/test/unit/string/test_stackable.rb +113 -0
- data/test/unit/string/test_tabs.rb +135 -0
- data/test/unit/symbol/test_chomp.rb +28 -0
- data/test/unit/symbol/test_generate.rb +28 -0
- data/test/unit/symbol/test_not.rb +31 -0
- data/test/unit/symbol/test_shadow.rb +29 -0
- data/test/unit/symbol/test_succ.rb +30 -0
- data/test/unit/test_1stclassmethod.rb +21 -0
- data/test/unit/test_advice.rb +69 -0
- data/test/unit/test_annotations.rb +97 -0
- data/test/unit/test_ansicode.rb +20 -0
- data/test/unit/test_aop.rb +49 -0
- data/test/unit/test_arguments.rb +71 -0
- data/test/unit/test_association.rb +53 -0
- data/test/unit/test_attributes.rb +41 -0
- data/test/unit/test_autoarray.rb +34 -0
- data/test/unit/test_basicobject.rb +69 -0
- data/test/unit/test_bbcode.rb +36 -0
- data/test/unit/test_binreadable.rb +66 -0
- data/test/unit/test_boolean.rb +105 -0
- data/test/unit/test_buildable.rb +54 -0
- data/test/unit/test_buildingblock.rb +50 -0
- data/test/unit/test_bytes.rb +86 -0
- data/test/unit/test_class_extension.rb +72 -0
- data/test/unit/test_classmethods.rb +71 -0
- data/test/unit/test_command.rb +260 -0
- data/test/unit/test_command_options.rb +29 -0
- data/test/unit/test_compare_on.rb +59 -0
- data/test/unit/test_conversion.rb +236 -0
- data/test/unit/test_coroutine.rb +62 -0
- data/test/unit/test_crypt.rb +48 -0
- data/test/unit/test_curry.rb +43 -0
- data/test/unit/test_cut.rb +37 -0
- data/test/unit/test_date.rb +61 -0
- data/test/unit/test_dependency.rb +84 -0
- data/test/unit/test_dictionary.rb +122 -0
- data/test/unit/test_elementor.rb +75 -0
- data/test/unit/test_enumerablepass.rb +88 -0
- data/test/unit/test_functor.rb +39 -0
- data/test/unit/test_getoptlong.rb +41 -0
- data/test/unit/test_infinity.rb +52 -0
- data/test/unit/test_inheritor.rb +157 -0
- data/test/unit/test_instantiable.rb +39 -0
- data/test/unit/test_instantise.rb +47 -0
- data/test/unit/test_interface.rb +91 -0
- data/test/unit/test_interval.rb +121 -0
- data/test/unit/test_let.rb +33 -0
- data/test/unit/test_linkedlist.rb +55 -0
- data/test/unit/test_lrucache.rb +27 -0
- data/test/unit/test_mapsend.rb +34 -0
- data/test/unit/test_memoize.rb +52 -0
- data/test/unit/test_multipliers.rb +116 -0
- data/test/unit/test_multiton.rb +184 -0
- data/test/unit/test_namespace.rb +67 -0
- data/test/unit/test_opencascade.rb +77 -0
- data/test/unit/test_openobject.rb +128 -0
- data/test/unit/test_ostruct.rb +130 -0
- data/test/unit/test_overload.rb +56 -0
- data/test/unit/test_paramix.rb +98 -0
- data/test/unit/test_prototype.rb +50 -0
- data/test/unit/test_random.rb +161 -0
- data/test/unit/test_recorder.rb +46 -0
- data/test/unit/test_snapshot.rb +36 -0
- data/test/unit/test_stylize.rb +154 -0
- data/test/unit/test_syncarray.rb +30 -0
- data/test/unit/test_synchash.rb +30 -0
- data/test/unit/test_timer.rb +68 -0
- data/test/unit/test_times.rb +105 -0
- data/test/unit/test_tuple.rb +66 -0
- data/test/unit/test_typecast.rb +70 -0
- data/test/unit/test_uninheritable.rb +44 -0
- data/test/unit/time/test_change.rb +32 -0
- data/test/unit/time/test_elapse.rb +31 -0
- metadata +1158 -1418
- data/COPYING +0 -403
- data/PROJECT +0 -65
- data/VERSION +0 -1
- data/data/facets/units/binary/base.yaml +0 -12
- data/data/facets/units/binary/extra.yaml +0 -8
- data/data/facets/units/cex.yaml +0 -7
- data/data/facets/units/currency/base.yaml +0 -268
- data/data/facets/units/default.yaml +0 -22
- data/data/facets/units/dump_yaml.rb +0 -309
- data/data/facets/units/si/base.yaml +0 -36
- data/data/facets/units/si/derived.yaml +0 -133
- data/data/facets/units/si/extra.yaml +0 -107
- data/data/facets/units/standard.yaml +0 -5
- data/data/facets/units/uk.yaml +0 -16
- data/data/facets/units/uk/base.yaml +0 -107
- data/data/facets/units/us.yaml +0 -16
- data/data/facets/units/us/base.yaml +0 -112
- data/data/facets/units/xmethods/cached.yaml +0 -83
- data/data/facets/units/xmethods/mapping.yaml +0 -85
- data/demo/annotation/demo_annotation.rb +0 -22
- data/demo/cuts/benchmark.rb +0 -71
- data/demo/cuts/override.rb +0 -33
- data/demo/io-reactor/chatserver.rb +0 -347
- data/demo/lisp/game.rb +0 -47
- data/demo/tkxml/helloworld.rb +0 -32
- data/demo/tkxml/ui.xml +0 -32
- data/doc/AUTHORS +0 -54
- data/doc/CHANGES +0 -354
- data/doc/HISTORY +0 -337
- data/doc/LATEST +0 -220
- data/doc/misc/history/ANN-0.6.0 +0 -40
- data/doc/misc/history/ANN-0.6.1 +0 -36
- data/doc/misc/history/ANN-0.6.3 +0 -43
- data/doc/misc/history/ANN-0.7.0 +0 -59
- data/doc/misc/history/ANN-0.8.1 +0 -127
- data/doc/misc/history/ANN-1.4 +0 -41
- data/doc/misc/tkxml.txt +0 -555
- data/lib/facet/all.rb +0 -1
- data/lib/facet/ann.rb +0 -1
- data/lib/facet/ann_attr.rb +0 -1
- data/lib/facet/ansicode.rb +0 -1
- data/lib/facet/arguments.rb +0 -1
- data/lib/facet/array/at_rand.rb +0 -1
- data/lib/facet/array/body.rb +0 -1
- data/lib/facet/array/combos.rb +0 -1
- data/lib/facet/array/delete_unless.rb +0 -1
- data/lib/facet/array/delete_values.rb +0 -1
- data/lib/facet/array/delete_values_at.rb +0 -1
- data/lib/facet/array/each_combo.rb +0 -1
- data/lib/facet/array/each_with_key.rb +0 -1
- data/lib/facet/array/first.rb +0 -1
- data/lib/facet/array/foot.rb +0 -1
- data/lib/facet/array/head.rb +0 -1
- data/lib/facet/array/index.rb +0 -1
- data/lib/facet/array/join_sentence.rb +0 -1
- data/lib/facet/array/last.rb +0 -1
- data/lib/facet/array/last_index.rb +0 -1
- data/lib/facet/array/merge.rb +0 -1
- data/lib/facet/array/mid.rb +0 -1
- data/lib/facet/array/middle.rb +0 -1
- data/lib/facet/array/op_div.rb +0 -1
- data/lib/facet/array/op_fetch.rb +0 -1
- data/lib/facet/array/op_mod.rb +0 -1
- data/lib/facet/array/op_store.rb +0 -1
- data/lib/facet/array/pad.rb +0 -1
- data/lib/facet/array/pick.rb +0 -1
- data/lib/facet/array/pos.rb +0 -1
- data/lib/facet/array/pot.rb +0 -1
- data/lib/facet/array/pull.rb +0 -1
- data/lib/facet/array/rand_index.rb +0 -1
- data/lib/facet/array/rand_subset.rb +0 -1
- data/lib/facet/array/range.rb +0 -1
- data/lib/facet/array/rotate.rb +0 -1
- data/lib/facet/array/select.rb +0 -1
- data/lib/facet/array/shuffle.rb +0 -1
- data/lib/facet/array/store.rb +0 -1
- data/lib/facet/array/tail.rb +0 -1
- data/lib/facet/array/thru.rb +0 -1
- data/lib/facet/array/to_b.rb +0 -1
- data/lib/facet/array/to_h.rb +0 -1
- data/lib/facet/array/to_hash.rb +0 -1
- data/lib/facet/array/to_path.rb +0 -1
- data/lib/facet/array/unzip.rb +0 -1
- data/lib/facet/aspects.rb +0 -1
- data/lib/facet/association.rb +0 -1
- data/lib/facet/autoarray.rb +0 -1
- data/lib/facet/autoscript.rb +0 -1
- data/lib/facet/autovivify.rb +0 -1
- data/lib/facet/basicobject.rb +0 -1
- data/lib/facet/bbcode.rb +0 -1
- data/lib/facet/behavior.rb +0 -1
- data/lib/facet/binaryreader.rb +0 -1
- data/lib/facet/binding.rb +0 -1
- data/lib/facet/binding/__DIR__.rb +0 -1
- data/lib/facet/binding/__FILE__.rb +0 -1
- data/lib/facet/binding/__LINE__.rb +0 -1
- data/lib/facet/binding/call_stack.rb +0 -1
- data/lib/facet/binding/called.rb +0 -1
- data/lib/facet/binding/caller.rb +0 -1
- data/lib/facet/binding/defined.rb +0 -1
- data/lib/facet/binding/eval.rb +0 -1
- data/lib/facet/binding/local_variables.rb +0 -1
- data/lib/facet/binding/method_name.rb +0 -1
- data/lib/facet/binding/op_fetch.rb +0 -1
- data/lib/facet/binding/op_store.rb +0 -1
- data/lib/facet/binding/self.rb +0 -1
- data/lib/facet/binding/self/of_caller.rb +0 -1
- data/lib/facet/bitmask.rb +0 -1
- data/lib/facet/buildingblock.rb +0 -1
- data/lib/facet/bytes.rb +0 -1
- data/lib/facet/cache.rb +0 -1
- data/lib/facet/class/by_name.rb +0 -1
- data/lib/facet/class/cattr.rb +0 -1
- data/lib/facet/class/cattr_accessor.rb +0 -1
- data/lib/facet/class/cattr_reader.rb +0 -1
- data/lib/facet/class/cattr_writer.rb +0 -1
- data/lib/facet/class/class_load.rb +0 -1
- data/lib/facet/class/class_require.rb +0 -1
- data/lib/facet/class/descendents.rb +0 -1
- data/lib/facet/class/method_name.rb +0 -1
- data/lib/facet/class/remove_descendents.rb +0 -1
- data/lib/facet/class/remove_subclasses.rb +0 -1
- data/lib/facet/class/subclasses.rb +0 -1
- data/lib/facet/class/to_proc.rb +0 -1
- data/lib/facet/class/unix_path.rb +0 -1
- data/lib/facet/classmethods.rb +0 -1
- data/lib/facet/cloneable.rb +0 -1
- data/lib/facet/command.rb +0 -1
- data/lib/facet/comparable/at_least.rb +0 -1
- data/lib/facet/comparable/at_most.rb +0 -1
- data/lib/facet/comparable/cap.rb +0 -1
- data/lib/facet/comparable/clip.rb +0 -1
- data/lib/facet/comparable/cmp.rb +0 -1
- data/lib/facet/config/datadir.rb +0 -1
- data/lib/facet/config/inspect.rb +0 -1
- data/lib/facet/consoleutils.rb +0 -1
- data/lib/facet/continuation/self/create.rb +0 -1
- data/lib/facet/cookie.rb +0 -1
- data/lib/facet/coroutine.rb +0 -1
- data/lib/facet/crypt.rb +0 -1
- data/lib/facet/cut.rb +0 -1
- data/lib/facet/date/days_in_month.rb +0 -1
- data/lib/facet/date/days_of_month.rb +0 -1
- data/lib/facet/date/stamp.rb +0 -1
- data/lib/facet/date/to_date.rb +0 -1
- data/lib/facet/date/to_s.rb +0 -1
- data/lib/facet/date/to_time.rb +0 -1
- data/lib/facet/dependency.rb +0 -1
- data/lib/facet/dictionary.rb +0 -1
- data/lib/facet/dir/self/ancestor.rb +0 -1
- data/lib/facet/dir/self/ascend.rb +0 -1
- data/lib/facet/dir/self/descend.rb +0 -1
- data/lib/facet/dir/self/ls_r.rb +0 -1
- data/lib/facet/dir/self/multiglob.rb +0 -1
- data/lib/facet/dir/self/multiglob_r.rb +0 -1
- data/lib/facet/dir/self/multiglob_with_default.rb +0 -1
- data/lib/facet/dir/self/recurse.rb +0 -1
- data/lib/facet/doublemetaphone.rb +0 -1
- data/lib/facet/downloader.rb +0 -1
- data/lib/facet/elementor.rb +0 -1
- data/lib/facet/enumerable/accumulate.rb +0 -1
- data/lib/facet/enumerable/cart.rb +0 -1
- data/lib/facet/enumerable/cartesian_product.rb +0 -1
- data/lib/facet/enumerable/cascade.rb +0 -1
- data/lib/facet/enumerable/collect_if.rb +0 -1
- data/lib/facet/enumerable/collect_with_counter.rb +0 -1
- data/lib/facet/enumerable/collect_with_index.rb +0 -1
- data/lib/facet/enumerable/commonality.rb +0 -1
- data/lib/facet/enumerable/compact_collect.rb +0 -1
- data/lib/facet/enumerable/compact_map.rb +0 -1
- data/lib/facet/enumerable/count.rb +0 -1
- data/lib/facet/enumerable/divide.rb +0 -1
- data/lib/facet/enumerable/each_by.rb +0 -1
- data/lib/facet/enumerable/each_combination.rb +0 -1
- data/lib/facet/enumerable/each_pair.rb +0 -1
- data/lib/facet/enumerable/each_permutation.rb +0 -1
- data/lib/facet/enumerable/each_slice.rb +0 -1
- data/lib/facet/enumerable/each_unique_pair.rb +0 -1
- data/lib/facet/enumerable/each_with_counter.rb +0 -1
- data/lib/facet/enumerable/eachn.rb +0 -1
- data/lib/facet/enumerable/elementwise.rb +0 -1
- data/lib/facet/enumerable/entropy.rb +0 -1
- data/lib/facet/enumerable/every.rb +0 -1
- data/lib/facet/enumerable/ew.rb +0 -1
- data/lib/facet/enumerable/filter_collect.rb +0 -1
- data/lib/facet/enumerable/filter_map.rb +0 -1
- data/lib/facet/enumerable/find_collisions.rb +0 -1
- data/lib/facet/enumerable/frequency.rb +0 -1
- data/lib/facet/enumerable/graph.rb +0 -1
- data/lib/facet/enumerable/ideal_entropy.rb +0 -1
- data/lib/facet/enumerable/injecting.rb +0 -1
- data/lib/facet/enumerable/map_if.rb +0 -1
- data/lib/facet/enumerable/map_send.rb +0 -1
- data/lib/facet/enumerable/map_with_counter.rb +0 -1
- data/lib/facet/enumerable/map_with_index.rb +0 -1
- data/lib/facet/enumerable/mode.rb +0 -1
- data/lib/facet/enumerable/none.rb +0 -1
- data/lib/facet/enumerable/nonuniq.rb +0 -1
- data/lib/facet/enumerable/occur.rb +0 -1
- data/lib/facet/enumerable/one.rb +0 -1
- data/lib/facet/enumerable/op_pow.rb +0 -1
- data/lib/facet/enumerable/op_tilde_self.rb +0 -1
- data/lib/facet/enumerable/partition_by.rb +0 -1
- data/lib/facet/enumerable/permutation.rb +0 -1
- data/lib/facet/enumerable/probability.rb +0 -1
- data/lib/facet/enumerable/project.rb +0 -1
- data/lib/facet/enumerable/self/cart.rb +0 -1
- data/lib/facet/enumerable/self/cartesian_product.rb +0 -1
- data/lib/facet/enumerable/self/combinations.rb +0 -1
- data/lib/facet/enumerable/sum.rb +0 -1
- data/lib/facet/enumerable/thread_map.rb +0 -1
- data/lib/facet/enumerable/thread_map_send.rb +0 -1
- data/lib/facet/enumerable/to_h.rb +0 -1
- data/lib/facet/enumerable/uniq_by.rb +0 -1
- data/lib/facet/enumerable/where.rb +0 -1
- data/lib/facet/enumerablepass.rb +0 -1
- data/lib/facet/eventhook.rb +0 -1
- data/lib/facet/expirable.rb +0 -1
- data/lib/facet/file/self/append.rb +0 -1
- data/lib/facet/file/self/create.rb +0 -1
- data/lib/facet/file/self/null.rb +0 -1
- data/lib/facet/file/self/open_as_string.rb +0 -1
- data/lib/facet/file/self/read_binary.rb +0 -1
- data/lib/facet/file/self/read_list.rb +0 -1
- data/lib/facet/file/self/rootname.rb +0 -1
- data/lib/facet/file/self/sanitize.rb +0 -1
- data/lib/facet/file/self/split_all.rb +0 -1
- data/lib/facet/file/self/write.rb +0 -1
- data/lib/facet/file/self/yaml.rb +0 -1
- data/lib/facet/filelist.rb +0 -1
- data/lib/facet/filesystem.rb +0 -1
- data/lib/facet/filetest/self/root.rb +0 -1
- data/lib/facet/fileutils/compress.rb +0 -1
- data/lib/facet/fileutils/head.rb +0 -1
- data/lib/facet/fileutils/safe_ln.rb +0 -1
- data/lib/facet/fileutils/slice.rb +0 -1
- data/lib/facet/fileutils/split_all.rb +0 -1
- data/lib/facet/fileutils/stage.rb +0 -1
- data/lib/facet/fileutils/staged.rb +0 -1
- data/lib/facet/fileutils/tail.rb +0 -1
- data/lib/facet/fileutils/wc.rb +0 -1
- data/lib/facet/fileutils/whereis.rb +0 -1
- data/lib/facet/fileutils/which.rb +0 -1
- data/lib/facet/float/approx.rb +0 -1
- data/lib/facet/float/round_at.rb +0 -1
- data/lib/facet/float/round_off.rb +0 -1
- data/lib/facet/float/round_to.rb +0 -1
- data/lib/facet/floatstring.rb +0 -1
- data/lib/facet/functor.rb +0 -1
- data/lib/facet/gem/self/active.rb +0 -1
- data/lib/facet/gem/self/gempath.rb +0 -1
- data/lib/facet/gem/self/gemspec.rb +0 -1
- data/lib/facet/hash/alias.rb +0 -1
- data/lib/facet/hash/assert_has_keys.rb +0 -1
- data/lib/facet/hash/assert_has_only_keys.rb +0 -1
- data/lib/facet/hash/at.rb +0 -1
- data/lib/facet/hash/collate.rb +0 -1
- data/lib/facet/hash/delete_at.rb +0 -1
- data/lib/facet/hash/delete_unless.rb +0 -1
- data/lib/facet/hash/delete_values.rb +0 -1
- data/lib/facet/hash/delete_values_at.rb +0 -1
- data/lib/facet/hash/diff.rb +0 -1
- data/lib/facet/hash/each_with_index.rb +0 -1
- data/lib/facet/hash/each_with_key.rb +0 -1
- data/lib/facet/hash/graph.rb +0 -1
- data/lib/facet/hash/has_keys.rb +0 -1
- data/lib/facet/hash/has_only_keys.rb +0 -1
- data/lib/facet/hash/having_aquisition.rb +0 -1
- data/lib/facet/hash/having_fallback.rb +0 -1
- data/lib/facet/hash/insert.rb +0 -1
- data/lib/facet/hash/inverse.rb +0 -1
- data/lib/facet/hash/join.rb +0 -1
- data/lib/facet/hash/keys_to_s.rb +0 -1
- data/lib/facet/hash/keys_to_sym.rb +0 -1
- data/lib/facet/hash/normalize_keys.rb +0 -1
- data/lib/facet/hash/op_add.rb +0 -1
- data/lib/facet/hash/op_and.rb +0 -1
- data/lib/facet/hash/op_div.rb +0 -1
- data/lib/facet/hash/op_fetch.rb +0 -1
- data/lib/facet/hash/op_lshift.rb +0 -1
- data/lib/facet/hash/op_mul.rb +0 -1
- data/lib/facet/hash/op_or.rb +0 -1
- data/lib/facet/hash/op_store.rb +0 -1
- data/lib/facet/hash/op_sub.rb +0 -1
- data/lib/facet/hash/pairs_at.rb +0 -1
- data/lib/facet/hash/rand_key.rb +0 -1
- data/lib/facet/hash/rand_pair.rb +0 -1
- data/lib/facet/hash/rand_value.rb +0 -1
- data/lib/facet/hash/rekey.rb +0 -1
- data/lib/facet/hash/replace_each.rb +0 -1
- data/lib/facet/hash/reverse_merge.rb +0 -1
- data/lib/facet/hash/reverse_update.rb +0 -1
- data/lib/facet/hash/self/auto.rb +0 -1
- data/lib/facet/hash/self/zipnew.rb +0 -1
- data/lib/facet/hash/shuffle.rb +0 -1
- data/lib/facet/hash/slice.rb +0 -1
- data/lib/facet/hash/stringify_keys.rb +0 -1
- data/lib/facet/hash/swap.rb +0 -1
- data/lib/facet/hash/swapkey.rb +0 -1
- data/lib/facet/hash/symbolize_keys.rb +0 -1
- data/lib/facet/hash/to_h.rb +0 -1
- data/lib/facet/hash/to_ostruct.rb +0 -1
- data/lib/facet/hash/to_ostruct_recurse.rb +0 -1
- data/lib/facet/hash/to_proc.rb +0 -1
- data/lib/facet/hash/to_struct.rb +0 -1
- data/lib/facet/hash/traverse.rb +0 -1
- data/lib/facet/hash/update_each.rb +0 -1
- data/lib/facet/hash/update_keys.rb +0 -1
- data/lib/facet/hash/update_values.rb +0 -1
- data/lib/facet/hash/variablize_keys.rb +0 -1
- data/lib/facet/hash/weave.rb +0 -1
- data/lib/facet/hashbuilder.rb +0 -1
- data/lib/facet/heap.rb +0 -1
- data/lib/facet/htmlbuilder.rb +0 -1
- data/lib/facet/htmlfilter.rb +0 -1
- data/lib/facet/htmlhelper.rb +0 -1
- data/lib/facet/http.rb +0 -1
- data/lib/facet/httpaccess.rb +0 -1
- data/lib/facet/infinity.rb +0 -1
- data/lib/facet/inflect.rb +0 -1
- data/lib/facet/inheritor.rb +0 -1
- data/lib/facet/instance_intercept.rb +0 -1
- data/lib/facet/integer/each.rb +0 -1
- data/lib/facet/integer/even.rb +0 -1
- data/lib/facet/integer/fac.rb +0 -1
- data/lib/facet/integer/fact.rb +0 -1
- data/lib/facet/integer/factorial.rb +0 -1
- data/lib/facet/integer/multiple.rb +0 -1
- data/lib/facet/integer/odd.rb +0 -1
- data/lib/facet/integer/of.rb +0 -1
- data/lib/facet/integer/ordinal.rb +0 -1
- data/lib/facet/integer/times_collect.rb +0 -1
- data/lib/facet/integer/times_map.rb +0 -1
- data/lib/facet/integer/to_roman.rb +0 -1
- data/lib/facet/interval.rb +0 -1
- data/lib/facet/ioredirect.rb +0 -1
- data/lib/facet/json.rb +0 -1
- data/lib/facet/kernel/__DIR__.rb +0 -1
- data/lib/facet/kernel/__callee__.rb +0 -1
- data/lib/facet/kernel/__class__.rb +0 -1
- data/lib/facet/kernel/__get__.rb +0 -1
- data/lib/facet/kernel/__method__.rb +0 -1
- data/lib/facet/kernel/__self__.rb +0 -1
- data/lib/facet/kernel/__set__.rb +0 -1
- data/lib/facet/kernel/as.rb +0 -1
- data/lib/facet/kernel/ask.rb +0 -1
- data/lib/facet/kernel/assign_from.rb +0 -1
- data/lib/facet/kernel/assign_with.rb +0 -1
- data/lib/facet/kernel/autoreload.rb +0 -1
- data/lib/facet/kernel/autoreload_files.rb +0 -1
- data/lib/facet/kernel/autoreload_glob.rb +0 -1
- data/lib/facet/kernel/bool.rb +0 -1
- data/lib/facet/kernel/bug.rb +0 -1
- data/lib/facet/kernel/cache.rb +0 -1
- data/lib/facet/kernel/call_stack.rb +0 -1
- data/lib/facet/kernel/called.rb +0 -1
- data/lib/facet/kernel/callee.rb +0 -1
- data/lib/facet/kernel/class_def.rb +0 -1
- data/lib/facet/kernel/complete.rb +0 -1
- data/lib/facet/kernel/constant.rb +0 -1
- data/lib/facet/kernel/copy.rb +0 -1
- data/lib/facet/kernel/daemonize.rb +0 -1
- data/lib/facet/kernel/deep_clone.rb +0 -1
- data/lib/facet/kernel/deep_copy.rb +0 -1
- data/lib/facet/kernel/demo.rb +0 -1
- data/lib/facet/kernel/eigenclass.rb +0 -1
- data/lib/facet/kernel/enable_warnings.rb +0 -1
- data/lib/facet/kernel/false.rb +0 -1
- data/lib/facet/kernel/fn.rb +0 -1
- data/lib/facet/kernel/get_by_id.rb +0 -1
- data/lib/facet/kernel/here.rb +0 -1
- data/lib/facet/kernel/in.rb +0 -1
- data/lib/facet/kernel/instance_assign.rb +0 -1
- data/lib/facet/kernel/instance_class.rb +0 -1
- data/lib/facet/kernel/instance_exec.rb +0 -1
- data/lib/facet/kernel/instance_values.rb +0 -1
- data/lib/facet/kernel/instvar.rb +0 -1
- data/lib/facet/kernel/is.rb +0 -1
- data/lib/facet/kernel/load_local.rb +0 -1
- data/lib/facet/kernel/maybe.rb +0 -1
- data/lib/facet/kernel/meta.rb +0 -1
- data/lib/facet/kernel/meta_alias.rb +0 -1
- data/lib/facet/kernel/meta_class.rb +0 -1
- data/lib/facet/kernel/meta_def.rb +0 -1
- data/lib/facet/kernel/meta_eval.rb +0 -1
- data/lib/facet/kernel/metaclass.rb +0 -1
- data/lib/facet/kernel/method.rb +0 -1
- data/lib/facet/kernel/methods.rb +0 -1
- data/lib/facet/kernel/nack.rb +0 -1
- data/lib/facet/kernel/new.rb +0 -1
- data/lib/facet/kernel/object_class.rb +0 -1
- data/lib/facet/kernel/object_clone.rb +0 -1
- data/lib/facet/kernel/object_dup.rb +0 -1
- data/lib/facet/kernel/object_hexid.rb +0 -1
- data/lib/facet/kernel/object_send.rb +0 -1
- data/lib/facet/kernel/op_esc.rb +0 -1
- data/lib/facet/kernel/p.rb +0 -1
- data/lib/facet/kernel/populate.rb +0 -1
- data/lib/facet/kernel/pp_exception.rb +0 -1
- data/lib/facet/kernel/qua_class.rb +0 -1
- data/lib/facet/kernel/require_all.rb +0 -1
- data/lib/facet/kernel/require_esc.rb +0 -1
- data/lib/facet/kernel/require_local.rb +0 -1
- data/lib/facet/kernel/resc.rb +0 -1
- data/lib/facet/kernel/respond.rb +0 -1
- data/lib/facet/kernel/returning.rb +0 -1
- data/lib/facet/kernel/send_as.rb +0 -1
- data/lib/facet/kernel/set_from.rb +0 -1
- data/lib/facet/kernel/set_with.rb +0 -1
- data/lib/facet/kernel/silence_stream.rb +0 -1
- data/lib/facet/kernel/silence_warnings.rb +0 -1
- data/lib/facet/kernel/silently.rb +0 -1
- data/lib/facet/kernel/singleton.rb +0 -1
- data/lib/facet/kernel/singleton_class.rb +0 -1
- data/lib/facet/kernel/super_at.rb +0 -1
- data/lib/facet/kernel/supermethod.rb +0 -1
- data/lib/facet/kernel/supress.rb +0 -1
- data/lib/facet/kernel/tap.rb +0 -1
- data/lib/facet/kernel/this.rb +0 -1
- data/lib/facet/kernel/to_b.rb +0 -1
- data/lib/facet/kernel/to_bool.rb +0 -1
- data/lib/facet/kernel/to_data.rb +0 -1
- data/lib/facet/kernel/true.rb +0 -1
- data/lib/facet/kernel/unuri.rb +0 -1
- data/lib/facet/kernel/uri.rb +0 -1
- data/lib/facet/kernel/val.rb +0 -1
- data/lib/facet/kernel/warn_with_line.rb +0 -1
- data/lib/facet/kernel/with.rb +0 -1
- data/lib/facet/kernel/with_accessor.rb +0 -1
- data/lib/facet/kernel/with_reader.rb +0 -1
- data/lib/facet/kernel/with_writer.rb +0 -1
- data/lib/facet/kernel/yaml.rb +0 -1
- data/lib/facet/lazy.rb +0 -1
- data/lib/facet/linkedlist.rb +0 -1
- data/lib/facet/lisp.rb +0 -1
- data/lib/facet/lisp_format.rb +0 -1
- data/lib/facet/logger/format.rb +0 -1
- data/lib/facet/logger/format_message.rb +0 -1
- data/lib/facet/lrucache.rb +0 -1
- data/lib/facet/main_as_module.rb +0 -1
- data/lib/facet/matchdata/match.rb +0 -1
- data/lib/facet/matchdata/matchset.rb +0 -1
- data/lib/facet/matchdata/matchtree.rb +0 -1
- data/lib/facet/mathconstants.rb +0 -1
- data/lib/facet/methodfilter.rb +0 -1
- data/lib/facet/methodprobe.rb +0 -1
- data/lib/facet/minitar.rb +0 -1
- data/lib/facet/mock.rb +0 -1
- data/lib/facet/module/abstract.rb +0 -1
- data/lib/facet/module/alias_accessor.rb +0 -1
- data/lib/facet/module/alias_method_chain.rb +0 -1
- data/lib/facet/module/alias_module_function.rb +0 -1
- data/lib/facet/module/ancestor.rb +0 -1
- data/lib/facet/module/attr.rb +0 -1
- data/lib/facet/module/attr_query.rb +0 -1
- data/lib/facet/module/attr_setter.rb +0 -1
- data/lib/facet/module/attr_tester.rb +0 -1
- data/lib/facet/module/attr_validator.rb +0 -1
- data/lib/facet/module/basename.rb +0 -1
- data/lib/facet/module/by_name.rb +0 -1
- data/lib/facet/module/class.rb +0 -1
- data/lib/facet/module/class_extension.rb +0 -1
- data/lib/facet/module/clone_removing.rb +0 -1
- data/lib/facet/module/clone_renaming.rb +0 -1
- data/lib/facet/module/clone_using.rb +0 -1
- data/lib/facet/module/dirname.rb +0 -1
- data/lib/facet/module/equate_on.rb +0 -1
- data/lib/facet/module/include_and_extend.rb +0 -1
- data/lib/facet/module/include_as.rb +0 -1
- data/lib/facet/module/include_function_module.rb +0 -1
- data/lib/facet/module/initializer.rb +0 -1
- data/lib/facet/module/instance_methods.rb +0 -1
- data/lib/facet/module/integrate.rb +0 -1
- data/lib/facet/module/is.rb +0 -1
- data/lib/facet/module/memoize.rb +0 -1
- data/lib/facet/module/modspace.rb +0 -1
- data/lib/facet/module/module_load.rb +0 -1
- data/lib/facet/module/module_method.rb +0 -1
- data/lib/facet/module/module_require.rb +0 -1
- data/lib/facet/module/namespace.rb +0 -1
- data/lib/facet/module/nesting.rb +0 -1
- data/lib/facet/module/new.rb +0 -1
- data/lib/facet/module/nodef.rb +0 -1
- data/lib/facet/module/on_included.rb +0 -1
- data/lib/facet/module/prepend.rb +0 -1
- data/lib/facet/module/redef.rb +0 -1
- data/lib/facet/module/redefine_method.rb +0 -1
- data/lib/facet/module/redirect.rb +0 -1
- data/lib/facet/module/redirect_method.rb +0 -1
- data/lib/facet/module/remove.rb +0 -1
- data/lib/facet/module/rename.rb +0 -1
- data/lib/facet/module/rename_method.rb +0 -1
- data/lib/facet/module/revisal.rb +0 -1
- data/lib/facet/module/self/op_add.rb +0 -1
- data/lib/facet/module/self/op_sub.rb +0 -1
- data/lib/facet/module/shadow_all.rb +0 -1
- data/lib/facet/module/shadow_method.rb +0 -1
- data/lib/facet/module/sort_on.rb +0 -1
- data/lib/facet/module/this.rb +0 -1
- data/lib/facet/module/wrap.rb +0 -1
- data/lib/facet/module/wrap_method.rb +0 -1
- data/lib/facet/multipliers.rb +0 -1
- data/lib/facet/multiton.rb +0 -1
- data/lib/facet/nackclass.rb +0 -1
- data/lib/facet/nil_as_emptiness.rb +0 -1
- data/lib/facet/nilclass/blank.rb +0 -1
- data/lib/facet/nilclass/empty.rb +0 -1
- data/lib/facet/nilclass/include.rb +0 -1
- data/lib/facet/nilclass/length.rb +0 -1
- data/lib/facet/nilclass/op_cmp.rb +0 -1
- data/lib/facet/nilclass/op_fetch.rb +0 -1
- data/lib/facet/nilclass/size.rb +0 -1
- data/lib/facet/nilclass/status.rb +0 -1
- data/lib/facet/nilclass/succ.rb +0 -1
- data/lib/facet/nilclass/to_h.rb +0 -1
- data/lib/facet/nilclass/to_path.rb +0 -1
- data/lib/facet/nilcomparable.rb +0 -1
- data/lib/facet/nullclass.rb +0 -1
- data/lib/facet/numeric/approx.rb +0 -1
- data/lib/facet/numeric/ceil_multiple.rb +0 -1
- data/lib/facet/numeric/distance.rb +0 -1
- data/lib/facet/numeric/pred.rb +0 -1
- data/lib/facet/numeric/succ.rb +0 -1
- data/lib/facet/numeric/to_b.rb +0 -1
- data/lib/facet/opencascade.rb +0 -1
- data/lib/facet/openobject.rb +0 -1
- data/lib/facet/orderedhash.rb +0 -1
- data/lib/facet/ormsupport.rb +0 -1
- data/lib/facet/ostruct.rb +0 -1
- data/lib/facet/ostruct/__merge__.rb +0 -1
- data/lib/facet/ostruct/__table__.rb +0 -1
- data/lib/facet/ostruct/__update__.rb +0 -1
- data/lib/facet/ostruct/instance_delegate.rb +0 -1
- data/lib/facet/ostruct/op_fetch.rb +0 -1
- data/lib/facet/ostruct/op_store.rb +0 -1
- data/lib/facet/ostruct/to_h.rb +0 -1
- data/lib/facet/overload.rb +0 -1
- data/lib/facet/paramix.rb +0 -1
- data/lib/facet/pathlist.rb +0 -1
- data/lib/facet/pathname/ascend.rb +0 -1
- data/lib/facet/pathname/descend.rb +0 -1
- data/lib/facet/pathname/op_div.rb +0 -1
- data/lib/facet/pool.rb +0 -1
- data/lib/facet/populate.rb +0 -1
- data/lib/facet/pqueue.rb +0 -1
- data/lib/facet/preinitialize.rb +0 -1
- data/lib/facet/proc/bind.rb +0 -1
- data/lib/facet/proc/compose.rb +0 -1
- data/lib/facet/proc/op_mul.rb +0 -1
- data/lib/facet/proc/to_h.rb +0 -1
- data/lib/facet/proc/to_method.rb +0 -1
- data/lib/facet/proc/update.rb +0 -1
- data/lib/facet/progressbar.rb +0 -1
- data/lib/facet/promoteself.rb +0 -1
- data/lib/facet/quaternion.rb +0 -1
- data/lib/facet/random.rb +0 -1
- data/lib/facet/range/combine.rb +0 -1
- data/lib/facet/range/overlap.rb +0 -1
- data/lib/facet/range/to_r.rb +0 -1
- data/lib/facet/range/to_range.rb +0 -1
- data/lib/facet/range/umbrella.rb +0 -1
- data/lib/facet/range/within.rb +0 -1
- data/lib/facet/recorder.rb +0 -1
- data/lib/facet/reference.rb +0 -1
- data/lib/facet/regexp/arity.rb +0 -1
- data/lib/facet/regexp/to_re.rb +0 -1
- data/lib/facet/regexp/to_regexp.rb +0 -1
- data/lib/facet/rexmlbuilder.rb +0 -1
- data/lib/facet/rtals.rb +0 -1
- data/lib/facet/rwdelegator.rb +0 -1
- data/lib/facet/script.rb +0 -1
- data/lib/facet/semaphore.rb +0 -1
- data/lib/facet/settings.rb +0 -1
- data/lib/facet/smtp_tls.rb +0 -1
- data/lib/facet/snapshot.rb +0 -1
- data/lib/facet/stateparser.rb +0 -1
- data/lib/facet/statichash.rb +0 -1
- data/lib/facet/string/align_center.rb +0 -1
- data/lib/facet/string/align_left.rb +0 -1
- data/lib/facet/string/align_right.rb +0 -1
- data/lib/facet/string/at.rb +0 -1
- data/lib/facet/string/at_rand.rb +0 -1
- data/lib/facet/string/basename.rb +0 -1
- data/lib/facet/string/blank.rb +0 -1
- data/lib/facet/string/bracket.rb +0 -1
- data/lib/facet/string/brief.rb +0 -1
- data/lib/facet/string/bytes.rb +0 -1
- data/lib/facet/string/camelcase.rb +0 -1
- data/lib/facet/string/camelize.rb +0 -1
- data/lib/facet/string/capitalize_all.rb +0 -1
- data/lib/facet/string/capitalized.rb +0 -1
- data/lib/facet/string/chars.rb +0 -1
- data/lib/facet/string/cleave.rb +0 -1
- data/lib/facet/string/cmp.rb +0 -1
- data/lib/facet/string/demodulize.rb +0 -1
- data/lib/facet/string/dequote.rb +0 -1
- data/lib/facet/string/divide.rb +0 -1
- data/lib/facet/string/downcase.rb +0 -1
- data/lib/facet/string/dresner.rb +0 -1
- data/lib/facet/string/each_char.rb +0 -1
- data/lib/facet/string/each_word.rb +0 -1
- data/lib/facet/string/ends_with.rb +0 -1
- data/lib/facet/string/first.rb +0 -1
- data/lib/facet/string/first_char.rb +0 -1
- data/lib/facet/string/fold.rb +0 -1
- data/lib/facet/string/format.rb +0 -1
- data/lib/facet/string/humanize.rb +0 -1
- data/lib/facet/string/indent.rb +0 -1
- data/lib/facet/string/index_all.rb +0 -1
- data/lib/facet/string/last.rb +0 -1
- data/lib/facet/string/last_char.rb +0 -1
- data/lib/facet/string/line_wrap.rb +0 -1
- data/lib/facet/string/lines.rb +0 -1
- data/lib/facet/string/lowercase.rb +0 -1
- data/lib/facet/string/margin.rb +0 -1
- data/lib/facet/string/methodize.rb +0 -1
- data/lib/facet/string/modulize.rb +0 -1
- data/lib/facet/string/mscan.rb +0 -1
- data/lib/facet/string/natcmp.rb +0 -1
- data/lib/facet/string/nchar.rb +0 -1
- data/lib/facet/string/ordinal.rb +0 -1
- data/lib/facet/string/pathize.rb +0 -1
- data/lib/facet/string/plural.rb +0 -1
- data/lib/facet/string/pop.rb +0 -1
- data/lib/facet/string/pot.rb +0 -1
- data/lib/facet/string/pull.rb +0 -1
- data/lib/facet/string/push.rb +0 -1
- data/lib/facet/string/quote.rb +0 -1
- data/lib/facet/string/rand_byte.rb +0 -1
- data/lib/facet/string/rand_index.rb +0 -1
- data/lib/facet/string/range.rb +0 -1
- data/lib/facet/string/range_all.rb +0 -1
- data/lib/facet/string/range_of_line.rb +0 -1
- data/lib/facet/string/regesc.rb +0 -1
- data/lib/facet/string/rewrite.rb +0 -1
- data/lib/facet/string/self/format.rb +0 -1
- data/lib/facet/string/self/interpolate.rb +0 -1
- data/lib/facet/string/self/patterns.rb +0 -1
- data/lib/facet/string/self/rand_letter.rb +0 -1
- data/lib/facet/string/self/random.rb +0 -1
- data/lib/facet/string/shatter.rb +0 -1
- data/lib/facet/string/shell_escape.rb +0 -1
- data/lib/facet/string/shift.rb +0 -1
- data/lib/facet/string/shuffle.rb +0 -1
- data/lib/facet/string/similarity.rb +0 -1
- data/lib/facet/string/singular.rb +0 -1
- data/lib/facet/string/soundex.rb +0 -1
- data/lib/facet/string/starts_with.rb +0 -1
- data/lib/facet/string/succ.rb +0 -1
- data/lib/facet/string/tab.rb +0 -1
- data/lib/facet/string/tabto.rb +0 -1
- data/lib/facet/string/to_a.rb +0 -1
- data/lib/facet/string/to_b.rb +0 -1
- data/lib/facet/string/to_const.rb +0 -1
- data/lib/facet/string/to_date.rb +0 -1
- data/lib/facet/string/to_proc.rb +0 -1
- data/lib/facet/string/to_re.rb +0 -1
- data/lib/facet/string/to_rx.rb +0 -1
- data/lib/facet/string/to_time.rb +0 -1
- data/lib/facet/string/unbracket.rb +0 -1
- data/lib/facet/string/underscore.rb +0 -1
- data/lib/facet/string/unix_crypt.rb +0 -1
- data/lib/facet/string/unpack.rb +0 -1
- data/lib/facet/string/unshift.rb +0 -1
- data/lib/facet/string/upcase.rb +0 -1
- data/lib/facet/string/uppercase.rb +0 -1
- data/lib/facet/string/whitespace.rb +0 -1
- data/lib/facet/string/word_filter.rb +0 -1
- data/lib/facet/string/word_wrap.rb +0 -1
- data/lib/facet/string/words.rb +0 -1
- data/lib/facet/string_as_array.rb +0 -1
- data/lib/facet/symbol/camelcase.rb +0 -1
- data/lib/facet/symbol/camelize.rb +0 -1
- data/lib/facet/symbol/capitalize.rb +0 -1
- data/lib/facet/symbol/capitalized.rb +0 -1
- data/lib/facet/symbol/chomp.rb +0 -1
- data/lib/facet/symbol/downcase.rb +0 -1
- data/lib/facet/symbol/not.rb +0 -1
- data/lib/facet/symbol/pad.rb +0 -1
- data/lib/facet/symbol/self/generate.rb +0 -1
- data/lib/facet/symbol/succ.rb +0 -1
- data/lib/facet/symbol/to_const.rb +0 -1
- data/lib/facet/symbol/to_proc.rb +0 -1
- data/lib/facet/symbol/to_s.rb +0 -1
- data/lib/facet/symbol/to_str.rb +0 -1
- data/lib/facet/symbol/underscore.rb +0 -1
- data/lib/facet/symbol/upcase.rb +0 -1
- data/lib/facet/syncarray.rb +0 -1
- data/lib/facet/synchash.rb +0 -1
- data/lib/facet/system.rb +0 -1
- data/lib/facet/tagiterator.rb +0 -1
- data/lib/facet/time/change.rb +0 -1
- data/lib/facet/time/elapse.rb +0 -1
- data/lib/facet/time/self/days_extrema.rb +0 -1
- data/lib/facet/time/self/stamp.rb +0 -1
- data/lib/facet/time/stamp.rb +0 -1
- data/lib/facet/time/to_date.rb +0 -1
- data/lib/facet/time/to_s.rb +0 -1
- data/lib/facet/time/to_time.rb +0 -1
- data/lib/facet/timer.rb +0 -1
- data/lib/facet/times.rb +0 -1
- data/lib/facet/tkxml.rb +0 -1
- data/lib/facet/tracepoint.rb +0 -1
- data/lib/facet/tuple.rb +0 -1
- data/lib/facet/typecast.rb +0 -1
- data/lib/facet/unboundmethod/name.rb +0 -1
- data/lib/facet/uninheritable.rb +0 -1
- data/lib/facet/units.rb +0 -1
- data/lib/facet/uploadutils.rb +0 -1
- data/lib/facet/version_number.rb +0 -1
- data/lib/facet/xmlbuilder.rb +0 -1
- data/lib/facet/xmlhelper.rb +0 -1
- data/lib/facet/xoxo.rb +0 -1
- data/lib/facet/yamlstruct.rb +0 -1
- data/lib/facets.rb +0 -92
- data/lib/facets/automatic.rb +0 -29
- data/lib/facets/core/all.rb +0 -5
- data/lib/facets/core/array/at_rand.rb +0 -52
- data/lib/facets/core/array/body.rb +0 -2
- data/lib/facets/core/array/combos.rb +0 -3
- data/lib/facets/core/array/delete_unless.rb +0 -35
- data/lib/facets/core/array/delete_values.rb +0 -38
- data/lib/facets/core/array/delete_values_at.rb +0 -59
- data/lib/facets/core/array/each_combo.rb +0 -48
- data/lib/facets/core/array/each_with_key.rb +0 -9
- data/lib/facets/core/array/first.rb +0 -84
- data/lib/facets/core/array/foot.rb +0 -2
- data/lib/facets/core/array/head.rb +0 -80
- data/lib/facets/core/array/index.rb +0 -15
- data/lib/facets/core/array/join_sentence.rb +0 -12
- data/lib/facets/core/array/last.rb +0 -2
- data/lib/facets/core/array/last_index.rb +0 -35
- data/lib/facets/core/array/merge.rb +0 -40
- data/lib/facets/core/array/mid.rb +0 -50
- data/lib/facets/core/array/middle.rb +0 -45
- data/lib/facets/core/array/op_div.rb +0 -29
- data/lib/facets/core/array/op_fetch.rb +0 -67
- data/lib/facets/core/array/op_mod.rb +0 -16
- data/lib/facets/core/array/op_store.rb +0 -2
- data/lib/facets/core/array/pad.rb +0 -76
- data/lib/facets/core/array/pick.rb +0 -68
- data/lib/facets/core/array/pos.rb +0 -39
- data/lib/facets/core/array/pot.rb +0 -38
- data/lib/facets/core/array/pull.rb +0 -37
- data/lib/facets/core/array/rand_index.rb +0 -30
- data/lib/facets/core/array/rand_subset.rb +0 -56
- data/lib/facets/core/array/range.rb +0 -47
- data/lib/facets/core/array/rotate.rb +0 -67
- data/lib/facets/core/array/select.rb +0 -37
- data/lib/facets/core/array/shuffle.rb +0 -66
- data/lib/facets/core/array/store.rb +0 -7
- data/lib/facets/core/array/tail.rb +0 -2
- data/lib/facets/core/array/thru.rb +0 -38
- data/lib/facets/core/array/to_b.rb +0 -31
- data/lib/facets/core/array/to_h.rb +0 -57
- data/lib/facets/core/array/to_hash.rb +0 -46
- data/lib/facets/core/array/to_path.rb +0 -11
- data/lib/facets/core/array/unzip.rb +0 -20
- data/lib/facets/core/binding.rb +0 -14
- data/lib/facets/core/binding/__DIR__.rb +0 -2
- data/lib/facets/core/binding/__FILE__.rb +0 -2
- data/lib/facets/core/binding/__LINE__.rb +0 -58
- data/lib/facets/core/binding/call_stack.rb +0 -42
- data/lib/facets/core/binding/called.rb +0 -42
- data/lib/facets/core/binding/caller.rb +0 -42
- data/lib/facets/core/binding/defined.rb +0 -41
- data/lib/facets/core/binding/eval.rb +0 -42
- data/lib/facets/core/binding/local_variables.rb +0 -45
- data/lib/facets/core/binding/method_name.rb +0 -48
- data/lib/facets/core/binding/op_fetch.rb +0 -45
- data/lib/facets/core/binding/op_store.rb +0 -46
- data/lib/facets/core/binding/self.rb +0 -41
- data/lib/facets/core/binding/self/of_caller.rb +0 -122
- data/lib/facets/core/class/by_name.rb +0 -1
- data/lib/facets/core/class/cattr.rb +0 -161
- data/lib/facets/core/class/cattr_accessor.rb +0 -2
- data/lib/facets/core/class/cattr_reader.rb +0 -3
- data/lib/facets/core/class/cattr_writer.rb +0 -2
- data/lib/facets/core/class/class_load.rb +0 -3
- data/lib/facets/core/class/class_require.rb +0 -3
- data/lib/facets/core/class/descendents.rb +0 -44
- data/lib/facets/core/class/method_name.rb +0 -35
- data/lib/facets/core/class/remove_descendents.rb +0 -46
- data/lib/facets/core/class/remove_subclasses.rb +0 -2
- data/lib/facets/core/class/subclasses.rb +0 -2
- data/lib/facets/core/class/to_proc.rb +0 -25
- data/lib/facets/core/class/unix_path.rb +0 -34
- data/lib/facets/core/comparable/at_least.rb +0 -53
- data/lib/facets/core/comparable/at_most.rb +0 -2
- data/lib/facets/core/comparable/cap.rb +0 -2
- data/lib/facets/core/comparable/clip.rb +0 -72
- data/lib/facets/core/comparable/cmp.rb +0 -38
- data/lib/facets/core/config/datadir.rb +0 -20
- data/lib/facets/core/config/inspect.rb +0 -9
- data/lib/facets/core/date/days_in_month.rb +0 -42
- data/lib/facets/core/date/days_of_month.rb +0 -34
- data/lib/facets/core/date/stamp.rb +0 -52
- data/lib/facets/core/date/to_date.rb +0 -36
- data/lib/facets/core/date/to_s.rb +0 -33
- data/lib/facets/core/date/to_time.rb +0 -36
- data/lib/facets/core/dir/self/ancestor.rb +0 -33
- data/lib/facets/core/dir/self/ascend.rb +0 -57
- data/lib/facets/core/dir/self/descend.rb +0 -11
- data/lib/facets/core/dir/self/ls_r.rb +0 -70
- data/lib/facets/core/dir/self/multiglob.rb +0 -110
- data/lib/facets/core/dir/self/multiglob_r.rb +0 -5
- data/lib/facets/core/dir/self/multiglob_with_default.rb +0 -3
- data/lib/facets/core/dir/self/recurse.rb +0 -2
- data/lib/facets/core/enumerable/accumulate.rb +0 -23
- data/lib/facets/core/enumerable/cart.rb +0 -94
- data/lib/facets/core/enumerable/cartesian_product.rb +0 -8
- data/lib/facets/core/enumerable/cascade.rb +0 -16
- data/lib/facets/core/enumerable/collect_if.rb +0 -15
- data/lib/facets/core/enumerable/collect_with_counter.rb +0 -2
- data/lib/facets/core/enumerable/collect_with_index.rb +0 -51
- data/lib/facets/core/enumerable/commonality.rb +0 -63
- data/lib/facets/core/enumerable/compact_collect.rb +0 -50
- data/lib/facets/core/enumerable/compact_map.rb +0 -2
- data/lib/facets/core/enumerable/count.rb +0 -54
- data/lib/facets/core/enumerable/divide.rb +0 -20
- data/lib/facets/core/enumerable/each_by.rb +0 -91
- data/lib/facets/core/enumerable/each_combination.rb +0 -59
- data/lib/facets/core/enumerable/each_pair.rb +0 -50
- data/lib/facets/core/enumerable/each_permutation.rb +0 -2
- data/lib/facets/core/enumerable/each_slice.rb +0 -120
- data/lib/facets/core/enumerable/each_unique_pair.rb +0 -66
- data/lib/facets/core/enumerable/each_with_counter.rb +0 -8
- data/lib/facets/core/enumerable/eachn.rb +0 -41
- data/lib/facets/core/enumerable/elementwise.rb +0 -75
- data/lib/facets/core/enumerable/entropy.rb +0 -52
- data/lib/facets/core/enumerable/every.rb +0 -61
- data/lib/facets/core/enumerable/ew.rb +0 -2
- data/lib/facets/core/enumerable/filter_collect.rb +0 -58
- data/lib/facets/core/enumerable/filter_map.rb +0 -2
- data/lib/facets/core/enumerable/find_collisions.rb +0 -41
- data/lib/facets/core/enumerable/frequency.rb +0 -39
- data/lib/facets/core/enumerable/graph.rb +0 -60
- data/lib/facets/core/enumerable/ideal_entropy.rb +0 -49
- data/lib/facets/core/enumerable/injecting.rb +0 -22
- data/lib/facets/core/enumerable/map_if.rb +0 -3
- data/lib/facets/core/enumerable/map_send.rb +0 -12
- data/lib/facets/core/enumerable/map_with_counter.rb +0 -2
- data/lib/facets/core/enumerable/map_with_index.rb +0 -2
- data/lib/facets/core/enumerable/mode.rb +0 -13
- data/lib/facets/core/enumerable/none.rb +0 -56
- data/lib/facets/core/enumerable/nonuniq.rb +0 -39
- data/lib/facets/core/enumerable/occur.rb +0 -62
- data/lib/facets/core/enumerable/one.rb +0 -65
- data/lib/facets/core/enumerable/op_pow.rb +0 -38
- data/lib/facets/core/enumerable/op_tilde_self.rb +0 -46
- data/lib/facets/core/enumerable/partition_by.rb +0 -57
- data/lib/facets/core/enumerable/permutation.rb +0 -142
- data/lib/facets/core/enumerable/probability.rb +0 -59
- data/lib/facets/core/enumerable/project.rb +0 -11
- data/lib/facets/core/enumerable/self/cart.rb +0 -8
- data/lib/facets/core/enumerable/self/cartesian_product.rb +0 -8
- data/lib/facets/core/enumerable/self/combinations.rb +0 -73
- data/lib/facets/core/enumerable/sum.rb +0 -19
- data/lib/facets/core/enumerable/thread_map.rb +0 -21
- data/lib/facets/core/enumerable/thread_map_send.rb +0 -3
- data/lib/facets/core/enumerable/to_h.rb +0 -50
- data/lib/facets/core/enumerable/uniq_by.rb +0 -39
- data/lib/facets/core/enumerable/where.rb +0 -12
- data/lib/facets/core/file/self/append.rb +0 -8
- data/lib/facets/core/file/self/create.rb +0 -56
- data/lib/facets/core/file/self/null.rb +0 -17
- data/lib/facets/core/file/self/open_as_string.rb +0 -99
- data/lib/facets/core/file/self/read_binary.rb +0 -8
- data/lib/facets/core/file/self/read_list.rb +0 -51
- data/lib/facets/core/file/self/rootname.rb +0 -22
- data/lib/facets/core/file/self/sanitize.rb +0 -50
- data/lib/facets/core/file/self/split_all.rb +0 -36
- data/lib/facets/core/file/self/write.rb +0 -8
- data/lib/facets/core/file/self/yaml.rb +0 -16
- data/lib/facets/core/filetest/self/root.rb +0 -13
- data/lib/facets/core/fileutils/compress.rb +0 -154
- data/lib/facets/core/fileutils/head.rb +0 -2
- data/lib/facets/core/fileutils/safe_ln.rb +0 -38
- data/lib/facets/core/fileutils/slice.rb +0 -152
- data/lib/facets/core/fileutils/split_all.rb +0 -29
- data/lib/facets/core/fileutils/stage.rb +0 -230
- data/lib/facets/core/fileutils/staged.rb +0 -3
- data/lib/facets/core/fileutils/tail.rb +0 -2
- data/lib/facets/core/fileutils/wc.rb +0 -123
- data/lib/facets/core/fileutils/whereis.rb +0 -76
- data/lib/facets/core/fileutils/which.rb +0 -112
- data/lib/facets/core/float/approx.rb +0 -2
- data/lib/facets/core/float/round_at.rb +0 -73
- data/lib/facets/core/float/round_off.rb +0 -8
- data/lib/facets/core/float/round_to.rb +0 -74
- data/lib/facets/core/gem/self/active.rb +0 -9
- data/lib/facets/core/gem/self/gempath.rb +0 -16
- data/lib/facets/core/gem/self/gemspec.rb +0 -10
- data/lib/facets/core/hash/alias.rb +0 -54
- data/lib/facets/core/hash/assert_has_keys.rb +0 -38
- data/lib/facets/core/hash/assert_has_only_keys.rb +0 -38
- data/lib/facets/core/hash/at.rb +0 -26
- data/lib/facets/core/hash/collate.rb +0 -53
- data/lib/facets/core/hash/delete_at.rb +0 -10
- data/lib/facets/core/hash/delete_unless.rb +0 -15
- data/lib/facets/core/hash/delete_values.rb +0 -20
- data/lib/facets/core/hash/delete_values_at.rb +0 -24
- data/lib/facets/core/hash/diff.rb +0 -8
- data/lib/facets/core/hash/each_with_index.rb +0 -35
- data/lib/facets/core/hash/each_with_key.rb +0 -32
- data/lib/facets/core/hash/graph.rb +0 -31
- data/lib/facets/core/hash/has_keys.rb +0 -37
- data/lib/facets/core/hash/has_only_keys.rb +0 -37
- data/lib/facets/core/hash/having_aquisition.rb +0 -37
- data/lib/facets/core/hash/having_fallback.rb +0 -28
- data/lib/facets/core/hash/insert.rb +0 -20
- data/lib/facets/core/hash/inverse.rb +0 -53
- data/lib/facets/core/hash/join.rb +0 -19
- data/lib/facets/core/hash/keys_to_s.rb +0 -2
- data/lib/facets/core/hash/keys_to_sym.rb +0 -2
- data/lib/facets/core/hash/normalize_keys.rb +0 -65
- data/lib/facets/core/hash/op_add.rb +0 -29
- data/lib/facets/core/hash/op_and.rb +0 -37
- data/lib/facets/core/hash/op_div.rb +0 -8
- data/lib/facets/core/hash/op_fetch.rb +0 -146
- data/lib/facets/core/hash/op_lshift.rb +0 -28
- data/lib/facets/core/hash/op_mul.rb +0 -17
- data/lib/facets/core/hash/op_or.rb +0 -2
- data/lib/facets/core/hash/op_store.rb +0 -2
- data/lib/facets/core/hash/op_sub.rb +0 -2
- data/lib/facets/core/hash/pairs_at.rb +0 -17
- data/lib/facets/core/hash/rand_key.rb +0 -47
- data/lib/facets/core/hash/rand_pair.rb +0 -50
- data/lib/facets/core/hash/rand_value.rb +0 -60
- data/lib/facets/core/hash/rekey.rb +0 -85
- data/lib/facets/core/hash/replace_each.rb +0 -33
- data/lib/facets/core/hash/reverse_merge.rb +0 -25
- data/lib/facets/core/hash/reverse_update.rb +0 -3
- data/lib/facets/core/hash/self/auto.rb +0 -28
- data/lib/facets/core/hash/self/zipnew.rb +0 -37
- data/lib/facets/core/hash/shuffle.rb +0 -53
- data/lib/facets/core/hash/slice.rb +0 -33
- data/lib/facets/core/hash/stringify_keys.rb +0 -74
- data/lib/facets/core/hash/swap.rb +0 -36
- data/lib/facets/core/hash/swapkey.rb +0 -44
- data/lib/facets/core/hash/symbolize_keys.rb +0 -87
- data/lib/facets/core/hash/to_h.rb +0 -35
- data/lib/facets/core/hash/to_ostruct.rb +0 -40
- data/lib/facets/core/hash/to_ostruct_recurse.rb +0 -76
- data/lib/facets/core/hash/to_proc.rb +0 -34
- data/lib/facets/core/hash/to_struct.rb +0 -16
- data/lib/facets/core/hash/traverse.rb +0 -68
- data/lib/facets/core/hash/update_each.rb +0 -43
- data/lib/facets/core/hash/update_keys.rb +0 -31
- data/lib/facets/core/hash/update_values.rb +0 -32
- data/lib/facets/core/hash/variablize_keys.rb +0 -54
- data/lib/facets/core/hash/weave.rb +0 -88
- data/lib/facets/core/inflect.rb +0 -64
- data/lib/facets/core/integer/each.rb +0 -9
- data/lib/facets/core/integer/even.rb +0 -2
- data/lib/facets/core/integer/fac.rb +0 -2
- data/lib/facets/core/integer/fact.rb +0 -2
- data/lib/facets/core/integer/factorial.rb +0 -61
- data/lib/facets/core/integer/multiple.rb +0 -69
- data/lib/facets/core/integer/odd.rb +0 -2
- data/lib/facets/core/integer/of.rb +0 -37
- data/lib/facets/core/integer/ordinal.rb +0 -41
- data/lib/facets/core/integer/times_collect.rb +0 -39
- data/lib/facets/core/integer/times_map.rb +0 -2
- data/lib/facets/core/integer/to_roman.rb +0 -20
- data/lib/facets/core/kernel/__DIR__.rb +0 -11
- data/lib/facets/core/kernel/__callee__.rb +0 -2
- data/lib/facets/core/kernel/__class__.rb +0 -31
- data/lib/facets/core/kernel/__get__.rb +0 -5
- data/lib/facets/core/kernel/__method__.rb +0 -2
- data/lib/facets/core/kernel/__self__.rb +0 -32
- data/lib/facets/core/kernel/__set__.rb +0 -2
- data/lib/facets/core/kernel/as.rb +0 -106
- data/lib/facets/core/kernel/ask.rb +0 -14
- data/lib/facets/core/kernel/assign_from.rb +0 -82
- data/lib/facets/core/kernel/assign_with.rb +0 -85
- data/lib/facets/core/kernel/autoreload.rb +0 -122
- data/lib/facets/core/kernel/autoreload_files.rb +0 -2
- data/lib/facets/core/kernel/autoreload_glob.rb +0 -3
- data/lib/facets/core/kernel/bool.rb +0 -77
- data/lib/facets/core/kernel/bug.rb +0 -39
- data/lib/facets/core/kernel/cache.rb +0 -31
- data/lib/facets/core/kernel/call_stack.rb +0 -59
- data/lib/facets/core/kernel/called.rb +0 -40
- data/lib/facets/core/kernel/callee.rb +0 -46
- data/lib/facets/core/kernel/class_def.rb +0 -10
- data/lib/facets/core/kernel/complete.rb +0 -6
- data/lib/facets/core/kernel/constant.rb +0 -52
- data/lib/facets/core/kernel/copy.rb +0 -48
- data/lib/facets/core/kernel/daemonize.rb +0 -21
- data/lib/facets/core/kernel/deep_clone.rb +0 -50
- data/lib/facets/core/kernel/deep_copy.rb +0 -49
- data/lib/facets/core/kernel/demo.rb +0 -50
- data/lib/facets/core/kernel/eigenclass.rb +0 -17
- data/lib/facets/core/kernel/enable_warnings.rb +0 -14
- data/lib/facets/core/kernel/false.rb +0 -2
- data/lib/facets/core/kernel/fn.rb +0 -33
- data/lib/facets/core/kernel/get_by_id.rb +0 -34
- data/lib/facets/core/kernel/here.rb +0 -34
- data/lib/facets/core/kernel/in.rb +0 -35
- data/lib/facets/core/kernel/instance_assign.rb +0 -24
- data/lib/facets/core/kernel/instance_class.rb +0 -40
- data/lib/facets/core/kernel/instance_exec.rb +0 -60
- data/lib/facets/core/kernel/instance_values.rb +0 -12
- data/lib/facets/core/kernel/instvar.rb +0 -13
- data/lib/facets/core/kernel/is.rb +0 -7
- data/lib/facets/core/kernel/load_local.rb +0 -26
- data/lib/facets/core/kernel/maybe.rb +0 -41
- data/lib/facets/core/kernel/meta.rb +0 -21
- data/lib/facets/core/kernel/meta_alias.rb +0 -14
- data/lib/facets/core/kernel/meta_class.rb +0 -38
- data/lib/facets/core/kernel/meta_def.rb +0 -14
- data/lib/facets/core/kernel/meta_eval.rb +0 -16
- data/lib/facets/core/kernel/metaclass.rb +0 -38
- data/lib/facets/core/kernel/method.rb +0 -94
- data/lib/facets/core/kernel/methods.rb +0 -79
- data/lib/facets/core/kernel/nack.rb +0 -12
- data/lib/facets/core/kernel/new.rb +0 -40
- data/lib/facets/core/kernel/object_class.rb +0 -31
- data/lib/facets/core/kernel/object_clone.rb +0 -4
- data/lib/facets/core/kernel/object_dup.rb +0 -2
- data/lib/facets/core/kernel/object_hexid.rb +0 -35
- data/lib/facets/core/kernel/object_send.rb +0 -21
- data/lib/facets/core/kernel/op_esc.rb +0 -37
- data/lib/facets/core/kernel/p.rb +0 -12
- data/lib/facets/core/kernel/populate.rb +0 -39
- data/lib/facets/core/kernel/pp_exception.rb +0 -17
- data/lib/facets/core/kernel/qua_class.rb +0 -41
- data/lib/facets/core/kernel/require_all.rb +0 -46
- data/lib/facets/core/kernel/require_esc.rb +0 -44
- data/lib/facets/core/kernel/require_local.rb +0 -26
- data/lib/facets/core/kernel/resc.rb +0 -32
- data/lib/facets/core/kernel/respond.rb +0 -14
- data/lib/facets/core/kernel/returning.rb +0 -9
- data/lib/facets/core/kernel/send_as.rb +0 -40
- data/lib/facets/core/kernel/set_from.rb +0 -69
- data/lib/facets/core/kernel/set_with.rb +0 -92
- data/lib/facets/core/kernel/silence_stream.rb +0 -22
- data/lib/facets/core/kernel/silence_warnings.rb +0 -2
- data/lib/facets/core/kernel/silently.rb +0 -41
- data/lib/facets/core/kernel/singleton.rb +0 -48
- data/lib/facets/core/kernel/singleton_class.rb +0 -36
- data/lib/facets/core/kernel/super_at.rb +0 -56
- data/lib/facets/core/kernel/supermethod.rb +0 -44
- data/lib/facets/core/kernel/supress.rb +0 -15
- data/lib/facets/core/kernel/tap.rb +0 -42
- data/lib/facets/core/kernel/this.rb +0 -33
- data/lib/facets/core/kernel/to_b.rb +0 -41
- data/lib/facets/core/kernel/to_bool.rb +0 -47
- data/lib/facets/core/kernel/to_data.rb +0 -116
- data/lib/facets/core/kernel/true.rb +0 -2
- data/lib/facets/core/kernel/unuri.rb +0 -2
- data/lib/facets/core/kernel/uri.rb +0 -38
- data/lib/facets/core/kernel/val.rb +0 -52
- data/lib/facets/core/kernel/warn_with_line.rb +0 -30
- data/lib/facets/core/kernel/with.rb +0 -57
- data/lib/facets/core/kernel/with_accessor.rb +0 -94
- data/lib/facets/core/kernel/with_reader.rb +0 -2
- data/lib/facets/core/kernel/with_writer.rb +0 -2
- data/lib/facets/core/kernel/yaml.rb +0 -7
- data/lib/facets/core/logger/format.rb +0 -28
- data/lib/facets/core/logger/format_message.rb +0 -1
- data/lib/facets/core/matchdata/match.rb +0 -37
- data/lib/facets/core/matchdata/matchset.rb +0 -2
- data/lib/facets/core/matchdata/matchtree.rb +0 -72
- data/lib/facets/core/module/abstract.rb +0 -50
- data/lib/facets/core/module/alias_accessor.rb +0 -19
- data/lib/facets/core/module/alias_method_chain.rb +0 -72
- data/lib/facets/core/module/alias_module_function.rb +0 -57
- data/lib/facets/core/module/ancestor.rb +0 -38
- data/lib/facets/core/module/attr.rb +0 -26
- data/lib/facets/core/module/attr_query.rb +0 -56
- data/lib/facets/core/module/attr_setter.rb +0 -48
- data/lib/facets/core/module/attr_tester.rb +0 -84
- data/lib/facets/core/module/attr_validator.rb +0 -18
- data/lib/facets/core/module/basename.rb +0 -50
- data/lib/facets/core/module/by_name.rb +0 -68
- data/lib/facets/core/module/class.rb +0 -3
- data/lib/facets/core/module/class_extension.rb +0 -153
- data/lib/facets/core/module/clone_removing.rb +0 -2
- data/lib/facets/core/module/clone_renaming.rb +0 -2
- data/lib/facets/core/module/clone_using.rb +0 -87
- data/lib/facets/core/module/dirname.rb +0 -42
- data/lib/facets/core/module/equate_on.rb +0 -70
- data/lib/facets/core/module/include_and_extend.rb +0 -10
- data/lib/facets/core/module/include_as.rb +0 -103
- data/lib/facets/core/module/include_function_module.rb +0 -13
- data/lib/facets/core/module/initializer.rb +0 -65
- data/lib/facets/core/module/instance_methods.rb +0 -186
- data/lib/facets/core/module/integrate.rb +0 -78
- data/lib/facets/core/module/is.rb +0 -35
- data/lib/facets/core/module/memoize.rb +0 -96
- data/lib/facets/core/module/modspace.rb +0 -43
- data/lib/facets/core/module/module_load.rb +0 -51
- data/lib/facets/core/module/module_method.rb +0 -13
- data/lib/facets/core/module/module_require.rb +0 -3
- data/lib/facets/core/module/namespace.rb +0 -122
- data/lib/facets/core/module/nesting.rb +0 -45
- data/lib/facets/core/module/new.rb +0 -37
- data/lib/facets/core/module/nodef.rb +0 -34
- data/lib/facets/core/module/on_included.rb +0 -48
- data/lib/facets/core/module/prepend.rb +0 -63
- data/lib/facets/core/module/redef.rb +0 -31
- data/lib/facets/core/module/redefine_method.rb +0 -57
- data/lib/facets/core/module/redirect.rb +0 -30
- data/lib/facets/core/module/redirect_method.rb +0 -64
- data/lib/facets/core/module/remove.rb +0 -29
- data/lib/facets/core/module/rename.rb +0 -31
- data/lib/facets/core/module/rename_method.rb +0 -38
- data/lib/facets/core/module/revisal.rb +0 -49
- data/lib/facets/core/module/self/op_add.rb +0 -99
- data/lib/facets/core/module/self/op_sub.rb +0 -3
- data/lib/facets/core/module/shadow_all.rb +0 -17
- data/lib/facets/core/module/shadow_method.rb +0 -42
- data/lib/facets/core/module/sort_on.rb +0 -73
- data/lib/facets/core/module/this.rb +0 -64
- data/lib/facets/core/module/wrap.rb +0 -30
- data/lib/facets/core/module/wrap_method.rb +0 -53
- data/lib/facets/core/nil_as_emptiness.rb +0 -34
- data/lib/facets/core/nilclass/blank.rb +0 -32
- data/lib/facets/core/nilclass/empty.rb +0 -32
- data/lib/facets/core/nilclass/include.rb +0 -32
- data/lib/facets/core/nilclass/length.rb +0 -2
- data/lib/facets/core/nilclass/op_cmp.rb +0 -12
- data/lib/facets/core/nilclass/op_fetch.rb +0 -37
- data/lib/facets/core/nilclass/size.rb +0 -44
- data/lib/facets/core/nilclass/succ.rb +0 -5
- data/lib/facets/core/nilclass/to_h.rb +0 -33
- data/lib/facets/core/nilclass/to_path.rb +0 -18
- data/lib/facets/core/numeric/approx.rb +0 -34
- data/lib/facets/core/numeric/ceil_multiple.rb +0 -40
- data/lib/facets/core/numeric/distance.rb +0 -37
- data/lib/facets/core/numeric/pred.rb +0 -2
- data/lib/facets/core/numeric/succ.rb +0 -69
- data/lib/facets/core/numeric/to_b.rb +0 -38
- data/lib/facets/core/ostruct.rb +0 -36
- data/lib/facets/core/ostruct/__merge__.rb +0 -5
- data/lib/facets/core/ostruct/__table__.rb +0 -10
- data/lib/facets/core/ostruct/__update__.rb +0 -75
- data/lib/facets/core/ostruct/instance_delegate.rb +0 -60
- data/lib/facets/core/ostruct/op_fetch.rb +0 -58
- data/lib/facets/core/ostruct/op_store.rb +0 -5
- data/lib/facets/core/ostruct/to_h.rb +0 -8
- data/lib/facets/core/pathname/ascend.rb +0 -22
- data/lib/facets/core/pathname/descend.rb +0 -20
- data/lib/facets/core/pathname/op_div.rb +0 -4
- data/lib/facets/core/proc/bind.rb +0 -35
- data/lib/facets/core/proc/compose.rb +0 -44
- data/lib/facets/core/proc/op_mul.rb +0 -51
- data/lib/facets/core/proc/to_h.rb +0 -27
- data/lib/facets/core/proc/to_method.rb +0 -61
- data/lib/facets/core/proc/update.rb +0 -11
- data/lib/facets/core/random.rb +0 -21
- data/lib/facets/core/range/combine.rb +0 -62
- data/lib/facets/core/range/overlap.rb +0 -10
- data/lib/facets/core/range/to_r.rb +0 -32
- data/lib/facets/core/range/to_range.rb +0 -36
- data/lib/facets/core/range/umbrella.rb +0 -67
- data/lib/facets/core/range/within.rb +0 -44
- data/lib/facets/core/regexp/arity.rb +0 -41
- data/lib/facets/core/regexp/to_re.rb +0 -38
- data/lib/facets/core/regexp/to_regexp.rb +0 -36
- data/lib/facets/core/string/align_center.rb +0 -87
- data/lib/facets/core/string/align_left.rb +0 -2
- data/lib/facets/core/string/align_right.rb +0 -2
- data/lib/facets/core/string/at.rb +0 -8
- data/lib/facets/core/string/at_rand.rb +0 -65
- data/lib/facets/core/string/basename.rb +0 -48
- data/lib/facets/core/string/blank.rb +0 -36
- data/lib/facets/core/string/bracket.rb +0 -70
- data/lib/facets/core/string/brief.rb +0 -33
- data/lib/facets/core/string/bytes.rb +0 -31
- data/lib/facets/core/string/camelcase.rb +0 -58
- data/lib/facets/core/string/camelize.rb +0 -35
- data/lib/facets/core/string/capitalize_all.rb +0 -30
- data/lib/facets/core/string/capitalized.rb +0 -36
- data/lib/facets/core/string/chars.rb +0 -34
- data/lib/facets/core/string/cleave.rb +0 -66
- data/lib/facets/core/string/cmp.rb +0 -43
- data/lib/facets/core/string/demodulize.rb +0 -40
- data/lib/facets/core/string/dequote.rb +0 -29
- data/lib/facets/core/string/divide.rb +0 -43
- data/lib/facets/core/string/downcase.rb +0 -37
- data/lib/facets/core/string/dresner.rb +0 -49
- data/lib/facets/core/string/each_char.rb +0 -35
- data/lib/facets/core/string/each_word.rb +0 -50
- data/lib/facets/core/string/ends_with.rb +0 -2
- data/lib/facets/core/string/first.rb +0 -94
- data/lib/facets/core/string/first_char.rb +0 -20
- data/lib/facets/core/string/fold.rb +0 -67
- data/lib/facets/core/string/format.rb +0 -17
- data/lib/facets/core/string/humanize.rb +0 -31
- data/lib/facets/core/string/indent.rb +0 -68
- data/lib/facets/core/string/index_all.rb +0 -40
- data/lib/facets/core/string/last.rb +0 -94
- data/lib/facets/core/string/last_char.rb +0 -22
- data/lib/facets/core/string/line_wrap.rb +0 -77
- data/lib/facets/core/string/lines.rb +0 -33
- data/lib/facets/core/string/lowercase.rb +0 -32
- data/lib/facets/core/string/margin.rb +0 -138
- data/lib/facets/core/string/methodize.rb +0 -45
- data/lib/facets/core/string/modulize.rb +0 -44
- data/lib/facets/core/string/mscan.rb +0 -42
- data/lib/facets/core/string/natcmp.rb +0 -108
- data/lib/facets/core/string/nchar.rb +0 -45
- data/lib/facets/core/string/ordinal.rb +0 -16
- data/lib/facets/core/string/pathize.rb +0 -46
- data/lib/facets/core/string/plural.rb +0 -2
- data/lib/facets/core/string/pop.rb +0 -54
- data/lib/facets/core/string/pot.rb +0 -45
- data/lib/facets/core/string/pull.rb +0 -17
- data/lib/facets/core/string/push.rb +0 -44
- data/lib/facets/core/string/quote.rb +0 -68
- data/lib/facets/core/string/rand_byte.rb +0 -55
- data/lib/facets/core/string/rand_index.rb +0 -29
- data/lib/facets/core/string/range.rb +0 -37
- data/lib/facets/core/string/range_all.rb +0 -48
- data/lib/facets/core/string/range_of_line.rb +0 -42
- data/lib/facets/core/string/regesc.rb +0 -32
- data/lib/facets/core/string/rewrite.rb +0 -34
- data/lib/facets/core/string/self/format.rb +0 -17
- data/lib/facets/core/string/self/interpolate.rb +0 -31
- data/lib/facets/core/string/self/patterns.rb +0 -51
- data/lib/facets/core/string/self/rand_letter.rb +0 -34
- data/lib/facets/core/string/self/random.rb +0 -37
- data/lib/facets/core/string/shatter.rb +0 -45
- data/lib/facets/core/string/shell_escape.rb +0 -11
- data/lib/facets/core/string/shift.rb +0 -42
- data/lib/facets/core/string/shuffle.rb +0 -42
- data/lib/facets/core/string/similarity.rb +0 -108
- data/lib/facets/core/string/singular.rb +0 -202
- data/lib/facets/core/string/soundex.rb +0 -102
- data/lib/facets/core/string/starts_with.rb +0 -24
- data/lib/facets/core/string/succ.rb +0 -38
- data/lib/facets/core/string/tab.rb +0 -2
- data/lib/facets/core/string/tabto.rb +0 -2
- data/lib/facets/core/string/to_a.rb +0 -41
- data/lib/facets/core/string/to_b.rb +0 -64
- data/lib/facets/core/string/to_const.rb +0 -39
- data/lib/facets/core/string/to_date.rb +0 -35
- data/lib/facets/core/string/to_proc.rb +0 -54
- data/lib/facets/core/string/to_re.rb +0 -46
- data/lib/facets/core/string/to_rx.rb +0 -2
- data/lib/facets/core/string/to_time.rb +0 -34
- data/lib/facets/core/string/unbracket.rb +0 -46
- data/lib/facets/core/string/underscore.rb +0 -18
- data/lib/facets/core/string/unix_crypt.rb +0 -41
- data/lib/facets/core/string/unpack.rb +0 -45
- data/lib/facets/core/string/unshift.rb +0 -42
- data/lib/facets/core/string/upcase.rb +0 -45
- data/lib/facets/core/string/uppercase.rb +0 -2
- data/lib/facets/core/string/whitespace.rb +0 -27
- data/lib/facets/core/string/word_filter.rb +0 -61
- data/lib/facets/core/string/word_wrap.rb +0 -90
- data/lib/facets/core/string/words.rb +0 -45
- data/lib/facets/core/string_as_array.rb +0 -17
- data/lib/facets/core/symbol/camelcase.rb +0 -42
- data/lib/facets/core/symbol/camelize.rb +0 -33
- data/lib/facets/core/symbol/capitalize.rb +0 -31
- data/lib/facets/core/symbol/capitalized.rb +0 -33
- data/lib/facets/core/symbol/chomp.rb +0 -9
- data/lib/facets/core/symbol/downcase.rb +0 -36
- data/lib/facets/core/symbol/pad.rb +0 -43
- data/lib/facets/core/symbol/self/generate.rb +0 -19
- data/lib/facets/core/symbol/succ.rb +0 -42
- data/lib/facets/core/symbol/to_const.rb +0 -40
- data/lib/facets/core/symbol/to_proc.rb +0 -54
- data/lib/facets/core/symbol/to_s.rb +0 -12
- data/lib/facets/core/symbol/to_str.rb +0 -39
- data/lib/facets/core/symbol/underscore.rb +0 -32
- data/lib/facets/core/symbol/upcase.rb +0 -37
- data/lib/facets/core/time/change.rb +0 -51
- data/lib/facets/core/time/elapse.rb +0 -41
- data/lib/facets/core/time/self/days_extrema.rb +0 -22
- data/lib/facets/core/time/self/stamp.rb +0 -2
- data/lib/facets/core/time/stamp.rb +0 -67
- data/lib/facets/core/time/to_date.rb +0 -37
- data/lib/facets/core/time/to_s.rb +0 -33
- data/lib/facets/core/time/to_time.rb +0 -36
- data/lib/facets/core/unboundmethod/name.rb +0 -8
- data/lib/facets/more/ann.rb +0 -250
- data/lib/facets/more/ann_attr.rb +0 -161
- data/lib/facets/more/ansicode.rb +0 -300
- data/lib/facets/more/arguments.rb +0 -497
- data/lib/facets/more/aspects.rb +0 -246
- data/lib/facets/more/association.rb +0 -197
- data/lib/facets/more/autoarray.rb +0 -82
- data/lib/facets/more/autoscript.rb +0 -34
- data/lib/facets/more/autovivify.rb +0 -16
- data/lib/facets/more/basicobject.rb +0 -291
- data/lib/facets/more/bbcode.rb +0 -375
- data/lib/facets/more/behavior.rb +0 -59
- data/lib/facets/more/binaryreader.rb +0 -275
- data/lib/facets/more/bitmask.rb +0 -112
- data/lib/facets/more/buildingblock.rb +0 -208
- data/lib/facets/more/bytes.rb +0 -231
- data/lib/facets/more/cache.rb +0 -81
- data/lib/facets/more/classmethods.rb +0 -206
- data/lib/facets/more/cloneable.rb +0 -67
- data/lib/facets/more/command.rb +0 -748
- data/lib/facets/more/consoleutils.rb +0 -45
- data/lib/facets/more/cookie.rb +0 -559
- data/lib/facets/more/coroutine.rb +0 -168
- data/lib/facets/more/crypt.rb +0 -205
- data/lib/facets/more/cut.rb +0 -507
- data/lib/facets/more/dependency.rb +0 -199
- data/lib/facets/more/dictionary.rb +0 -497
- data/lib/facets/more/doublemetaphone.rb +0 -371
- data/lib/facets/more/downloader.rb +0 -279
- data/lib/facets/more/elementor.rb +0 -136
- data/lib/facets/more/enumerablepass.rb +0 -277
- data/lib/facets/more/eventhook.rb +0 -113
- data/lib/facets/more/expirable.rb +0 -82
- data/lib/facets/more/filelist.rb +0 -487
- data/lib/facets/more/filesystem.rb +0 -43
- data/lib/facets/more/floatstring.rb +0 -170
- data/lib/facets/more/functor.rb +0 -132
- data/lib/facets/more/hashbuilder.rb +0 -80
- data/lib/facets/more/heap.rb +0 -3
- data/lib/facets/more/htmlbuilder.rb +0 -71
- data/lib/facets/more/htmlfilter.rb +0 -566
- data/lib/facets/more/htmlhelper.rb +0 -92
- data/lib/facets/more/http.rb +0 -569
- data/lib/facets/more/httpaccess.rb +0 -1608
- data/lib/facets/more/infinity.rb +0 -221
- data/lib/facets/more/inheritor.rb +0 -251
- data/lib/facets/more/instance_intercept.rb +0 -131
- data/lib/facets/more/interval.rb +0 -420
- data/lib/facets/more/ioredirect.rb +0 -126
- data/lib/facets/more/json.rb +0 -917
- data/lib/facets/more/lazy.rb +0 -238
- data/lib/facets/more/linkedlist.rb +0 -254
- data/lib/facets/more/lisp.rb +0 -384
- data/lib/facets/more/lisp_format.rb +0 -1851
- data/lib/facets/more/lrucache.rb +0 -173
- data/lib/facets/more/main_as_module.rb +0 -44
- data/lib/facets/more/mathconstants.rb +0 -302
- data/lib/facets/more/methodfilter.rb +0 -122
- data/lib/facets/more/methodprobe.rb +0 -210
- data/lib/facets/more/minitar.rb +0 -981
- data/lib/facets/more/mock.rb +0 -240
- data/lib/facets/more/multipliers.rb +0 -195
- data/lib/facets/more/multiton.rb +0 -377
- data/lib/facets/more/nackclass.rb +0 -158
- data/lib/facets/more/nilcomparable.rb +0 -174
- data/lib/facets/more/nullclass.rb +0 -69
- data/lib/facets/more/opencascade.rb +0 -156
- data/lib/facets/more/openobject.rb +0 -354
- data/lib/facets/more/orderedhash.rb +0 -14
- data/lib/facets/more/ormsupport.rb +0 -224
- data/lib/facets/more/overload.rb +0 -146
- data/lib/facets/more/paramix.rb +0 -239
- data/lib/facets/more/pathlist.rb +0 -99
- data/lib/facets/more/pool.rb +0 -90
- data/lib/facets/more/populate.rb +0 -37
- data/lib/facets/more/pqueue.rb +0 -456
- data/lib/facets/more/preinitialize.rb +0 -151
- data/lib/facets/more/progressbar.rb +0 -237
- data/lib/facets/more/promoteself.rb +0 -100
- data/lib/facets/more/quaternion.rb +0 -560
- data/lib/facets/more/recorder.rb +0 -126
- data/lib/facets/more/reference.rb +0 -91
- data/lib/facets/more/rexmlbuilder.rb +0 -280
- data/lib/facets/more/rtals.rb +0 -212
- data/lib/facets/more/rwdelegator.rb +0 -51
- data/lib/facets/more/script.rb +0 -157
- data/lib/facets/more/semaphore.rb +0 -90
- data/lib/facets/more/settings.rb +0 -219
- data/lib/facets/more/smtp_tls.rb +0 -65
- data/lib/facets/more/snapshot.rb +0 -196
- data/lib/facets/more/stateparser.rb +0 -569
- data/lib/facets/more/statichash.rb +0 -95
- data/lib/facets/more/syncarray.rb +0 -136
- data/lib/facets/more/synchash.rb +0 -164
- data/lib/facets/more/system.rb +0 -177
- data/lib/facets/more/tagiterator.rb +0 -363
- data/lib/facets/more/timer.rb +0 -303
- data/lib/facets/more/times.rb +0 -413
- data/lib/facets/more/tkxml.rb +0 -171
- data/lib/facets/more/tracepoint.rb +0 -185
- data/lib/facets/more/tuple.rb +0 -366
- data/lib/facets/more/typecast.rb +0 -288
- data/lib/facets/more/uninheritable.rb +0 -83
- data/lib/facets/more/units.rb +0 -939
- data/lib/facets/more/uploadutils.rb +0 -410
- data/lib/facets/more/version_number.rb +0 -98
- data/lib/facets/more/xmlbuilder.rb +0 -86
- data/lib/facets/more/xmlhelper.rb +0 -168
- data/lib/facets/more/xoxo.rb +0 -541
- data/lib/facets/more/yamlstruct.rb +0 -93
- data/lib/facets/sys.rb +0 -213
- data/lib/facets/yore/annattr.rb +0 -148
- data/lib/facets/yore/annotation.rb +0 -558
- data/lib/facets/yore/builderobject.rb +0 -222
- data/lib/facets/yore/enumerable/cross.rb +0 -117
- data/lib/facets/yore/kernel/own.rb +0 -17
- data/lib/facets/yore/kernel/require_facet.rb +0 -43
- data/lib/facets/yore/module/inject.rb +0 -9
- data/lib/facets/yore/module/namespace.rb +0 -62
- data/rakefile.rb +0 -150
- data/setup.rb +0 -1587
- data/test/special/main_as_module.rb +0 -14
data/rakefile.rb
DELETED
@@ -1,150 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
# Facets Rakefile
|
4
|
-
|
5
|
-
require 'autorake'
|
6
|
-
|
7
|
-
#
|
8
|
-
# Generate facet/ redirection files
|
9
|
-
#
|
10
|
-
# Build facet redirect directory. This generates
|
11
|
-
# a file for every lib core/ and more/ entry.
|
12
|
-
#
|
13
|
-
|
14
|
-
LIBDIR = 'lib'
|
15
|
-
REDIR = 'facet'
|
16
|
-
SRCDIR = 'facets'
|
17
|
-
|
18
|
-
desc "Create redirection facet/ lib"
|
19
|
-
task :redirect do
|
20
|
-
count = 0
|
21
|
-
dest = File.join( LIBDIR, REDIR )
|
22
|
-
FileUtils.rm_r(dest) if File.directory?(dest)
|
23
|
-
Dir.chdir( LIBDIR ) do
|
24
|
-
['core','more'].each{ |d|
|
25
|
-
from = File.join( SRCDIR, d )
|
26
|
-
files = Dir.glob( File.join( from, '**/*.rb' ) )
|
27
|
-
files.each { |e|
|
28
|
-
re = Regexp.new( Regexp.escape( from + '/' ) )
|
29
|
-
link = e.sub( re, 'facet/')
|
30
|
-
FileUtils.mkdir_p( File.dirname( link ) )
|
31
|
-
File.open( link, "w+" ) { |w| w << "require '#{e}'" }
|
32
|
-
count += 1
|
33
|
-
}
|
34
|
-
}
|
35
|
-
end
|
36
|
-
puts "Created #{count} redirection files in #{REDIR}/ folder."
|
37
|
-
end
|
38
|
-
|
39
|
-
|
40
|
-
#
|
41
|
-
# Generate API documentation
|
42
|
-
#
|
43
|
-
# Rdoc w/ subtasks 'all', 'more' or 'core',
|
44
|
-
# where teh deafult it 'all'.
|
45
|
-
#
|
46
|
-
|
47
|
-
#desc "rdoc all libs"
|
48
|
-
#task :rdocs => [:rdoc_core, :rdoc_more] do
|
49
|
-
#end
|
50
|
-
|
51
|
-
#desc "rdoc for core lib"
|
52
|
-
#task :rdocs_core do
|
53
|
-
# project.rdoc(YAML.load(<<-END))
|
54
|
-
# title: Facets/CORE
|
55
|
-
# include:
|
56
|
-
# - 'lib/facets/core/**/*'
|
57
|
-
# - '[A-Z]*'
|
58
|
-
# output: doc/rdoc/core
|
59
|
-
# END
|
60
|
-
#end
|
61
|
-
|
62
|
-
#desc "rdocs for more lib"
|
63
|
-
#task :rdocs_more do
|
64
|
-
# project.rdoc(YAML.load(<<-END))
|
65
|
-
# title: Facets/MORE
|
66
|
-
# include:
|
67
|
-
# - 'lib/facets/more/**/*'
|
68
|
-
# - '[A-Z]*'
|
69
|
-
# output: doc/rdoc/more
|
70
|
-
# END
|
71
|
-
#end
|
72
|
-
|
73
|
-
|
74
|
-
#
|
75
|
-
# List core methods
|
76
|
-
#
|
77
|
-
# Output a list of all methods.
|
78
|
-
#
|
79
|
-
|
80
|
-
MTHPATH = "lib/facets/core"
|
81
|
-
|
82
|
-
desc "Output core method list"
|
83
|
-
task :list do
|
84
|
-
index_methods
|
85
|
-
puts method_list_outline
|
86
|
-
end
|
87
|
-
|
88
|
-
private
|
89
|
-
|
90
|
-
# Read in the facets directory and sort-out per class
|
91
|
-
|
92
|
-
METHODS = {}
|
93
|
-
|
94
|
-
def index_methods
|
95
|
-
Dir.chdir(MTHPATH) do
|
96
|
-
dg = Dir.glob('*/**/*.rb')
|
97
|
-
dg.each { |f|
|
98
|
-
klass, *meth= f.split('/')
|
99
|
-
METHODS[ klass ] ||= []
|
100
|
-
METHODS[ klass ] << "#{meth.join('/').chomp('.rb')}"
|
101
|
-
}
|
102
|
-
METHODS.keys.each { |k| METHODS[k].sort! }
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
def method_list_outline
|
107
|
-
s = ''
|
108
|
-
METHODS.keys.sort.each { |k|
|
109
|
-
ms = METHODS[k].collect{|m| m.gsub(%r{^self\/},'::')}.sort
|
110
|
-
s << "#{k}:\n"
|
111
|
-
ms.each { |m| s << " #{m}\n" }
|
112
|
-
}
|
113
|
-
s
|
114
|
-
end
|
115
|
-
|
116
|
-
desc "Build fiery facets"
|
117
|
-
task :fiery => ['lib/fieryfacets.rb'] do
|
118
|
-
puts "Fiery Facets Complete!"
|
119
|
-
end
|
120
|
-
|
121
|
-
file 'lib/fieryfacets.rb' do
|
122
|
-
core = Dir.glob('lib/facets/core/**/*')
|
123
|
-
core.reject!{ |f| ! File.file?(f) }
|
124
|
-
|
125
|
-
str = ''
|
126
|
-
core.each do |f|
|
127
|
-
str << File.read(f)
|
128
|
-
str << "\n\n"
|
129
|
-
end
|
130
|
-
|
131
|
-
str.gsub!(/^\s*[#].*?$/,'')
|
132
|
-
str.gsub!(/^=begin.*?=end/m, '')
|
133
|
-
str.gsub!(/^\s*require.*?$/, '')
|
134
|
-
str.gsub!(/^\s*\n/,'')
|
135
|
-
|
136
|
-
File.open('lib/fieryfacets.rb','w') do |f|
|
137
|
-
f << str
|
138
|
-
end
|
139
|
-
end
|
140
|
-
|
141
|
-
desc "list files that lack tests"
|
142
|
-
task :notest do
|
143
|
-
stubs = `grep -lr "#\s*stub" lib/facets/*`
|
144
|
-
stubs = stubs.split("\n")
|
145
|
-
tested = `grep -Lr "=begin test" lib/facets/*`
|
146
|
-
tested = tested.split("\n")
|
147
|
-
tested -= stubs
|
148
|
-
puts tested.join("\n")
|
149
|
-
end
|
150
|
-
|
data/setup.rb
DELETED
@@ -1,1587 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
# Setup and install.
|
4
|
-
|
5
|
-
# setup.rb
|
6
|
-
#
|
7
|
-
# Copyright (c) 2000-2005 Minero Aoki
|
8
|
-
#
|
9
|
-
# This program is free software.
|
10
|
-
# You can distribute/modify this program under the terms of
|
11
|
-
# the GNU LGPL, Lesser General Public License version 2.1.
|
12
|
-
|
13
|
-
unless Enumerable.method_defined?(:map) # Ruby 1.4.6
|
14
|
-
module Enumerable
|
15
|
-
alias map collect
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
unless File.respond_to?(:read) # Ruby 1.6
|
20
|
-
def File.read(fname)
|
21
|
-
open(fname) {|f|
|
22
|
-
return f.read
|
23
|
-
}
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
unless Errno.const_defined?(:ENOTEMPTY) # Windows?
|
28
|
-
module Errno
|
29
|
-
class ENOTEMPTY
|
30
|
-
# We do not raise this exception, implementation is not needed.
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
def File.binread(fname)
|
36
|
-
open(fname, 'rb') {|f|
|
37
|
-
return f.read
|
38
|
-
}
|
39
|
-
end
|
40
|
-
|
41
|
-
# for corrupted Windows' stat(2)
|
42
|
-
def File.dir?(path)
|
43
|
-
File.directory?((path[-1,1] == '/') ? path : path + '/')
|
44
|
-
end
|
45
|
-
|
46
|
-
|
47
|
-
class ConfigTable
|
48
|
-
|
49
|
-
include Enumerable
|
50
|
-
|
51
|
-
def initialize(rbconfig)
|
52
|
-
@rbconfig = rbconfig
|
53
|
-
@items = []
|
54
|
-
@table = {}
|
55
|
-
# options
|
56
|
-
@install_prefix = nil
|
57
|
-
@config_opt = nil
|
58
|
-
@verbose = true
|
59
|
-
@no_harm = false
|
60
|
-
end
|
61
|
-
|
62
|
-
attr_accessor :install_prefix
|
63
|
-
attr_accessor :config_opt
|
64
|
-
|
65
|
-
attr_writer :verbose
|
66
|
-
|
67
|
-
def verbose?
|
68
|
-
@verbose
|
69
|
-
end
|
70
|
-
|
71
|
-
attr_writer :no_harm
|
72
|
-
|
73
|
-
def no_harm?
|
74
|
-
@no_harm
|
75
|
-
end
|
76
|
-
|
77
|
-
def [](key)
|
78
|
-
lookup(key).resolve(self)
|
79
|
-
end
|
80
|
-
|
81
|
-
def []=(key, val)
|
82
|
-
lookup(key).set val
|
83
|
-
end
|
84
|
-
|
85
|
-
def names
|
86
|
-
@items.map {|i| i.name }
|
87
|
-
end
|
88
|
-
|
89
|
-
def each(&block)
|
90
|
-
@items.each(&block)
|
91
|
-
end
|
92
|
-
|
93
|
-
def key?(name)
|
94
|
-
@table.key?(name)
|
95
|
-
end
|
96
|
-
|
97
|
-
def lookup(name)
|
98
|
-
@table[name] or setup_rb_error "no such config item: #{name}"
|
99
|
-
end
|
100
|
-
|
101
|
-
def add(item)
|
102
|
-
@items.push item
|
103
|
-
@table[item.name] = item
|
104
|
-
end
|
105
|
-
|
106
|
-
def remove(name)
|
107
|
-
item = lookup(name)
|
108
|
-
@items.delete_if {|i| i.name == name }
|
109
|
-
@table.delete_if {|name, i| i.name == name }
|
110
|
-
item
|
111
|
-
end
|
112
|
-
|
113
|
-
def load_script(path, inst = nil)
|
114
|
-
if File.file?(path)
|
115
|
-
MetaConfigEnvironment.new(self, inst).instance_eval File.read(path), path
|
116
|
-
end
|
117
|
-
end
|
118
|
-
|
119
|
-
def savefile
|
120
|
-
'.config'
|
121
|
-
end
|
122
|
-
|
123
|
-
def load_savefile
|
124
|
-
begin
|
125
|
-
File.foreach(savefile()) do |line|
|
126
|
-
k, v = *line.split(/=/, 2)
|
127
|
-
self[k] = v.strip
|
128
|
-
end
|
129
|
-
rescue Errno::ENOENT
|
130
|
-
setup_rb_error $!.message + "\n#{File.basename($0)} config first"
|
131
|
-
end
|
132
|
-
end
|
133
|
-
|
134
|
-
def save
|
135
|
-
@items.each {|i| i.value }
|
136
|
-
File.open(savefile(), 'w') {|f|
|
137
|
-
@items.each do |i|
|
138
|
-
f.printf "%s=%s\n", i.name, i.value if i.value? and i.value
|
139
|
-
end
|
140
|
-
}
|
141
|
-
end
|
142
|
-
|
143
|
-
def load_standard_entries
|
144
|
-
standard_entries(@rbconfig).each do |ent|
|
145
|
-
add ent
|
146
|
-
end
|
147
|
-
end
|
148
|
-
|
149
|
-
def standard_entries(rbconfig)
|
150
|
-
c = rbconfig
|
151
|
-
|
152
|
-
rubypath = File.join(c['bindir'], c['ruby_install_name'] + c['EXEEXT'])
|
153
|
-
|
154
|
-
major = c['MAJOR'].to_i
|
155
|
-
minor = c['MINOR'].to_i
|
156
|
-
teeny = c['TEENY'].to_i
|
157
|
-
version = "#{major}.#{minor}"
|
158
|
-
|
159
|
-
# ruby ver. >= 1.4.4?
|
160
|
-
newpath_p = ((major >= 2) or
|
161
|
-
((major == 1) and
|
162
|
-
((minor >= 5) or
|
163
|
-
((minor == 4) and (teeny >= 4)))))
|
164
|
-
|
165
|
-
if c['rubylibdir']
|
166
|
-
# V > 1.6.3
|
167
|
-
libruby = "#{c['prefix']}/lib/ruby"
|
168
|
-
librubyver = c['rubylibdir']
|
169
|
-
librubyverarch = c['archdir']
|
170
|
-
siteruby = c['sitedir']
|
171
|
-
siterubyver = c['sitelibdir']
|
172
|
-
siterubyverarch = c['sitearchdir']
|
173
|
-
elsif newpath_p
|
174
|
-
# 1.4.4 <= V <= 1.6.3
|
175
|
-
libruby = "#{c['prefix']}/lib/ruby"
|
176
|
-
librubyver = "#{c['prefix']}/lib/ruby/#{version}"
|
177
|
-
librubyverarch = "#{c['prefix']}/lib/ruby/#{version}/#{c['arch']}"
|
178
|
-
siteruby = c['sitedir']
|
179
|
-
siterubyver = "$siteruby/#{version}"
|
180
|
-
siterubyverarch = "$siterubyver/#{c['arch']}"
|
181
|
-
else
|
182
|
-
# V < 1.4.4
|
183
|
-
libruby = "#{c['prefix']}/lib/ruby"
|
184
|
-
librubyver = "#{c['prefix']}/lib/ruby/#{version}"
|
185
|
-
librubyverarch = "#{c['prefix']}/lib/ruby/#{version}/#{c['arch']}"
|
186
|
-
siteruby = "#{c['prefix']}/lib/ruby/#{version}/site_ruby"
|
187
|
-
siterubyver = siteruby
|
188
|
-
siterubyverarch = "$siterubyver/#{c['arch']}"
|
189
|
-
end
|
190
|
-
parameterize = lambda {|path|
|
191
|
-
path.sub(/\A#{Regexp.quote(c['prefix'])}/, '$prefix')
|
192
|
-
}
|
193
|
-
|
194
|
-
if arg = c['configure_args'].split.detect {|arg| /--with-make-prog=/ =~ arg }
|
195
|
-
makeprog = arg.sub(/'/, '').split(/=/, 2)[1]
|
196
|
-
else
|
197
|
-
makeprog = 'make'
|
198
|
-
end
|
199
|
-
|
200
|
-
[
|
201
|
-
ExecItem.new('installdirs', 'std/site/home',
|
202
|
-
'std: install under libruby; site: install under site_ruby; home: install under $HOME')\
|
203
|
-
{|val, table|
|
204
|
-
case val
|
205
|
-
when 'std'
|
206
|
-
table['rbdir'] = '$librubyver'
|
207
|
-
table['sodir'] = '$librubyverarch'
|
208
|
-
when 'site'
|
209
|
-
table['rbdir'] = '$siterubyver'
|
210
|
-
table['sodir'] = '$siterubyverarch'
|
211
|
-
when 'home'
|
212
|
-
setup_rb_error '$HOME was not set' unless ENV['HOME']
|
213
|
-
table['prefix'] = ENV['HOME']
|
214
|
-
table['rbdir'] = '$libdir/ruby'
|
215
|
-
table['sodir'] = '$libdir/ruby'
|
216
|
-
end
|
217
|
-
},
|
218
|
-
PathItem.new('prefix', 'path', c['prefix'],
|
219
|
-
'path prefix of target environment'),
|
220
|
-
PathItem.new('bindir', 'path', parameterize.call(c['bindir']),
|
221
|
-
'the directory for commands'),
|
222
|
-
PathItem.new('libdir', 'path', parameterize.call(c['libdir']),
|
223
|
-
'the directory for libraries'),
|
224
|
-
PathItem.new('datadir', 'path', parameterize.call(c['datadir']),
|
225
|
-
'the directory for shared data'),
|
226
|
-
PathItem.new('mandir', 'path', parameterize.call(c['mandir']),
|
227
|
-
'the directory for man pages'),
|
228
|
-
PathItem.new('sysconfdir', 'path', parameterize.call(c['sysconfdir']),
|
229
|
-
'the directory for system configuration files'),
|
230
|
-
PathItem.new('localstatedir', 'path', parameterize.call(c['localstatedir']),
|
231
|
-
'the directory for local state data'),
|
232
|
-
PathItem.new('libruby', 'path', libruby,
|
233
|
-
'the directory for ruby libraries'),
|
234
|
-
PathItem.new('librubyver', 'path', librubyver,
|
235
|
-
'the directory for standard ruby libraries'),
|
236
|
-
PathItem.new('librubyverarch', 'path', librubyverarch,
|
237
|
-
'the directory for standard ruby extensions'),
|
238
|
-
PathItem.new('siteruby', 'path', siteruby,
|
239
|
-
'the directory for version-independent aux ruby libraries'),
|
240
|
-
PathItem.new('siterubyver', 'path', siterubyver,
|
241
|
-
'the directory for aux ruby libraries'),
|
242
|
-
PathItem.new('siterubyverarch', 'path', siterubyverarch,
|
243
|
-
'the directory for aux ruby binaries'),
|
244
|
-
PathItem.new('rbdir', 'path', '$siterubyver',
|
245
|
-
'the directory for ruby scripts'),
|
246
|
-
PathItem.new('sodir', 'path', '$siterubyverarch',
|
247
|
-
'the directory for ruby extentions'),
|
248
|
-
PathItem.new('rubypath', 'path', rubypath,
|
249
|
-
'the path to set to #! line'),
|
250
|
-
ProgramItem.new('rubyprog', 'name', rubypath,
|
251
|
-
'the ruby program using for installation'),
|
252
|
-
ProgramItem.new('makeprog', 'name', makeprog,
|
253
|
-
'the make program to compile ruby extentions'),
|
254
|
-
SelectItem.new('shebang', 'all/ruby/never', 'ruby',
|
255
|
-
'shebang line (#!) editing mode'),
|
256
|
-
BoolItem.new('without-ext', 'yes/no', 'no',
|
257
|
-
'does not compile/install ruby extentions')
|
258
|
-
]
|
259
|
-
end
|
260
|
-
private :standard_entries
|
261
|
-
|
262
|
-
def load_multipackage_entries
|
263
|
-
multipackage_entries().each do |ent|
|
264
|
-
add ent
|
265
|
-
end
|
266
|
-
end
|
267
|
-
|
268
|
-
def multipackage_entries
|
269
|
-
[
|
270
|
-
PackageSelectionItem.new('with', 'name,name...', '', 'ALL',
|
271
|
-
'package names that you want to install'),
|
272
|
-
PackageSelectionItem.new('without', 'name,name...', '', 'NONE',
|
273
|
-
'package names that you do not want to install')
|
274
|
-
]
|
275
|
-
end
|
276
|
-
private :multipackage_entries
|
277
|
-
|
278
|
-
ALIASES = {
|
279
|
-
'std-ruby' => 'librubyver',
|
280
|
-
'stdruby' => 'librubyver',
|
281
|
-
'rubylibdir' => 'librubyver',
|
282
|
-
'archdir' => 'librubyverarch',
|
283
|
-
'site-ruby-common' => 'siteruby', # For backward compatibility
|
284
|
-
'site-ruby' => 'siterubyver', # For backward compatibility
|
285
|
-
'bin-dir' => 'bindir',
|
286
|
-
'bin-dir' => 'bindir',
|
287
|
-
'rb-dir' => 'rbdir',
|
288
|
-
'so-dir' => 'sodir',
|
289
|
-
'data-dir' => 'datadir',
|
290
|
-
'ruby-path' => 'rubypath',
|
291
|
-
'ruby-prog' => 'rubyprog',
|
292
|
-
'ruby' => 'rubyprog',
|
293
|
-
'make-prog' => 'makeprog',
|
294
|
-
'make' => 'makeprog'
|
295
|
-
}
|
296
|
-
|
297
|
-
def fixup
|
298
|
-
ALIASES.each do |ali, name|
|
299
|
-
@table[ali] = @table[name]
|
300
|
-
end
|
301
|
-
@items.freeze
|
302
|
-
@table.freeze
|
303
|
-
@options_re = /\A--(#{@table.keys.join('|')})(?:=(.*))?\z/
|
304
|
-
end
|
305
|
-
|
306
|
-
def parse_opt(opt)
|
307
|
-
m = @options_re.match(opt) or setup_rb_error "config: unknown option #{opt}"
|
308
|
-
m.to_a[1,2]
|
309
|
-
end
|
310
|
-
|
311
|
-
def dllext
|
312
|
-
@rbconfig['DLEXT']
|
313
|
-
end
|
314
|
-
|
315
|
-
def value_config?(name)
|
316
|
-
lookup(name).value?
|
317
|
-
end
|
318
|
-
|
319
|
-
class Item
|
320
|
-
def initialize(name, template, default, desc)
|
321
|
-
@name = name.freeze
|
322
|
-
@template = template
|
323
|
-
@value = default
|
324
|
-
@default = default
|
325
|
-
@description = desc
|
326
|
-
end
|
327
|
-
|
328
|
-
attr_reader :name
|
329
|
-
attr_reader :description
|
330
|
-
|
331
|
-
attr_accessor :default
|
332
|
-
alias help_default default
|
333
|
-
|
334
|
-
def help_opt
|
335
|
-
"--#{@name}=#{@template}"
|
336
|
-
end
|
337
|
-
|
338
|
-
def value?
|
339
|
-
true
|
340
|
-
end
|
341
|
-
|
342
|
-
def value
|
343
|
-
@value
|
344
|
-
end
|
345
|
-
|
346
|
-
def resolve(table)
|
347
|
-
@value.gsub(%r<\$([^/]+)>) { table[$1] }
|
348
|
-
end
|
349
|
-
|
350
|
-
def set(val)
|
351
|
-
@value = check(val)
|
352
|
-
end
|
353
|
-
|
354
|
-
private
|
355
|
-
|
356
|
-
def check(val)
|
357
|
-
setup_rb_error "config: --#{name} requires argument" unless val
|
358
|
-
val
|
359
|
-
end
|
360
|
-
end
|
361
|
-
|
362
|
-
class BoolItem < Item
|
363
|
-
def config_type
|
364
|
-
'bool'
|
365
|
-
end
|
366
|
-
|
367
|
-
def help_opt
|
368
|
-
"--#{@name}"
|
369
|
-
end
|
370
|
-
|
371
|
-
private
|
372
|
-
|
373
|
-
def check(val)
|
374
|
-
return 'yes' unless val
|
375
|
-
case val
|
376
|
-
when /\Ay(es)?\z/i, /\At(rue)?\z/i then 'yes'
|
377
|
-
when /\An(o)?\z/i, /\Af(alse)\z/i then 'no'
|
378
|
-
else
|
379
|
-
setup_rb_error "config: --#{@name} accepts only yes/no for argument"
|
380
|
-
end
|
381
|
-
end
|
382
|
-
end
|
383
|
-
|
384
|
-
class PathItem < Item
|
385
|
-
def config_type
|
386
|
-
'path'
|
387
|
-
end
|
388
|
-
|
389
|
-
private
|
390
|
-
|
391
|
-
def check(path)
|
392
|
-
setup_rb_error "config: --#{@name} requires argument" unless path
|
393
|
-
path[0,1] == '$' ? path : File.expand_path(path)
|
394
|
-
end
|
395
|
-
end
|
396
|
-
|
397
|
-
class ProgramItem < Item
|
398
|
-
def config_type
|
399
|
-
'program'
|
400
|
-
end
|
401
|
-
end
|
402
|
-
|
403
|
-
class SelectItem < Item
|
404
|
-
def initialize(name, selection, default, desc)
|
405
|
-
super
|
406
|
-
@ok = selection.split('/')
|
407
|
-
end
|
408
|
-
|
409
|
-
def config_type
|
410
|
-
'select'
|
411
|
-
end
|
412
|
-
|
413
|
-
private
|
414
|
-
|
415
|
-
def check(val)
|
416
|
-
unless @ok.include?(val.strip)
|
417
|
-
setup_rb_error "config: use --#{@name}=#{@template} (#{val})"
|
418
|
-
end
|
419
|
-
val.strip
|
420
|
-
end
|
421
|
-
end
|
422
|
-
|
423
|
-
class ExecItem < Item
|
424
|
-
def initialize(name, selection, desc, &block)
|
425
|
-
super name, selection, nil, desc
|
426
|
-
@ok = selection.split('/')
|
427
|
-
@action = block
|
428
|
-
end
|
429
|
-
|
430
|
-
def config_type
|
431
|
-
'exec'
|
432
|
-
end
|
433
|
-
|
434
|
-
def value?
|
435
|
-
false
|
436
|
-
end
|
437
|
-
|
438
|
-
def resolve(table)
|
439
|
-
setup_rb_error "$#{name()} wrongly used as option value"
|
440
|
-
end
|
441
|
-
|
442
|
-
undef set
|
443
|
-
|
444
|
-
def evaluate(val, table)
|
445
|
-
v = val.strip.downcase
|
446
|
-
unless @ok.include?(v)
|
447
|
-
setup_rb_error "invalid option --#{@name}=#{val} (use #{@template})"
|
448
|
-
end
|
449
|
-
@action.call v, table
|
450
|
-
end
|
451
|
-
end
|
452
|
-
|
453
|
-
class PackageSelectionItem < Item
|
454
|
-
def initialize(name, template, default, help_default, desc)
|
455
|
-
super name, template, default, desc
|
456
|
-
@help_default = help_default
|
457
|
-
end
|
458
|
-
|
459
|
-
attr_reader :help_default
|
460
|
-
|
461
|
-
def config_type
|
462
|
-
'package'
|
463
|
-
end
|
464
|
-
|
465
|
-
private
|
466
|
-
|
467
|
-
def check(val)
|
468
|
-
unless File.dir?("packages/#{val}")
|
469
|
-
setup_rb_error "config: no such package: #{val}"
|
470
|
-
end
|
471
|
-
val
|
472
|
-
end
|
473
|
-
end
|
474
|
-
|
475
|
-
class MetaConfigEnvironment
|
476
|
-
def initialize(config, installer)
|
477
|
-
@config = config
|
478
|
-
@installer = installer
|
479
|
-
end
|
480
|
-
|
481
|
-
def config_names
|
482
|
-
@config.names
|
483
|
-
end
|
484
|
-
|
485
|
-
def config?(name)
|
486
|
-
@config.key?(name)
|
487
|
-
end
|
488
|
-
|
489
|
-
def bool_config?(name)
|
490
|
-
@config.lookup(name).config_type == 'bool'
|
491
|
-
end
|
492
|
-
|
493
|
-
def path_config?(name)
|
494
|
-
@config.lookup(name).config_type == 'path'
|
495
|
-
end
|
496
|
-
|
497
|
-
def value_config?(name)
|
498
|
-
@config.lookup(name).config_type != 'exec'
|
499
|
-
end
|
500
|
-
|
501
|
-
def add_config(item)
|
502
|
-
@config.add item
|
503
|
-
end
|
504
|
-
|
505
|
-
def add_bool_config(name, default, desc)
|
506
|
-
@config.add BoolItem.new(name, 'yes/no', default ? 'yes' : 'no', desc)
|
507
|
-
end
|
508
|
-
|
509
|
-
def add_path_config(name, default, desc)
|
510
|
-
@config.add PathItem.new(name, 'path', default, desc)
|
511
|
-
end
|
512
|
-
|
513
|
-
def set_config_default(name, default)
|
514
|
-
@config.lookup(name).default = default
|
515
|
-
end
|
516
|
-
|
517
|
-
def remove_config(name)
|
518
|
-
@config.remove(name)
|
519
|
-
end
|
520
|
-
|
521
|
-
# For only multipackage
|
522
|
-
def packages
|
523
|
-
raise '[setup.rb fatal] multi-package metaconfig API packages() called for single-package; contact application package vendor' unless @installer
|
524
|
-
@installer.packages
|
525
|
-
end
|
526
|
-
|
527
|
-
# For only multipackage
|
528
|
-
def declare_packages(list)
|
529
|
-
raise '[setup.rb fatal] multi-package metaconfig API declare_packages() called for single-package; contact application package vendor' unless @installer
|
530
|
-
@installer.packages = list
|
531
|
-
end
|
532
|
-
end
|
533
|
-
|
534
|
-
end # class ConfigTable
|
535
|
-
|
536
|
-
|
537
|
-
# This module requires: #verbose?, #no_harm?
|
538
|
-
module FileOperations
|
539
|
-
|
540
|
-
def mkdir_p(dirname, prefix = nil)
|
541
|
-
dirname = prefix + File.expand_path(dirname) if prefix
|
542
|
-
$stderr.puts "mkdir -p #{dirname}" if verbose?
|
543
|
-
return if no_harm?
|
544
|
-
|
545
|
-
# Does not check '/', it's too abnormal.
|
546
|
-
dirs = File.expand_path(dirname).split(%r<(?=/)>)
|
547
|
-
if /\A[a-z]:\z/i =~ dirs[0]
|
548
|
-
disk = dirs.shift
|
549
|
-
dirs[0] = disk + dirs[0]
|
550
|
-
end
|
551
|
-
dirs.each_index do |idx|
|
552
|
-
path = dirs[0..idx].join('')
|
553
|
-
Dir.mkdir path unless File.dir?(path)
|
554
|
-
end
|
555
|
-
end
|
556
|
-
|
557
|
-
def rm_f(path)
|
558
|
-
$stderr.puts "rm -f #{path}" if verbose?
|
559
|
-
return if no_harm?
|
560
|
-
force_remove_file path
|
561
|
-
end
|
562
|
-
|
563
|
-
def rm_rf(path)
|
564
|
-
$stderr.puts "rm -rf #{path}" if verbose?
|
565
|
-
return if no_harm?
|
566
|
-
remove_tree path
|
567
|
-
end
|
568
|
-
|
569
|
-
def remove_tree(path)
|
570
|
-
if File.symlink?(path)
|
571
|
-
remove_file path
|
572
|
-
elsif File.dir?(path)
|
573
|
-
remove_tree0 path
|
574
|
-
else
|
575
|
-
force_remove_file path
|
576
|
-
end
|
577
|
-
end
|
578
|
-
|
579
|
-
def remove_tree0(path)
|
580
|
-
Dir.foreach(path) do |ent|
|
581
|
-
next if ent == '.'
|
582
|
-
next if ent == '..'
|
583
|
-
entpath = "#{path}/#{ent}"
|
584
|
-
if File.symlink?(entpath)
|
585
|
-
remove_file entpath
|
586
|
-
elsif File.dir?(entpath)
|
587
|
-
remove_tree0 entpath
|
588
|
-
else
|
589
|
-
force_remove_file entpath
|
590
|
-
end
|
591
|
-
end
|
592
|
-
begin
|
593
|
-
Dir.rmdir path
|
594
|
-
rescue Errno::ENOTEMPTY
|
595
|
-
# directory may not be empty
|
596
|
-
end
|
597
|
-
end
|
598
|
-
|
599
|
-
def move_file(src, dest)
|
600
|
-
force_remove_file dest
|
601
|
-
begin
|
602
|
-
File.rename src, dest
|
603
|
-
rescue
|
604
|
-
File.open(dest, 'wb') {|f|
|
605
|
-
f.write File.binread(src)
|
606
|
-
}
|
607
|
-
File.chmod File.stat(src).mode, dest
|
608
|
-
File.unlink src
|
609
|
-
end
|
610
|
-
end
|
611
|
-
|
612
|
-
def force_remove_file(path)
|
613
|
-
begin
|
614
|
-
remove_file path
|
615
|
-
rescue
|
616
|
-
end
|
617
|
-
end
|
618
|
-
|
619
|
-
def remove_file(path)
|
620
|
-
File.chmod 0777, path
|
621
|
-
File.unlink path
|
622
|
-
end
|
623
|
-
|
624
|
-
def install(from, dest, mode, prefix = nil)
|
625
|
-
$stderr.puts "install #{from} #{dest}" if verbose?
|
626
|
-
return if no_harm?
|
627
|
-
|
628
|
-
realdest = prefix ? prefix + File.expand_path(dest) : dest
|
629
|
-
realdest = File.join(realdest, File.basename(from)) if File.dir?(realdest)
|
630
|
-
str = File.binread(from)
|
631
|
-
if diff?(str, realdest)
|
632
|
-
verbose_off {
|
633
|
-
rm_f realdest if File.exist?(realdest)
|
634
|
-
}
|
635
|
-
File.open(realdest, 'wb') {|f|
|
636
|
-
f.write str
|
637
|
-
}
|
638
|
-
File.chmod mode, realdest
|
639
|
-
|
640
|
-
File.open("#{objdir_root()}/InstalledFiles", 'a') {|f|
|
641
|
-
if prefix
|
642
|
-
f.puts realdest.sub(prefix, '')
|
643
|
-
else
|
644
|
-
f.puts realdest
|
645
|
-
end
|
646
|
-
}
|
647
|
-
end
|
648
|
-
end
|
649
|
-
|
650
|
-
def diff?(new_content, path)
|
651
|
-
return true unless File.exist?(path)
|
652
|
-
new_content != File.binread(path)
|
653
|
-
end
|
654
|
-
|
655
|
-
def command(*args)
|
656
|
-
$stderr.puts args.join(' ') if verbose?
|
657
|
-
system(*args) or raise RuntimeError,
|
658
|
-
"system(#{args.map{|a| a.inspect }.join(' ')}) failed"
|
659
|
-
end
|
660
|
-
|
661
|
-
def ruby(*args)
|
662
|
-
command config('rubyprog'), *args
|
663
|
-
end
|
664
|
-
|
665
|
-
def make(task = nil)
|
666
|
-
command(*[config('makeprog'), task].compact)
|
667
|
-
end
|
668
|
-
|
669
|
-
def extdir?(dir)
|
670
|
-
File.exist?("#{dir}/MANIFEST") or File.exist?("#{dir}/extconf.rb")
|
671
|
-
end
|
672
|
-
|
673
|
-
def files_of(dir)
|
674
|
-
Dir.open(dir) {|d|
|
675
|
-
return d.select {|ent| File.file?("#{dir}/#{ent}") }
|
676
|
-
}
|
677
|
-
end
|
678
|
-
|
679
|
-
DIR_REJECT = %w( . .. CVS SCCS RCS CVS.adm .svn )
|
680
|
-
|
681
|
-
def directories_of(dir)
|
682
|
-
Dir.open(dir) {|d|
|
683
|
-
return d.select {|ent| File.dir?("#{dir}/#{ent}") } - DIR_REJECT
|
684
|
-
}
|
685
|
-
end
|
686
|
-
|
687
|
-
end
|
688
|
-
|
689
|
-
|
690
|
-
# This module requires: #srcdir_root, #objdir_root, #relpath
|
691
|
-
module HookScriptAPI
|
692
|
-
|
693
|
-
def get_config(key)
|
694
|
-
@config[key]
|
695
|
-
end
|
696
|
-
|
697
|
-
alias config get_config
|
698
|
-
|
699
|
-
# obsolete: use metaconfig to change configuration
|
700
|
-
def set_config(key, val)
|
701
|
-
@config[key] = val
|
702
|
-
end
|
703
|
-
|
704
|
-
#
|
705
|
-
# srcdir/objdir (works only in the package directory)
|
706
|
-
#
|
707
|
-
|
708
|
-
def curr_srcdir
|
709
|
-
"#{srcdir_root()}/#{relpath()}"
|
710
|
-
end
|
711
|
-
|
712
|
-
def curr_objdir
|
713
|
-
"#{objdir_root()}/#{relpath()}"
|
714
|
-
end
|
715
|
-
|
716
|
-
def srcfile(path)
|
717
|
-
"#{curr_srcdir()}/#{path}"
|
718
|
-
end
|
719
|
-
|
720
|
-
def srcexist?(path)
|
721
|
-
File.exist?(srcfile(path))
|
722
|
-
end
|
723
|
-
|
724
|
-
def srcdirectory?(path)
|
725
|
-
File.dir?(srcfile(path))
|
726
|
-
end
|
727
|
-
|
728
|
-
def srcfile?(path)
|
729
|
-
File.file?(srcfile(path))
|
730
|
-
end
|
731
|
-
|
732
|
-
def srcentries(path = '.')
|
733
|
-
Dir.open("#{curr_srcdir()}/#{path}") {|d|
|
734
|
-
return d.to_a - %w(. ..)
|
735
|
-
}
|
736
|
-
end
|
737
|
-
|
738
|
-
def srcfiles(path = '.')
|
739
|
-
srcentries(path).select {|fname|
|
740
|
-
File.file?(File.join(curr_srcdir(), path, fname))
|
741
|
-
}
|
742
|
-
end
|
743
|
-
|
744
|
-
def srcdirectories(path = '.')
|
745
|
-
srcentries(path).select {|fname|
|
746
|
-
File.dir?(File.join(curr_srcdir(), path, fname))
|
747
|
-
}
|
748
|
-
end
|
749
|
-
|
750
|
-
end
|
751
|
-
|
752
|
-
|
753
|
-
class ToplevelInstaller
|
754
|
-
|
755
|
-
Version = '3.4.1'
|
756
|
-
Copyright = 'Copyright (c) 2000-2005 Minero Aoki'
|
757
|
-
|
758
|
-
TASKS = [
|
759
|
-
[ 'all', 'do config, setup, then install' ],
|
760
|
-
[ 'config', 'saves your configurations' ],
|
761
|
-
[ 'show', 'shows current configuration' ],
|
762
|
-
[ 'setup', 'compiles ruby extentions and others' ],
|
763
|
-
[ 'install', 'installs files' ],
|
764
|
-
[ 'test', 'run all tests in test/' ],
|
765
|
-
[ 'clean', "does `make clean' for each extention" ],
|
766
|
-
[ 'distclean',"does `make distclean' for each extention" ]
|
767
|
-
]
|
768
|
-
|
769
|
-
def ToplevelInstaller.invoke
|
770
|
-
config = ConfigTable.new(load_rbconfig())
|
771
|
-
config.load_standard_entries
|
772
|
-
config.load_multipackage_entries if multipackage?
|
773
|
-
config.fixup
|
774
|
-
klass = (multipackage?() ? ToplevelInstallerMulti : ToplevelInstaller)
|
775
|
-
klass.new(File.dirname($0), config).invoke
|
776
|
-
end
|
777
|
-
|
778
|
-
def ToplevelInstaller.multipackage?
|
779
|
-
File.dir?(File.dirname($0) + '/packages')
|
780
|
-
end
|
781
|
-
|
782
|
-
def ToplevelInstaller.load_rbconfig
|
783
|
-
if arg = ARGV.detect {|arg| /\A--rbconfig=/ =~ arg }
|
784
|
-
ARGV.delete(arg)
|
785
|
-
load File.expand_path(arg.split(/=/, 2)[1])
|
786
|
-
$".push 'rbconfig.rb'
|
787
|
-
else
|
788
|
-
require 'rbconfig'
|
789
|
-
end
|
790
|
-
::Config::CONFIG
|
791
|
-
end
|
792
|
-
|
793
|
-
def initialize(ardir_root, config)
|
794
|
-
@ardir = File.expand_path(ardir_root)
|
795
|
-
@config = config
|
796
|
-
# cache
|
797
|
-
@valid_task_re = nil
|
798
|
-
end
|
799
|
-
|
800
|
-
def config(key)
|
801
|
-
@config[key]
|
802
|
-
end
|
803
|
-
|
804
|
-
def inspect
|
805
|
-
"#<#{self.class} #{__id__()}>"
|
806
|
-
end
|
807
|
-
|
808
|
-
def invoke
|
809
|
-
run_metaconfigs
|
810
|
-
case task = parsearg_global()
|
811
|
-
when nil, 'all'
|
812
|
-
parsearg_config
|
813
|
-
init_installers
|
814
|
-
exec_config
|
815
|
-
exec_setup
|
816
|
-
exec_install
|
817
|
-
else
|
818
|
-
case task
|
819
|
-
when 'config', 'test'
|
820
|
-
;
|
821
|
-
when 'clean', 'distclean'
|
822
|
-
@config.load_savefile if File.exist?(@config.savefile)
|
823
|
-
else
|
824
|
-
@config.load_savefile
|
825
|
-
end
|
826
|
-
__send__ "parsearg_#{task}"
|
827
|
-
init_installers
|
828
|
-
__send__ "exec_#{task}"
|
829
|
-
end
|
830
|
-
end
|
831
|
-
|
832
|
-
def run_metaconfigs
|
833
|
-
@config.load_script "#{@ardir}/metaconfig"
|
834
|
-
end
|
835
|
-
|
836
|
-
def init_installers
|
837
|
-
@installer = Installer.new(@config, @ardir, File.expand_path('.'))
|
838
|
-
end
|
839
|
-
|
840
|
-
#
|
841
|
-
# Hook Script API bases
|
842
|
-
#
|
843
|
-
|
844
|
-
def srcdir_root
|
845
|
-
@ardir
|
846
|
-
end
|
847
|
-
|
848
|
-
def objdir_root
|
849
|
-
'.'
|
850
|
-
end
|
851
|
-
|
852
|
-
def relpath
|
853
|
-
'.'
|
854
|
-
end
|
855
|
-
|
856
|
-
#
|
857
|
-
# Option Parsing
|
858
|
-
#
|
859
|
-
|
860
|
-
def parsearg_global
|
861
|
-
while arg = ARGV.shift
|
862
|
-
case arg
|
863
|
-
when /\A\w+\z/
|
864
|
-
setup_rb_error "invalid task: #{arg}" unless valid_task?(arg)
|
865
|
-
return arg
|
866
|
-
when '-q', '--quiet'
|
867
|
-
@config.verbose = false
|
868
|
-
when '--verbose'
|
869
|
-
@config.verbose = true
|
870
|
-
when '--help'
|
871
|
-
print_usage $stdout
|
872
|
-
exit 0
|
873
|
-
when '--version'
|
874
|
-
puts "#{File.basename($0)} version #{Version}"
|
875
|
-
exit 0
|
876
|
-
when '--copyright'
|
877
|
-
puts Copyright
|
878
|
-
exit 0
|
879
|
-
else
|
880
|
-
setup_rb_error "unknown global option '#{arg}'"
|
881
|
-
end
|
882
|
-
end
|
883
|
-
nil
|
884
|
-
end
|
885
|
-
|
886
|
-
def valid_task?(t)
|
887
|
-
valid_task_re() =~ t
|
888
|
-
end
|
889
|
-
|
890
|
-
def valid_task_re
|
891
|
-
@valid_task_re ||= /\A(?:#{TASKS.map {|task,desc| task }.join('|')})\z/
|
892
|
-
end
|
893
|
-
|
894
|
-
def parsearg_no_options
|
895
|
-
unless ARGV.empty?
|
896
|
-
task = caller(0).first.slice(%r<`parsearg_(\w+)'>, 1)
|
897
|
-
setup_rb_error "#{task}: unknown options: #{ARGV.join(' ')}"
|
898
|
-
end
|
899
|
-
end
|
900
|
-
|
901
|
-
alias parsearg_show parsearg_no_options
|
902
|
-
alias parsearg_setup parsearg_no_options
|
903
|
-
alias parsearg_test parsearg_no_options
|
904
|
-
alias parsearg_clean parsearg_no_options
|
905
|
-
alias parsearg_distclean parsearg_no_options
|
906
|
-
|
907
|
-
def parsearg_config
|
908
|
-
evalopt = []
|
909
|
-
set = []
|
910
|
-
@config.config_opt = []
|
911
|
-
while i = ARGV.shift
|
912
|
-
if /\A--?\z/ =~ i
|
913
|
-
@config.config_opt = ARGV.dup
|
914
|
-
break
|
915
|
-
end
|
916
|
-
name, value = *@config.parse_opt(i)
|
917
|
-
if @config.value_config?(name)
|
918
|
-
@config[name] = value
|
919
|
-
else
|
920
|
-
evalopt.push [name, value]
|
921
|
-
end
|
922
|
-
set.push name
|
923
|
-
end
|
924
|
-
evalopt.each do |name, value|
|
925
|
-
@config.lookup(name).evaluate value, @config
|
926
|
-
end
|
927
|
-
# Check if configuration is valid
|
928
|
-
set.each do |n|
|
929
|
-
@config[n] if @config.value_config?(n)
|
930
|
-
end
|
931
|
-
end
|
932
|
-
|
933
|
-
def parsearg_install
|
934
|
-
@config.no_harm = false
|
935
|
-
@config.install_prefix = ''
|
936
|
-
while a = ARGV.shift
|
937
|
-
case a
|
938
|
-
when '--no-harm'
|
939
|
-
@config.no_harm = true
|
940
|
-
when /\A--prefix=/
|
941
|
-
path = a.split(/=/, 2)[1]
|
942
|
-
path = File.expand_path(path) unless path[0,1] == '/'
|
943
|
-
@config.install_prefix = path
|
944
|
-
else
|
945
|
-
setup_rb_error "install: unknown option #{a}"
|
946
|
-
end
|
947
|
-
end
|
948
|
-
end
|
949
|
-
|
950
|
-
def print_usage(out)
|
951
|
-
out.puts 'Typical Installation Procedure:'
|
952
|
-
out.puts " $ ruby #{File.basename $0} config"
|
953
|
-
out.puts " $ ruby #{File.basename $0} setup"
|
954
|
-
out.puts " # ruby #{File.basename $0} install (may require root privilege)"
|
955
|
-
out.puts
|
956
|
-
out.puts 'Detailed Usage:'
|
957
|
-
out.puts " ruby #{File.basename $0} <global option>"
|
958
|
-
out.puts " ruby #{File.basename $0} [<global options>] <task> [<task options>]"
|
959
|
-
|
960
|
-
fmt = " %-24s %s\n"
|
961
|
-
out.puts
|
962
|
-
out.puts 'Global options:'
|
963
|
-
out.printf fmt, '-q,--quiet', 'suppress message outputs'
|
964
|
-
out.printf fmt, ' --verbose', 'output messages verbosely'
|
965
|
-
out.printf fmt, ' --help', 'print this message'
|
966
|
-
out.printf fmt, ' --version', 'print version and quit'
|
967
|
-
out.printf fmt, ' --copyright', 'print copyright and quit'
|
968
|
-
out.puts
|
969
|
-
out.puts 'Tasks:'
|
970
|
-
TASKS.each do |name, desc|
|
971
|
-
out.printf fmt, name, desc
|
972
|
-
end
|
973
|
-
|
974
|
-
fmt = " %-24s %s [%s]\n"
|
975
|
-
out.puts
|
976
|
-
out.puts 'Options for CONFIG or ALL:'
|
977
|
-
@config.each do |item|
|
978
|
-
out.printf fmt, item.help_opt, item.description, item.help_default
|
979
|
-
end
|
980
|
-
out.printf fmt, '--rbconfig=path', 'rbconfig.rb to load',"running ruby's"
|
981
|
-
out.puts
|
982
|
-
out.puts 'Options for INSTALL:'
|
983
|
-
out.printf fmt, '--no-harm', 'only display what to do if given', 'off'
|
984
|
-
out.printf fmt, '--prefix=path', 'install path prefix', ''
|
985
|
-
out.puts
|
986
|
-
end
|
987
|
-
|
988
|
-
#
|
989
|
-
# Task Handlers
|
990
|
-
#
|
991
|
-
|
992
|
-
def exec_config
|
993
|
-
@installer.exec_config
|
994
|
-
@config.save # must be final
|
995
|
-
end
|
996
|
-
|
997
|
-
def exec_setup
|
998
|
-
@installer.exec_setup
|
999
|
-
end
|
1000
|
-
|
1001
|
-
def exec_install
|
1002
|
-
@installer.exec_install
|
1003
|
-
end
|
1004
|
-
|
1005
|
-
def exec_test
|
1006
|
-
@installer.exec_test
|
1007
|
-
end
|
1008
|
-
|
1009
|
-
def exec_show
|
1010
|
-
@config.each do |i|
|
1011
|
-
printf "%-20s %s\n", i.name, i.value if i.value?
|
1012
|
-
end
|
1013
|
-
end
|
1014
|
-
|
1015
|
-
def exec_clean
|
1016
|
-
@installer.exec_clean
|
1017
|
-
end
|
1018
|
-
|
1019
|
-
def exec_distclean
|
1020
|
-
@installer.exec_distclean
|
1021
|
-
end
|
1022
|
-
|
1023
|
-
end # class ToplevelInstaller
|
1024
|
-
|
1025
|
-
|
1026
|
-
class ToplevelInstallerMulti < ToplevelInstaller
|
1027
|
-
|
1028
|
-
include FileOperations
|
1029
|
-
|
1030
|
-
def initialize(ardir_root, config)
|
1031
|
-
super
|
1032
|
-
@packages = directories_of("#{@ardir}/packages")
|
1033
|
-
raise 'no package exists' if @packages.empty?
|
1034
|
-
@root_installer = Installer.new(@config, @ardir, File.expand_path('.'))
|
1035
|
-
end
|
1036
|
-
|
1037
|
-
def run_metaconfigs
|
1038
|
-
@config.load_script "#{@ardir}/metaconfig", self
|
1039
|
-
@packages.each do |name|
|
1040
|
-
@config.load_script "#{@ardir}/packages/#{name}/metaconfig"
|
1041
|
-
end
|
1042
|
-
end
|
1043
|
-
|
1044
|
-
attr_reader :packages
|
1045
|
-
|
1046
|
-
def packages=(list)
|
1047
|
-
raise 'package list is empty' if list.empty?
|
1048
|
-
list.each do |name|
|
1049
|
-
raise "directory packages/#{name} does not exist"\
|
1050
|
-
unless File.dir?("#{@ardir}/packages/#{name}")
|
1051
|
-
end
|
1052
|
-
@packages = list
|
1053
|
-
end
|
1054
|
-
|
1055
|
-
def init_installers
|
1056
|
-
@installers = {}
|
1057
|
-
@packages.each do |pack|
|
1058
|
-
@installers[pack] = Installer.new(@config,
|
1059
|
-
"#{@ardir}/packages/#{pack}",
|
1060
|
-
"packages/#{pack}")
|
1061
|
-
end
|
1062
|
-
with = extract_selection(config('with'))
|
1063
|
-
without = extract_selection(config('without'))
|
1064
|
-
@selected = @installers.keys.select {|name|
|
1065
|
-
(with.empty? or with.include?(name)) \
|
1066
|
-
and not without.include?(name)
|
1067
|
-
}
|
1068
|
-
end
|
1069
|
-
|
1070
|
-
def extract_selection(list)
|
1071
|
-
a = list.split(/,/)
|
1072
|
-
a.each do |name|
|
1073
|
-
setup_rb_error "no such package: #{name}" unless @installers.key?(name)
|
1074
|
-
end
|
1075
|
-
a
|
1076
|
-
end
|
1077
|
-
|
1078
|
-
def print_usage(f)
|
1079
|
-
super
|
1080
|
-
f.puts 'Inluded packages:'
|
1081
|
-
f.puts ' ' + @packages.sort.join(' ')
|
1082
|
-
f.puts
|
1083
|
-
end
|
1084
|
-
|
1085
|
-
#
|
1086
|
-
# Task Handlers
|
1087
|
-
#
|
1088
|
-
|
1089
|
-
def exec_config
|
1090
|
-
run_hook 'pre-config'
|
1091
|
-
each_selected_installers {|inst| inst.exec_config }
|
1092
|
-
run_hook 'post-config'
|
1093
|
-
@config.save # must be final
|
1094
|
-
end
|
1095
|
-
|
1096
|
-
def exec_setup
|
1097
|
-
run_hook 'pre-setup'
|
1098
|
-
each_selected_installers {|inst| inst.exec_setup }
|
1099
|
-
run_hook 'post-setup'
|
1100
|
-
end
|
1101
|
-
|
1102
|
-
def exec_install
|
1103
|
-
run_hook 'pre-install'
|
1104
|
-
each_selected_installers {|inst| inst.exec_install }
|
1105
|
-
run_hook 'post-install'
|
1106
|
-
end
|
1107
|
-
|
1108
|
-
def exec_test
|
1109
|
-
run_hook 'pre-test'
|
1110
|
-
each_selected_installers {|inst| inst.exec_test }
|
1111
|
-
run_hook 'post-test'
|
1112
|
-
end
|
1113
|
-
|
1114
|
-
def exec_clean
|
1115
|
-
rm_f @config.savefile
|
1116
|
-
run_hook 'pre-clean'
|
1117
|
-
each_selected_installers {|inst| inst.exec_clean }
|
1118
|
-
run_hook 'post-clean'
|
1119
|
-
end
|
1120
|
-
|
1121
|
-
def exec_distclean
|
1122
|
-
rm_f @config.savefile
|
1123
|
-
run_hook 'pre-distclean'
|
1124
|
-
each_selected_installers {|inst| inst.exec_distclean }
|
1125
|
-
run_hook 'post-distclean'
|
1126
|
-
end
|
1127
|
-
|
1128
|
-
#
|
1129
|
-
# lib
|
1130
|
-
#
|
1131
|
-
|
1132
|
-
def each_selected_installers
|
1133
|
-
Dir.mkdir 'packages' unless File.dir?('packages')
|
1134
|
-
@selected.each do |pack|
|
1135
|
-
$stderr.puts "Processing the package `#{pack}' ..." if verbose?
|
1136
|
-
Dir.mkdir "packages/#{pack}" unless File.dir?("packages/#{pack}")
|
1137
|
-
Dir.chdir "packages/#{pack}"
|
1138
|
-
yield @installers[pack]
|
1139
|
-
Dir.chdir '../..'
|
1140
|
-
end
|
1141
|
-
end
|
1142
|
-
|
1143
|
-
def run_hook(id)
|
1144
|
-
@root_installer.run_hook id
|
1145
|
-
end
|
1146
|
-
|
1147
|
-
# module FileOperations requires this
|
1148
|
-
def verbose?
|
1149
|
-
@config.verbose?
|
1150
|
-
end
|
1151
|
-
|
1152
|
-
# module FileOperations requires this
|
1153
|
-
def no_harm?
|
1154
|
-
@config.no_harm?
|
1155
|
-
end
|
1156
|
-
|
1157
|
-
end # class ToplevelInstallerMulti
|
1158
|
-
|
1159
|
-
|
1160
|
-
class Installer
|
1161
|
-
|
1162
|
-
FILETYPES = %w( bin lib ext data conf man )
|
1163
|
-
|
1164
|
-
include FileOperations
|
1165
|
-
include HookScriptAPI
|
1166
|
-
|
1167
|
-
def initialize(config, srcroot, objroot)
|
1168
|
-
@config = config
|
1169
|
-
@srcdir = File.expand_path(srcroot)
|
1170
|
-
@objdir = File.expand_path(objroot)
|
1171
|
-
@currdir = '.'
|
1172
|
-
end
|
1173
|
-
|
1174
|
-
def inspect
|
1175
|
-
"#<#{self.class} #{File.basename(@srcdir)}>"
|
1176
|
-
end
|
1177
|
-
|
1178
|
-
def noop(rel)
|
1179
|
-
end
|
1180
|
-
|
1181
|
-
#
|
1182
|
-
# Hook Script API base methods
|
1183
|
-
#
|
1184
|
-
|
1185
|
-
def srcdir_root
|
1186
|
-
@srcdir
|
1187
|
-
end
|
1188
|
-
|
1189
|
-
def objdir_root
|
1190
|
-
@objdir
|
1191
|
-
end
|
1192
|
-
|
1193
|
-
def relpath
|
1194
|
-
@currdir
|
1195
|
-
end
|
1196
|
-
|
1197
|
-
#
|
1198
|
-
# Config Access
|
1199
|
-
#
|
1200
|
-
|
1201
|
-
# module FileOperations requires this
|
1202
|
-
def verbose?
|
1203
|
-
@config.verbose?
|
1204
|
-
end
|
1205
|
-
|
1206
|
-
# module FileOperations requires this
|
1207
|
-
def no_harm?
|
1208
|
-
@config.no_harm?
|
1209
|
-
end
|
1210
|
-
|
1211
|
-
def verbose_off
|
1212
|
-
begin
|
1213
|
-
save, @config.verbose = @config.verbose?, false
|
1214
|
-
yield
|
1215
|
-
ensure
|
1216
|
-
@config.verbose = save
|
1217
|
-
end
|
1218
|
-
end
|
1219
|
-
|
1220
|
-
#
|
1221
|
-
# TASK config
|
1222
|
-
#
|
1223
|
-
|
1224
|
-
def exec_config
|
1225
|
-
exec_task_traverse 'config'
|
1226
|
-
end
|
1227
|
-
|
1228
|
-
alias config_dir_bin noop
|
1229
|
-
alias config_dir_lib noop
|
1230
|
-
|
1231
|
-
def config_dir_ext(rel)
|
1232
|
-
extconf if extdir?(curr_srcdir())
|
1233
|
-
end
|
1234
|
-
|
1235
|
-
alias config_dir_data noop
|
1236
|
-
alias config_dir_conf noop
|
1237
|
-
alias config_dir_man noop
|
1238
|
-
|
1239
|
-
def extconf
|
1240
|
-
ruby "#{curr_srcdir()}/extconf.rb", *@config.config_opt
|
1241
|
-
end
|
1242
|
-
|
1243
|
-
#
|
1244
|
-
# TASK setup
|
1245
|
-
#
|
1246
|
-
|
1247
|
-
def exec_setup
|
1248
|
-
exec_task_traverse 'setup'
|
1249
|
-
end
|
1250
|
-
|
1251
|
-
def setup_dir_bin(rel)
|
1252
|
-
files_of(curr_srcdir()).each do |fname|
|
1253
|
-
update_shebang_line "#{curr_srcdir()}/#{fname}"
|
1254
|
-
end
|
1255
|
-
end
|
1256
|
-
|
1257
|
-
alias setup_dir_lib noop
|
1258
|
-
|
1259
|
-
def setup_dir_ext(rel)
|
1260
|
-
make if extdir?(curr_srcdir())
|
1261
|
-
end
|
1262
|
-
|
1263
|
-
alias setup_dir_data noop
|
1264
|
-
alias setup_dir_conf noop
|
1265
|
-
alias setup_dir_man noop
|
1266
|
-
|
1267
|
-
def update_shebang_line(path)
|
1268
|
-
return if no_harm?
|
1269
|
-
return if config('shebang') == 'never'
|
1270
|
-
old = Shebang.load(path)
|
1271
|
-
if old
|
1272
|
-
$stderr.puts "warning: #{path}: Shebang line includes too many args. It is not portable and your program may not work." if old.args.size > 1
|
1273
|
-
new = new_shebang(old)
|
1274
|
-
return if new.to_s == old.to_s
|
1275
|
-
else
|
1276
|
-
return unless config('shebang') == 'all'
|
1277
|
-
new = Shebang.new(config('rubypath'))
|
1278
|
-
end
|
1279
|
-
$stderr.puts "updating shebang: #{File.basename(path)}" if verbose?
|
1280
|
-
open_atomic_writer(path) {|output|
|
1281
|
-
File.open(path, 'rb') {|f|
|
1282
|
-
f.gets if old # discard
|
1283
|
-
output.puts new.to_s
|
1284
|
-
output.print f.read
|
1285
|
-
}
|
1286
|
-
}
|
1287
|
-
end
|
1288
|
-
|
1289
|
-
def new_shebang(old)
|
1290
|
-
if /\Aruby/ =~ File.basename(old.cmd)
|
1291
|
-
Shebang.new(config('rubypath'), old.args)
|
1292
|
-
elsif File.basename(old.cmd) == 'env' and old.args.first == 'ruby'
|
1293
|
-
Shebang.new(config('rubypath'), old.args[1..-1])
|
1294
|
-
else
|
1295
|
-
return old unless config('shebang') == 'all'
|
1296
|
-
Shebang.new(config('rubypath'))
|
1297
|
-
end
|
1298
|
-
end
|
1299
|
-
|
1300
|
-
def open_atomic_writer(path, &block)
|
1301
|
-
tmpfile = File.basename(path) + '.tmp'
|
1302
|
-
begin
|
1303
|
-
File.open(tmpfile, 'wb', &block)
|
1304
|
-
File.rename tmpfile, File.basename(path)
|
1305
|
-
ensure
|
1306
|
-
File.unlink tmpfile if File.exist?(tmpfile)
|
1307
|
-
end
|
1308
|
-
end
|
1309
|
-
|
1310
|
-
class Shebang
|
1311
|
-
def Shebang.load(path)
|
1312
|
-
line = nil
|
1313
|
-
File.open(path) {|f|
|
1314
|
-
line = f.gets
|
1315
|
-
}
|
1316
|
-
return nil unless /\A#!/ =~ line
|
1317
|
-
parse(line)
|
1318
|
-
end
|
1319
|
-
|
1320
|
-
def Shebang.parse(line)
|
1321
|
-
cmd, *args = *line.strip.sub(/\A\#!/, '').split(' ')
|
1322
|
-
new(cmd, args)
|
1323
|
-
end
|
1324
|
-
|
1325
|
-
def initialize(cmd, args = [])
|
1326
|
-
@cmd = cmd
|
1327
|
-
@args = args
|
1328
|
-
end
|
1329
|
-
|
1330
|
-
attr_reader :cmd
|
1331
|
-
attr_reader :args
|
1332
|
-
|
1333
|
-
def to_s
|
1334
|
-
"#! #{@cmd}" + (@args.empty? ? '' : " #{@args.join(' ')}")
|
1335
|
-
end
|
1336
|
-
end
|
1337
|
-
|
1338
|
-
#
|
1339
|
-
# TASK install
|
1340
|
-
#
|
1341
|
-
|
1342
|
-
def exec_install
|
1343
|
-
rm_f 'InstalledFiles'
|
1344
|
-
exec_task_traverse 'install'
|
1345
|
-
end
|
1346
|
-
|
1347
|
-
def install_dir_bin(rel)
|
1348
|
-
install_files targetfiles(), "#{config('bindir')}/#{rel}", 0755
|
1349
|
-
end
|
1350
|
-
|
1351
|
-
def install_dir_lib(rel)
|
1352
|
-
install_files libfiles(), "#{config('rbdir')}/#{rel}", 0644
|
1353
|
-
end
|
1354
|
-
|
1355
|
-
def install_dir_ext(rel)
|
1356
|
-
return unless extdir?(curr_srcdir())
|
1357
|
-
install_files rubyextentions('.'),
|
1358
|
-
"#{config('sodir')}/#{File.dirname(rel)}",
|
1359
|
-
0555
|
1360
|
-
end
|
1361
|
-
|
1362
|
-
def install_dir_data(rel)
|
1363
|
-
install_files targetfiles(), "#{config('datadir')}/#{rel}", 0644
|
1364
|
-
end
|
1365
|
-
|
1366
|
-
def install_dir_conf(rel)
|
1367
|
-
# FIXME: should not remove current config files
|
1368
|
-
# (rename previous file to .old/.org)
|
1369
|
-
install_files targetfiles(), "#{config('sysconfdir')}/#{rel}", 0644
|
1370
|
-
end
|
1371
|
-
|
1372
|
-
def install_dir_man(rel)
|
1373
|
-
install_files targetfiles(), "#{config('mandir')}/#{rel}", 0644
|
1374
|
-
end
|
1375
|
-
|
1376
|
-
def install_files(list, dest, mode)
|
1377
|
-
mkdir_p dest, @config.install_prefix
|
1378
|
-
list.each do |fname|
|
1379
|
-
install fname, dest, mode, @config.install_prefix
|
1380
|
-
end
|
1381
|
-
end
|
1382
|
-
|
1383
|
-
def libfiles
|
1384
|
-
glob_reject(%w(*.y *.output), targetfiles())
|
1385
|
-
end
|
1386
|
-
|
1387
|
-
def rubyextentions(dir)
|
1388
|
-
ents = glob_select("*.#{@config.dllext}", targetfiles())
|
1389
|
-
if ents.empty?
|
1390
|
-
setup_rb_error "no ruby extention exists: 'ruby #{$0} setup' first"
|
1391
|
-
end
|
1392
|
-
ents
|
1393
|
-
end
|
1394
|
-
|
1395
|
-
def targetfiles
|
1396
|
-
mapdir(existfiles() - hookfiles())
|
1397
|
-
end
|
1398
|
-
|
1399
|
-
def mapdir(ents)
|
1400
|
-
ents.map {|ent|
|
1401
|
-
if File.exist?(ent)
|
1402
|
-
then ent # objdir
|
1403
|
-
else "#{curr_srcdir()}/#{ent}" # srcdir
|
1404
|
-
end
|
1405
|
-
}
|
1406
|
-
end
|
1407
|
-
|
1408
|
-
# picked up many entries from cvs-1.11.1/src/ignore.c
|
1409
|
-
JUNK_FILES = %w(
|
1410
|
-
core RCSLOG tags TAGS .make.state
|
1411
|
-
.nse_depinfo #* .#* cvslog.* ,* .del-* *.olb
|
1412
|
-
*~ *.old *.bak *.BAK *.orig *.rej _$* *$
|
1413
|
-
|
1414
|
-
*.org *.in .*
|
1415
|
-
)
|
1416
|
-
|
1417
|
-
def existfiles
|
1418
|
-
glob_reject(JUNK_FILES, (files_of(curr_srcdir()) | files_of('.')))
|
1419
|
-
end
|
1420
|
-
|
1421
|
-
def hookfiles
|
1422
|
-
%w( pre-%s post-%s pre-%s.rb post-%s.rb ).map {|fmt|
|
1423
|
-
%w( config setup install clean ).map {|t| sprintf(fmt, t) }
|
1424
|
-
}.flatten
|
1425
|
-
end
|
1426
|
-
|
1427
|
-
def glob_select(pat, ents)
|
1428
|
-
re = globs2re([pat])
|
1429
|
-
ents.select {|ent| re =~ ent }
|
1430
|
-
end
|
1431
|
-
|
1432
|
-
def glob_reject(pats, ents)
|
1433
|
-
re = globs2re(pats)
|
1434
|
-
ents.reject {|ent| re =~ ent }
|
1435
|
-
end
|
1436
|
-
|
1437
|
-
GLOB2REGEX = {
|
1438
|
-
'.' => '\.',
|
1439
|
-
'$' => '\$',
|
1440
|
-
'#' => '\#',
|
1441
|
-
'*' => '.*'
|
1442
|
-
}
|
1443
|
-
|
1444
|
-
def globs2re(pats)
|
1445
|
-
/\A(?:#{
|
1446
|
-
pats.map {|pat| pat.gsub(/[\.\$\#\*]/) {|ch| GLOB2REGEX[ch] } }.join('|')
|
1447
|
-
})\z/
|
1448
|
-
end
|
1449
|
-
|
1450
|
-
#
|
1451
|
-
# TASK test
|
1452
|
-
#
|
1453
|
-
|
1454
|
-
TESTDIR = 'test'
|
1455
|
-
|
1456
|
-
def exec_test
|
1457
|
-
unless File.directory?('test')
|
1458
|
-
$stderr.puts 'no test in this package' if verbose?
|
1459
|
-
return
|
1460
|
-
end
|
1461
|
-
$stderr.puts 'Running tests...' if verbose?
|
1462
|
-
begin
|
1463
|
-
require 'test/unit'
|
1464
|
-
rescue LoadError
|
1465
|
-
setup_rb_error 'test/unit cannot loaded. You need Ruby 1.8 or later to invoke this task.'
|
1466
|
-
end
|
1467
|
-
runner = Test::Unit::AutoRunner.new(true)
|
1468
|
-
runner.to_run << TESTDIR
|
1469
|
-
runner.run
|
1470
|
-
end
|
1471
|
-
|
1472
|
-
#
|
1473
|
-
# TASK clean
|
1474
|
-
#
|
1475
|
-
|
1476
|
-
def exec_clean
|
1477
|
-
exec_task_traverse 'clean'
|
1478
|
-
rm_f @config.savefile
|
1479
|
-
rm_f 'InstalledFiles'
|
1480
|
-
end
|
1481
|
-
|
1482
|
-
alias clean_dir_bin noop
|
1483
|
-
alias clean_dir_lib noop
|
1484
|
-
alias clean_dir_data noop
|
1485
|
-
alias clean_dir_conf noop
|
1486
|
-
alias clean_dir_man noop
|
1487
|
-
|
1488
|
-
def clean_dir_ext(rel)
|
1489
|
-
return unless extdir?(curr_srcdir())
|
1490
|
-
make 'clean' if File.file?('Makefile')
|
1491
|
-
end
|
1492
|
-
|
1493
|
-
#
|
1494
|
-
# TASK distclean
|
1495
|
-
#
|
1496
|
-
|
1497
|
-
def exec_distclean
|
1498
|
-
exec_task_traverse 'distclean'
|
1499
|
-
rm_f @config.savefile
|
1500
|
-
rm_f 'InstalledFiles'
|
1501
|
-
end
|
1502
|
-
|
1503
|
-
alias distclean_dir_bin noop
|
1504
|
-
alias distclean_dir_lib noop
|
1505
|
-
|
1506
|
-
def distclean_dir_ext(rel)
|
1507
|
-
return unless extdir?(curr_srcdir())
|
1508
|
-
make 'distclean' if File.file?('Makefile')
|
1509
|
-
end
|
1510
|
-
|
1511
|
-
alias distclean_dir_data noop
|
1512
|
-
alias distclean_dir_conf noop
|
1513
|
-
alias distclean_dir_man noop
|
1514
|
-
|
1515
|
-
#
|
1516
|
-
# Traversing
|
1517
|
-
#
|
1518
|
-
|
1519
|
-
def exec_task_traverse(task)
|
1520
|
-
run_hook "pre-#{task}"
|
1521
|
-
FILETYPES.each do |type|
|
1522
|
-
if type == 'ext' and config('without-ext') == 'yes'
|
1523
|
-
$stderr.puts 'skipping ext/* by user option' if verbose?
|
1524
|
-
next
|
1525
|
-
end
|
1526
|
-
traverse task, type, "#{task}_dir_#{type}"
|
1527
|
-
end
|
1528
|
-
run_hook "post-#{task}"
|
1529
|
-
end
|
1530
|
-
|
1531
|
-
def traverse(task, rel, mid)
|
1532
|
-
dive_into(rel) {
|
1533
|
-
run_hook "pre-#{task}"
|
1534
|
-
__send__ mid, rel.sub(%r[\A.*?(?:/|\z)], '')
|
1535
|
-
directories_of(curr_srcdir()).each do |d|
|
1536
|
-
traverse task, "#{rel}/#{d}", mid
|
1537
|
-
end
|
1538
|
-
run_hook "post-#{task}"
|
1539
|
-
}
|
1540
|
-
end
|
1541
|
-
|
1542
|
-
def dive_into(rel)
|
1543
|
-
return unless File.dir?("#{@srcdir}/#{rel}")
|
1544
|
-
|
1545
|
-
dir = File.basename(rel)
|
1546
|
-
Dir.mkdir dir unless File.dir?(dir)
|
1547
|
-
prevdir = Dir.pwd
|
1548
|
-
Dir.chdir dir
|
1549
|
-
$stderr.puts '---> ' + rel if verbose?
|
1550
|
-
@currdir = rel
|
1551
|
-
yield
|
1552
|
-
Dir.chdir prevdir
|
1553
|
-
$stderr.puts '<--- ' + rel if verbose?
|
1554
|
-
@currdir = File.dirname(rel)
|
1555
|
-
end
|
1556
|
-
|
1557
|
-
def run_hook(id)
|
1558
|
-
path = [ "#{curr_srcdir()}/#{id}",
|
1559
|
-
"#{curr_srcdir()}/#{id}.rb" ].detect {|cand| File.file?(cand) }
|
1560
|
-
return unless path
|
1561
|
-
begin
|
1562
|
-
instance_eval File.read(path), path, 1
|
1563
|
-
rescue
|
1564
|
-
raise if $DEBUG
|
1565
|
-
setup_rb_error "hook #{path} failed:\n" + $!.message
|
1566
|
-
end
|
1567
|
-
end
|
1568
|
-
|
1569
|
-
end # class Installer
|
1570
|
-
|
1571
|
-
|
1572
|
-
class SetupError < StandardError; end
|
1573
|
-
|
1574
|
-
def setup_rb_error(msg)
|
1575
|
-
raise SetupError, msg
|
1576
|
-
end
|
1577
|
-
|
1578
|
-
if $0 == __FILE__
|
1579
|
-
begin
|
1580
|
-
ToplevelInstaller.invoke
|
1581
|
-
rescue SetupError
|
1582
|
-
raise if $DEBUG
|
1583
|
-
$stderr.puts $!.message
|
1584
|
-
$stderr.puts "Try 'ruby #{$0} --help' for detailed usage."
|
1585
|
-
exit 1
|
1586
|
-
end
|
1587
|
-
end
|