facets 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ProjectInfo +32 -25
- data/data/facets/index.yml +30 -6
- data/data/facets/units/binary/base.yaml +12 -0
- data/data/facets/units/binary/extra.yaml +8 -0
- data/data/facets/units/cex.yaml +7 -0
- data/data/facets/units/currency/base.yaml +268 -0
- data/data/facets/units/default.yaml +22 -0
- data/data/facets/units/dump_yaml.rb +309 -0
- data/data/facets/units/si/base.yaml +36 -0
- data/data/facets/units/si/derived.yaml +133 -0
- data/data/facets/units/si/extra.yaml +107 -0
- data/data/facets/units/standard.yaml +5 -0
- data/data/facets/units/uk.yaml +16 -0
- data/data/facets/units/uk/base.yaml +107 -0
- data/data/facets/units/us.yaml +16 -0
- data/data/facets/units/us/base.yaml +112 -0
- data/data/facets/units/xmethods/cached.yaml +83 -0
- data/data/facets/units/xmethods/mapping.yaml +85 -0
- data/lib/facet/array/join_sentence.rb +1 -0
- data/lib/facet/class/cattr.rb +1 -0
- data/lib/facet/class/cattr_accessor.rb +1 -0
- data/lib/facet/class/cattr_reader.rb +1 -0
- data/lib/facet/class/cattr_writer.rb +1 -0
- data/lib/facet/elementor.rb +1 -0
- data/lib/facet/enumerable/accumulate.rb +1 -0
- data/lib/facet/enumerable/collect_if.rb +1 -0
- data/lib/facet/enumerable/map_if.rb +1 -0
- data/lib/facet/file/self/append.rb +1 -0
- data/lib/facet/file/self/read_binary.rb +1 -0
- data/lib/facet/file/self/write.rb +1 -0
- data/lib/facet/json.rb +1 -0
- data/lib/facet/kernel/__self__.rb +1 -0
- data/lib/facet/kernel/methodname.rb +1 -0
- data/lib/facet/module/attr_query.rb +1 -0
- data/lib/facet/module/attr_validator.rb +1 -0
- data/lib/facet/module/inherit.rb +1 -0
- data/lib/facet/module/let.rb +1 -0
- data/lib/facet/module/mattr.rb +1 -0
- data/lib/facet/module/mattr_accessor.rb +1 -0
- data/lib/facet/module/mattr_reader.rb +1 -0
- data/lib/facet/module/mattr_writer.rb +1 -0
- data/lib/facet/module/singleton_to_module.rb +1 -0
- data/lib/facet/nilclass/op_cmp.rb +1 -0
- data/lib/facet/nilclass/succ.rb +1 -0
- data/lib/facet/recorder.rb +1 -0
- data/lib/facet/xoxo.rb +1 -0
- data/lib/facets/core/array.rb +1 -0
- data/lib/facets/core/array/join_sentence.rb +12 -0
- data/lib/facets/core/class.rb +4 -0
- data/lib/facets/core/{module → class}/cattr.rb +7 -9
- data/lib/facets/core/class/cattr_accessor.rb +2 -0
- data/lib/facets/core/class/cattr_reader.rb +3 -0
- data/lib/facets/core/class/cattr_writer.rb +2 -0
- data/lib/facets/core/dir/self/ls_r.rb +4 -9
- data/lib/facets/core/enumerable.rb +3 -0
- data/lib/facets/core/enumerable/accumulate.rb +25 -0
- data/lib/facets/core/enumerable/collect_if.rb +15 -0
- data/lib/facets/core/enumerable/ew.rb +1 -5
- data/lib/facets/core/enumerable/map_if.rb +3 -0
- data/lib/facets/core/file.rb +3 -0
- data/lib/facets/core/file/self/append.rb +8 -0
- data/lib/facets/core/file/self/create.rb +14 -8
- data/lib/facets/core/file/self/open_as_string.rb +31 -13
- data/lib/facets/core/file/self/read_binary.rb +8 -0
- data/lib/facets/core/file/self/read_list.rb +11 -7
- data/lib/facets/core/file/self/write.rb +8 -0
- data/lib/facets/core/fileutils/wc.rb +4 -9
- data/lib/facets/core/fileutils/which.rb +4 -9
- data/lib/facets/core/kernel.rb +2 -1
- data/lib/facets/core/kernel/__self__.rb +32 -0
- data/lib/facets/core/kernel/as.rb +1 -1
- data/lib/facets/core/kernel/assign_from.rb +3 -3
- data/lib/facets/core/kernel/assign_with.rb +2 -0
- data/lib/facets/core/kernel/me.rb +3 -2
- data/lib/facets/core/kernel/method_name.rb +2 -49
- data/lib/facets/core/kernel/methodname.rb +49 -0
- data/lib/facets/core/module.rb +9 -4
- data/lib/facets/core/module/attr_query.rb +56 -0
- data/lib/facets/core/module/attr_validator.rb +18 -0
- data/lib/facets/core/module/inherit.rb +70 -0
- data/lib/facets/core/module/integrate.rb +1 -1
- data/lib/facets/core/module/let.rb +55 -0
- data/lib/facets/core/module/mattr.rb +180 -0
- data/lib/facets/core/module/{cattr_accessor.rb → mattr_accessor.rb} +0 -0
- data/lib/facets/core/module/{cattr_reader.rb → mattr_reader.rb} +0 -0
- data/lib/facets/core/module/{cattr_writer.rb → mattr_writer.rb} +0 -0
- data/lib/facets/core/module/on_included.rb +3 -1
- data/lib/facets/core/module/singleton_to_module.rb +23 -0
- data/lib/facets/core/nilclass.rb +2 -0
- data/lib/facets/core/string/methodize.rb +4 -3
- data/lib/facets/core/string/modulize.rb +3 -3
- data/lib/facets/more/ansicode.rb +1 -1
- data/lib/facets/more/aspects.rb +1 -1
- data/lib/facets/more/basicobject.rb +67 -22
- data/lib/facets/more/classinherit.rb +2 -2
- data/lib/facets/more/cloneable.rb +1 -1
- data/lib/facets/more/consoleapp.rb +31 -20
- data/lib/facets/more/dictionary.rb +1 -1
- data/lib/facets/more/filelist.rb +2 -10
- data/lib/facets/more/functor.rb +6 -6
- data/lib/facets/more/json.rb +891 -0
- data/lib/facets/more/methodprobe.rb +1 -1
- data/lib/facets/more/multiton.rb +16 -8
- data/lib/facets/more/nilcomparable.rb +31 -49
- data/lib/facets/more/openobject.rb +50 -10
- data/lib/facets/more/recorder.rb +125 -0
- data/lib/facets/more/rtals.rb +199 -4
- data/lib/facets/more/typecast.rb +12 -12
- data/lib/facets/more/units.rb +20 -14
- data/lib/facets/more/xoxo.rb +519 -0
- data/setup.rb +283 -271
- 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_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_slap.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/{module/test_cattr_accessor.rb → class/test_cattr.rb} +11 -3
- 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_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 +14 -9
- data/test/lib/facets/core/file/self/test_open_as_string.rb +21 -11
- data/test/lib/facets/core/file/self/test_read_list.rb +11 -8
- 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_method_name.rb → test_methodname.rb} +3 -3
- 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 +1 -1
- 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 +58 -0
- 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_let.rb +31 -0
- data/test/lib/facets/core/module/test_mattr.rb +71 -0
- 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_on_included.rb +36 -0
- 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_undef.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_to_f.rb → test_blank.rb} +5 -5
- 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/{float → numeric}/test_approx.rb +4 -3
- 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_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_slap.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_arr.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_annotation.rb +1 -1
- data/test/lib/facets/more/test_ansicode.rb +1 -1
- data/test/lib/facets/more/test_association.rb +1 -1
- data/test/lib/facets/more/test_basicobject.rb +58 -0
- data/test/lib/facets/more/test_bbcode.rb +1 -1
- 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 +48 -0
- 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_inheritor.rb +1 -1
- data/test/lib/facets/more/test_interval.rb +1 -1
- data/test/lib/facets/more/test_json.rb +232 -0
- 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 +6 -2
- data/test/lib/facets/more/test_openobject.rb +1 -1
- 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_preinitialize.rb +1 -1
- data/test/lib/facets/more/test_promoteself.rb +1 -1
- data/test/lib/facets/more/test_recorder.rb +44 -0
- data/test/lib/facets/more/test_snapshot.rb +1 -1
- data/test/lib/facets/more/test_statichash.rb +1 -1
- 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_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 +2 -2
- data/test/lib/facets/more/test_uninheritable.rb +1 -1
- data/test/lib/facets/more/test_units.rb +16 -10
- data/test/lib/facets/more/test_xoxo.rb +288 -0
- data/test/lib/facets/more/test_yamlstruct.rb +1 -1
- metadata +92 -25
- data/lib/facet/kernel/instance.rb +0 -1
- data/lib/facet/module/cattr.rb +0 -1
- data/lib/facet/module/cattr_accessor.rb +0 -1
- data/lib/facet/module/cattr_reader.rb +0 -1
- data/lib/facet/module/cattr_writer.rb +0 -1
- data/lib/facets/core/kernel/instance.rb +0 -29
- data/test/FIXTURE/create_file +0 -1
- data/test/FIXTURE/open_as_string_file +0 -1
- data/test/FIXTURE/read_list_file +0 -6
- data/test/lib/facets/core/dir/self/test_ls_r.rb +0 -52
- data/test/lib/facets/core/fileutils/test_wc.rb +0 -68
- data/test/lib/facets/core/fileutils/test_which.rb +0 -61
- data/test/testdir.rb +0 -8
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: facets
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.
|
7
|
-
date: 2006-
|
6
|
+
version: 1.3.0
|
7
|
+
date: 2006-04-14 00:00:00 -04:00
|
8
8
|
summary: Vast collection of atomic core extension methods.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -22,7 +22,7 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 0.0.0
|
24
24
|
version:
|
25
|
-
platform:
|
25
|
+
platform:
|
26
26
|
signing_key:
|
27
27
|
cert_chain:
|
28
28
|
authors:
|
@@ -41,7 +41,30 @@ files:
|
|
41
41
|
- conf
|
42
42
|
- CHANGELOG
|
43
43
|
- data/facets
|
44
|
+
- data/facets/units
|
44
45
|
- data/facets/index.yml
|
46
|
+
- data/facets/units/si
|
47
|
+
- data/facets/units/uk
|
48
|
+
- data/facets/units/us
|
49
|
+
- data/facets/units/cex.yaml
|
50
|
+
- data/facets/units/default.yaml
|
51
|
+
- data/facets/units/currency
|
52
|
+
- data/facets/units/binary
|
53
|
+
- data/facets/units/dump_yaml.rb
|
54
|
+
- data/facets/units/uk.yaml
|
55
|
+
- data/facets/units/us.yaml
|
56
|
+
- data/facets/units/standard.yaml
|
57
|
+
- data/facets/units/xmethods
|
58
|
+
- data/facets/units/si/derived.yaml
|
59
|
+
- data/facets/units/si/extra.yaml
|
60
|
+
- data/facets/units/si/base.yaml
|
61
|
+
- data/facets/units/uk/base.yaml
|
62
|
+
- data/facets/units/us/base.yaml
|
63
|
+
- data/facets/units/currency/base.yaml
|
64
|
+
- data/facets/units/binary/extra.yaml
|
65
|
+
- data/facets/units/binary/base.yaml
|
66
|
+
- data/facets/units/xmethods/mapping.yaml
|
67
|
+
- data/facets/units/xmethods/cached.yaml
|
45
68
|
- lib/facet
|
46
69
|
- lib/facets.rb
|
47
70
|
- lib/facets
|
@@ -175,6 +198,10 @@ files:
|
|
175
198
|
- lib/facet/pathlist.rb
|
176
199
|
- lib/facet/overload.rb
|
177
200
|
- lib/facet/aspects.rb
|
201
|
+
- lib/facet/elementor.rb
|
202
|
+
- lib/facet/json.rb
|
203
|
+
- lib/facet/xoxo.rb
|
204
|
+
- lib/facet/recorder.rb
|
178
205
|
- lib/facet/array/pull.rb
|
179
206
|
- lib/facet/array/each_with_key.rb
|
180
207
|
- lib/facet/array/merge.rb
|
@@ -209,6 +236,7 @@ files:
|
|
209
236
|
- lib/facet/array/body.rb
|
210
237
|
- lib/facet/array/store.rb
|
211
238
|
- lib/facet/array/op_mod.rb
|
239
|
+
- lib/facet/array/join_sentence.rb
|
212
240
|
- lib/facet/binding/call_stack.rb
|
213
241
|
- lib/facet/binding/self.rb
|
214
242
|
- lib/facet/binding/__DIR__.rb
|
@@ -231,6 +259,10 @@ files:
|
|
231
259
|
- lib/facet/class/by_name.rb
|
232
260
|
- lib/facet/class/unix_path.rb
|
233
261
|
- lib/facet/class/method_name.rb
|
262
|
+
- lib/facet/class/cattr.rb
|
263
|
+
- lib/facet/class/cattr_accessor.rb
|
264
|
+
- lib/facet/class/cattr_reader.rb
|
265
|
+
- lib/facet/class/cattr_writer.rb
|
234
266
|
- lib/facet/comparable/cap.rb
|
235
267
|
- lib/facet/comparable/cmp.rb
|
236
268
|
- lib/facet/comparable/at_least.rb
|
@@ -286,6 +318,9 @@ files:
|
|
286
318
|
- lib/facet/enumerable/each_with_counter.rb
|
287
319
|
- lib/facet/enumerable/uniq_by.rb
|
288
320
|
- lib/facet/enumerable/cross.rb
|
321
|
+
- lib/facet/enumerable/accumulate.rb
|
322
|
+
- lib/facet/enumerable/collect_if.rb
|
323
|
+
- lib/facet/enumerable/map_if.rb
|
289
324
|
- lib/facet/enumerable/self
|
290
325
|
- lib/facet/enumerable/self/combinations.rb
|
291
326
|
- lib/facet/enumerable/self/cross.rb
|
@@ -295,6 +330,9 @@ files:
|
|
295
330
|
- lib/facet/file/self/sanitize.rb
|
296
331
|
- lib/facet/file/self/split_all.rb
|
297
332
|
- lib/facet/file/self/create.rb
|
333
|
+
- lib/facet/file/self/read_binary.rb
|
334
|
+
- lib/facet/file/self/write.rb
|
335
|
+
- lib/facet/file/self/append.rb
|
298
336
|
- lib/facet/fileutils/wc.rb
|
299
337
|
- lib/facet/fileutils/tail.rb
|
300
338
|
- lib/facet/fileutils/which.rb
|
@@ -364,6 +402,7 @@ files:
|
|
364
402
|
- lib/facet/kernel/copy.rb
|
365
403
|
- lib/facet/kernel/demo.rb
|
366
404
|
- lib/facet/kernel/resc.rb
|
405
|
+
- lib/facet/kernel/__self__.rb
|
367
406
|
- lib/facet/kernel/set_with.rb
|
368
407
|
- lib/facet/kernel/require_all.rb
|
369
408
|
- lib/facet/kernel/as.rb
|
@@ -423,8 +462,8 @@ files:
|
|
423
462
|
- lib/facet/kernel/require_facet.rb
|
424
463
|
- lib/facet/kernel/silently.rb
|
425
464
|
- lib/facet/kernel/autoreload_files.rb
|
426
|
-
- lib/facet/kernel/instance.rb
|
427
465
|
- lib/facet/kernel/pp_exception.rb
|
466
|
+
- lib/facet/kernel/methodname.rb
|
428
467
|
- lib/facet/logger/format.rb
|
429
468
|
- lib/facet/logger/format_message.rb
|
430
469
|
- lib/facet/matchdata/matchtree.rb
|
@@ -449,10 +488,9 @@ files:
|
|
449
488
|
- lib/facet/module/alias_module_function.rb
|
450
489
|
- lib/facet/module/namespace.rb
|
451
490
|
- lib/facet/module/abstract.rb
|
452
|
-
- lib/facet/module/cattr_reader.rb
|
453
491
|
- lib/facet/module/nesting.rb
|
454
492
|
- lib/facet/module/wrap_method.rb
|
455
|
-
- lib/facet/module/
|
493
|
+
- lib/facet/module/let.rb
|
456
494
|
- lib/facet/module/ancestor.rb
|
457
495
|
- lib/facet/module/include_as.rb
|
458
496
|
- lib/facet/module/rename_method.rb
|
@@ -462,7 +500,7 @@ files:
|
|
462
500
|
- lib/facet/module/attr.rb
|
463
501
|
- lib/facet/module/remove.rb
|
464
502
|
- lib/facet/module/sort_on.rb
|
465
|
-
- lib/facet/module/
|
503
|
+
- lib/facet/module/mattr.rb
|
466
504
|
- lib/facet/module/equate_on.rb
|
467
505
|
- lib/facet/module/redef.rb
|
468
506
|
- lib/facet/module/clone_using.rb
|
@@ -471,7 +509,13 @@ files:
|
|
471
509
|
- lib/facet/module/wrap.rb
|
472
510
|
- lib/facet/module/revisal.rb
|
473
511
|
- lib/facet/module/on_included.rb
|
474
|
-
- lib/facet/module/
|
512
|
+
- lib/facet/module/attr_query.rb
|
513
|
+
- lib/facet/module/inherit.rb
|
514
|
+
- lib/facet/module/attr_validator.rb
|
515
|
+
- lib/facet/module/mattr_accessor.rb
|
516
|
+
- lib/facet/module/mattr_writer.rb
|
517
|
+
- lib/facet/module/mattr_reader.rb
|
518
|
+
- lib/facet/module/singleton_to_module.rb
|
475
519
|
- lib/facet/nilclass/size.rb
|
476
520
|
- lib/facet/nilclass/length.rb
|
477
521
|
- lib/facet/nilclass/empty.rb
|
@@ -479,6 +523,8 @@ files:
|
|
479
523
|
- lib/facet/nilclass/to_h.rb
|
480
524
|
- lib/facet/nilclass/op_fetch.rb
|
481
525
|
- lib/facet/nilclass/include.rb
|
526
|
+
- lib/facet/nilclass/succ.rb
|
527
|
+
- lib/facet/nilclass/op_cmp.rb
|
482
528
|
- lib/facet/numeric/succ.rb
|
483
529
|
- lib/facet/numeric/to_b.rb
|
484
530
|
- lib/facet/numeric/ceil_multiple.rb
|
@@ -720,6 +766,7 @@ files:
|
|
720
766
|
- lib/facets/core/array/body.rb
|
721
767
|
- lib/facets/core/array/store.rb
|
722
768
|
- lib/facets/core/array/op_mod.rb
|
769
|
+
- lib/facets/core/array/join_sentence.rb
|
723
770
|
- lib/facets/core/binding/self
|
724
771
|
- lib/facets/core/binding/call_stack.rb
|
725
772
|
- lib/facets/core/binding/self.rb
|
@@ -742,6 +789,10 @@ files:
|
|
742
789
|
- lib/facets/core/class/by_name.rb
|
743
790
|
- lib/facets/core/class/unix_path.rb
|
744
791
|
- lib/facets/core/class/method_name.rb
|
792
|
+
- lib/facets/core/class/cattr.rb
|
793
|
+
- lib/facets/core/class/cattr_accessor.rb
|
794
|
+
- lib/facets/core/class/cattr_reader.rb
|
795
|
+
- lib/facets/core/class/cattr_writer.rb
|
745
796
|
- lib/facets/core/comparable/cap.rb
|
746
797
|
- lib/facets/core/comparable/cmp.rb
|
747
798
|
- lib/facets/core/comparable/at_least.rb
|
@@ -798,6 +849,9 @@ files:
|
|
798
849
|
- lib/facets/core/enumerable/each_with_counter.rb
|
799
850
|
- lib/facets/core/enumerable/uniq_by.rb
|
800
851
|
- lib/facets/core/enumerable/cross.rb
|
852
|
+
- lib/facets/core/enumerable/accumulate.rb
|
853
|
+
- lib/facets/core/enumerable/collect_if.rb
|
854
|
+
- lib/facets/core/enumerable/map_if.rb
|
801
855
|
- lib/facets/core/enumerable/self/combinations.rb
|
802
856
|
- lib/facets/core/enumerable/self/cross.rb
|
803
857
|
- lib/facets/core/file/self
|
@@ -806,6 +860,9 @@ files:
|
|
806
860
|
- lib/facets/core/file/self/sanitize.rb
|
807
861
|
- lib/facets/core/file/self/split_all.rb
|
808
862
|
- lib/facets/core/file/self/create.rb
|
863
|
+
- lib/facets/core/file/self/read_binary.rb
|
864
|
+
- lib/facets/core/file/self/write.rb
|
865
|
+
- lib/facets/core/file/self/append.rb
|
809
866
|
- lib/facets/core/fileutils/wc.rb
|
810
867
|
- lib/facets/core/fileutils/tail.rb
|
811
868
|
- lib/facets/core/fileutils/which.rb
|
@@ -875,6 +932,7 @@ files:
|
|
875
932
|
- lib/facets/core/kernel/copy.rb
|
876
933
|
- lib/facets/core/kernel/demo.rb
|
877
934
|
- lib/facets/core/kernel/resc.rb
|
935
|
+
- lib/facets/core/kernel/__self__.rb
|
878
936
|
- lib/facets/core/kernel/set_with.rb
|
879
937
|
- lib/facets/core/kernel/require_all.rb
|
880
938
|
- lib/facets/core/kernel/as.rb
|
@@ -934,8 +992,8 @@ files:
|
|
934
992
|
- lib/facets/core/kernel/require_facet.rb
|
935
993
|
- lib/facets/core/kernel/silently.rb
|
936
994
|
- lib/facets/core/kernel/autoreload_files.rb
|
937
|
-
- lib/facets/core/kernel/instance.rb
|
938
995
|
- lib/facets/core/kernel/pp_exception.rb
|
996
|
+
- lib/facets/core/kernel/methodname.rb
|
939
997
|
- lib/facets/core/logger/format.rb
|
940
998
|
- lib/facets/core/logger/format_message.rb
|
941
999
|
- lib/facets/core/matchdata/matchtree.rb
|
@@ -960,10 +1018,9 @@ files:
|
|
960
1018
|
- lib/facets/core/module/alias_module_function.rb
|
961
1019
|
- lib/facets/core/module/namespace.rb
|
962
1020
|
- lib/facets/core/module/abstract.rb
|
963
|
-
- lib/facets/core/module/cattr_reader.rb
|
964
1021
|
- lib/facets/core/module/nesting.rb
|
965
1022
|
- lib/facets/core/module/wrap_method.rb
|
966
|
-
- lib/facets/core/module/
|
1023
|
+
- lib/facets/core/module/let.rb
|
967
1024
|
- lib/facets/core/module/ancestor.rb
|
968
1025
|
- lib/facets/core/module/include_as.rb
|
969
1026
|
- lib/facets/core/module/rename_method.rb
|
@@ -973,7 +1030,7 @@ files:
|
|
973
1030
|
- lib/facets/core/module/attr.rb
|
974
1031
|
- lib/facets/core/module/remove.rb
|
975
1032
|
- lib/facets/core/module/sort_on.rb
|
976
|
-
- lib/facets/core/module/
|
1033
|
+
- lib/facets/core/module/mattr.rb
|
977
1034
|
- lib/facets/core/module/equate_on.rb
|
978
1035
|
- lib/facets/core/module/redef.rb
|
979
1036
|
- lib/facets/core/module/clone_using.rb
|
@@ -982,7 +1039,13 @@ files:
|
|
982
1039
|
- lib/facets/core/module/wrap.rb
|
983
1040
|
- lib/facets/core/module/revisal.rb
|
984
1041
|
- lib/facets/core/module/on_included.rb
|
985
|
-
- lib/facets/core/module/
|
1042
|
+
- lib/facets/core/module/attr_query.rb
|
1043
|
+
- lib/facets/core/module/inherit.rb
|
1044
|
+
- lib/facets/core/module/attr_validator.rb
|
1045
|
+
- lib/facets/core/module/mattr_accessor.rb
|
1046
|
+
- lib/facets/core/module/mattr_writer.rb
|
1047
|
+
- lib/facets/core/module/mattr_reader.rb
|
1048
|
+
- lib/facets/core/module/singleton_to_module.rb
|
986
1049
|
- lib/facets/core/nilclass/size.rb
|
987
1050
|
- lib/facets/core/nilclass/length.rb
|
988
1051
|
- lib/facets/core/nilclass/empty.rb
|
@@ -1205,8 +1268,10 @@ files:
|
|
1205
1268
|
- lib/facets/more/overload.rb
|
1206
1269
|
- lib/facets/more/aspects.rb
|
1207
1270
|
- lib/facets/more/elementor.rb
|
1271
|
+
- lib/facets/more/json.rb
|
1272
|
+
- lib/facets/more/xoxo.rb
|
1273
|
+
- lib/facets/more/recorder.rb
|
1208
1274
|
- test/lib
|
1209
|
-
- test/testdir.rb
|
1210
1275
|
- test/FIXTURE
|
1211
1276
|
- test/lib/facets
|
1212
1277
|
- test/lib/facets/more
|
@@ -1219,7 +1284,6 @@ files:
|
|
1219
1284
|
- test/lib/facets/core/dir
|
1220
1285
|
- test/lib/facets/core/enumerable
|
1221
1286
|
- test/lib/facets/core/file
|
1222
|
-
- test/lib/facets/core/fileutils
|
1223
1287
|
- test/lib/facets/core/float
|
1224
1288
|
- test/lib/facets/core/hash
|
1225
1289
|
- test/lib/facets/core/integer
|
@@ -1278,6 +1342,7 @@ files:
|
|
1278
1342
|
- test/lib/facets/core/class/test_remove_descendents.rb
|
1279
1343
|
- test/lib/facets/core/class/test_unix_path.rb
|
1280
1344
|
- test/lib/facets/core/class/test_method_name.rb
|
1345
|
+
- test/lib/facets/core/class/test_cattr.rb
|
1281
1346
|
- test/lib/facets/core/comparable/test_cmp.rb
|
1282
1347
|
- test/lib/facets/core/comparable/test_at_least.rb
|
1283
1348
|
- test/lib/facets/core/comparable/test_clip.rb
|
@@ -1290,7 +1355,6 @@ files:
|
|
1290
1355
|
- test/lib/facets/core/date/test_to_time.rb
|
1291
1356
|
- test/lib/facets/core/date/test_days_of_month.rb
|
1292
1357
|
- test/lib/facets/core/dir/self
|
1293
|
-
- test/lib/facets/core/dir/self/test_ls_r.rb
|
1294
1358
|
- test/lib/facets/core/dir/self/test_ancestor.rb
|
1295
1359
|
- test/lib/facets/core/dir/self/test_ascend.rb
|
1296
1360
|
- test/lib/facets/core/enumerable/test_find_collisions.rb
|
@@ -1327,9 +1391,6 @@ files:
|
|
1327
1391
|
- test/lib/facets/core/file/self/test_sanitize.rb
|
1328
1392
|
- test/lib/facets/core/file/self/test_split_all.rb
|
1329
1393
|
- test/lib/facets/core/file/self/test_create.rb
|
1330
|
-
- test/lib/facets/core/fileutils/test_wc.rb
|
1331
|
-
- test/lib/facets/core/fileutils/test_which.rb
|
1332
|
-
- test/lib/facets/core/float/test_approx.rb
|
1333
1394
|
- test/lib/facets/core/float/test_round_at.rb
|
1334
1395
|
- test/lib/facets/core/float/test_round_to.rb
|
1335
1396
|
- test/lib/facets/core/hash/test_collate.rb
|
@@ -1390,7 +1451,6 @@ files:
|
|
1390
1451
|
- test/lib/facets/core/kernel/test_send_as.rb
|
1391
1452
|
- test/lib/facets/core/kernel/test_this.rb
|
1392
1453
|
- test/lib/facets/core/kernel/test_bug.rb
|
1393
|
-
- test/lib/facets/core/kernel/test_method_name.rb
|
1394
1454
|
- test/lib/facets/core/kernel/test_generate_method_name.rb
|
1395
1455
|
- test/lib/facets/core/kernel/test_to_b.rb
|
1396
1456
|
- test/lib/facets/core/kernel/test_supermethod.rb
|
@@ -1413,6 +1473,7 @@ files:
|
|
1413
1473
|
- test/lib/facets/core/kernel/test_bool.rb
|
1414
1474
|
- test/lib/facets/core/kernel/test_require_facet.rb
|
1415
1475
|
- test/lib/facets/core/kernel/test_silently.rb
|
1476
|
+
- test/lib/facets/core/kernel/test_methodname.rb
|
1416
1477
|
- test/lib/facets/core/matchdata/test_matchtree.rb
|
1417
1478
|
- test/lib/facets/core/matchdata/test_match.rb
|
1418
1479
|
- test/lib/facets/core/module/test_redefine_method.rb
|
@@ -1431,6 +1492,7 @@ files:
|
|
1431
1492
|
- test/lib/facets/core/module/test_abstract.rb
|
1432
1493
|
- test/lib/facets/core/module/test_nesting.rb
|
1433
1494
|
- test/lib/facets/core/module/test_wrap_method.rb
|
1495
|
+
- test/lib/facets/core/module/test_let.rb
|
1434
1496
|
- test/lib/facets/core/module/test_ancestor.rb
|
1435
1497
|
- test/lib/facets/core/module/test_include_as.rb
|
1436
1498
|
- test/lib/facets/core/module/test_rename_method.rb
|
@@ -1438,7 +1500,7 @@ files:
|
|
1438
1500
|
- test/lib/facets/core/module/test_dirname.rb
|
1439
1501
|
- test/lib/facets/core/module/test_remove.rb
|
1440
1502
|
- test/lib/facets/core/module/test_sort_on.rb
|
1441
|
-
- test/lib/facets/core/module/
|
1503
|
+
- test/lib/facets/core/module/test_mattr.rb
|
1442
1504
|
- test/lib/facets/core/module/test_equate_on.rb
|
1443
1505
|
- test/lib/facets/core/module/test_redef.rb
|
1444
1506
|
- test/lib/facets/core/module/test_clone_using.rb
|
@@ -1446,15 +1508,18 @@ files:
|
|
1446
1508
|
- test/lib/facets/core/module/test_memoize.rb
|
1447
1509
|
- test/lib/facets/core/module/test_wrap.rb
|
1448
1510
|
- test/lib/facets/core/module/test_revisal.rb
|
1511
|
+
- test/lib/facets/core/module/test_on_included.rb
|
1512
|
+
- test/lib/facets/core/module/test_inherit.rb
|
1449
1513
|
- test/lib/facets/core/nilclass/test_size.rb
|
1450
1514
|
- test/lib/facets/core/nilclass/test_empty.rb
|
1451
|
-
- test/lib/facets/core/nilclass/
|
1515
|
+
- test/lib/facets/core/nilclass/test_blank.rb
|
1452
1516
|
- test/lib/facets/core/nilclass/test_to_h.rb
|
1453
1517
|
- test/lib/facets/core/nilclass/test_op_fetch.rb
|
1454
1518
|
- test/lib/facets/core/nilclass/test_include.rb
|
1455
1519
|
- test/lib/facets/core/numeric/test_succ.rb
|
1456
1520
|
- test/lib/facets/core/numeric/test_to_b.rb
|
1457
1521
|
- test/lib/facets/core/numeric/test_ceil_multiple.rb
|
1522
|
+
- test/lib/facets/core/numeric/test_approx.rb
|
1458
1523
|
- test/lib/facets/core/ostruct/test___update__.rb
|
1459
1524
|
- test/lib/facets/core/ostruct/test___merge__.rb
|
1460
1525
|
- test/lib/facets/core/ostruct/test_op_store.rb
|
@@ -1560,6 +1625,7 @@ files:
|
|
1560
1625
|
- test/lib/facets/more/test_annotation.rb
|
1561
1626
|
- test/lib/facets/more/test_ansicode.rb
|
1562
1627
|
- test/lib/facets/more/test_association.rb
|
1628
|
+
- test/lib/facets/more/test_basicobject.rb
|
1563
1629
|
- test/lib/facets/more/test_bbcode.rb
|
1564
1630
|
- test/lib/facets/more/test_bitmask.rb
|
1565
1631
|
- test/lib/facets/more/test_classinherit.rb
|
@@ -1599,13 +1665,14 @@ files:
|
|
1599
1665
|
- test/lib/facets/more/test_typecast.rb
|
1600
1666
|
- test/lib/facets/more/test_promoteself.rb
|
1601
1667
|
- test/lib/facets/more/test_overload.rb
|
1668
|
+
- test/lib/facets/more/test_elementor.rb
|
1669
|
+
- test/lib/facets/more/test_json.rb
|
1670
|
+
- test/lib/facets/more/test_xoxo.rb
|
1671
|
+
- test/lib/facets/more/test_recorder.rb
|
1602
1672
|
- test/FIXTURE/ls_r
|
1603
|
-
- test/FIXTURE/open_as_string_file
|
1604
1673
|
- test/FIXTURE/test_file.txt
|
1605
1674
|
- test/FIXTURE/filelist
|
1606
1675
|
- test/FIXTURE/test_file2.txt
|
1607
|
-
- test/FIXTURE/read_list_file
|
1608
|
-
- test/FIXTURE/create_file
|
1609
1676
|
- test/FIXTURE/ls_r/A
|
1610
1677
|
- test/FIXTURE/ls_r/A.txt
|
1611
1678
|
- test/FIXTURE/ls_r/A/B
|
@@ -1 +0,0 @@
|
|
1
|
-
require 'facets/core/kernel/instance.rb'
|
data/lib/facet/module/cattr.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'facets/core/module/cattr.rb'
|
@@ -1 +0,0 @@
|
|
1
|
-
require 'facets/core/module/cattr_accessor.rb'
|
@@ -1 +0,0 @@
|
|
1
|
-
require 'facets/core/module/cattr_reader.rb'
|
@@ -1 +0,0 @@
|
|
1
|
-
require 'facets/core/module/cattr_writer.rb'
|
@@ -1,29 +0,0 @@
|
|
1
|
-
|
2
|
-
require 'facet/functor'
|
3
|
-
|
4
|
-
class Object
|
5
|
-
|
6
|
-
# Returns a Functor that allows one to call any
|
7
|
-
# Kernel method bound to self.
|
8
|
-
#
|
9
|
-
# class A
|
10
|
-
# def object_id ; "OBTUSE" ; end
|
11
|
-
# end
|
12
|
-
#
|
13
|
-
# c = C.new
|
14
|
-
# c.object_id #=> "OBTUSE"
|
15
|
-
# c.instance.object_id #=> 6664875832
|
16
|
-
#
|
17
|
-
#--
|
18
|
-
# Might this be better named as 'object'?
|
19
|
-
#++
|
20
|
-
|
21
|
-
def instance
|
22
|
-
@__instance__ ||= Functor.new do |meth, *args| # &blk|
|
23
|
-
Kernel.instance_method(meth).bind(self).call(*args) # ,&blk)
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
alias_method :__instance__, :instance
|
28
|
-
|
29
|
-
end
|
data/test/FIXTURE/create_file
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
This is a test
|
@@ -1 +0,0 @@
|
|
1
|
-
tset a si sihT
|
@@ -1,52 +0,0 @@
|
|
1
|
-
# _____ _
|
2
|
-
# |_ _|__ ___| |_
|
3
|
-
# | |/ _ \/ __| __|
|
4
|
-
# | | __/\__ \ |_
|
5
|
-
# |_|\___||___/\__|
|
6
|
-
#
|
7
|
-
# for lib/facets/core/dir/self/ls_r.rb
|
8
|
-
#
|
9
|
-
# Extracted Fri Mar 24 23:42:50 UTC 2006
|
10
|
-
# Unit Tools Reap Test Extractor
|
11
|
-
#
|
12
|
-
|
13
|
-
require 'facets/core/dir/self/ls_r.rb'
|
14
|
-
|
15
|
-
|
16
|
-
require 'test/unit'
|
17
|
-
|
18
|
-
# FIND TEST DIRECTORY
|
19
|
-
paths = File.expand_path(File.dirname(__FILE__)).split('/')
|
20
|
-
paths.size.downto(1) do |i|
|
21
|
-
f = (paths.slice(0..i)+['test']).join('/')
|
22
|
-
$TESTDIR = File.join(f,'FIXTURE') if File.directory?(f)
|
23
|
-
end
|
24
|
-
raise unless $TESTDIR
|
25
|
-
|
26
|
-
class TCDir < Test::Unit::TestCase
|
27
|
-
|
28
|
-
def test_ls_r
|
29
|
-
td = Dir.pwd
|
30
|
-
Dir.chdir $TESTDIR
|
31
|
-
r = ["A", "A/B","A/B/C.txt", "A/B.txt", "A.txt"].collect{ |e|
|
32
|
-
File.join( 'ls_r', e )
|
33
|
-
}
|
34
|
-
fs = Dir.ls_r( 'ls_r' )
|
35
|
-
assert_equal( r, fs, Dir.pwd )
|
36
|
-
Dir.chdir td
|
37
|
-
end
|
38
|
-
|
39
|
-
def test_recurse
|
40
|
-
td = Dir.pwd
|
41
|
-
Dir.chdir $TESTDIR
|
42
|
-
r = ["A", "A/B","A/B/C.txt", "A/B.txt", "A.txt"].collect{ |e|
|
43
|
-
File.join( 'ls_r', e )
|
44
|
-
}
|
45
|
-
fs = Dir.recurse( 'ls_r' )
|
46
|
-
assert_equal( r, fs, Dir.pwd )
|
47
|
-
Dir.chdir td
|
48
|
-
end
|
49
|
-
|
50
|
-
end
|
51
|
-
|
52
|
-
|