facets 1.7.46 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/PROJECT +41 -23
- data/Rakefile +164 -0
- data/VERSION +1 -1
- data/demo/cuts/benchmark.rb +71 -0
- data/demo/cuts/override.rb +33 -0
- data/doc/AUTHORS +1 -0
- data/doc/{CHANGELOG.1 → HISTORY.1} +0 -0
- data/doc/HISTORY.txt +798 -0
- data/doc/LATEST +240 -0
- data/lib/facet/ann.rb +1 -0
- data/lib/facet/ann_attr.rb +1 -0
- data/lib/facet/arguments.rb +1 -0
- data/lib/facet/array/index.rb +1 -0
- data/lib/facet/array/to_path.rb +1 -0
- data/lib/facet/autoscript.rb +1 -0
- data/lib/facet/autovivify.rb +1 -0
- data/lib/facet/behvior.rb +1 -0
- data/lib/facet/buildingblock.rb +1 -0
- data/lib/facet/class/class_load.rb +1 -0
- data/lib/facet/class/class_require.rb +1 -0
- data/lib/facet/config/inspect.rb +1 -0
- data/lib/facet/consoleutils.rb +1 -0
- data/lib/facet/dependency.rb +1 -0
- data/lib/facet/dir/self/multiglob.rb +1 -0
- data/lib/facet/dir/self/multiglob_recurse.rb +1 -0
- data/lib/facet/dir/self/multiglob_sum.rb +1 -0
- data/lib/facet/enumerable/injecting.rb +1 -0
- data/lib/facet/file/self/yaml.rb +1 -0
- data/lib/facet/fileutils/compress.rb +1 -0
- data/lib/facet/fileutils/stage.rb +1 -0
- data/lib/facet/fileutils/staged.rb +1 -0
- data/lib/facet/hash/insert.rb +1 -0
- data/lib/facet/hash/op_add.rb +1 -0
- data/lib/facet/hash/op_and.rb +1 -0
- data/lib/facet/hash/op_mul.rb +1 -0
- data/lib/facet/hash/op_or.rb +1 -0
- data/lib/facet/hash/op_sub.rb +1 -0
- data/lib/facet/hash/pairs_at.rb +1 -0
- data/lib/facet/hash/rekey.rb +1 -0
- data/lib/facet/htmlfilter.rb +1 -0
- data/lib/facet/integer/to_roman.rb +1 -0
- data/lib/facet/kernel/ask.rb +1 -0
- data/lib/facet/kernel/class_def.rb +1 -0
- data/lib/facet/kernel/daemonize.rb +1 -0
- data/lib/facet/kernel/enable_warnings.rb +1 -0
- data/lib/facet/kernel/instance_class.rb +1 -0
- data/lib/facet/kernel/instance_values.rb +1 -0
- data/lib/facet/kernel/meta_alias.rb +1 -0
- data/lib/facet/kernel/meta_class.rb +1 -0
- data/lib/facet/kernel/meta_def.rb +1 -0
- data/lib/facet/kernel/meta_eval.rb +1 -0
- data/lib/facet/kernel/object_send.rb +1 -0
- data/lib/facet/kernel/populate.rb +1 -0
- data/lib/facet/kernel/qua_class.rb +1 -0
- data/lib/facet/kernel/silence_stream.rb +1 -0
- data/lib/facet/kernel/super_at.rb +1 -0
- data/lib/facet/kernel/supress.rb +1 -0
- data/lib/facet/kernel/with.rb +1 -0
- data/lib/facet/kernel/yaml.rb +1 -0
- data/lib/facet/minitar.rb +1 -0
- data/lib/facet/module/alias_accessor.rb +1 -0
- data/lib/facet/module/include_and_extend.rb +1 -0
- data/lib/facet/module/include_function_module.rb +1 -0
- data/lib/facet/module/module_load.rb +1 -0
- data/lib/facet/module/module_method.rb +1 -0
- data/lib/facet/module/module_require.rb +1 -0
- data/lib/facet/module/new.rb +1 -0
- data/lib/facet/module/prepend.rb +1 -0
- data/lib/facet/openhash.rb +1 -0
- data/lib/facet/ostruct/instance_delegate.rb +1 -0
- data/lib/facet/populate.rb +1 -0
- data/lib/facet/proc/bind.rb +1 -0
- data/lib/facet/proc/to_h.rb +1 -0
- data/lib/facet/proc/update.rb +1 -0
- data/lib/facet/script.rb +1 -0
- data/lib/facet/string/rewrite.rb +1 -0
- data/lib/facet/symbol/chomp.rb +1 -0
- data/lib/facet/uploadutils.rb +1 -0
- data/lib/facet/version_number.rb +1 -0
- data/lib/facets.rb +3 -207
- data/lib/facets/automatic.rb +29 -0
- data/lib/facets/core/all.rb +1 -1
- data/lib/facets/core/array/index.rb +15 -0
- data/lib/facets/core/array/to_path.rb +11 -0
- data/lib/facets/core/class/class_load.rb +3 -0
- data/lib/facets/core/class/class_require.rb +3 -0
- data/lib/facets/core/config/inspect.rb +9 -0
- data/lib/facets/core/dir/self/multiglob.rb +32 -0
- data/lib/facets/core/dir/self/multiglob_recurse.rb +5 -0
- data/lib/facets/core/dir/self/multiglob_sum.rb +40 -0
- data/lib/facets/core/enumerable/each_slice.rb +1 -0
- data/lib/facets/core/enumerable/every.rb +2 -2
- data/lib/facets/core/enumerable/injecting.rb +22 -0
- data/lib/facets/core/enumerable/partition_by.rb +10 -8
- data/lib/facets/core/file/self/yaml.rb +16 -0
- data/lib/facets/core/fileutils/compress.rb +154 -0
- data/lib/facets/core/fileutils/stage.rb +230 -0
- data/lib/facets/core/fileutils/staged.rb +3 -0
- data/lib/facets/core/hash/insert.rb +20 -0
- data/lib/facets/core/hash/op_add.rb +29 -0
- data/lib/facets/core/hash/op_and.rb +37 -0
- data/lib/facets/core/hash/op_mul.rb +17 -0
- data/lib/facets/core/hash/op_or.rb +2 -0
- data/lib/facets/core/hash/op_sub.rb +2 -0
- data/lib/facets/core/hash/pairs_at.rb +17 -0
- data/lib/facets/core/hash/rekey.rb +89 -0
- data/lib/facets/core/hash/reverse_merge.rb +6 -3
- data/lib/facets/core/inflect.rb +5 -14
- data/lib/facets/core/integer/to_roman.rb +20 -0
- data/lib/facets/core/kernel/as.rb +46 -29
- data/lib/facets/core/kernel/ask.rb +14 -0
- data/lib/facets/core/kernel/class_def.rb +10 -0
- data/lib/facets/core/kernel/daemonize.rb +21 -0
- data/lib/facets/core/kernel/enable_warnings.rb +14 -0
- data/lib/facets/core/kernel/{quaclass.rb → instance_class.rb} +7 -6
- data/lib/facets/core/kernel/instance_exec.rb +12 -10
- data/lib/facets/core/kernel/instance_values.rb +12 -0
- data/lib/facets/core/kernel/meta_alias.rb +14 -0
- data/lib/facets/core/kernel/meta_class.rb +38 -0
- data/lib/facets/core/kernel/meta_def.rb +14 -0
- data/lib/facets/core/kernel/meta_eval.rb +16 -0
- data/lib/facets/core/kernel/metaclass.rb +8 -12
- data/lib/facets/core/kernel/object_send.rb +21 -0
- data/lib/facets/core/kernel/populate.rb +39 -0
- data/lib/facets/core/kernel/qua_class.rb +41 -0
- data/lib/facets/core/kernel/returning.rb +7 -47
- data/lib/facets/core/kernel/send_as.rb +10 -4
- data/lib/facets/core/kernel/set_with.rb +25 -7
- data/lib/facets/core/kernel/silence_stream.rb +22 -0
- data/lib/facets/core/kernel/singleton.rb +1 -2
- data/lib/facets/core/kernel/{superior.rb → super_at.rb} +4 -1
- data/lib/facets/core/kernel/supermethod.rb +1 -1
- data/lib/facets/core/kernel/supress.rb +15 -0
- data/lib/facets/core/kernel/with.rb +57 -0
- data/lib/facets/core/kernel/yaml.rb +7 -0
- data/lib/facets/core/module/alias_accessor.rb +19 -0
- data/lib/facets/core/module/alias_method_chain.rb +33 -0
- data/lib/facets/core/module/class_extension.rb +1 -1
- data/lib/facets/core/module/include_and_extend.rb +10 -0
- data/lib/facets/core/module/include_as.rb +17 -16
- data/lib/facets/core/module/include_function_module.rb +13 -0
- data/lib/facets/core/module/inject.rb +1 -0
- data/lib/facets/core/module/memoize.rb +4 -3
- data/lib/facets/core/module/module_load.rb +51 -0
- data/lib/facets/core/module/module_method.rb +13 -0
- data/lib/facets/core/module/module_require.rb +3 -0
- data/lib/facets/core/module/namespace.rb +96 -36
- data/lib/facets/core/module/new.rb +37 -0
- data/lib/facets/core/module/prepend.rb +63 -0
- data/lib/facets/core/module/self/op_add.rb +16 -0
- data/lib/facets/core/ostruct.rb +6 -4
- data/lib/facets/core/ostruct/__merge__.rb +3 -50
- data/lib/facets/core/ostruct/__table__.rb +3 -10
- data/lib/facets/core/ostruct/__update__.rb +29 -0
- data/lib/facets/core/ostruct/instance_delegate.rb +58 -0
- data/lib/facets/core/ostruct/op_fetch.rb +18 -0
- data/lib/facets/core/ostruct/op_store.rb +3 -40
- data/lib/facets/core/proc/bind.rb +35 -0
- data/lib/facets/core/proc/to_h.rb +27 -0
- data/lib/facets/core/proc/to_method.rb +15 -29
- data/lib/facets/core/proc/update.rb +11 -0
- data/lib/facets/core/string/dresner.rb +1 -1
- data/lib/facets/core/string/rewrite.rb +34 -0
- data/lib/facets/core/symbol/chomp.rb +9 -0
- data/lib/facets/core/time/stamp.rb +32 -16
- data/lib/facets/more/ann.rb +249 -0
- data/lib/facets/more/ann_attr.rb +164 -0
- data/lib/facets/more/arguments.rb +479 -0
- data/lib/facets/more/autoscript.rb +34 -0
- data/lib/facets/more/autovivify.rb +16 -0
- data/lib/facets/more/basicobject.rb +67 -54
- data/lib/facets/more/behvior.rb +59 -0
- data/lib/facets/more/buildingblock.rb +192 -0
- data/lib/facets/more/command.rb +332 -146
- data/lib/facets/more/consoleutils.rb +45 -0
- data/lib/facets/more/cookie.rb +5 -2
- data/lib/facets/more/dependency.rb +199 -0
- data/lib/facets/more/dictionary.rb +49 -11
- data/lib/facets/more/functor.rb +33 -27
- data/lib/facets/more/htmlbuilder.rb +8 -18
- data/lib/facets/more/htmlfilter.rb +566 -0
- data/lib/facets/more/htmlhelper.rb +3 -8
- data/lib/facets/more/http.rb +0 -1
- data/lib/facets/more/httpaccess.rb +1 -1
- data/lib/facets/more/instance_intercept.rb +1 -1
- data/lib/facets/more/main_as_module.rb +2 -0
- data/lib/facets/more/methodfilter.rb +4 -0
- data/lib/facets/more/minitar.rb +979 -0
- data/lib/facets/more/multiton.rb +43 -24
- data/lib/facets/more/opencascade.rb +3 -3
- data/lib/facets/more/openhash.rb +350 -0
- data/lib/facets/more/openobject.rb +9 -306
- data/lib/facets/more/populate.rb +37 -0
- data/lib/facets/more/script.rb +157 -0
- data/lib/facets/more/uploadutils.rb +207 -0
- data/lib/facets/more/version_number.rb +98 -0
- data/lib/facets/more/xmlbuilder.rb +26 -21
- data/lib/facets/more/xmlhelper.rb +1 -1
- data/lib/facets/sys.rb +212 -0
- data/lib/facets/{more → yore}/annattr.rb +1 -1
- data/lib/facets/{more → yore}/annotation.rb +38 -32
- data/lib/facets/yore/builderobject.rb +222 -0
- data/lib/facets/{core → yore}/kernel/own.rb +0 -0
- data/lib/facets/{core → yore}/kernel/require_facet.rb +0 -0
- data/lib/facets/yore/module/inject.rb +9 -0
- data/lib/facets/yore/module/namespace.rb +62 -0
- data/setup.rb +2 -2
- data/test/special/main_as_module.rb +14 -0
- data/work/README +42 -0
- data/work/TODO +73 -0
- data/work/bin/minitar +3 -0
- data/work/bin/minitar.rb +814 -0
- data/work/core/array/at_rand.rb +95 -0
- data/work/core/array/each_slice.rb +23 -0
- data/work/core/array/pick_values.rb +32 -0
- data/work/core/array/rand_indexes.rb +33 -0
- data/work/core/binding/class.rb +11 -0
- data/work/core/binding/delegate-binding.rb +19 -0
- data/work/core/binding/delegate.rb +15 -0
- data/work/core/binding/proc.rb +6 -0
- data/work/core/class/to_module.rb +3 -0
- data/work/core/enumerable/op_fetch.rb +30 -0
- data/work/core/fileutils/cptouch.rb +20 -0
- data/work/core/fileutils/nl_convert.rb +133 -0
- data/work/core/io/expect.rb +127 -0
- data/work/core/join_with.rb +13 -0
- data/work/core/kernel/call_line.rb +15 -0
- data/work/core/kernel/does.rb +7 -0
- data/work/core/kernel/message.rb +6 -0
- data/work/core/kernel/query.rb +15 -0
- data/work/core/kernel/taint.rb +10 -0
- data/work/core/logger/clean_logger.rb +10 -0
- data/work/core/module/attr-old.rb +308 -0
- data/work/core/module/attr.rb +98 -0
- data/work/core/module/attr_xxx.rb +22 -0
- data/work/core/module/by_regexp.rb +21 -0
- data/work/core/module/cast.rb +64 -0
- data/work/core/module/class_attribute_accessors.rb +57 -0
- data/work/core/module/inherit.rb +99 -0
- data/work/core/module/inherit0.rb +59 -0
- data/work/core/module/let.rb +51 -0
- data/work/core/module/meta_attr.rb +60 -0
- data/work/core/module/module_attribute_accessors.rb +57 -0
- data/work/core/module/permissions.rb +32 -0
- data/work/core/module/preserved.rb +108 -0
- data/work/core/module/sattr_accessor.rb +1 -0
- data/work/core/module/sattr_reader.rb +1 -0
- data/work/core/module/sattr_setter.rb +1 -0
- data/work/core/module/sattr_tester.rb +1 -0
- data/work/core/module/sattr_writer.rb +1 -0
- data/work/core/module/tc_attr.rb +107 -0
- data/work/core/module/to_module.rb +37 -0
- data/work/core/module/version.rb +23 -0
- data/work/core/string/frequency.rb +40 -0
- data/work/core/string/op_add.rb +24 -0
- data/work/core/string/op_div.rb +15 -0
- data/work/core/string/pred.rb +217 -0
- data/work/core/string/probability.rb +35 -0
- data/work/core/string/succ_distance.rb +112 -0
- data/work/core/string/to_arr.rb +57 -0
- data/work/core/string/to_ary.rb +12 -0
- data/work/core/string/word_wrap.rb +62 -0
- data/work/misc/calibre/ProjectInfo.annotation +46 -0
- data/work/misc/calibre/ProjectInfo.ansicode +33 -0
- data/work/misc/calibre/ProjectInfo.association +34 -0
- data/work/misc/calibre/ProjectInfo.basicobject +36 -0
- data/work/misc/calibre/ProjectInfo.bbcode +34 -0
- data/work/misc/calibre/ProjectInfo.binaryreader +35 -0
- data/work/misc/calibre/ProjectInfo.bitmask +33 -0
- data/work/misc/calibre/ProjectInfo.classinherit +36 -0
- data/work/misc/calibre/ProjectInfo.classmethods +36 -0
- data/work/misc/calibre/ProjectInfo.cloneable +33 -0
- data/work/misc/calibre/ProjectInfo.consoleapp +35 -0
- data/work/misc/calibre/ProjectInfo.coroutine +37 -0
- data/work/misc/calibre/ProjectInfo.crypt +33 -0
- data/work/misc/calibre/ProjectInfo.dictionary +40 -0
- data/work/misc/calibre/ProjectInfo.downloader +39 -0
- data/work/misc/calibre/ProjectInfo.enumerablepass +35 -0
- data/work/misc/calibre/ProjectInfo.expirable +37 -0
- data/work/misc/calibre/ProjectInfo.floatstring +35 -0
- data/work/misc/calibre/ProjectInfo.functor +40 -0
- data/work/misc/calibre/ProjectInfo.heap +33 -0
- data/work/misc/calibre/ProjectInfo.inheritor +36 -0
- data/work/misc/calibre/ProjectInfo.interval +36 -0
- data/work/misc/calibre/ProjectInfo.lisp +38 -0
- data/work/misc/calibre/ProjectInfo.lrucache +34 -0
- data/work/misc/calibre/ProjectInfo.mathconstants +41 -0
- data/work/misc/calibre/ProjectInfo.methodprobe +38 -0
- data/work/misc/calibre/ProjectInfo.mock +34 -0
- data/work/misc/calibre/ProjectInfo.multiton +36 -0
- data/work/misc/calibre/ProjectInfo.nackclass +33 -0
- data/work/misc/calibre/ProjectInfo.nilcomparable +35 -0
- data/work/misc/calibre/ProjectInfo.nullclass +35 -0
- data/work/misc/calibre/ProjectInfo.one +37 -0
- data/work/misc/calibre/ProjectInfo.openobject +39 -0
- data/work/misc/calibre/ProjectInfo.paramix +38 -0
- data/work/misc/calibre/ProjectInfo.pool +33 -0
- data/work/misc/calibre/ProjectInfo.progressbar +37 -0
- data/work/misc/calibre/ProjectInfo.reference +36 -0
- data/work/misc/calibre/ProjectInfo.semaphore +36 -0
- data/work/misc/calibre/ProjectInfo.stateparser +39 -0
- data/work/misc/calibre/ProjectInfo.statichash +33 -0
- data/work/misc/calibre/ProjectInfo.system +34 -0
- data/work/misc/calibre/ProjectInfo.tagiterator +36 -0
- data/work/misc/calibre/ProjectInfo.timer +35 -0
- data/work/misc/calibre/ProjectInfo.tracepoint +37 -0
- data/work/misc/calibre/ProjectInfo.tuple +36 -0
- data/work/misc/calibre/ProjectInfo.uniheritable +34 -0
- data/work/misc/calibre/ProjectInfo.units +34 -0
- data/work/misc/calibre/ProjectInfo.yamlstruct +34 -0
- data/work/more/annotation-rw.rb +217 -0
- data/work/more/aobject.rb +132 -0
- data/work/more/autohash.rb +67 -0
- data/work/more/cache.rb +189 -0
- data/work/more/class_inheritable_attributes.rb +120 -0
- data/work/more/commandrunner.rb +101 -0
- data/work/more/daemon.rb +70 -0
- data/work/more/debugger.rb +167 -0
- data/work/more/detach.rb +423 -0
- data/work/more/enumtype.rb +115 -0
- data/work/more/ioreactor.rb +671 -0
- data/work/more/logger_sing.rb +207 -0
- data/work/more/must.rb +37 -0
- data/work/more/old-tkxml.rb +189 -0
- data/work/more/pairhash.rb +55 -0
- data/work/more/password.rb +80 -0
- data/work/more/print_exception.rb +35 -0
- data/work/more/rand.rb +412 -0
- data/work/more/range.rb +383 -0
- data/work/more/sanitize.rb +48 -0
- data/work/more/superstruct.rb +735 -0
- data/work/more/tag.rb +31 -0
- data/work/more/timer.rb +164 -0
- data/work/op_rshift.rb +87 -0
- data/work/pore/autorequire.rb +83 -0
- data/work/pore/basefactory.rb +40 -0
- data/work/pore/hash/each.rb +76 -0
- data/work/pore/merge3.rb +765 -0
- data/work/pore/superann.rb +134 -0
- data/work/pore/sys.rb +186 -0
- data/work/pore/utils.rb +518 -0
- data/work/yore/HashAquisition.rb +36 -0
- data/work/yore/Rakefile.old +181 -0
- data/work/yore/Reapfile +63 -0
- data/work/yore/annotation.rb +489 -0
- data/{test/lib/facets/more/test_annotation.rb → work/yore/annotation2.rb} +166 -18
- data/work/yore/commandutils.rb +379 -0
- data/work/yore/openobject.rb +298 -0
- data/work/yore/reap.rb +184 -0
- data/work/yore/reap.yml +47 -0
- data/work/yore/taskable-old.rb +519 -0
- data/{lib/facets/more → work/yore}/taskable.rb +176 -17
- metadata +1164 -1427
- data/doc/CHANGELOG +0 -146
- data/lib/facet/annattr.rb +0 -1
- data/lib/facet/annotation.rb +0 -1
- data/lib/facet/builderobject.rb +0 -1
- data/lib/facet/kernel/own.rb +0 -1
- data/lib/facet/kernel/quaclass.rb +0 -1
- data/lib/facet/kernel/require_facet.rb +0 -1
- data/lib/facet/kernel/superior.rb +0 -1
- data/lib/facet/one.rb +0 -1
- data/lib/facet/ostruct/instance.rb +0 -1
- data/lib/facet/predicate.rb +0 -1
- data/lib/facet/taskable.rb +0 -1
- data/lib/facets/core/ostruct/instance.rb +0 -37
- data/lib/facets/more/builderobject.rb +0 -97
- data/lib/facets/more/one.rb +0 -153
- data/lib/facets/more/predicate.rb +0 -184
- data/test/lib/facets/core/array/test_at_rand.rb +0 -34
- data/test/lib/facets/core/array/test_delete_unless.rb +0 -28
- data/test/lib/facets/core/array/test_delete_values.rb +0 -28
- data/test/lib/facets/core/array/test_delete_values_at.rb +0 -31
- data/test/lib/facets/core/array/test_first.rb +0 -46
- data/test/lib/facets/core/array/test_head.rb +0 -42
- data/test/lib/facets/core/array/test_last_index.rb +0 -26
- data/test/lib/facets/core/array/test_merge.rb +0 -35
- data/test/lib/facets/core/array/test_mid.rb +0 -33
- data/test/lib/facets/core/array/test_middle.rb +0 -29
- data/test/lib/facets/core/array/test_op_fetch.rb +0 -35
- data/test/lib/facets/core/array/test_pick.rb +0 -40
- data/test/lib/facets/core/array/test_pos.rb +0 -28
- data/test/lib/facets/core/array/test_pot.rb +0 -28
- data/test/lib/facets/core/array/test_pull.rb +0 -28
- data/test/lib/facets/core/array/test_rand_index.rb +0 -29
- data/test/lib/facets/core/array/test_rand_subset.rb +0 -29
- data/test/lib/facets/core/array/test_range.rb +0 -32
- data/test/lib/facets/core/array/test_rotate.rb +0 -36
- data/test/lib/facets/core/array/test_select.rb +0 -28
- data/test/lib/facets/core/array/test_shuffle.rb +0 -35
- data/test/lib/facets/core/array/test_thru.rb +0 -27
- data/test/lib/facets/core/array/test_to_b.rb +0 -27
- data/test/lib/facets/core/array/test_to_h.rb +0 -33
- data/test/lib/facets/core/array/test_to_hash.rb +0 -27
- data/test/lib/facets/core/binding/self/test_of_caller.rb +0 -35
- data/test/lib/facets/core/binding/test___LINE__.rb +0 -43
- data/test/lib/facets/core/binding/test_call_stack.rb +0 -34
- data/test/lib/facets/core/binding/test_called.rb +0 -30
- data/test/lib/facets/core/binding/test_caller.rb +0 -35
- data/test/lib/facets/core/binding/test_defined.rb +0 -34
- data/test/lib/facets/core/binding/test_eval.rb +0 -34
- data/test/lib/facets/core/binding/test_local_variables.rb +0 -34
- data/test/lib/facets/core/binding/test_method_name.rb +0 -34
- data/test/lib/facets/core/binding/test_op_fetch.rb +0 -34
- data/test/lib/facets/core/binding/test_op_store.rb +0 -35
- data/test/lib/facets/core/binding/test_self.rb +0 -34
- data/test/lib/facets/core/class/test_cattr.rb +0 -63
- data/test/lib/facets/core/class/test_descendents.rb +0 -30
- data/test/lib/facets/core/class/test_method_name.rb +0 -26
- data/test/lib/facets/core/class/test_remove_descendents.rb +0 -32
- data/test/lib/facets/core/class/test_unix_path.rb +0 -26
- data/test/lib/facets/core/comparable/test_at_least.rb +0 -34
- data/test/lib/facets/core/comparable/test_clip.rb +0 -44
- data/test/lib/facets/core/comparable/test_cmp.rb +0 -28
- data/test/lib/facets/core/continuation/self/test_create.rb +0 -26
- data/test/lib/facets/core/date/test_days_in_month.rb +0 -30
- data/test/lib/facets/core/date/test_days_of_month.rb +0 -30
- data/test/lib/facets/core/date/test_stamp.rb +0 -38
- data/test/lib/facets/core/date/test_to_date.rb +0 -30
- data/test/lib/facets/core/date/test_to_s.rb +0 -30
- data/test/lib/facets/core/date/test_to_time.rb +0 -30
- data/test/lib/facets/core/dir/self/test_ancestor.rb +0 -26
- data/test/lib/facets/core/dir/self/test_ascend.rb +0 -41
- data/test/lib/facets/core/enumerable/self/test_combinations.rb +0 -46
- data/test/lib/facets/core/enumerable/self/test_cross.rb +0 -31
- data/test/lib/facets/core/enumerable/test_collect_with_index.rb +0 -27
- data/test/lib/facets/core/enumerable/test_commonality.rb +0 -31
- data/test/lib/facets/core/enumerable/test_compact_collect.rb +0 -27
- data/test/lib/facets/core/enumerable/test_count.rb +0 -38
- data/test/lib/facets/core/enumerable/test_cross.rb +0 -30
- data/test/lib/facets/core/enumerable/test_each_by.rb +0 -71
- data/test/lib/facets/core/enumerable/test_each_combination.rb +0 -29
- data/test/lib/facets/core/enumerable/test_each_pair.rb +0 -29
- data/test/lib/facets/core/enumerable/test_each_slice.rb +0 -57
- data/test/lib/facets/core/enumerable/test_each_unique_pair.rb +0 -29
- data/test/lib/facets/core/enumerable/test_eachn.rb +0 -34
- data/test/lib/facets/core/enumerable/test_entropy.rb +0 -26
- data/test/lib/facets/core/enumerable/test_every.rb +0 -35
- data/test/lib/facets/core/enumerable/test_ew.rb +0 -31
- data/test/lib/facets/core/enumerable/test_filter_collect.rb +0 -31
- data/test/lib/facets/core/enumerable/test_find_collisions.rb +0 -30
- data/test/lib/facets/core/enumerable/test_frequency.rb +0 -27
- data/test/lib/facets/core/enumerable/test_graph.rb +0 -30
- data/test/lib/facets/core/enumerable/test_ideal_entropy.rb +0 -27
- data/test/lib/facets/core/enumerable/test_none.rb +0 -33
- data/test/lib/facets/core/enumerable/test_occur.rb +0 -30
- data/test/lib/facets/core/enumerable/test_one.rb +0 -35
- data/test/lib/facets/core/enumerable/test_op_pow.rb +0 -27
- data/test/lib/facets/core/enumerable/test_partition_by.rb +0 -31
- data/test/lib/facets/core/enumerable/test_permutation.rb +0 -29
- data/test/lib/facets/core/enumerable/test_permute.rb +0 -29
- data/test/lib/facets/core/enumerable/test_probability.rb +0 -27
- data/test/lib/facets/core/enumerable/test_to_h.rb +0 -27
- data/test/lib/facets/core/enumerable/test_uniq_by.rb +0 -28
- data/test/lib/facets/core/file/self/test_create.rb +0 -44
- data/test/lib/facets/core/file/self/test_open_as_string.rb +0 -50
- data/test/lib/facets/core/file/self/test_read_list.rb +0 -40
- data/test/lib/facets/core/file/self/test_sanitize.rb +0 -46
- data/test/lib/facets/core/file/self/test_split_all.rb +0 -27
- data/test/lib/facets/core/float/test_round_at.rb +0 -46
- data/test/lib/facets/core/float/test_round_to.rb +0 -46
- data/test/lib/facets/core/hash/self/test_zipnew.rb +0 -28
- data/test/lib/facets/core/hash/test_alias.rb +0 -31
- data/test/lib/facets/core/hash/test_assert_has_keys.rb +0 -27
- data/test/lib/facets/core/hash/test_assert_has_only_keys.rb +0 -27
- data/test/lib/facets/core/hash/test_at.rb +0 -28
- data/test/lib/facets/core/hash/test_collate.rb +0 -35
- data/test/lib/facets/core/hash/test_each_with_index.rb +0 -29
- data/test/lib/facets/core/hash/test_each_with_key.rb +0 -29
- data/test/lib/facets/core/hash/test_graph.rb +0 -28
- data/test/lib/facets/core/hash/test_has_keys.rb +0 -27
- data/test/lib/facets/core/hash/test_has_only_keys.rb +0 -27
- data/test/lib/facets/core/hash/test_inverse.rb +0 -30
- data/test/lib/facets/core/hash/test_normalize_keys.rb +0 -34
- data/test/lib/facets/core/hash/test_op_fetch.rb +0 -111
- data/test/lib/facets/core/hash/test_op_lshift.rb +0 -29
- data/test/lib/facets/core/hash/test_rand_key.rb +0 -27
- data/test/lib/facets/core/hash/test_rand_pair.rb +0 -27
- data/test/lib/facets/core/hash/test_rand_value.rb +0 -27
- data/test/lib/facets/core/hash/test_replace_each.rb +0 -29
- data/test/lib/facets/core/hash/test_shuffle.rb +0 -32
- data/test/lib/facets/core/hash/test_slice.rb +0 -27
- data/test/lib/facets/core/hash/test_stringify_keys.rb +0 -34
- data/test/lib/facets/core/hash/test_swap.rb +0 -27
- data/test/lib/facets/core/hash/test_swapkey.rb +0 -29
- data/test/lib/facets/core/hash/test_symbolize_keys.rb +0 -34
- data/test/lib/facets/core/hash/test_to_h.rb +0 -27
- data/test/lib/facets/core/hash/test_to_ostruct.rb +0 -30
- data/test/lib/facets/core/hash/test_to_ostruct_recurse.rb +0 -44
- data/test/lib/facets/core/hash/test_traverse.rb +0 -37
- data/test/lib/facets/core/hash/test_update_each.rb +0 -29
- data/test/lib/facets/core/hash/test_update_keys.rb +0 -28
- data/test/lib/facets/core/hash/test_update_values.rb +0 -28
- data/test/lib/facets/core/hash/test_weave.rb +0 -29
- data/test/lib/facets/core/integer/test_factorial.rb +0 -30
- data/test/lib/facets/core/integer/test_multiple.rb +0 -43
- data/test/lib/facets/core/integer/test_of.rb +0 -28
- data/test/lib/facets/core/integer/test_ordinal.rb +0 -29
- data/test/lib/facets/core/integer/test_times_collect.rb +0 -28
- data/test/lib/facets/core/kernel/test___class__.rb +0 -26
- data/test/lib/facets/core/kernel/test_as.rb +0 -42
- data/test/lib/facets/core/kernel/test_assign_from.rb +0 -31
- data/test/lib/facets/core/kernel/test_assign_with.rb +0 -31
- data/test/lib/facets/core/kernel/test_bool.rb +0 -41
- data/test/lib/facets/core/kernel/test_bug.rb +0 -26
- data/test/lib/facets/core/kernel/test_call_stack.rb +0 -26
- data/test/lib/facets/core/kernel/test_called.rb +0 -26
- data/test/lib/facets/core/kernel/test_callee.rb +0 -26
- data/test/lib/facets/core/kernel/test_constant.rb +0 -33
- data/test/lib/facets/core/kernel/test_copy.rb +0 -40
- data/test/lib/facets/core/kernel/test_deep_copy.rb +0 -40
- data/test/lib/facets/core/kernel/test_demo.rb +0 -28
- data/test/lib/facets/core/kernel/test_fn.rb +0 -26
- data/test/lib/facets/core/kernel/test_get_by_id.rb +0 -28
- data/test/lib/facets/core/kernel/test_here.rb +0 -26
- data/test/lib/facets/core/kernel/test_in.rb +0 -27
- data/test/lib/facets/core/kernel/test_instance_exec.rb +0 -52
- data/test/lib/facets/core/kernel/test_maybe.rb +0 -26
- data/test/lib/facets/core/kernel/test_metaclass.rb +0 -34
- data/test/lib/facets/core/kernel/test_method.rb +0 -32
- data/test/lib/facets/core/kernel/test_methods.rb +0 -50
- data/test/lib/facets/core/kernel/test_new.rb +0 -30
- data/test/lib/facets/core/kernel/test_object_class.rb +0 -26
- data/test/lib/facets/core/kernel/test_object_hexid.rb +0 -27
- data/test/lib/facets/core/kernel/test_quaclass.rb +0 -27
- data/test/lib/facets/core/kernel/test_require_all.rb +0 -26
- data/test/lib/facets/core/kernel/test_require_esc.rb +0 -27
- data/test/lib/facets/core/kernel/test_require_facet.rb +0 -27
- data/test/lib/facets/core/kernel/test_resc.rb +0 -27
- data/test/lib/facets/core/kernel/test_returning.rb +0 -30
- data/test/lib/facets/core/kernel/test_send_as.rb +0 -26
- data/test/lib/facets/core/kernel/test_set_from.rb +0 -33
- data/test/lib/facets/core/kernel/test_set_with.rb +0 -33
- data/test/lib/facets/core/kernel/test_silently.rb +0 -28
- data/test/lib/facets/core/kernel/test_singleton.rb +0 -40
- data/test/lib/facets/core/kernel/test_singleton_class.rb +0 -27
- data/test/lib/facets/core/kernel/test_superior.rb +0 -30
- data/test/lib/facets/core/kernel/test_supermethod.rb +0 -33
- data/test/lib/facets/core/kernel/test_this.rb +0 -26
- data/test/lib/facets/core/kernel/test_to_b.rb +0 -28
- data/test/lib/facets/core/kernel/test_to_bool.rb +0 -28
- data/test/lib/facets/core/kernel/test_to_data.rb +0 -59
- data/test/lib/facets/core/kernel/test_uri.rb +0 -30
- data/test/lib/facets/core/kernel/test_val.rb +0 -43
- data/test/lib/facets/core/kernel/test_with_accessor.rb +0 -51
- data/test/lib/facets/core/matchdata/test_match.rb +0 -29
- data/test/lib/facets/core/matchdata/test_matchtree.rb +0 -37
- data/test/lib/facets/core/module/self/test_op_add.rb +0 -48
- data/test/lib/facets/core/module/test_abstract.rb +0 -36
- data/test/lib/facets/core/module/test_alias_module_function.rb +0 -34
- data/test/lib/facets/core/module/test_ancestor.rb +0 -26
- data/test/lib/facets/core/module/test_basename.rb +0 -26
- data/test/lib/facets/core/module/test_by_name.rb +0 -29
- data/test/lib/facets/core/module/test_class_extension.rb +0 -70
- data/test/lib/facets/core/module/test_clone_using.rb +0 -55
- data/test/lib/facets/core/module/test_dirname.rb +0 -26
- data/test/lib/facets/core/module/test_equate_on.rb +0 -37
- data/test/lib/facets/core/module/test_include_as.rb +0 -35
- data/test/lib/facets/core/module/test_initializer.rb +0 -32
- data/test/lib/facets/core/module/test_instance_methods.rb +0 -59
- data/test/lib/facets/core/module/test_integrate.rb +0 -35
- data/test/lib/facets/core/module/test_memoize.rb +0 -50
- data/test/lib/facets/core/module/test_modspace.rb +0 -27
- data/test/lib/facets/core/module/test_namespace.rb +0 -33
- data/test/lib/facets/core/module/test_nesting.rb +0 -36
- data/test/lib/facets/core/module/test_nodef.rb +0 -30
- data/test/lib/facets/core/module/test_on_included.rb +0 -36
- data/test/lib/facets/core/module/test_redef.rb +0 -30
- data/test/lib/facets/core/module/test_redefine_method.rb +0 -30
- data/test/lib/facets/core/module/test_redirect.rb +0 -30
- data/test/lib/facets/core/module/test_redirect_method.rb +0 -30
- data/test/lib/facets/core/module/test_remove.rb +0 -30
- data/test/lib/facets/core/module/test_rename.rb +0 -31
- data/test/lib/facets/core/module/test_rename_method.rb +0 -31
- data/test/lib/facets/core/module/test_revisal.rb +0 -35
- data/test/lib/facets/core/module/test_shadow_method.rb +0 -30
- data/test/lib/facets/core/module/test_sort_on.rb +0 -42
- data/test/lib/facets/core/module/test_this.rb +0 -31
- data/test/lib/facets/core/module/test_wrap.rb +0 -30
- data/test/lib/facets/core/module/test_wrap_method.rb +0 -30
- data/test/lib/facets/core/nilclass/test_blank.rb +0 -26
- data/test/lib/facets/core/nilclass/test_empty.rb +0 -26
- data/test/lib/facets/core/nilclass/test_include.rb +0 -26
- data/test/lib/facets/core/nilclass/test_op_fetch.rb +0 -28
- data/test/lib/facets/core/nilclass/test_size.rb +0 -30
- data/test/lib/facets/core/nilclass/test_to_h.rb +0 -26
- data/test/lib/facets/core/numeric/test_approx.rb +0 -29
- data/test/lib/facets/core/numeric/test_ceil_multiple.rb +0 -31
- data/test/lib/facets/core/numeric/test_distance.rb +0 -28
- data/test/lib/facets/core/numeric/test_succ.rb +0 -40
- data/test/lib/facets/core/numeric/test_to_b.rb +0 -27
- data/test/lib/facets/core/ostruct/test___merge__.rb +0 -38
- data/test/lib/facets/core/ostruct/test___update__.rb +0 -29
- data/test/lib/facets/core/ostruct/test_op_fetch.rb +0 -27
- data/test/lib/facets/core/ostruct/test_op_store.rb +0 -28
- data/test/lib/facets/core/proc/test_compose.rb +0 -29
- data/test/lib/facets/core/proc/test_op_mul.rb +0 -34
- data/test/lib/facets/core/proc/test_to_method.rb +0 -44
- data/test/lib/facets/core/range/test_to_r.rb +0 -27
- data/test/lib/facets/core/range/test_to_range.rb +0 -27
- data/test/lib/facets/core/range/test_umbrella.rb +0 -34
- data/test/lib/facets/core/range/test_within.rb +0 -29
- data/test/lib/facets/core/regexp/test_arity.rb +0 -33
- data/test/lib/facets/core/regexp/test_to_re.rb +0 -27
- data/test/lib/facets/core/regexp/test_to_regexp.rb +0 -27
- data/test/lib/facets/core/string/self/test_interpolate.rb +0 -27
- data/test/lib/facets/core/string/self/test_patterns.rb +0 -28
- data/test/lib/facets/core/string/self/test_rand_letter.rb +0 -26
- data/test/lib/facets/core/string/test_align_center.rb +0 -34
- data/test/lib/facets/core/string/test_at_rand.rb +0 -35
- data/test/lib/facets/core/string/test_basename.rb +0 -41
- data/test/lib/facets/core/string/test_blank.rb +0 -27
- data/test/lib/facets/core/string/test_bracket.rb +0 -49
- data/test/lib/facets/core/string/test_camelcase.rb +0 -39
- data/test/lib/facets/core/string/test_camelize.rb +0 -26
- data/test/lib/facets/core/string/test_capitalized.rb +0 -26
- data/test/lib/facets/core/string/test_chars.rb +0 -27
- data/test/lib/facets/core/string/test_cmp.rb +0 -30
- data/test/lib/facets/core/string/test_demodulize.rb +0 -38
- data/test/lib/facets/core/string/test_divide.rb +0 -29
- data/test/lib/facets/core/string/test_downcase.rb +0 -26
- data/test/lib/facets/core/string/test_dresner.rb +0 -32
- data/test/lib/facets/core/string/test_each_char.rb +0 -29
- data/test/lib/facets/core/string/test_each_word.rb +0 -29
- data/test/lib/facets/core/string/test_first.rb +0 -43
- data/test/lib/facets/core/string/test_fold.rb +0 -34
- data/test/lib/facets/core/string/test_humanize.rb +0 -26
- data/test/lib/facets/core/string/test_indent.rb +0 -40
- data/test/lib/facets/core/string/test_index_all.rb +0 -26
- data/test/lib/facets/core/string/test_last.rb +0 -46
- data/test/lib/facets/core/string/test_line_wrap.rb +0 -27
- data/test/lib/facets/core/string/test_lines.rb +0 -26
- data/test/lib/facets/core/string/test_lowercase.rb +0 -26
- data/test/lib/facets/core/string/test_margin.rb +0 -117
- data/test/lib/facets/core/string/test_methodize.rb +0 -27
- data/test/lib/facets/core/string/test_modulize.rb +0 -29
- data/test/lib/facets/core/string/test_mscan.rb +0 -30
- data/test/lib/facets/core/string/test_natcmp.rb +0 -30
- data/test/lib/facets/core/string/test_nchar.rb +0 -29
- data/test/lib/facets/core/string/test_pathize.rb +0 -29
- data/test/lib/facets/core/string/test_pop.rb +0 -47
- data/test/lib/facets/core/string/test_pot.rb +0 -39
- data/test/lib/facets/core/string/test_push.rb +0 -40
- data/test/lib/facets/core/string/test_quote.rb +0 -49
- data/test/lib/facets/core/string/test_rand_byte.rb +0 -35
- data/test/lib/facets/core/string/test_rand_index.rb +0 -26
- data/test/lib/facets/core/string/test_range.rb +0 -27
- data/test/lib/facets/core/string/test_range_all.rb +0 -27
- data/test/lib/facets/core/string/test_range_of_line.rb +0 -28
- data/test/lib/facets/core/string/test_regesc.rb +0 -28
- data/test/lib/facets/core/string/test_shatter.rb +0 -29
- data/test/lib/facets/core/string/test_shift.rb +0 -40
- data/test/lib/facets/core/string/test_shuffle.rb +0 -27
- data/test/lib/facets/core/string/test_similarity.rb +0 -26
- data/test/lib/facets/core/string/test_singular.rb +0 -86
- data/test/lib/facets/core/string/test_soundex.rb +0 -41
- data/test/lib/facets/core/string/test_succ.rb +0 -29
- data/test/lib/facets/core/string/test_to_a.rb +0 -27
- data/test/lib/facets/core/string/test_to_b.rb +0 -41
- data/test/lib/facets/core/string/test_to_const.rb +0 -28
- data/test/lib/facets/core/string/test_to_date.rb +0 -30
- data/test/lib/facets/core/string/test_to_proc.rb +0 -33
- data/test/lib/facets/core/string/test_to_re.rb +0 -28
- data/test/lib/facets/core/string/test_to_time.rb +0 -30
- data/test/lib/facets/core/string/test_unix_crypt.rb +0 -30
- data/test/lib/facets/core/string/test_unpack.rb +0 -34
- data/test/lib/facets/core/string/test_unshift.rb +0 -39
- data/test/lib/facets/core/string/test_upcase.rb +0 -30
- data/test/lib/facets/core/string/test_whitespace.rb +0 -27
- data/test/lib/facets/core/string/test_word_filter.rb +0 -34
- data/test/lib/facets/core/string/test_word_wrap.rb +0 -51
- data/test/lib/facets/core/string/test_words.rb +0 -37
- data/test/lib/facets/core/symbol/test_camelcase.rb +0 -26
- data/test/lib/facets/core/symbol/test_camelize.rb +0 -27
- data/test/lib/facets/core/symbol/test_capitalize.rb +0 -26
- data/test/lib/facets/core/symbol/test_capitalized.rb +0 -27
- data/test/lib/facets/core/symbol/test_downcase.rb +0 -27
- data/test/lib/facets/core/symbol/test_not.rb +0 -29
- data/test/lib/facets/core/symbol/test_pad.rb +0 -27
- data/test/lib/facets/core/symbol/test_succ.rb +0 -28
- data/test/lib/facets/core/symbol/test_to_const.rb +0 -28
- data/test/lib/facets/core/symbol/test_to_proc.rb +0 -33
- data/test/lib/facets/core/symbol/test_to_str.rb +0 -28
- data/test/lib/facets/core/symbol/test_underscore.rb +0 -26
- data/test/lib/facets/core/symbol/test_upcase.rb +0 -27
- data/test/lib/facets/core/time/test_change.rb +0 -33
- data/test/lib/facets/core/time/test_elapse.rb +0 -27
- data/test/lib/facets/core/time/test_stamp.rb +0 -31
- data/test/lib/facets/core/time/test_to_date.rb +0 -31
- data/test/lib/facets/core/time/test_to_s.rb +0 -31
- data/test/lib/facets/core/time/test_to_time.rb +0 -31
- data/test/lib/facets/more/test_annattr.rb +0 -39
- data/test/lib/facets/more/test_ansicode.rb +0 -36
- data/test/lib/facets/more/test_association.rb +0 -51
- data/test/lib/facets/more/test_autoarray.rb +0 -32
- data/test/lib/facets/more/test_basicobject.rb +0 -67
- data/test/lib/facets/more/test_bbcode.rb +0 -34
- data/test/lib/facets/more/test_binaryreader.rb +0 -64
- data/test/lib/facets/more/test_bitmask.rb +0 -47
- data/test/lib/facets/more/test_bytes.rb +0 -84
- data/test/lib/facets/more/test_classmethods.rb +0 -69
- data/test/lib/facets/more/test_command.rb +0 -38
- data/test/lib/facets/more/test_coroutine.rb +0 -60
- data/test/lib/facets/more/test_crypt.rb +0 -46
- data/test/lib/facets/more/test_cut.rb +0 -198
- data/test/lib/facets/more/test_dictionary.rb +0 -97
- data/test/lib/facets/more/test_elementor.rb +0 -52
- data/test/lib/facets/more/test_enumerablepass.rb +0 -86
- data/test/lib/facets/more/test_floatstring.rb +0 -36
- data/test/lib/facets/more/test_functor.rb +0 -39
- data/test/lib/facets/more/test_htmlbuilder.rb +0 -38
- data/test/lib/facets/more/test_infinity.rb +0 -50
- data/test/lib/facets/more/test_inheritor.rb +0 -155
- data/test/lib/facets/more/test_instance_intercept.rb +0 -50
- data/test/lib/facets/more/test_interval.rb +0 -119
- data/test/lib/facets/more/test_json.rb +0 -232
- data/test/lib/facets/more/test_linkedlist.rb +0 -53
- data/test/lib/facets/more/test_lisp.rb +0 -47
- data/test/lib/facets/more/test_lisp_format.rb +0 -37
- data/test/lib/facets/more/test_lrucache.rb +0 -25
- data/test/lib/facets/more/test_mathconstants.rb +0 -18
- data/test/lib/facets/more/test_methodfilter.rb +0 -45
- data/test/lib/facets/more/test_methodprobe.rb +0 -53
- data/test/lib/facets/more/test_multipliers.rb +0 -114
- data/test/lib/facets/more/test_multiton.rb +0 -199
- data/test/lib/facets/more/test_nackclass.rb +0 -45
- data/test/lib/facets/more/test_nilcomparable.rb +0 -47
- data/test/lib/facets/more/test_opencascade.rb +0 -75
- data/test/lib/facets/more/test_openobject.rb +0 -126
- data/test/lib/facets/more/test_overload.rb +0 -54
- data/test/lib/facets/more/test_paramix.rb +0 -100
- data/test/lib/facets/more/test_pqueue.rb +0 -39
- data/test/lib/facets/more/test_predicate.rb +0 -79
- data/test/lib/facets/more/test_preinitialize.rb +0 -49
- data/test/lib/facets/more/test_promoteself.rb +0 -45
- data/test/lib/facets/more/test_recorder.rb +0 -44
- data/test/lib/facets/more/test_snapshot.rb +0 -34
- data/test/lib/facets/more/test_statichash.rb +0 -31
- data/test/lib/facets/more/test_syncarray.rb +0 -28
- data/test/lib/facets/more/test_synchash.rb +0 -28
- data/test/lib/facets/more/test_tagiterator.rb +0 -93
- data/test/lib/facets/more/test_taskable.rb +0 -190
- data/test/lib/facets/more/test_timer.rb +0 -66
- data/test/lib/facets/more/test_times.rb +0 -73
- data/test/lib/facets/more/test_tuple.rb +0 -64
- data/test/lib/facets/more/test_typecast.rb +0 -68
- data/test/lib/facets/more/test_uninheritable.rb +0 -42
- data/test/lib/facets/more/test_units.rb +0 -111
- data/test/lib/facets/more/test_xmlbuilder.rb +0 -38
- data/test/lib/facets/more/test_xmlhelper.rb +0 -40
- data/test/lib/facets/more/test_xoxo.rb +0 -288
- data/test/lib/facets/more/test_yamlstruct.rb +0 -37
- data/util/announce +0 -20
- data/util/changelog +0 -8
- data/util/count +0 -8
- data/util/extest +0 -8
- data/util/list +0 -38
- data/util/package +0 -9
- data/util/prepare +0 -12
- data/util/redirect +0 -34
- data/util/release +0 -13
- data/util/setup +0 -7
- data/util/test +0 -7
- data/util/version +0 -8
@@ -0,0 +1,207 @@
|
|
1
|
+
# = uploadutils.rb
|
2
|
+
#
|
3
|
+
# TODO Incorporate password into scp and ftp.
|
4
|
+
|
5
|
+
require 'openssl'
|
6
|
+
require 'shellwords'
|
7
|
+
require 'tmpdir'
|
8
|
+
#require 'net/smtp'
|
9
|
+
|
10
|
+
# <b>UPLOAD FILES TO A HOST</b>
|
11
|
+
#
|
12
|
+
# Upload files to host. These means of uploading are current
|
13
|
+
# supported: ftp, sftp, scp and rsync.
|
14
|
+
#
|
15
|
+
# user Username for host.
|
16
|
+
# host Host server's domain name.
|
17
|
+
# root Document root path on host.
|
18
|
+
# copy Directory of files to publish, or
|
19
|
+
# Files to publish using from and to.
|
20
|
+
#
|
21
|
+
# dryrun If true only pretend to upload.
|
22
|
+
# quiet Supress all output.
|
23
|
+
# verbose Provide extra details.
|
24
|
+
#
|
25
|
+
# The copy parameter allows you to simply specify a file
|
26
|
+
# or directory which will be published to host's document
|
27
|
+
# root location.
|
28
|
+
#
|
29
|
+
# If you need more control over which files to publish
|
30
|
+
# where, you can use the copy parameter instead. Provide
|
31
|
+
# an array of pattern strings in the form of "{from} {to}".
|
32
|
+
# If the desitination is the host's document root you do
|
33
|
+
# not need to specify the {to} part. For example:
|
34
|
+
#
|
35
|
+
# copy = [ 'web/*', 'doc/api/* doc/api' ]
|
36
|
+
#
|
37
|
+
# The first copies the files under your project's web directory
|
38
|
+
# to the host's document root. The second copies your projects
|
39
|
+
# doc/api files to the doc/api location on the host.
|
40
|
+
#
|
41
|
+
# The internal template used for the outbound destination
|
42
|
+
# is 'username@host:root/'.
|
43
|
+
|
44
|
+
module UploadUtils
|
45
|
+
|
46
|
+
module_function
|
47
|
+
#--
|
48
|
+
# SHELLS OUT! Need net/scp library to fix.
|
49
|
+
#++
|
50
|
+
|
51
|
+
# Use scp to upload files.
|
52
|
+
|
53
|
+
def scp( keys )
|
54
|
+
keys = upload_parameters(keys)
|
55
|
+
|
56
|
+
flags = []
|
57
|
+
flags << "-v" if keys.verbose
|
58
|
+
flags << "-q" if keys.quiet
|
59
|
+
flags = flags.join(' ').strip
|
60
|
+
flags = ' ' + flags unless flags.empty?
|
61
|
+
|
62
|
+
upload_stage(keys) do #|tmpdir|
|
63
|
+
cmd = "scp -r#{flags} * #{keys.user}@#{keys.host}:/#{keys.root}"
|
64
|
+
puts cmd unless keys.quiet
|
65
|
+
system cmd unless keys.dryrun
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# Use rsync to upload files.
|
70
|
+
|
71
|
+
def rsync( keys )
|
72
|
+
keys = upload_parameters(keys)
|
73
|
+
|
74
|
+
flags = []
|
75
|
+
flags << "-n" if keys.dryrun
|
76
|
+
flags << "-v" if keys.verbose
|
77
|
+
flags << "-q" if keys.quiet
|
78
|
+
flags = flags.join(' ').strip
|
79
|
+
flags = ' ' + flags unless flags.empty?
|
80
|
+
|
81
|
+
upload_stage(keys) do #|tmpdir|
|
82
|
+
begin
|
83
|
+
ENV['RSYNC_PASSWORD'] = keys.pass if keys.pass
|
84
|
+
cmd = "rsync -R#{flags} -arz * #{keys.user}@#{keys.host} /#{keys.root}"
|
85
|
+
ensure
|
86
|
+
ENV.delete('RSYNC_PASSWORD') if keys.pass
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# Use ftp to upload files.
|
92
|
+
|
93
|
+
def ftp( keys )
|
94
|
+
keys = upload_parameters(keys)
|
95
|
+
|
96
|
+
if keys.dryrun
|
97
|
+
puts "ftp open #{keys.user}@#{keys.host}:#{keys.root}/"
|
98
|
+
keys.trans.each do |f, t|
|
99
|
+
puts "ftp put #{f} #{t}"
|
100
|
+
end
|
101
|
+
else
|
102
|
+
require 'net/ftp'
|
103
|
+
Net::FTP.open(keys.host) do |ftp|
|
104
|
+
ftp.login(keys.user) #password?
|
105
|
+
ftp.chdir(keys.root)
|
106
|
+
keys.trans.each do |f, t|
|
107
|
+
puts "ftp #{f} #{t}" unless keys.quiet
|
108
|
+
ftp.putbinaryfile( f, t, 1024 )
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
# Use sftp to upload files.
|
115
|
+
|
116
|
+
def sftp( keys )
|
117
|
+
keys = upload_parameters(keys)
|
118
|
+
|
119
|
+
if keys.dryrun
|
120
|
+
puts "sftp open #{keys.user}@#{keys.host}:#{keys.root}/"
|
121
|
+
keys.trans.each do |f,t|
|
122
|
+
puts "sftp put #{f} #{t}"
|
123
|
+
end
|
124
|
+
else
|
125
|
+
require 'net/sftp'
|
126
|
+
Net::SFTP.start(keys.host, keys.user, keys.pass) do |sftp|
|
127
|
+
#sftp.login( user )
|
128
|
+
sftp.chdir(keys.root)
|
129
|
+
keys.trans.each do |f,t|
|
130
|
+
puts "sftp #{f} #{t}" unless keys.quiet
|
131
|
+
sftp.put_file(f,t) #, 1024 )
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
# private (can't do b/c of module_function)
|
138
|
+
|
139
|
+
# parse publishing options.
|
140
|
+
|
141
|
+
def upload_parameters( keys )
|
142
|
+
keys = OpenHash.new(keys)
|
143
|
+
|
144
|
+
keys.copy = keys.copy || '**/*'
|
145
|
+
keys.host = keys.host || keys.domain
|
146
|
+
keys.user = keys.user || keys.username
|
147
|
+
keys.pass = keys.pass || keys.password
|
148
|
+
|
149
|
+
# validate
|
150
|
+
raise ArgumentError, "missing publish parameter -- host" unless keys.host
|
151
|
+
raise ArgumentError, "missing publish parameter -- user" unless keys.user
|
152
|
+
raise ArgumentError, "missing publish parameter -- copy" unless keys.copy
|
153
|
+
raise ArgumentError, "missing publish parameter -- root" unless keys.root
|
154
|
+
|
155
|
+
keys.root = '' if keys.root.nil?
|
156
|
+
keys.root = keys.root[1..-1] if keys.root[0,1] == '/'
|
157
|
+
|
158
|
+
if String===keys.copy and File.directory?(keys.copy)
|
159
|
+
copy = File.join(keys.copy, '*')
|
160
|
+
end
|
161
|
+
keys.copy = [keys.copy].flatten.compact
|
162
|
+
|
163
|
+
trans = []
|
164
|
+
keys.copy.each do |from|
|
165
|
+
#from, to = *Shellwords.shellwords(c)
|
166
|
+
#to = from if to.nil?
|
167
|
+
#to = to[1..-1] if to[0,1] == '/'
|
168
|
+
from.sub('*','**/*') unless from =~ /\*\*/
|
169
|
+
files = Dir.glob(from)
|
170
|
+
files.each do |f|
|
171
|
+
#t = File.join(to,File.basename(f))
|
172
|
+
#t = t[1..-1] if t[0,1] == '/'
|
173
|
+
trans << [f,f]
|
174
|
+
end
|
175
|
+
end
|
176
|
+
keys.trans = trans
|
177
|
+
|
178
|
+
return keys
|
179
|
+
end
|
180
|
+
|
181
|
+
# Creates a stage from which the whole directory can be uploaded.
|
182
|
+
# This is needed for scp and rsync which have to shelled out,
|
183
|
+
# and can't conveniently copy one file at a time.
|
184
|
+
|
185
|
+
def upload_stage(keys) #:yield:
|
186
|
+
tmp = "scp_#{object_id.abs}_#{ Time.now.strftime("%Y%m%d%H%M%S")}"
|
187
|
+
tmpdir = File.join(Dir.tmpdir,tmp)
|
188
|
+
|
189
|
+
puts "mkdir -p #{tmpdir}" unless keys.quiet
|
190
|
+
FileUtils.mkdir_p(tmpdir) # go ahead and do this even if dryrun
|
191
|
+
|
192
|
+
fu = keys.dryrun ? FileUtils::DryRun : FileUtils
|
193
|
+
keys.trans.each do |f, t|
|
194
|
+
to = File.join(tmpdir, t)
|
195
|
+
fu.mv(f,to)
|
196
|
+
end
|
197
|
+
|
198
|
+
puts "cd #{tmpdir}" unless keys.quiet
|
199
|
+
Dir.chdir(tmpdir) do
|
200
|
+
yield #(tmpdir)
|
201
|
+
end
|
202
|
+
|
203
|
+
puts "rm -r #{tmpdir}" unless keys.quiet
|
204
|
+
FileUtils.rm_r(tmpdir) # now remove the temp dir
|
205
|
+
end
|
206
|
+
|
207
|
+
end
|
@@ -0,0 +1,98 @@
|
|
1
|
+
##
|
2
|
+
# VersionNumber is a simplified form of a Tuple class
|
3
|
+
# desgined specifically for dealing with version numbers.
|
4
|
+
#--
|
5
|
+
# TODO Maybe add Kernel method #version ?
|
6
|
+
#
|
7
|
+
# TODO If Tuple were standard part of Ruby this probably would
|
8
|
+
# not be needed or at least might be simple sublcass instead.
|
9
|
+
#++
|
10
|
+
|
11
|
+
class VersionNumber #< Tuple
|
12
|
+
|
13
|
+
#include Enumerable
|
14
|
+
include Comparable
|
15
|
+
|
16
|
+
def initialize( *args )
|
17
|
+
args = args.join('.').split(/\W+/)
|
18
|
+
@self = args.collect { |i| i.to_i }
|
19
|
+
end
|
20
|
+
|
21
|
+
def to_s ; @self.join('.') ; end
|
22
|
+
|
23
|
+
# This is here only becuase File.join calls it instead of to_s.
|
24
|
+
|
25
|
+
def to_str ; @self.join('.') ; end
|
26
|
+
|
27
|
+
def inspect
|
28
|
+
@self.to_s
|
29
|
+
end
|
30
|
+
|
31
|
+
def [](i)
|
32
|
+
@self.fetch(i,0)
|
33
|
+
end
|
34
|
+
|
35
|
+
# "Spaceship" comparsion operator.
|
36
|
+
|
37
|
+
def <=>( other )
|
38
|
+
#other = other.to_t
|
39
|
+
[@self.size, other.size].max.times do |i|
|
40
|
+
c = @self[i] <=> other[i]
|
41
|
+
return c if c != 0
|
42
|
+
end
|
43
|
+
0
|
44
|
+
end
|
45
|
+
|
46
|
+
# For pessimistic constraint (like '~>' in gems)
|
47
|
+
|
48
|
+
def =~( other )
|
49
|
+
#other = other.to_t
|
50
|
+
upver = other.dup
|
51
|
+
upver[0] += 1
|
52
|
+
@self >= other and @self < upver
|
53
|
+
end
|
54
|
+
|
55
|
+
# Major is the first number in the version series.
|
56
|
+
|
57
|
+
def major ; @self[0] ; end
|
58
|
+
|
59
|
+
# Minor is the second number in the version series.
|
60
|
+
|
61
|
+
def minor ; @self[1] || 0 ; end
|
62
|
+
|
63
|
+
# Teeny is third number in the version series.
|
64
|
+
|
65
|
+
def teeny ; @self[2] || 0 ; end
|
66
|
+
|
67
|
+
# Delegate to the array.
|
68
|
+
|
69
|
+
def method_missing( sym, *args, &blk )
|
70
|
+
@self.send(sym, *args, &blk ) rescue super
|
71
|
+
end
|
72
|
+
|
73
|
+
# Parses a string constraint returning the operation as a lambda.
|
74
|
+
|
75
|
+
def self.constraint_lambda( constraint )
|
76
|
+
op, val = *parse_constraint( constraint )
|
77
|
+
lambda { |t| t.send(op, val) }
|
78
|
+
end
|
79
|
+
|
80
|
+
def self.parse_constraint( constraint )
|
81
|
+
constraint = constraint.strip
|
82
|
+
re = %r{^(=~|~>|<=|>=|==|=|<|>)?\s*(\d+(:?[-.]\d+)*)$}
|
83
|
+
if md = re.match( constraint )
|
84
|
+
if op = md[1]
|
85
|
+
op = '=~' if op == '~>'
|
86
|
+
op = '==' if op == '='
|
87
|
+
val = new( *md[2].split(/\W+/) )
|
88
|
+
else
|
89
|
+
op = '=='
|
90
|
+
val = new( *constraint.split(/\W+/) )
|
91
|
+
end
|
92
|
+
else
|
93
|
+
raise ArgumentError, "invalid constraint"
|
94
|
+
end
|
95
|
+
return op, val
|
96
|
+
end
|
97
|
+
|
98
|
+
end
|
@@ -19,7 +19,7 @@
|
|
19
19
|
# Copyright:: Copyright (c) 2006 Thomas Sawyer
|
20
20
|
# License:: Ruby License
|
21
21
|
|
22
|
-
require 'facets/more/
|
22
|
+
require 'facets/more/buildingblock.rb'
|
23
23
|
require 'facets/more/xmlhelper.rb'
|
24
24
|
|
25
25
|
# = XMLBuilder
|
@@ -28,33 +28,22 @@ require 'facets/more/xmlhelper.rb'
|
|
28
28
|
# constructed via Ruby method calls and block structures. XMLBuilder is
|
29
29
|
# a subclass of BuilderObject --see BuilderObject for more details.
|
30
30
|
|
31
|
-
class XMLBuilder <
|
31
|
+
class XMLBuilder < BuildingBlock
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
def method_missing( op, *args, &block )
|
36
|
-
if block_given?
|
37
|
-
@stack << @buffer
|
38
|
-
@buffer = ''
|
39
|
-
body = block.call
|
40
|
-
@buffer = @stack.pop
|
41
|
-
@buffer << builder.element( op, body, *args )
|
42
|
-
else
|
43
|
-
@buffer << builder.element( op, *args )
|
44
|
-
end
|
33
|
+
def initialize
|
34
|
+
super(XMLHelper, :element)
|
45
35
|
end
|
46
36
|
|
47
37
|
end
|
48
38
|
|
49
39
|
|
50
|
-
|
51
40
|
# _____ _
|
52
41
|
# |_ _|__ ___| |_
|
53
42
|
# | |/ _ \/ __| __|
|
54
43
|
# | | __/\__ \ |_
|
55
44
|
# |_|\___||___/\__|
|
56
45
|
#
|
57
|
-
=begin test
|
46
|
+
=begin test
|
58
47
|
|
59
48
|
require 'test/unit'
|
60
49
|
|
@@ -63,12 +52,12 @@ end
|
|
63
52
|
def test_01
|
64
53
|
x = XMLBuilder.new
|
65
54
|
doc = x.html {
|
66
|
-
|
67
|
-
|
55
|
+
head {
|
56
|
+
title "Test"
|
68
57
|
}
|
69
|
-
|
70
|
-
|
71
|
-
|
58
|
+
body {
|
59
|
+
p "Hello"
|
60
|
+
_text "Test"
|
72
61
|
}
|
73
62
|
}
|
74
63
|
r = "<html><head><title>Test</title></head><body><p>Hello</p>Test</body></html>"
|
@@ -76,6 +65,22 @@ end
|
|
76
65
|
assert_equal( r, x.to_s )
|
77
66
|
end
|
78
67
|
|
68
|
+
#def tes_explicit
|
69
|
+
# x = XMLBuilder.new(true)
|
70
|
+
# doc = x.html {
|
71
|
+
# x.head {
|
72
|
+
# x.title "Test"
|
73
|
+
# }
|
74
|
+
# x.body {
|
75
|
+
# x.p "Hello"
|
76
|
+
# x << text("Test")
|
77
|
+
# }
|
78
|
+
# }
|
79
|
+
# r = "<html><head><title>Test</title></head><body><p>Hello</p>Test</body></html>"
|
80
|
+
# assert_equal( r, doc )
|
81
|
+
# assert_equal( r, x.to_s )
|
82
|
+
#end
|
83
|
+
|
79
84
|
end
|
80
85
|
|
81
86
|
=end
|
data/lib/facets/sys.rb
ADDED
@@ -0,0 +1,212 @@
|
|
1
|
+
#--
|
2
|
+
# Facets System
|
3
|
+
# Copyright (c) Thomas Sawyer
|
4
|
+
#
|
5
|
+
# Ruby License
|
6
|
+
#
|
7
|
+
# This module is free software. You may use, modify, and/or redistribute this
|
8
|
+
# software under the same terms as Ruby.
|
9
|
+
#
|
10
|
+
# This program is distributed in the hope that it will be useful, but WITHOUT
|
11
|
+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
12
|
+
# FOR A PARTICULAR PURPOSE.
|
13
|
+
#++
|
14
|
+
|
15
|
+
# Author:: Thomas Sawyer
|
16
|
+
# Copyright:: Copyright (c) 2005 Thomas Sawyer
|
17
|
+
# License:: Ruby License
|
18
|
+
|
19
|
+
# = Facets System
|
20
|
+
#
|
21
|
+
# This is a central "meta" controller for the Facets system.
|
22
|
+
# It can be used to dynmically gleen information about Facets.
|
23
|
+
# Or used to load a facet give the symbol of the actual method.
|
24
|
+
#
|
25
|
+
# == Synopsis
|
26
|
+
#
|
27
|
+
# TODO
|
28
|
+
#
|
29
|
+
|
30
|
+
module Facets
|
31
|
+
|
32
|
+
extend self
|
33
|
+
|
34
|
+
OPERATORS = %w{ +@ -@ + - ** * / % ~ <=> << >> < > === == =~ <= >= | & ^ []= [] }
|
35
|
+
OPERATORS_REGEXP = Regexp.new( '(' << OPERATORS.collect{ |k| Regexp.escape(k) }.join('|') << ')' )
|
36
|
+
OPERATORS_ESCAPE = {
|
37
|
+
"+@" => "op_plus_self",
|
38
|
+
"-@" => "op_minus_self",
|
39
|
+
"+" => "op_plus",
|
40
|
+
"-" => "op_minus",
|
41
|
+
"**" => "op_pow",
|
42
|
+
"*" => "op_mul",
|
43
|
+
"/" => "op_div",
|
44
|
+
"%" => "op_mod",
|
45
|
+
"~" => "op_tilde",
|
46
|
+
"<=>" => "op_cmp",
|
47
|
+
"<<" => "op_lshift",
|
48
|
+
">>" => "op_rshift",
|
49
|
+
"<" => "op_lt",
|
50
|
+
">" => "op_gt",
|
51
|
+
"===" => "op_case_eq",
|
52
|
+
"==" => "op_equal",
|
53
|
+
"=~" => "op_apply",
|
54
|
+
"<=" => "op_lt_eq",
|
55
|
+
">=" => "op_gt_eq",
|
56
|
+
"|" => "op_or",
|
57
|
+
"&" => "op_and",
|
58
|
+
"^" => "op_xor",
|
59
|
+
"[]=" => "op_store",
|
60
|
+
"[]" => "op_fetch"
|
61
|
+
}
|
62
|
+
|
63
|
+
CLASS_ANCESTORS = {
|
64
|
+
'array' => ['enumerable','kernel'],
|
65
|
+
'binding' => ['kernel'],
|
66
|
+
'class' => ['module','kernel'],
|
67
|
+
'comparable' => ['kernel'],
|
68
|
+
'continuation' => ['kernel'],
|
69
|
+
'date' => ['comparable','kernel'],
|
70
|
+
'dir' => ['enumerable','kernel'],
|
71
|
+
'enumerable' => ['kernel'],
|
72
|
+
'file' => ['io','enumerable','kernel'],
|
73
|
+
'fileutils' => ['kernel'],
|
74
|
+
'float' => ['precision','numeric','comparable','kernel'],
|
75
|
+
'hash' => ['enumerable','kernel'],
|
76
|
+
'integer' => ['precision','numeric','comparable','kernel'],
|
77
|
+
'kernel' => ['kernel'],
|
78
|
+
'logger' => ['kernel'],
|
79
|
+
'matchdata' => ['kernel'],
|
80
|
+
'module' => ['kernel'],
|
81
|
+
'nilclass' => ['kernel'],
|
82
|
+
'numeric' => ['comparable','kernel'],
|
83
|
+
'ostruct' => ['kernel'],
|
84
|
+
'pathname' => ['kernel'],
|
85
|
+
'proc' => ['kernel'],
|
86
|
+
'range' => ['enumerable','kernel'],
|
87
|
+
'regexp' => ['kernel'],
|
88
|
+
'string' => ['enumerable','comparable','kernel'],
|
89
|
+
'symbol' => ['kernel'],
|
90
|
+
'time' => ['comparable','kernel'],
|
91
|
+
'unboundmethod' => ['kernel'],
|
92
|
+
}
|
93
|
+
|
94
|
+
NOAUTO = %w{
|
95
|
+
array/op_fetch.rb
|
96
|
+
array/op_store.rb
|
97
|
+
binding/self/of_caller.rb
|
98
|
+
hash/op_fetch.rb
|
99
|
+
hash/op_store.rb
|
100
|
+
numeric/succ.rb
|
101
|
+
numeric/pred.rb
|
102
|
+
string/succ.rb
|
103
|
+
string/unpack.rb
|
104
|
+
module/attr.rb
|
105
|
+
hash/each.rb
|
106
|
+
module/methods.rb
|
107
|
+
object/method.rb
|
108
|
+
nilclass/op_fetch.rb
|
109
|
+
nilclass/empty.rb
|
110
|
+
nilclass/include.rb
|
111
|
+
nilclass/size.rb
|
112
|
+
nilclass/length.rb
|
113
|
+
nilclass/method_missing.rb
|
114
|
+
date/*
|
115
|
+
fileutils/*
|
116
|
+
ostruct/*
|
117
|
+
logger/*
|
118
|
+
gem/*
|
119
|
+
}
|
120
|
+
|
121
|
+
METHDIR = "facet"
|
122
|
+
|
123
|
+
def op_esc( str )
|
124
|
+
str = str.to_s.chomp('.rb')
|
125
|
+
str = str.strip.gsub(OPERATORS_REGEXP){ OPERATORS_ESCAPE[$1] }
|
126
|
+
str.chomp('?').chomp('!').chomp('=')
|
127
|
+
end
|
128
|
+
|
129
|
+
# Subs terms for Ruby's operators
|
130
|
+
# and removes any trailing ? ! or =.
|
131
|
+
def op_esc_path( name )
|
132
|
+
ri = name.rindex('/')
|
133
|
+
if ri
|
134
|
+
dir, file = name[0...ri], name[ri+1..-1]
|
135
|
+
else
|
136
|
+
dir, file = nil, name
|
137
|
+
end
|
138
|
+
file = op_esc(file.strip)
|
139
|
+
dir ? File.join( dir, file ) : file
|
140
|
+
end
|
141
|
+
|
142
|
+
# Returns a file list of all extensions.
|
143
|
+
def extensions
|
144
|
+
return @all_extensions if @all_extensions
|
145
|
+
Dir.chdir( File.join( Config::CONFIG['sitelibdir'], METHDIR ) ) do
|
146
|
+
all = Dir.glob( '*/*.rb' ) + Dir.glob( '*/*/*.rb' )
|
147
|
+
end
|
148
|
+
@extensions = all
|
149
|
+
end
|
150
|
+
|
151
|
+
# Returns file list of all extensions minus the ones that should not be autoloaded.
|
152
|
+
def extensions_nice
|
153
|
+
@safe_extensions ||= nice_only( extensions )
|
154
|
+
end
|
155
|
+
|
156
|
+
# Removes the NOAUTO files from the given extensions list.
|
157
|
+
def nice_only( exts )
|
158
|
+
exts = exts.dup
|
159
|
+
NOAUTO.each do |f|
|
160
|
+
if f.include?('*')
|
161
|
+
re = %r"#{f.gsub('*','.*')}"
|
162
|
+
exts.reject!{ |x| x =~ re }
|
163
|
+
elsif exts.include?(f)
|
164
|
+
exts.delete f
|
165
|
+
end
|
166
|
+
end
|
167
|
+
exts.sort
|
168
|
+
end
|
169
|
+
|
170
|
+
#--
|
171
|
+
# NOTE Is there any other way to handle subclasses?
|
172
|
+
#++
|
173
|
+
|
174
|
+
alias_method :require_facetless, :require
|
175
|
+
|
176
|
+
def require( klass, fname )
|
177
|
+
klass = klass.to_s.downcase
|
178
|
+
fname = op_esc(fname.to_s)
|
179
|
+
if CLASS_ANCESTORS.key?( klass )
|
180
|
+
ancestors = [klass, *CLASS_ANCESTORS[klass]]
|
181
|
+
begin
|
182
|
+
require_facetless( File.join( METHDIR, klass, fname ) )
|
183
|
+
rescue LoadError => e
|
184
|
+
klass = ancestors.shift
|
185
|
+
retry if klass
|
186
|
+
raise e
|
187
|
+
end
|
188
|
+
else
|
189
|
+
require_facetless( File.join(METHDIR, klass.name.downcase, fname) )
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
end
|
194
|
+
|
195
|
+
|
196
|
+
# Override Kernel require method to reroute Facet requires.
|
197
|
+
#
|
198
|
+
#module Kernel
|
199
|
+
#
|
200
|
+
# alias_method :require_facetless, :require
|
201
|
+
#
|
202
|
+
# def require( fname )
|
203
|
+
# if /^(facet|facets|nano)[\/\\]/ =~ fname
|
204
|
+
# Facets.require($')
|
205
|
+
# else
|
206
|
+
# require_facetless( fname )
|
207
|
+
# end
|
208
|
+
# end
|
209
|
+
#
|
210
|
+
#end
|
211
|
+
|
212
|
+
|