facets 1.3.3 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/{doc/AUTHORS → AUTHORS} +12 -3
- data/README +35 -29
- data/WARNING +56 -0
- data/demo/annotation/demo_annotation.rb +22 -0
- data/demo/ansicolor/cdiff.rb +20 -0
- data/demo/ansicolor/example.rb +82 -0
- data/demo/io-reactor/chatserver.rb +347 -0
- data/demo/lisp/game.rb +47 -0
- data/lib/facet/all.rb +1 -0
- data/lib/facet/annattr.rb +1 -0
- data/lib/facet/class/to_proc.rb +1 -0
- data/lib/facet/cookie.rb +1 -0
- data/lib/facet/dir/self/descend.rb +1 -0
- data/lib/facet/enumerable/count.rb +1 -0
- data/lib/facet/hash/to_proc.rb +1 -0
- data/lib/facet/hashbuilder.rb +1 -0
- data/lib/facet/http.rb +1 -0
- data/lib/facet/httpaccess.rb +1 -0
- data/lib/facet/kernel/__get__.rb +1 -0
- data/lib/facet/kernel/__set__.rb +1 -0
- data/lib/facet/kernel/cache.rb +1 -0
- data/lib/facet/kernel/respond.rb +1 -0
- data/lib/facet/lazy.rb +1 -0
- data/lib/facet/module/class.rb +1 -0
- data/lib/facet/module/nodef.rb +1 -0
- data/lib/facet/opencascade.rb +1 -0
- data/lib/facet/pqueue.rb +1 -0
- data/lib/facet/taskable.rb +1 -0
- data/lib/facets.rb +98 -37
- data/lib/facets/core/all.rb +5 -0
- data/lib/facets/core/class/to_proc.rb +25 -0
- data/lib/facets/core/dir/self/ascend.rb +2 -1
- data/lib/facets/core/dir/self/descend.rb +11 -0
- data/lib/facets/core/enumerable/accumulate.rb +2 -2
- data/lib/facets/core/enumerable/count.rb +54 -0
- data/lib/facets/core/enumerable/cross.rb +3 -0
- data/lib/facets/core/enumerable/graph.rb +8 -4
- data/lib/facets/core/enumerable/self/cross.rb +11 -5
- data/lib/facets/core/hash/to_proc.rb +34 -0
- data/lib/facets/core/hash/traverse.rb +10 -5
- data/lib/facets/core/kernel/__class__.rb +1 -1
- data/lib/facets/core/kernel/__get__.rb +5 -0
- data/lib/facets/core/kernel/__set__.rb +2 -0
- data/lib/facets/core/kernel/assign_from.rb +1 -1
- data/lib/facets/core/kernel/assign_with.rb +11 -3
- data/lib/facets/core/kernel/bool.rb +1 -1
- data/lib/facets/core/kernel/cache.rb +31 -0
- data/lib/facets/core/kernel/demo.rb +4 -0
- data/lib/facets/core/kernel/get_by_id.rb +1 -0
- data/lib/facets/core/kernel/in.rb +1 -1
- data/lib/facets/core/kernel/instance_assign.rb +2 -3
- data/lib/facets/core/kernel/method.rb +25 -7
- data/lib/facets/core/kernel/methods.rb +1 -1
- data/lib/facets/core/kernel/new.rb +1 -1
- data/lib/facets/core/kernel/object_class.rb +1 -1
- data/lib/facets/core/kernel/object_hexid.rb +1 -1
- data/lib/facets/core/kernel/own.rb +1 -1
- data/lib/facets/core/kernel/require_all.rb +1 -0
- data/lib/facets/core/kernel/require_esc.rb +4 -2
- data/lib/facets/core/kernel/require_facet.rb +2 -0
- data/lib/facets/core/kernel/require_local.rb +1 -0
- data/lib/facets/core/kernel/respond.rb +14 -0
- data/lib/facets/core/kernel/send_as.rb +1 -1
- data/lib/facets/core/kernel/silence_warnings.rb +1 -1
- data/lib/facets/core/kernel/singleton.rb +3 -1
- data/lib/facets/core/matchdata/matchtree.rb +13 -3
- data/lib/facets/core/module/class.rb +3 -0
- data/lib/facets/core/module/integrate.rb +31 -4
- data/lib/facets/core/module/{undef.rb → nodef.rb} +8 -3
- data/lib/facets/core/module/revisal.rb +5 -5
- data/lib/facets/more/annattr.rb +147 -0
- data/lib/facets/more/annotation.rb +32 -136
- data/lib/facets/more/ansicode.rb +89 -100
- data/lib/facets/more/aspects.rb +28 -0
- data/lib/facets/more/association.rb +88 -47
- data/lib/facets/more/basicobject.rb +51 -33
- data/lib/facets/more/bbcode.rb +21 -34
- data/lib/facets/more/binaryreader.rb +62 -33
- data/lib/facets/more/bitmask.rb +24 -24
- data/lib/facets/more/blankslate.rb +4 -0
- data/lib/facets/more/builderobject.rb +16 -20
- data/lib/facets/more/bytes.rb +43 -24
- data/lib/facets/more/classinherit.rb +15 -31
- data/lib/facets/more/classmethods.rb +19 -29
- data/lib/facets/more/cloneable.rb +42 -30
- data/lib/facets/more/consoleapp.rb +42 -22
- data/lib/facets/more/cookie.rb +565 -0
- data/lib/facets/more/coroutine.rb +17 -21
- data/lib/facets/more/crypt.rb +33 -12
- data/lib/facets/more/dictionary.rb +27 -36
- data/lib/facets/more/downloader.rb +21 -17
- data/lib/facets/more/elementor.rb +22 -0
- data/lib/facets/more/enumerablepass.rb +19 -27
- data/lib/facets/more/expirable.rb +18 -28
- data/lib/facets/more/filelist.rb +33 -32
- data/lib/facets/more/floatstring.rb +31 -40
- data/lib/facets/more/functor.rb +15 -25
- data/lib/facets/more/hashbuilder.rb +76 -0
- data/lib/facets/more/heap.rb +29 -36
- data/lib/facets/more/htmlbuilder.rb +22 -24
- data/lib/facets/more/htmlhelper.rb +89 -0
- data/lib/facets/more/http.rb +570 -0
- data/lib/facets/more/httpaccess.rb +1608 -0
- data/lib/facets/more/inheritor.rb +29 -21
- data/lib/facets/more/interval.rb +21 -25
- data/lib/facets/more/ioredirect.rb +21 -25
- data/lib/facets/more/json.rb +27 -17
- data/lib/facets/more/lazy.rb +238 -0
- data/lib/facets/more/lisp.rb +24 -27
- data/lib/facets/more/lisp_format.rb +93 -85
- data/lib/facets/more/lrucache.rb +17 -27
- data/lib/facets/more/mathconstants.rb +22 -40
- data/lib/facets/more/methodprobe.rb +56 -61
- data/lib/facets/more/mock.rb +24 -17
- data/lib/facets/more/multipliers.rb +21 -17
- data/lib/facets/more/multiton.rb +18 -24
- data/lib/facets/more/nackclass.rb +17 -21
- data/lib/facets/more/nilcomparable.rb +28 -30
- data/lib/facets/more/nullclass.rb +16 -15
- data/lib/facets/more/one.rb +94 -58
- data/lib/facets/more/opencascade.rb +187 -0
- data/lib/facets/more/openobject.rb +89 -66
- data/lib/facets/more/orderedhash.rb +4 -0
- data/lib/facets/more/ormsupport.rb +18 -29
- data/lib/facets/more/overload.rb +39 -3
- data/lib/facets/more/paramix.rb +16 -24
- data/lib/facets/more/pathlist.rb +17 -23
- data/lib/facets/more/pool.rb +21 -29
- data/lib/facets/more/pqueue.rb +190 -0
- data/lib/facets/more/preinitialize.rb +17 -18
- data/lib/facets/more/progressbar.rb +19 -15
- data/lib/facets/more/promoteself.rb +17 -21
- data/lib/facets/more/quaternion.rb +379 -346
- data/lib/facets/more/recorder.rb +15 -20
- data/lib/facets/more/reference.rb +25 -22
- data/lib/facets/more/rexmlbuilder.rb +21 -6
- data/lib/facets/more/rtals.rb +27 -24
- data/lib/facets/more/semaphore.rb +15 -28
- data/lib/facets/more/snapshot.rb +45 -41
- data/lib/facets/more/stateparser.rb +25 -35
- data/lib/facets/more/statichash.rb +37 -29
- data/lib/facets/more/syncarray.rb +18 -26
- data/lib/facets/more/synchash.rb +17 -26
- data/lib/facets/more/system.rb +25 -17
- data/lib/facets/more/tagiterator.rb +15 -39
- data/lib/facets/more/taskable.rb +417 -0
- data/lib/facets/more/timer.rb +22 -26
- data/lib/facets/more/times.rb +23 -23
- data/lib/facets/more/tracepoint.rb +25 -24
- data/lib/facets/more/tuple.rb +25 -42
- data/lib/facets/more/typecast.rb +27 -29
- data/lib/facets/more/uninheritable.rb +15 -22
- data/lib/facets/more/units.rb +23 -29
- data/lib/facets/more/xmlbuilder.rb +20 -22
- data/lib/facets/more/xmlhelper.rb +18 -21
- data/lib/facets/more/xoxo.rb +23 -11
- data/lib/facets/more/yamlstruct.rb +25 -22
- data/test/lib/facets/core/array/test_at_rand.rb +1 -1
- data/test/lib/facets/core/array/test_delete_unless.rb +1 -1
- data/test/lib/facets/core/array/test_delete_values.rb +1 -1
- data/test/lib/facets/core/array/test_delete_values_at.rb +1 -1
- data/test/lib/facets/core/array/test_first.rb +1 -1
- data/test/lib/facets/core/array/test_head.rb +1 -1
- data/test/lib/facets/core/array/test_last_index.rb +1 -1
- data/test/lib/facets/core/array/test_merge.rb +1 -1
- data/test/lib/facets/core/array/test_mid.rb +1 -1
- data/test/lib/facets/core/array/test_middle.rb +1 -1
- data/test/lib/facets/core/array/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/array/test_op_store.rb +1 -1
- data/test/lib/facets/core/array/test_pick.rb +1 -1
- data/test/lib/facets/core/array/test_pos.rb +1 -1
- data/test/lib/facets/core/array/test_pot.rb +1 -1
- data/test/lib/facets/core/array/test_pull.rb +1 -1
- data/test/lib/facets/core/array/test_rand_index.rb +1 -1
- data/test/lib/facets/core/array/test_rand_subset.rb +1 -1
- data/test/lib/facets/core/array/test_range.rb +1 -1
- data/test/lib/facets/core/array/test_rotate.rb +1 -1
- data/test/lib/facets/core/array/test_select.rb +1 -1
- data/test/lib/facets/core/array/test_shuffle.rb +1 -1
- data/test/lib/facets/core/array/test_thru.rb +1 -1
- data/test/lib/facets/core/array/test_to_b.rb +1 -1
- data/test/lib/facets/core/array/test_to_h.rb +1 -1
- data/test/lib/facets/core/array/test_to_hash.rb +1 -1
- data/test/lib/facets/core/binding/self/test_of_caller.rb +1 -1
- data/test/lib/facets/core/binding/test___LINE__.rb +1 -1
- data/test/lib/facets/core/binding/test_call_stack.rb +1 -1
- data/test/lib/facets/core/binding/test_called.rb +1 -1
- data/test/lib/facets/core/binding/test_caller.rb +1 -1
- data/test/lib/facets/core/binding/test_defined.rb +1 -1
- data/test/lib/facets/core/binding/test_eval.rb +1 -1
- data/test/lib/facets/core/binding/test_local_variables.rb +1 -1
- data/test/lib/facets/core/binding/test_method_name.rb +1 -1
- data/test/lib/facets/core/binding/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/binding/test_op_store.rb +1 -1
- data/test/lib/facets/core/binding/test_self.rb +1 -1
- data/test/lib/facets/core/class/test_cattr.rb +1 -1
- data/test/lib/facets/core/class/test_descendents.rb +1 -1
- data/test/lib/facets/core/class/test_method_name.rb +1 -1
- data/test/lib/facets/core/class/test_remove_descendents.rb +1 -1
- data/test/lib/facets/core/class/test_unix_path.rb +1 -1
- data/test/lib/facets/core/comparable/test_at_least.rb +1 -1
- data/test/lib/facets/core/comparable/test_clip.rb +1 -1
- data/test/lib/facets/core/comparable/test_cmp.rb +1 -1
- data/test/lib/facets/core/continuation/self/test_create.rb +1 -1
- data/test/lib/facets/core/date/test_days_in_month.rb +1 -1
- data/test/lib/facets/core/date/test_days_of_month.rb +1 -1
- data/test/lib/facets/core/date/test_stamp.rb +1 -1
- data/test/lib/facets/core/date/test_to_date.rb +1 -1
- data/test/lib/facets/core/date/test_to_s.rb +1 -1
- data/test/lib/facets/core/date/test_to_time.rb +1 -1
- data/test/lib/facets/core/dir/self/test_ancestor.rb +1 -1
- data/test/lib/facets/core/dir/self/test_ascend.rb +1 -1
- data/test/lib/facets/core/enumerable/self/test_combinations.rb +1 -1
- data/test/lib/facets/core/enumerable/self/test_cross.rb +1 -1
- data/test/lib/facets/core/enumerable/test_collect_with_index.rb +1 -1
- data/test/lib/facets/core/enumerable/test_commonality.rb +1 -1
- data/test/lib/facets/core/enumerable/test_compact_collect.rb +1 -1
- data/test/lib/facets/core/enumerable/test_count.rb +38 -0
- data/test/lib/facets/core/enumerable/test_cross.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_combination.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_pair.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_slice.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_unique_pair.rb +1 -1
- data/test/lib/facets/core/enumerable/test_entropy.rb +1 -1
- data/test/lib/facets/core/enumerable/test_every.rb +1 -1
- data/test/lib/facets/core/enumerable/test_ew.rb +1 -1
- data/test/lib/facets/core/enumerable/test_filter_collect.rb +1 -1
- data/test/lib/facets/core/enumerable/test_find_collisions.rb +1 -1
- data/test/lib/facets/core/enumerable/test_frequency.rb +1 -1
- data/test/lib/facets/core/enumerable/test_graph.rb +1 -1
- data/test/lib/facets/core/enumerable/test_ideal_entropy.rb +1 -1
- data/test/lib/facets/core/enumerable/test_none.rb +1 -1
- data/test/lib/facets/core/enumerable/test_occur.rb +1 -1
- data/test/lib/facets/core/enumerable/test_one.rb +1 -1
- data/test/lib/facets/core/enumerable/test_op_pow.rb +1 -1
- data/test/lib/facets/core/enumerable/test_partition_by.rb +1 -1
- data/test/lib/facets/core/enumerable/test_permute.rb +1 -1
- data/test/lib/facets/core/enumerable/test_probability.rb +1 -1
- data/test/lib/facets/core/enumerable/test_to_h.rb +1 -1
- data/test/lib/facets/core/enumerable/test_uniq_by.rb +1 -1
- data/test/lib/facets/core/file/self/test_create.rb +1 -1
- data/test/lib/facets/core/file/self/test_open_as_string.rb +1 -1
- data/test/lib/facets/core/file/self/test_read_list.rb +1 -1
- data/test/lib/facets/core/file/self/test_sanitize.rb +1 -1
- data/test/lib/facets/core/file/self/test_split_all.rb +1 -1
- data/test/lib/facets/core/float/test_round_at.rb +1 -1
- data/test/lib/facets/core/float/test_round_to.rb +1 -1
- data/test/lib/facets/core/hash/self/test_zipnew.rb +1 -1
- data/test/lib/facets/core/hash/test_alias.rb +1 -1
- data/test/lib/facets/core/hash/test_assert_has_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_assert_has_only_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_at.rb +1 -1
- data/test/lib/facets/core/hash/test_collate.rb +1 -1
- data/test/lib/facets/core/hash/test_each.rb +1 -1
- data/test/lib/facets/core/hash/test_each_with_index.rb +1 -1
- data/test/lib/facets/core/hash/test_each_with_key.rb +1 -1
- data/test/lib/facets/core/hash/test_graph.rb +1 -1
- data/test/lib/facets/core/hash/test_has_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_has_only_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_inverse.rb +1 -1
- data/test/lib/facets/core/hash/test_keys_to_s.rb +1 -1
- data/test/lib/facets/core/hash/test_keys_to_sym.rb +1 -1
- data/test/lib/facets/core/hash/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/hash/test_op_lshift.rb +1 -1
- data/test/lib/facets/core/hash/test_rand_key.rb +1 -1
- data/test/lib/facets/core/hash/test_rand_pair.rb +1 -1
- data/test/lib/facets/core/hash/test_rand_value.rb +1 -1
- data/test/lib/facets/core/hash/test_replace_each.rb +1 -1
- data/test/lib/facets/core/hash/test_shuffle.rb +1 -1
- data/test/lib/facets/core/hash/test_slice.rb +1 -1
- data/test/lib/facets/core/hash/test_swap.rb +1 -1
- data/test/lib/facets/core/hash/test_swapkey.rb +1 -1
- data/test/lib/facets/core/hash/test_to_h.rb +1 -1
- data/test/lib/facets/core/hash/test_to_ostruct.rb +1 -1
- data/test/lib/facets/core/hash/test_to_ostruct_recurse.rb +1 -1
- data/test/lib/facets/core/hash/test_traverse.rb +1 -1
- data/test/lib/facets/core/hash/test_update_each.rb +1 -1
- data/test/lib/facets/core/hash/test_update_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_update_values.rb +1 -1
- data/test/lib/facets/core/hash/test_weave.rb +1 -1
- data/test/lib/facets/core/integer/test_factorial.rb +1 -1
- data/test/lib/facets/core/integer/test_multiple.rb +1 -1
- data/test/lib/facets/core/integer/test_ordinal.rb +1 -1
- data/test/lib/facets/core/integer/test_times_collect.rb +1 -1
- data/test/lib/facets/core/kernel/test___class__.rb +1 -1
- data/test/lib/facets/core/kernel/test_as.rb +1 -1
- data/test/lib/facets/core/kernel/test_assign_from.rb +1 -1
- data/test/lib/facets/core/kernel/test_assign_with.rb +1 -1
- data/test/lib/facets/core/kernel/test_bool.rb +1 -1
- data/test/lib/facets/core/kernel/test_bug.rb +1 -1
- data/test/lib/facets/core/kernel/test_call_stack.rb +1 -1
- data/test/lib/facets/core/kernel/test_called.rb +1 -1
- data/test/lib/facets/core/kernel/test_constant.rb +1 -1
- data/test/lib/facets/core/kernel/test_copy.rb +1 -1
- data/test/lib/facets/core/kernel/test_deep_copy.rb +1 -1
- data/test/lib/facets/core/kernel/test_demo.rb +1 -1
- data/test/lib/facets/core/kernel/test_fn.rb +1 -1
- data/test/lib/facets/core/kernel/test_generate_method_name.rb +1 -1
- data/test/lib/facets/core/kernel/test_get_by_id.rb +1 -1
- data/test/lib/facets/core/kernel/test_here.rb +1 -1
- data/test/lib/facets/core/kernel/test_in.rb +1 -1
- data/test/lib/facets/core/kernel/test_maybe.rb +1 -1
- data/test/lib/facets/core/kernel/test_metaclass.rb +1 -1
- data/test/lib/facets/core/kernel/test_method.rb +1 -1
- data/test/lib/facets/core/kernel/test_methodname.rb +1 -1
- data/test/lib/facets/core/kernel/test_methods.rb +1 -1
- data/test/lib/facets/core/kernel/test_new.rb +1 -1
- data/test/lib/facets/core/kernel/test_object_class.rb +1 -1
- data/test/lib/facets/core/kernel/test_object_hexid.rb +1 -1
- data/test/lib/facets/core/kernel/test_require_all.rb +1 -1
- data/test/lib/facets/core/kernel/test_require_esc.rb +1 -1
- data/test/lib/facets/core/kernel/test_require_facet.rb +1 -1
- data/test/lib/facets/core/kernel/test_resc.rb +1 -1
- data/test/lib/facets/core/kernel/test_returning.rb +1 -1
- data/test/lib/facets/core/kernel/test_send_as.rb +1 -1
- data/test/lib/facets/core/kernel/test_set_from.rb +1 -1
- data/test/lib/facets/core/kernel/test_set_with.rb +1 -1
- data/test/lib/facets/core/kernel/test_silently.rb +1 -1
- data/test/lib/facets/core/kernel/test_singleton.rb +1 -1
- data/test/lib/facets/core/kernel/test_superior.rb +1 -1
- data/test/lib/facets/core/kernel/test_supermethod.rb +1 -1
- data/test/lib/facets/core/kernel/test_this.rb +1 -1
- data/test/lib/facets/core/kernel/test_to_b.rb +1 -1
- data/test/lib/facets/core/kernel/test_to_bool.rb +1 -1
- data/test/lib/facets/core/kernel/test_uri.rb +1 -1
- data/test/lib/facets/core/kernel/test_val.rb +1 -1
- data/test/lib/facets/core/kernel/test_with_accessor.rb +1 -1
- data/test/lib/facets/core/matchdata/test_match.rb +1 -1
- data/test/lib/facets/core/matchdata/test_matchtree.rb +7 -2
- data/test/lib/facets/core/module/test_abstract.rb +1 -1
- data/test/lib/facets/core/module/test_alias_module_function.rb +1 -1
- data/test/lib/facets/core/module/test_ancestor.rb +1 -1
- data/test/lib/facets/core/module/test_basename.rb +1 -1
- data/test/lib/facets/core/module/test_by_name.rb +1 -1
- data/test/lib/facets/core/module/test_clone_using.rb +1 -1
- data/test/lib/facets/core/module/test_dirname.rb +1 -1
- data/test/lib/facets/core/module/test_equate_on.rb +1 -1
- data/test/lib/facets/core/module/test_generate_instance_method_name.rb +1 -1
- data/test/lib/facets/core/module/test_include_as.rb +1 -1
- data/test/lib/facets/core/module/test_inherit.rb +1 -1
- data/test/lib/facets/core/module/test_initializer.rb +1 -1
- data/test/lib/facets/core/module/test_instance_methods.rb +1 -1
- data/test/lib/facets/core/module/test_integrate.rb +1 -1
- data/test/lib/facets/core/module/test_memoize.rb +1 -1
- data/test/lib/facets/core/module/test_modspace.rb +1 -1
- data/test/lib/facets/core/module/test_namespace.rb +1 -1
- data/test/lib/facets/core/module/test_nesting.rb +1 -1
- data/test/lib/facets/core/module/{test_undef.rb → test_nodef.rb} +5 -5
- data/test/lib/facets/core/module/test_on_included.rb +1 -1
- data/test/lib/facets/core/module/test_redef.rb +1 -1
- data/test/lib/facets/core/module/test_redefine_method.rb +1 -1
- data/test/lib/facets/core/module/test_redirect.rb +1 -1
- data/test/lib/facets/core/module/test_redirect_method.rb +1 -1
- data/test/lib/facets/core/module/test_remove.rb +1 -1
- data/test/lib/facets/core/module/test_rename.rb +1 -1
- data/test/lib/facets/core/module/test_rename_method.rb +1 -1
- data/test/lib/facets/core/module/test_revisal.rb +1 -1
- data/test/lib/facets/core/module/test_shadow_method.rb +1 -1
- data/test/lib/facets/core/module/test_sort_on.rb +1 -1
- data/test/lib/facets/core/module/test_this.rb +1 -1
- data/test/lib/facets/core/module/test_wrap.rb +1 -1
- data/test/lib/facets/core/module/test_wrap_method.rb +1 -1
- data/test/lib/facets/core/nilclass/test_blank.rb +1 -1
- data/test/lib/facets/core/nilclass/test_empty.rb +1 -1
- data/test/lib/facets/core/nilclass/test_include.rb +1 -1
- data/test/lib/facets/core/nilclass/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/nilclass/test_size.rb +1 -1
- data/test/lib/facets/core/nilclass/test_to_h.rb +1 -1
- data/test/lib/facets/core/numeric/test_approx.rb +1 -1
- data/test/lib/facets/core/numeric/test_ceil_multiple.rb +1 -1
- data/test/lib/facets/core/numeric/test_succ.rb +1 -1
- data/test/lib/facets/core/numeric/test_to_b.rb +1 -1
- data/test/lib/facets/core/ostruct/test___merge__.rb +1 -1
- data/test/lib/facets/core/ostruct/test___update__.rb +1 -1
- data/test/lib/facets/core/ostruct/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/ostruct/test_op_store.rb +1 -1
- data/test/lib/facets/core/proc/test_compose.rb +1 -1
- data/test/lib/facets/core/proc/test_to_method.rb +1 -1
- data/test/lib/facets/core/range/test_to_r.rb +1 -1
- data/test/lib/facets/core/range/test_to_range.rb +1 -1
- data/test/lib/facets/core/range/test_umbrella.rb +1 -1
- data/test/lib/facets/core/range/test_within.rb +1 -1
- data/test/lib/facets/core/regexp/test_arity.rb +1 -1
- data/test/lib/facets/core/regexp/test_to_re.rb +1 -1
- data/test/lib/facets/core/regexp/test_to_regexp.rb +1 -1
- data/test/lib/facets/core/string/self/test_interpolate.rb +1 -1
- data/test/lib/facets/core/string/self/test_patterns.rb +1 -1
- data/test/lib/facets/core/string/self/test_rand_letter.rb +1 -1
- data/test/lib/facets/core/string/test_align_center.rb +1 -1
- data/test/lib/facets/core/string/test_at_rand.rb +1 -1
- data/test/lib/facets/core/string/test_basename.rb +1 -1
- data/test/lib/facets/core/string/test_blank.rb +1 -1
- data/test/lib/facets/core/string/test_bracket.rb +1 -1
- data/test/lib/facets/core/string/test_camelcase.rb +1 -1
- data/test/lib/facets/core/string/test_camelize.rb +1 -1
- data/test/lib/facets/core/string/test_capitalized.rb +1 -1
- data/test/lib/facets/core/string/test_chars.rb +1 -1
- data/test/lib/facets/core/string/test_cmp.rb +1 -1
- data/test/lib/facets/core/string/test_demodulize.rb +1 -1
- data/test/lib/facets/core/string/test_downcase.rb +1 -1
- data/test/lib/facets/core/string/test_dresner.rb +1 -1
- data/test/lib/facets/core/string/test_each_char.rb +1 -1
- data/test/lib/facets/core/string/test_each_word.rb +1 -1
- data/test/lib/facets/core/string/test_first.rb +1 -1
- data/test/lib/facets/core/string/test_fold.rb +1 -1
- data/test/lib/facets/core/string/test_frequency.rb +1 -1
- data/test/lib/facets/core/string/test_humanize.rb +1 -1
- data/test/lib/facets/core/string/test_indent.rb +1 -1
- data/test/lib/facets/core/string/test_index_all.rb +1 -1
- data/test/lib/facets/core/string/test_last.rb +1 -1
- data/test/lib/facets/core/string/test_line_wrap.rb +1 -1
- data/test/lib/facets/core/string/test_lines.rb +1 -1
- data/test/lib/facets/core/string/test_lowercase.rb +1 -1
- data/test/lib/facets/core/string/test_margin.rb +1 -1
- data/test/lib/facets/core/string/test_methodize.rb +1 -1
- data/test/lib/facets/core/string/test_modulize.rb +1 -1
- data/test/lib/facets/core/string/test_mscan.rb +1 -1
- data/test/lib/facets/core/string/test_natcmp.rb +1 -1
- data/test/lib/facets/core/string/test_nchar.rb +1 -1
- data/test/lib/facets/core/string/test_pathize.rb +1 -1
- data/test/lib/facets/core/string/test_pop.rb +1 -1
- data/test/lib/facets/core/string/test_pot.rb +1 -1
- data/test/lib/facets/core/string/test_probability.rb +1 -1
- data/test/lib/facets/core/string/test_push.rb +1 -1
- data/test/lib/facets/core/string/test_quote.rb +1 -1
- data/test/lib/facets/core/string/test_rand_byte.rb +1 -1
- data/test/lib/facets/core/string/test_rand_index.rb +1 -1
- data/test/lib/facets/core/string/test_range.rb +1 -1
- data/test/lib/facets/core/string/test_range_all.rb +1 -1
- data/test/lib/facets/core/string/test_range_of_line.rb +1 -1
- data/test/lib/facets/core/string/test_regesc.rb +1 -1
- data/test/lib/facets/core/string/test_shatter.rb +1 -1
- data/test/lib/facets/core/string/test_shift.rb +1 -1
- data/test/lib/facets/core/string/test_shuffle.rb +1 -1
- data/test/lib/facets/core/string/test_similarity.rb +1 -1
- data/test/lib/facets/core/string/test_singular.rb +1 -1
- data/test/lib/facets/core/string/test_soundex.rb +1 -1
- data/test/lib/facets/core/string/test_succ.rb +1 -1
- data/test/lib/facets/core/string/test_to_a.rb +1 -1
- data/test/lib/facets/core/string/test_to_b.rb +1 -1
- data/test/lib/facets/core/string/test_to_const.rb +1 -1
- data/test/lib/facets/core/string/test_to_date.rb +1 -1
- data/test/lib/facets/core/string/test_to_proc.rb +1 -1
- data/test/lib/facets/core/string/test_to_re.rb +1 -1
- data/test/lib/facets/core/string/test_to_time.rb +1 -1
- data/test/lib/facets/core/string/test_unix_crypt.rb +1 -1
- data/test/lib/facets/core/string/test_unpack.rb +1 -1
- data/test/lib/facets/core/string/test_unshift.rb +1 -1
- data/test/lib/facets/core/string/test_upcase.rb +1 -1
- data/test/lib/facets/core/string/test_whitespace.rb +1 -1
- data/test/lib/facets/core/string/test_word_filter.rb +1 -1
- data/test/lib/facets/core/string/test_word_wrap.rb +1 -1
- data/test/lib/facets/core/string/test_words.rb +1 -1
- data/test/lib/facets/core/symbol/test_camelcase.rb +1 -1
- data/test/lib/facets/core/symbol/test_camelize.rb +1 -1
- data/test/lib/facets/core/symbol/test_capitalize.rb +1 -1
- data/test/lib/facets/core/symbol/test_capitalized.rb +1 -1
- data/test/lib/facets/core/symbol/test_downcase.rb +1 -1
- data/test/lib/facets/core/symbol/test_not.rb +1 -1
- data/test/lib/facets/core/symbol/test_pad.rb +1 -1
- data/test/lib/facets/core/symbol/test_succ.rb +1 -1
- data/test/lib/facets/core/symbol/test_to_const.rb +1 -1
- data/test/lib/facets/core/symbol/test_to_proc.rb +1 -1
- data/test/lib/facets/core/symbol/test_to_str.rb +1 -1
- data/test/lib/facets/core/symbol/test_underscore.rb +1 -1
- data/test/lib/facets/core/symbol/test_upcase.rb +1 -1
- data/test/lib/facets/core/time/test_change.rb +1 -1
- data/test/lib/facets/core/time/test_elapse.rb +1 -1
- data/test/lib/facets/core/time/test_stamp.rb +1 -1
- data/test/lib/facets/core/time/test_to_date.rb +1 -1
- data/test/lib/facets/core/time/test_to_s.rb +1 -1
- data/test/lib/facets/core/time/test_to_time.rb +1 -1
- data/test/lib/facets/more/test_annattr.rb +39 -0
- data/test/lib/facets/more/test_annotatedattr.rb +39 -0
- data/test/lib/facets/more/test_annotation.rb +1 -22
- data/test/lib/facets/more/test_ansicode.rb +1 -1
- data/test/lib/facets/more/test_association.rb +6 -1
- data/test/lib/facets/more/test_basicobject.rb +1 -1
- data/test/lib/facets/more/test_bbcode.rb +1 -1
- data/test/lib/facets/more/test_binaryreader.rb +64 -0
- data/test/lib/facets/more/test_bitmask.rb +1 -1
- data/test/lib/facets/more/test_bytes.rb +1 -1
- data/test/lib/facets/more/test_classinherit.rb +1 -1
- data/test/lib/facets/more/test_classmethods.rb +1 -1
- data/test/lib/facets/more/test_coroutine.rb +1 -1
- data/test/lib/facets/more/test_crypt.rb +1 -1
- data/test/lib/facets/more/test_dictionary.rb +1 -1
- data/test/lib/facets/more/test_elementor.rb +1 -1
- data/test/lib/facets/more/test_enumerablepass.rb +1 -1
- data/test/lib/facets/more/test_floatstring.rb +1 -1
- data/test/lib/facets/more/test_functor.rb +1 -1
- data/test/lib/facets/more/test_htmlbuilder.rb +1 -1
- data/test/lib/facets/more/test_inheritor.rb +1 -1
- data/test/lib/facets/more/test_interval.rb +1 -1
- data/test/lib/facets/more/test_json.rb +1 -1
- data/test/lib/facets/more/test_lisp.rb +1 -1
- data/test/lib/facets/more/test_lisp_format.rb +1 -1
- data/test/lib/facets/more/test_lrucache.rb +1 -1
- data/test/lib/facets/more/test_mathconstants.rb +1 -1
- data/test/lib/facets/more/test_methodprobe.rb +1 -1
- data/test/lib/facets/more/test_multipliers.rb +1 -1
- data/test/lib/facets/more/test_multiton.rb +1 -1
- data/test/lib/facets/more/test_nackclass.rb +1 -1
- data/test/lib/facets/more/test_nilcomparable.rb +1 -1
- data/test/lib/facets/more/test_opencascade.rb +66 -0
- data/test/lib/facets/more/test_openobject.rb +14 -2
- data/test/lib/facets/more/test_overload.rb +1 -1
- data/test/lib/facets/more/test_paramix.rb +1 -1
- data/test/lib/facets/more/test_pqueue.rb +39 -0
- data/test/lib/facets/more/test_preinitialize.rb +1 -1
- data/test/lib/facets/more/test_promoteself.rb +1 -1
- data/test/lib/facets/more/test_recorder.rb +1 -1
- data/test/lib/facets/more/test_snapshot.rb +1 -1
- data/test/lib/facets/more/test_statichash.rb +11 -11
- data/test/lib/facets/more/test_syncarray.rb +1 -1
- data/test/lib/facets/more/test_synchash.rb +1 -1
- data/test/lib/facets/more/test_tagiterator.rb +1 -1
- data/test/lib/facets/more/test_taskable.rb +151 -0
- data/test/lib/facets/more/test_timer.rb +1 -1
- data/test/lib/facets/more/test_times.rb +1 -1
- data/test/lib/facets/more/test_tuple.rb +1 -1
- data/test/lib/facets/more/test_typecast.rb +1 -1
- data/test/lib/facets/more/test_uninheritable.rb +1 -1
- data/test/lib/facets/more/test_units.rb +1 -1
- data/test/lib/facets/more/test_xmlbuilder.rb +1 -1
- data/test/lib/facets/more/test_xmlhelper.rb +1 -1
- data/test/lib/facets/more/test_xoxo.rb +1 -1
- data/test/lib/facets/more/test_yamlstruct.rb +1 -1
- metadata +1243 -1247
- data/ProjectInfo +0 -89
- data/Rakefile +0 -181
- data/doc/CHANGELOG +0 -284
- data/doc/TODO +0 -73
- data/doc/noauto +0 -63
- data/lib/facet/array.rb +0 -1
- data/lib/facet/class.rb +0 -1
- data/lib/facet/comparable.rb +0 -1
- data/lib/facet/continuation.rb +0 -1
- data/lib/facet/date.rb +0 -1
- data/lib/facet/dir.rb +0 -1
- data/lib/facet/enumerable.rb +0 -1
- data/lib/facet/file.rb +0 -1
- data/lib/facet/fileutils.rb +0 -1
- data/lib/facet/float.rb +0 -1
- data/lib/facet/gem.rb +0 -1
- data/lib/facet/hash.rb +0 -1
- data/lib/facet/integer.rb +0 -1
- data/lib/facet/kernel.rb +0 -1
- data/lib/facet/logger.rb +0 -1
- data/lib/facet/matchdata.rb +0 -1
- data/lib/facet/module.rb +0 -1
- data/lib/facet/module/undef.rb +0 -1
- data/lib/facet/nilclass.rb +0 -1
- data/lib/facet/numeric.rb +0 -1
- data/lib/facet/pathname.rb +0 -1
- data/lib/facet/proc.rb +0 -1
- data/lib/facet/range.rb +0 -1
- data/lib/facet/regexp.rb +0 -1
- data/lib/facet/string.rb +0 -1
- data/lib/facet/symbol.rb +0 -1
- data/lib/facet/time.rb +0 -1
- data/lib/facet/unboundmethod.rb +0 -1
- data/lib/facets/core/array.rb +0 -35
- data/lib/facets/core/class.rb +0 -11
- data/lib/facets/core/comparable.rb +0 -5
- data/lib/facets/core/continuation.rb +0 -1
- data/lib/facets/core/date.rb +0 -6
- data/lib/facets/core/dir.rb +0 -4
- data/lib/facets/core/enumerable.rb +0 -42
- data/lib/facets/core/file.rb +0 -8
- data/lib/facets/core/fileutils.rb +0 -8
- data/lib/facets/core/float.rb +0 -4
- data/lib/facets/core/gem.rb +0 -4
- data/lib/facets/core/hash.rb +0 -40
- data/lib/facets/core/integer.rb +0 -9
- data/lib/facets/core/kernel.rb +0 -69
- data/lib/facets/core/logger.rb +0 -2
- data/lib/facets/core/matchdata.rb +0 -3
- data/lib/facets/core/module.rb +0 -43
- data/lib/facets/core/nilclass.rb +0 -9
- data/lib/facets/core/numeric.rb +0 -6
- data/lib/facets/core/pathname.rb +0 -2
- data/lib/facets/core/proc.rb +0 -3
- data/lib/facets/core/range.rb +0 -4
- data/lib/facets/core/regexp.rb +0 -3
- data/lib/facets/core/string.rb +0 -91
- data/lib/facets/core/symbol.rb +0 -13
- data/lib/facets/core/time.rb +0 -8
- data/lib/facets/core/unboundmethod.rb +0 -1
data/ProjectInfo
DELETED
@@ -1,89 +0,0 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
title : Facets
|
4
|
-
name : facets
|
5
|
-
version : '1.3.3'
|
6
|
-
created : '2004-12-16'
|
7
|
-
status : Beta/Stable
|
8
|
-
|
9
|
-
author : Thomas Sawyer
|
10
|
-
email : &email transfire@gmail.com
|
11
|
-
homepage : "http://facets.rubyforge.org"
|
12
|
-
|
13
|
-
summary: Vast collection of atomic core extension methods.
|
14
|
-
|
15
|
-
description:
|
16
|
-
Facets Core is a large collection of core extension methods
|
17
|
-
and module additions for the Ruby programming language.
|
18
|
-
The extensions are unique by virtue of thier atomicity.
|
19
|
-
Methods are stored in their own files, allowing
|
20
|
-
for highly granular control of requirements.
|
21
|
-
The modules include a variety of useful classes, mixins and
|
22
|
-
microframeworks, from the Functor to a full SI units system.
|
23
|
-
|
24
|
-
rubyforge:
|
25
|
-
project: 'facets'
|
26
|
-
username: transami
|
27
|
-
|
28
|
-
distribute: [ gem, tar.bz2, deb ]
|
29
|
-
|
30
|
-
release: !!release
|
31
|
-
host : rubyforge.org
|
32
|
-
username : transami
|
33
|
-
project : facets
|
34
|
-
groupid : 804
|
35
|
-
package : Facets
|
36
|
-
dir : '../DISTRIBUTION'
|
37
|
-
|
38
|
-
package: !!package
|
39
|
-
dir: ../DISTRIBUTION
|
40
|
-
exclude:
|
41
|
-
- dist
|
42
|
-
- dev
|
43
|
-
- web
|
44
|
-
- note
|
45
|
-
|
46
|
-
extest: !!extest
|
47
|
-
files: 'lib/facets/**/*.rb'
|
48
|
-
|
49
|
-
test: !!test
|
50
|
-
|
51
|
-
rdoc-core: !!rdoc
|
52
|
-
dir: web/doc/api/core
|
53
|
-
template: jamis
|
54
|
-
options: ['--all', '--inline-source']
|
55
|
-
include:
|
56
|
-
- 'lib/facets/core/**/*'
|
57
|
-
- '[A-Z]*'
|
58
|
-
|
59
|
-
rdoc-more: !!rdoc
|
60
|
-
dir: web/doc/api/more
|
61
|
-
template: jamis
|
62
|
-
options: ['--all', '--inline-source']
|
63
|
-
include:
|
64
|
-
- 'lib/facets/more/**/*'
|
65
|
-
- '[A-Z]*'
|
66
|
-
|
67
|
-
publish: !!publish
|
68
|
-
host: rubyforge.org
|
69
|
-
type: web
|
70
|
-
username: transami
|
71
|
-
project: facets
|
72
|
-
dir: web
|
73
|
-
|
74
|
-
announce: !!announce
|
75
|
-
to: transfire@gmail.com #ruby-talk@ruby-lang.org
|
76
|
-
from: transfire@gmail.com
|
77
|
-
domain: jupiterzeus.net
|
78
|
-
server: smtp.gmail.com
|
79
|
-
port: 25 #587
|
80
|
-
account: transfire@gmail.com
|
81
|
-
authtype: login #cram_md5 #plain
|
82
|
-
sectype: tls # ~, tls, ssl
|
83
|
-
file: ANN
|
84
|
-
slogan: ALL YOUR BASE ARE BELONG TO RUBY!
|
85
|
-
links:
|
86
|
-
- http://facets.rubyforge.org
|
87
|
-
|
88
|
-
install: !!install
|
89
|
-
|
data/Rakefile
DELETED
@@ -1,181 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
#require 'uri'
|
4
|
-
require 'yaml'
|
5
|
-
require 'fileutils'
|
6
|
-
require './lib/facets/core/file/self/read_list'
|
7
|
-
|
8
|
-
require 'reap/rake'
|
9
|
-
|
10
|
-
DATPATH = "data/facets"
|
11
|
-
ETCPATH = "conf/facets"
|
12
|
-
REQPATH = "facets/core"
|
13
|
-
MTHPATH = "lib/facets/core"
|
14
|
-
GENPATH = "lib/facets/core"
|
15
|
-
|
16
|
-
|
17
|
-
task :default => [ :tasks ]
|
18
|
-
|
19
|
-
task :tasks do
|
20
|
-
Rake.application.options.show_task_pattern = //
|
21
|
-
Rake.application.display_tasks_and_comments
|
22
|
-
end
|
23
|
-
|
24
|
-
#-----------------------------------------------------
|
25
|
-
# Generate facet/
|
26
|
-
#-----------------------------------------------------
|
27
|
-
desc %{Build facet redirect directory}
|
28
|
-
task :redirect do
|
29
|
-
sh %{rm -R 'lib/facet'} if File.directory?('lib/facet')
|
30
|
-
print "Creating redirection facet/ files..."
|
31
|
-
['core','more'].each{ |d|
|
32
|
-
from = "lib/facets"
|
33
|
-
rbs = Dir.glob( File.join( from, d, '**/*.rb' ) )
|
34
|
-
rbs.each { |e|
|
35
|
-
nolib = e.gsub( /^lib\//, '' )
|
36
|
-
re = Regexp.new( Regexp.escape( File.join( from, d ) + '/' ) )
|
37
|
-
link = e.gsub( re, 'lib/facet/')
|
38
|
-
FileUtils.mkdir_p( File.dirname( link ) )
|
39
|
-
File.open( link, "w+" ) { |w|
|
40
|
-
w << "require '#{nolib}'"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
|
-
puts "[done]"
|
45
|
-
end
|
46
|
-
|
47
|
-
#-----------------------------------------------------
|
48
|
-
# Read in the facets directory and sort-out per class
|
49
|
-
#-----------------------------------------------------
|
50
|
-
Methods = {}
|
51
|
-
task :methods do
|
52
|
-
Dir.chdir(MTHPATH) do
|
53
|
-
dg = Dir.glob('*/**/*.rb')
|
54
|
-
dg.each { |f|
|
55
|
-
klass, *meth= f.split('/')
|
56
|
-
Methods[ klass ] ||= []
|
57
|
-
Methods[ klass ] << "#{meth.join('/').chomp('.rb')}"
|
58
|
-
}
|
59
|
-
Methods.keys.each { |k| Methods[k].sort! }
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
#-----------------------------------------------------
|
64
|
-
# Save method index to file in yaml format
|
65
|
-
#-----------------------------------------------------
|
66
|
-
desc %{Generate method index file}
|
67
|
-
task :index => [ :methods ] do
|
68
|
-
print "Creating method index... "
|
69
|
-
loc = File.join( DATPATH, 'index.yml' )
|
70
|
-
File.open( loc, 'w' ) { |f|
|
71
|
-
f << Methods.to_yaml
|
72
|
-
}
|
73
|
-
puts "[done]"
|
74
|
-
end
|
75
|
-
|
76
|
-
#-----------------------------------------------------
|
77
|
-
# Create per class feature files
|
78
|
-
#-----------------------------------------------------
|
79
|
-
desc %Q{Generate per-class feature files}
|
80
|
-
task :class => [:methods ] do
|
81
|
-
print "Creating per class files... "
|
82
|
-
|
83
|
-
index = Methods
|
84
|
-
noauto = File.read_list( File.join( ETCPATH, 'noauto' ) )
|
85
|
-
allfiles = index.collect{ |k,ms| ms.collect{ |m| "#{k}/#{m}" } }.flatten
|
86
|
-
full = calc_full(allfiles, noauto)
|
87
|
-
|
88
|
-
index.each { |classname, method_files|
|
89
|
-
File.open( "#{GENPATH}/#{classname.downcase}.rb", 'w' ) { |f|
|
90
|
-
method_files.each { |rf|
|
91
|
-
mfn = "#{classname.downcase}/#{rf}"
|
92
|
-
if full.include?(mfn)
|
93
|
-
f << %Q{require '#{REQPATH}/#{mfn}'\n}
|
94
|
-
end
|
95
|
-
}
|
96
|
-
}
|
97
|
-
}
|
98
|
-
puts "[done]"
|
99
|
-
end
|
100
|
-
|
101
|
-
#-----------------------------------------------------
|
102
|
-
# Do all prep tasks (do this to generate data index
|
103
|
-
# file and method group files)
|
104
|
-
#-----------------------------------------------------
|
105
|
-
desc %{Do all preperation (index, class)}
|
106
|
-
task :prep => [ :index, :class, :redirect ] do
|
107
|
-
end
|
108
|
-
|
109
|
-
#-----------------------------------------------------
|
110
|
-
# List Methods
|
111
|
-
#-----------------------------------------------------
|
112
|
-
desc %{Output a list of all methods}
|
113
|
-
task 'list' => [ :methods ] do
|
114
|
-
puts method_list_outline
|
115
|
-
end
|
116
|
-
|
117
|
-
# #-----------------------------------------------------
|
118
|
-
# # HTML List MethodsFile.new(
|
119
|
-
# #-----------------------------------------------------
|
120
|
-
#
|
121
|
-
# HEAD = <<-HERE
|
122
|
-
# <html>
|
123
|
-
# <head>
|
124
|
-
# <style>
|
125
|
-
# pre#methods {
|
126
|
-
# font-size: .8em;
|
127
|
-
# line-height: 1em;
|
128
|
-
# }
|
129
|
-
# </style>
|
130
|
-
# </head>
|
131
|
-
# <body>
|
132
|
-
# <pre id="methods">
|
133
|
-
# HERE
|
134
|
-
#
|
135
|
-
# FOOT=<<-HERE
|
136
|
-
# </pre>
|
137
|
-
# </body>
|
138
|
-
# </html>
|
139
|
-
# HERE
|
140
|
-
#
|
141
|
-
# desc %{generate method list html file}
|
142
|
-
# task 'listHtml' => [ :scrape_methods ] do
|
143
|
-
# s = HEAD + method_list_outline + FOOT
|
144
|
-
# File.open('pub/www/methods.html', 'w') { |f| f << s }
|
145
|
-
# end
|
146
|
-
|
147
|
-
#desc "Check for open comment tests"
|
148
|
-
#task :testchk do
|
149
|
-
# system %q{grep -r ^#=begin\ test ./lib}
|
150
|
-
#end
|
151
|
-
|
152
|
-
|
153
|
-
#-----------------------------------------------------
|
154
|
-
# Supporting Methods
|
155
|
-
#-----------------------------------------------------
|
156
|
-
|
157
|
-
private
|
158
|
-
|
159
|
-
def method_list_outline
|
160
|
-
s = ''
|
161
|
-
Methods.keys.sort.each { |k|
|
162
|
-
ms = Methods[k].collect{|m| m.gsub(%r{^self\/},'::')}.sort
|
163
|
-
s << "#{k}:\n"
|
164
|
-
ms.each { |m| s << " #{m}\n" }
|
165
|
-
}
|
166
|
-
s
|
167
|
-
end
|
168
|
-
|
169
|
-
# Full set of require files (allfiles minus noauto and unsafe)
|
170
|
-
def calc_full( allfiles, noauto )
|
171
|
-
sf = allfiles.dup
|
172
|
-
noauto.each do |f|
|
173
|
-
if f.include?('*')
|
174
|
-
re = %r"#{f.gsub('*','.*')}"
|
175
|
-
sf.reject!{ |x| x =~ re }
|
176
|
-
elsif sf.include?(f)
|
177
|
-
sf.delete f
|
178
|
-
end
|
179
|
-
end
|
180
|
-
sf.sort
|
181
|
-
end
|
data/doc/CHANGELOG
DELETED
@@ -1,284 +0,0 @@
|
|
1
|
-
= Facets Change Log
|
2
|
-
|
3
|
-
== 1.3.1
|
4
|
-
* Deprecated string/to_arr, and slightly adjusted string#to_a.
|
5
|
-
(Not commonly used so not a major change.)
|
6
|
-
* Minor bug fixes.
|
7
|
-
|
8
|
-
== 1.3.0
|
9
|
-
* Ported parts of Nitro's Glue library to Facets.
|
10
|
-
* more/aspects.rb
|
11
|
-
* core/module/on_included.rb
|
12
|
-
* core/module/expirable.rb
|
13
|
-
* core/enumerable/accumulate.rb
|
14
|
-
* Added xoxo.rb, json.rb and rtals.rb.
|
15
|
-
* Repaired missing data files for units.rb.
|
16
|
-
* Moved cattr methods from module/ to class/.
|
17
|
-
* mattr methods are in limbo at the moment.
|
18
|
-
(They were aliases for cattr.)
|
19
|
-
|
20
|
-
== 1.2.1
|
21
|
-
* kernel/meta has been renamed to kernel/instance
|
22
|
-
|
23
|
-
== 1.2.0
|
24
|
-
* Added zimba.tm's string/modulize, pathize and methodize.
|
25
|
-
* Added some Gem methods, self/active?, self/gemspec, self/gempath.
|
26
|
-
|
27
|
-
== 1.0.3
|
28
|
-
* A last ditch attempt to keep facets and calibre as one project.
|
29
|
-
|
30
|
-
== 1.0.2
|
31
|
-
* Added _why's Array modulo.
|
32
|
-
|
33
|
-
== 1.0.0
|
34
|
-
* Sped up string#similarity.
|
35
|
-
* By popular protest deprecated usage of "AClass.use Facets, :amethod".
|
36
|
-
* Created nicer layout of facets/support, /group, /english (one day /method).
|
37
|
-
* Odd sets of facets have been move to facets/group/, eg. facets/group/inflect.
|
38
|
-
* All is now well preped for a Rolls release shoud that come about.
|
39
|
-
|
40
|
-
== v0.10.30 Halloween
|
41
|
-
* Change OrderedHash (ohash.rb) to Dictionary (dictionary.rb).
|
42
|
-
* Change BlankSlate (blankslate.rb) to BasicObject (basicobject.rb).
|
43
|
-
* Old versions of the above should still work, but throw warnings
|
44
|
-
and will stop working come next version.
|
45
|
-
* 1.rb has been renamed to one.rb (I know, two more characters,
|
46
|
-
but you can do it! ;)
|
47
|
-
* Methods enumerable/op_mod (%) and enumerable/eF are deprecated.
|
48
|
-
Use #every or #ew instead.
|
49
|
-
|
50
|
-
== v0.10.11 Palapable
|
51
|
-
* Merged Mega into Facets. I put the old Mega ChangeLog at
|
52
|
-
the bottom of this document.
|
53
|
-
* This represents the One-Point-Oh realease (albeit RC1) of
|
54
|
-
Facets, but from now on I'll be using date versioning
|
55
|
-
--if you look at the versions below you may understand why.
|
56
|
-
The versioning sequence has no real rationality.
|
57
|
-
Instead I will use this simple Rational Versioning Policy:
|
58
|
-
* If YYYY-MM-DD it's a development release.
|
59
|
-
* If YYYY-MM it's an official release.
|
60
|
-
* If just YYYY it's hella stable.
|
61
|
-
One might argue this is not as robust as a compatability
|
62
|
-
significant point-based versioning system, but I'd say that's
|
63
|
-
all well and good in theory, now give me something that actually
|
64
|
-
works in practice.
|
65
|
-
|
66
|
-
== v0.9.5 Rebirth
|
67
|
-
* Rebirth of Facets! As cool as the name Nano is, it became clear
|
68
|
-
that most people are drawn toward the name Facets. So we are
|
69
|
-
reverting back. Nonetheless Nano will remain a viable alias for
|
70
|
-
Facets.
|
71
|
-
* Must now use <code>require 'facets'</code> prior to using
|
72
|
-
other Facets. This does two things. First it loads the
|
73
|
-
base methods, which ensures that all programs have them
|
74
|
-
readibly available when using Facets. Secondly it supplements
|
75
|
-
#require to handle aliases. In essence, require 'facet/...',
|
76
|
-
require 'facets/...' and require 'nano/...' all point to the
|
77
|
-
same place(s). (NOTE This is a precursor to a more universal
|
78
|
-
system that will handle aliasing automatically.)
|
79
|
-
* kernel/require_esc has been removed. #require_nano will be also
|
80
|
-
in the next release. These will no longer be needed thanks to
|
81
|
-
the aliasing system.
|
82
|
-
|
83
|
-
== v0.9.2 Littles
|
84
|
-
* Added string/starts_with? and string/ends_with?
|
85
|
-
* Fixed module/memoize to cache on a per class/module bases.
|
86
|
-
* Added module/is as an alias for /include.
|
87
|
-
* Added module/shadow_method and shadow_all.
|
88
|
-
* Renamed module/superup (which was module/supers) to module/as. And defined a new
|
89
|
-
method called /superior which is like /super but skips to a sepecified ancestor.
|
90
|
-
* Renamed module/super_send to module/send_as.
|
91
|
-
|
92
|
-
== v0.9.1 Wraps
|
93
|
-
* Added module/nesting (not to be confused with the class method Module::nesting).
|
94
|
-
* Thanks goes to Gavien Kistner for new string/word_wrap methods
|
95
|
-
(with additioanl thanks to Dyane Borderson for his suggestions).
|
96
|
-
* Added hash/each_with_key and each_with_index, as well as array/each_with_key;
|
97
|
-
increasing polymorphism between the two classes.
|
98
|
-
* Moved array/each_pair to enumerable/each_pair and changed how it worked to
|
99
|
-
what one might expect.
|
100
|
-
|
101
|
-
== v0.9.0 NotUorI
|
102
|
-
* Deprecated object#special_class, which was a method for (class<<self;self;end).
|
103
|
-
Already have too many aliases for this, and though the name is fitting, the simpler
|
104
|
-
method #own is better (alternative: #singleton).
|
105
|
-
* Fixed enumerable/uniq_by file which was misnamed 'unique_by.rb'.
|
106
|
-
* BIG CHANGE! Got rid of URI encoding on file names and sub'd a converson table
|
107
|
-
of english readable names. Thanks Jeff Wood, Florain Gross, Dav Burt,
|
108
|
-
Gavin Kistner, James Edward Gray II, Brian Schröder, Mauricio Fernández,
|
109
|
-
David A. Black, Gavin Sinclair, Nikolai Weibull and Christian Neukirchen.
|
110
|
-
|
111
|
-
== v0.8.3 UorI
|
112
|
-
* Added kernel/uri and kernel/unuri
|
113
|
-
* (Good idea?) removed methods module/sattr, sattr_reader, &c. Instead created object/meta
|
114
|
-
in which attr, attr_reader, &c. are made public. So, sattr -> meta.attr.
|
115
|
-
* Added array/unzip
|
116
|
-
* Added logger/format and logger/format_message (stub).
|
117
|
-
* Added string/dequote.
|
118
|
-
* Class method file names now begin with '::' to separate them from instance methods.
|
119
|
-
|
120
|
-
== v0.8.2 Nano Revolution
|
121
|
-
* Name Change! What was Ruby Facets is now Nano Methods!
|
122
|
-
* New minor version as there has been a change of plans with the integration of what was Carats.
|
123
|
-
The classes and modules have been reseperated into their own project called Mega Modules.
|
124
|
-
* Modified the #firstxxx/#lastxxx methods to be more congruent and comprehensible.
|
125
|
-
* Renamed object/supers to object/superup. Better!
|
126
|
-
* Got rid ot symbol/gen. Use object/generate_method_name or module#generate_instance_method_name
|
127
|
-
instead ( Is that the longest non-foo method name ever? :)
|
128
|
-
* The file 1st.rb has moved to object/method. This modifies #method to persist the returned
|
129
|
-
Method object. The original non-persitent version of #method is aliased to #original_method.
|
130
|
-
(This arrangement is not set in stone though, and is still be considered.)
|
131
|
-
* Added module/clone_using, module/clone_ranaming and module/clone_removing.
|
132
|
-
* Added module/integrate (I love this one!)
|
133
|
-
* Added many new enumerable methods: #filter_map, #compact_map, #commonality, #frequency,
|
134
|
-
#probability and #find_collisions.
|
135
|
-
* Moved some methods from array to enumerable: #each_permutation, #each_combination,
|
136
|
-
#each_unique_pair and the class method ::combinations.
|
137
|
-
* Added string/bytes per ruby-dev summary 26385-26467.
|
138
|
-
* Moved #cattr_reader, #cattr_writer and #cattr_accessor from Class to Module.
|
139
|
-
* Renamed numeric/octet_units to numeric/bytes_to_s and added a #bits_to_s as well.
|
140
|
-
* Added class/descendants (alias subclasses) and class/remove_descendents, as well as
|
141
|
-
object/descendents_of and object/remove_descendents_of.
|
142
|
-
* Added methods to comparable: #cap, #clip. There are also #at_least and
|
143
|
-
#at_most, although FYI #cap and #clip handle the same functionality.
|
144
|
-
* Removed string/table_name and string/class_name (they were too Rails specific).
|
145
|
-
Note: A new module has been added to Mega Modules, called orm-inflect.rb. It contains numerous
|
146
|
-
methods for doing this sort of thing.
|
147
|
-
* Added numeric/ceil_multiple (not sure about name though, perhaps a better name like "ceil_to"?).
|
148
|
-
* Added string/soundex for calculating the soundex code of a word/name.
|
149
|
-
* Added io/expect. I thought Ruby already had this but can't find it, so here it is for now.
|
150
|
-
* Placed Florian's binding-of-caller.rb in binding/of_caller. Makes more sense there.
|
151
|
-
* Fixed bug with Continuation::create (it wasn't defined as a class method and should have been).
|
152
|
-
* Fixed bug with string/capitalized? which wasn't always giving the correct result.
|
153
|
-
|
154
|
-
== v0.7.2 George II
|
155
|
-
* Added a class method dir/recurse which allows one to loop through a dir and all its
|
156
|
-
subdirs, etc. It also has an alias #ls_r. Thanks goes to George Maschovitis for this.
|
157
|
-
* Changed array/permute to array/each_permutation.
|
158
|
-
|
159
|
-
== v0.7.1 Quick George
|
160
|
-
* Added facet.rb, although expiremental it makes it possible to use atomic methods without
|
161
|
-
specificaly requiring them. It uses Object#method_missing to require them as needed.
|
162
|
-
* Improved on "molecules", i.e. files that require numerous related atoms in a single go.
|
163
|
-
These will see a great deal of continued improvement in the future.
|
164
|
-
|
165
|
-
== v0.7.0 Georgian Transform
|
166
|
-
* All methods with names containing non-alphanumeric characters now have facet
|
167
|
-
files without those special characters. This removes some incompatibilites with
|
168
|
-
certain systems (including Windows). All such symbols have been replaced with
|
169
|
-
CGI escape sequences, for instance 'in?.rb' becomes 'in%3F.rb'. To avoid having
|
170
|
-
to use these "ugly" names, a new method has been added, kernel/require_facet.
|
171
|
-
* Methods that were grouped together in the same file have been separated
|
172
|
-
into their own files. Pure Atomicity has been achieved!
|
173
|
-
* The method array/put has been dropped in favor of array/top (as a better alias for #unshift).
|
174
|
-
* Methods #matchdata/post_match_from and #matchdata/pre_match_from have deprecated
|
175
|
-
in favor of more generalized methods that serves the same purposes,
|
176
|
-
matchdata/matchtree and matchdata/matchset.
|
177
|
-
* Added module/include_as.
|
178
|
-
* Added array/permute.
|
179
|
-
|
180
|
-
== v0.6.3 Gemstone
|
181
|
-
* Gem is now avaliable!
|
182
|
-
* Added kernel/require_all which allows one to require a pattern of files,
|
183
|
-
making it easy to require every file in a directory.
|
184
|
-
* Added hash/traverse and hash/traverse!, which takes a block and iterates over
|
185
|
-
each key-value pair descending into subhash values and applying the block.
|
186
|
-
(Thanks goes to Ara T. Howard and robert for their help.)
|
187
|
-
* Added hash/collect. This uses enumerable/graph so that
|
188
|
-
hash/collect will return a hash rather then an array.
|
189
|
-
* Added numeric/before and numeric/after in place of #ago and #since
|
190
|
-
and aliased #ago and #since to them, per the suggestions of
|
191
|
-
Francis Hwang.
|
192
|
-
* Added "poor man's profiler", time/elapse. (Thanks goes to Hal Fulton).
|
193
|
-
* Changed enumerable/build_hash to enumerable/graph. The method #build_hash
|
194
|
-
has been aliased to #graph for the time being for backward compatability.
|
195
|
-
* Added array/last_index. (Thanks goes to Jabari)
|
196
|
-
|
197
|
-
== v0.6.2 Refinement I
|
198
|
-
* Added kernel/resc as a shortcut for Regexp.escape.
|
199
|
-
* Renamed hash/keys_to_string to hash/key_to_s and
|
200
|
-
hash/keys_to_symbol to hash/keys_to_sym to be more consistant
|
201
|
-
with other methods and what these methods specifically do.
|
202
|
-
The old names have been deprecated.
|
203
|
-
* Added hash/has_keys?, which allows for checking mutliple keys at once.
|
204
|
-
Also includes #has_only_keys?
|
205
|
-
* Added Rail's Time and Byte modules for Numeric with
|
206
|
-
numeric/times.rb and numeric/bytes.rb (I've been informed that
|
207
|
-
thanks go to Richard Kilmer for this. Thanks!)
|
208
|
-
* Added numeric/octet_unit which utilizes numeric/bytes.
|
209
|
-
(The name of this method may change in the future though.)
|
210
|
-
* Added enumerable/uniq_by.
|
211
|
-
* Added module/abstract.
|
212
|
-
* Added module/redirect which is similar to alias, but does not
|
213
|
-
copy the method, but rather wraps it. It also takes a hash so
|
214
|
-
multiple methods can be redirected all at once.
|
215
|
-
* Added string/shatter which is similar to split but includes
|
216
|
-
the matched portions of text.
|
217
|
-
|
218
|
-
== v0.6.1 Florian's Mixes
|
219
|
-
* Updated the current set of mix files which were still from
|
220
|
-
version 0.5.0. (2004-12-31)
|
221
|
-
|
222
|
-
== v0.6.0 Florian's Onslaught
|
223
|
-
* Major revisions made by Florian's onslaught. (2004-12-28)
|
224
|
-
* First general public release.
|
225
|
-
|
226
|
-
== v0.5.0 Fit for First
|
227
|
-
* This is the beginning of offical releases. (2004-12-23)
|
228
|
-
* Now called Facets.
|
229
|
-
* Changed layout to be completely atomic! (2004-10-30)
|
230
|
-
|
231
|
-
== v0.4.0 Raspberry
|
232
|
-
* Scoured the Ruby world for useful additions.
|
233
|
-
* Changed name again from A.B.C. to Raspberry.
|
234
|
-
I can't seem to settle on a name. Even the new
|
235
|
-
subsections have changed five times. (2004-08-08)
|
236
|
-
|
237
|
-
== v0.3.0 ABC
|
238
|
-
* Reorganinzed all of this together in a nice neat way.
|
239
|
-
* Changed name of library from Succ to A.B.C.
|
240
|
-
which stands for All Base Common. (2004-02-02)
|
241
|
-
|
242
|
-
== v0.2.0 Succ
|
243
|
-
* A number of new methods added.
|
244
|
-
* Renamed it Succ for "successor". (2003-05-31)
|
245
|
-
|
246
|
-
== v0.1.0 TomsLib
|
247
|
-
* Tomslib's just a few useful methods. (2002-07-01)
|
248
|
-
|
249
|
-
|
250
|
-
== Old Mega/Carats ChangeLog
|
251
|
-
|
252
|
-
== v0.4.0
|
253
|
-
* Adjusted Tuple to use Tuple::[*args] instead of ::new, which now takes
|
254
|
-
a single argument instead, either an Array or a String which it splits.
|
255
|
-
* Removed services.rb unitl in gets fixed and a better name.
|
256
|
-
|
257
|
-
== v0.3.3
|
258
|
-
* Added inheritable.rb, a lib for creating class vars inherit from ancestors
|
259
|
-
* Addes annotations.rb, a lightweight metadata system good for annotating
|
260
|
-
methods esspecially. It is built on top of inheritable.rb.
|
261
|
-
|
262
|
-
== 0.3.2
|
263
|
-
* Added services.rb, a lib for managing methods as first class objects
|
264
|
-
* Fixed/cleaned-up orm_supprt.rb
|
265
|
-
|
266
|
-
== 0.3.1
|
267
|
-
* Aliased #autoload_classes with #autorequire.
|
268
|
-
* Added #strfbits and #strfbytes to binary_multiplers.rb.
|
269
|
-
|
270
|
-
== 0.3.0
|
271
|
-
* Name change to Mega Modules!
|
272
|
-
* Added a few important files: multipliers.rb, binary_multipliers.rb,
|
273
|
-
time_in_english.rb and orm_inlectors.rb.
|
274
|
-
* Each one of these is a "Methods Module", i.e. They are a collection of
|
275
|
-
closely related methods that modify one or more core classes/modules.
|
276
|
-
Individually these methods could have very well ended up in Nano Methods,
|
277
|
-
but given there quantity and interrelation they were more suitable to a
|
278
|
-
module, and thus placed here.
|
279
|
-
|
280
|
-
== 0.2.0
|
281
|
-
* Initial public release
|
282
|
-
|
283
|
-
== 0.1.0
|
284
|
-
* Early Development as Ruby Carats
|