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
@@ -0,0 +1,107 @@
|
|
1
|
+
---
|
2
|
+
-
|
3
|
+
type: import
|
4
|
+
file: si/derived
|
5
|
+
-
|
6
|
+
name: minute
|
7
|
+
abbrev: min
|
8
|
+
type: unit
|
9
|
+
equals: 60.0 s
|
10
|
+
alias: minutes
|
11
|
+
-
|
12
|
+
name: hour
|
13
|
+
abbrev: h
|
14
|
+
type: unit
|
15
|
+
equals: 60.0 min
|
16
|
+
alias: hours
|
17
|
+
-
|
18
|
+
name: day
|
19
|
+
abbrev: d
|
20
|
+
type: unit
|
21
|
+
equals: 24.0 h
|
22
|
+
alias: days
|
23
|
+
-
|
24
|
+
name: liter
|
25
|
+
abbrev: L
|
26
|
+
type: unit
|
27
|
+
equals: dm**3
|
28
|
+
alias: liters
|
29
|
+
-
|
30
|
+
name: neper
|
31
|
+
abbrev: Np
|
32
|
+
type: unit
|
33
|
+
equals: ''
|
34
|
+
alias: nepers
|
35
|
+
-
|
36
|
+
name: electronvolt
|
37
|
+
abbrev: eV
|
38
|
+
type: unit
|
39
|
+
equals: 1.60218e-19 J
|
40
|
+
alias: electronvolts
|
41
|
+
-
|
42
|
+
name: are
|
43
|
+
abbrev: a
|
44
|
+
type: unit
|
45
|
+
equals: dam**2
|
46
|
+
alias: ares
|
47
|
+
-
|
48
|
+
name: hectare
|
49
|
+
abbrev: ha
|
50
|
+
type: unit
|
51
|
+
equals: hm**2
|
52
|
+
alias: hectares
|
53
|
+
-
|
54
|
+
name: barn
|
55
|
+
type: unit
|
56
|
+
equals: 100.0 fm**2
|
57
|
+
alias: barns
|
58
|
+
-
|
59
|
+
name: curie
|
60
|
+
abbrev: Ci
|
61
|
+
type: unit
|
62
|
+
equals: 3.7e10 Bq
|
63
|
+
alias: curies
|
64
|
+
-
|
65
|
+
name: roentgen
|
66
|
+
abbrev: R
|
67
|
+
type: unit
|
68
|
+
equals: 2.58e-4 kg
|
69
|
+
alias: roentgens
|
70
|
+
-
|
71
|
+
name: metric_ton
|
72
|
+
abbrev: t
|
73
|
+
type: unit
|
74
|
+
equals: 1000.0 kg
|
75
|
+
alias: metric_tons
|
76
|
+
-
|
77
|
+
name: degree
|
78
|
+
type: unit
|
79
|
+
equals: 0.0174532925199433 rad
|
80
|
+
alias: degrees
|
81
|
+
-
|
82
|
+
name: nautical_mile
|
83
|
+
type: unit
|
84
|
+
equals: 1852.0 m
|
85
|
+
alias: nautical_miles
|
86
|
+
-
|
87
|
+
name: knot
|
88
|
+
type: unit
|
89
|
+
equals: nautical_mile/h
|
90
|
+
alias: knots
|
91
|
+
-
|
92
|
+
name: angstrom
|
93
|
+
type: unit
|
94
|
+
equals: 100.0 kPa
|
95
|
+
alias: angstroms
|
96
|
+
-
|
97
|
+
name: unified_atomic_mass_unit
|
98
|
+
abbrev: u
|
99
|
+
type: unit
|
100
|
+
equals: 1.66054e-27 kg
|
101
|
+
alias: unified_atomic_mass_units
|
102
|
+
-
|
103
|
+
name: astronomical_unit
|
104
|
+
abbrev: ua
|
105
|
+
type: unit
|
106
|
+
equals: 1.49598e11 m
|
107
|
+
alias: astronomical_units
|
@@ -0,0 +1,107 @@
|
|
1
|
+
---
|
2
|
+
-
|
3
|
+
type: import
|
4
|
+
file: si/base
|
5
|
+
-
|
6
|
+
name: inch
|
7
|
+
abbrev: in
|
8
|
+
type: length
|
9
|
+
equals: 2.54 cm
|
10
|
+
alias: inches
|
11
|
+
-
|
12
|
+
name: foot
|
13
|
+
abbrev: ft
|
14
|
+
type: length
|
15
|
+
equals: 12.0 in
|
16
|
+
alias: feet
|
17
|
+
-
|
18
|
+
name: yard
|
19
|
+
abbrev: yd
|
20
|
+
type: length
|
21
|
+
equals: 3.0 ft
|
22
|
+
alias: yards
|
23
|
+
-
|
24
|
+
name: chain
|
25
|
+
type: length
|
26
|
+
equals: 22.0 yd
|
27
|
+
alias: chains
|
28
|
+
-
|
29
|
+
name: furlong
|
30
|
+
type: length
|
31
|
+
equals: 10.0 chains
|
32
|
+
alias: furlongs
|
33
|
+
-
|
34
|
+
name: mile
|
35
|
+
abbrev: mi
|
36
|
+
type: length
|
37
|
+
equals: 8.0 furlongs
|
38
|
+
alias: miles
|
39
|
+
-
|
40
|
+
name: acre
|
41
|
+
type: unit
|
42
|
+
equals: 10 square_chain
|
43
|
+
alias: acres
|
44
|
+
-
|
45
|
+
name: fluid_ounce
|
46
|
+
abbrev: fl_oz
|
47
|
+
type: unit
|
48
|
+
equals: 2.8413062e-2 dm**3
|
49
|
+
alias: fluid_ounces
|
50
|
+
-
|
51
|
+
name: gill
|
52
|
+
type: unit
|
53
|
+
equals: 5.0 fl_oz
|
54
|
+
alias: gills
|
55
|
+
-
|
56
|
+
name: pint
|
57
|
+
abbrev: pt
|
58
|
+
type: unit
|
59
|
+
equals: 4.0 gills
|
60
|
+
alias: pints
|
61
|
+
-
|
62
|
+
name: quart
|
63
|
+
abbrev: qt
|
64
|
+
type: unit
|
65
|
+
equals: 2.0 pt
|
66
|
+
alias: quarts
|
67
|
+
-
|
68
|
+
name: gallon
|
69
|
+
abbrev: gal
|
70
|
+
type: unit
|
71
|
+
equals: 4.0 qt
|
72
|
+
alias: gallons
|
73
|
+
-
|
74
|
+
name: grain
|
75
|
+
abbrev: gr
|
76
|
+
type: unit
|
77
|
+
equals: 6.479891e-5 kg
|
78
|
+
alias: grains
|
79
|
+
-
|
80
|
+
name: ounce
|
81
|
+
abbrev: oz
|
82
|
+
type: unit
|
83
|
+
equals: 437.5 gr
|
84
|
+
alias: ounces
|
85
|
+
-
|
86
|
+
name: pound
|
87
|
+
abbrev: lb
|
88
|
+
type: unit
|
89
|
+
equals: 16.0 oz
|
90
|
+
alias: pounds
|
91
|
+
-
|
92
|
+
name: stone
|
93
|
+
type: unit
|
94
|
+
equals: 14.0 lb
|
95
|
+
alias: stones
|
96
|
+
-
|
97
|
+
name: hundredweight
|
98
|
+
abbrev: cwt
|
99
|
+
type: unit
|
100
|
+
equals: 8.0 stone
|
101
|
+
alias: hundredweights
|
102
|
+
-
|
103
|
+
name: long_ton
|
104
|
+
abbrev: lt
|
105
|
+
type: unit
|
106
|
+
equals: 20.0 cwt
|
107
|
+
alias: long_tons
|
@@ -0,0 +1,112 @@
|
|
1
|
+
---
|
2
|
+
-
|
3
|
+
type: import
|
4
|
+
file: si/base
|
5
|
+
-
|
6
|
+
name: inch
|
7
|
+
abbrev: in
|
8
|
+
type: length
|
9
|
+
equals: 2.54 cm
|
10
|
+
alias: inches
|
11
|
+
-
|
12
|
+
name: foot
|
13
|
+
abbrev: ft
|
14
|
+
type: length
|
15
|
+
equals: 12.0 in
|
16
|
+
alias: feet
|
17
|
+
-
|
18
|
+
name: yard
|
19
|
+
abbrev: yd
|
20
|
+
type: length
|
21
|
+
equals: 3.0 ft
|
22
|
+
alias: yards
|
23
|
+
-
|
24
|
+
name: furlong
|
25
|
+
type: length
|
26
|
+
equals: 220.0 yd
|
27
|
+
alias: furlongs
|
28
|
+
-
|
29
|
+
name: mile
|
30
|
+
abbrev: mi
|
31
|
+
type: length
|
32
|
+
equals: 8.0 furlongs
|
33
|
+
alias: miles
|
34
|
+
-
|
35
|
+
name: acre
|
36
|
+
type: unit
|
37
|
+
equals: 4840.0 sq_yd
|
38
|
+
alias: acres
|
39
|
+
-
|
40
|
+
name: section
|
41
|
+
type: unit
|
42
|
+
equals: 1.0 sq_mi
|
43
|
+
alias: sections
|
44
|
+
-
|
45
|
+
name: township
|
46
|
+
type: unit
|
47
|
+
equals: 36.0 sections
|
48
|
+
alias: townships
|
49
|
+
-
|
50
|
+
name: fluid_ounce
|
51
|
+
abbrev: fl_oz
|
52
|
+
type: unit
|
53
|
+
equals: 2.95735295625e-2 dm**3
|
54
|
+
alias: fluid_ounces
|
55
|
+
-
|
56
|
+
name: gill
|
57
|
+
type: unit
|
58
|
+
equals: 4.0 fl_oz
|
59
|
+
alias: gills
|
60
|
+
-
|
61
|
+
name: pint
|
62
|
+
abbrev: pt
|
63
|
+
type: unit
|
64
|
+
equals: 4.0 gills
|
65
|
+
alias: pints
|
66
|
+
-
|
67
|
+
name: quart
|
68
|
+
abbrev: qt
|
69
|
+
type: unit
|
70
|
+
equals: 2.0 pt
|
71
|
+
alias: quarts
|
72
|
+
-
|
73
|
+
name: gallon
|
74
|
+
abbrev: gal
|
75
|
+
type: unit
|
76
|
+
equals: 4.0 qt
|
77
|
+
alias: gallons
|
78
|
+
-
|
79
|
+
name: grain
|
80
|
+
abbrev: gr
|
81
|
+
type: unit
|
82
|
+
equals: 6.479891e-5 kg
|
83
|
+
alias: grains
|
84
|
+
-
|
85
|
+
name: ounce
|
86
|
+
abbrev: oz
|
87
|
+
type: unit
|
88
|
+
equals: 437.5 gr
|
89
|
+
alias: ounces
|
90
|
+
-
|
91
|
+
name: pound
|
92
|
+
abbrev: lb
|
93
|
+
type: unit
|
94
|
+
equals: 16.0 oz
|
95
|
+
alias: pounds
|
96
|
+
-
|
97
|
+
name: stone
|
98
|
+
type: unit
|
99
|
+
equals: 14.0 lb
|
100
|
+
alias: stones
|
101
|
+
-
|
102
|
+
name: hundredweight
|
103
|
+
abbrev: cwt
|
104
|
+
type: unit
|
105
|
+
equals: 100.0 lb
|
106
|
+
alias: hundredweights
|
107
|
+
-
|
108
|
+
name: short_ton
|
109
|
+
abbrev: st
|
110
|
+
type: unit
|
111
|
+
equals: 20.0 cwt
|
112
|
+
alias: short_tons
|
@@ -0,0 +1,83 @@
|
|
1
|
+
---
|
2
|
+
fim: 6021.27
|
3
|
+
pln: 9234.17
|
4
|
+
bbd: 14871.17
|
5
|
+
chf: 23004.361
|
6
|
+
dem: 18304.684
|
7
|
+
usd: 29742.34
|
8
|
+
sit: 149.489
|
9
|
+
krw: 28.8481
|
10
|
+
idr: 2.9031
|
11
|
+
mad: 3251.4885
|
12
|
+
qar: 8173.2183
|
13
|
+
all: 290.5093
|
14
|
+
nok: 4584.773
|
15
|
+
jpy: 264.3528
|
16
|
+
lbp: 19.7755
|
17
|
+
bmd: 29742.34
|
18
|
+
egp: 5159.1226
|
19
|
+
sar: 7930.2334
|
20
|
+
myr: 7891.3076
|
21
|
+
php: 528.377
|
22
|
+
sgd: 17647.05
|
23
|
+
hrk: 4822.665
|
24
|
+
ats: 2601.749
|
25
|
+
mur: 997.0613
|
26
|
+
ars: 10220.734
|
27
|
+
itl: 18.4896
|
28
|
+
pte: 178.5739
|
29
|
+
veb: 10.1337
|
30
|
+
huf: 143.9469
|
31
|
+
kwd: 101822.45
|
32
|
+
aed: 8097.3403
|
33
|
+
iep: 45457.7
|
34
|
+
clp: 55.314
|
35
|
+
dzd: 398.6909
|
36
|
+
ttd: 4721.0815
|
37
|
+
skk: 927.4686
|
38
|
+
crc: 61.0475
|
39
|
+
jod: 41920.14
|
40
|
+
nlg: 16245.716
|
41
|
+
lkr: 293.1724
|
42
|
+
ron: 1.0
|
43
|
+
mtl: 84327.59
|
44
|
+
cyp: 62483.906
|
45
|
+
bef: 887.4798
|
46
|
+
mxn: 2741.0276
|
47
|
+
zar: 4654.5137
|
48
|
+
luf: 887.4798
|
49
|
+
cad: 25409.943
|
50
|
+
hkd: 3832.9731
|
51
|
+
xcd: 11015.681
|
52
|
+
tnd: 22199.088
|
53
|
+
omr: 77252.83
|
54
|
+
jmd: 472.8512
|
55
|
+
thb: 722.9543
|
56
|
+
sek: 3814.343
|
57
|
+
rub: 1044.3312
|
58
|
+
kes: 406.872
|
59
|
+
pen: 8974.756
|
60
|
+
vnd: 1.8729
|
61
|
+
czk: 1211.5697
|
62
|
+
dkk: 4798.622
|
63
|
+
pkr: 496.6161
|
64
|
+
bhd: 78892.15
|
65
|
+
bdt: 452.355
|
66
|
+
grd: 105.0649
|
67
|
+
inr: 677.502
|
68
|
+
isk: 477.4818
|
69
|
+
zmk: 6.7905
|
70
|
+
sdd: 123.6688
|
71
|
+
cop: 12.9823
|
72
|
+
frf: 5457.804
|
73
|
+
cny: 3675.9783
|
74
|
+
esp: 215.1674
|
75
|
+
twd: 895.3412
|
76
|
+
gbp: 52801.582
|
77
|
+
aud: 22514.951
|
78
|
+
dop: 950.2346
|
79
|
+
ils: 6465.0234
|
80
|
+
eur: 35800.848
|
81
|
+
brl: 13125.48
|
82
|
+
nzd: 20450.832
|
83
|
+
eek: 2288.3474
|