facets 2.4.5 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +6 -2
- data/CHANGES +46 -52
- data/MANIFEST +680 -642
- data/README +3 -10
- data/RELEASE +82 -36
- data/VERSION +1 -1
- data/doc/archive/{changelog-0.rdoc → CHANGELOG-0.10.30} +0 -0
- data/doc/archive/{changelog-1.rdoc → CHANGELOG-1.8.54} +0 -0
- data/doc/archive/CHANGELOG-2.4.5 +1654 -0
- data/doc/{news → archive}/RELEASE-2.0.5 +0 -0
- data/doc/{news → archive}/RELEASE-2.1.0 +0 -0
- data/doc/{news → archive}/RELEASE-2.1.1 +0 -0
- data/doc/{news → archive}/RELEASE-2.1.2 +0 -0
- data/doc/{news → archive}/RELEASE-2.1.3 +0 -0
- data/doc/{news → archive}/RELEASE-2.2.0 +0 -0
- data/doc/{news → archive}/RELEASE-2.2.1 +0 -0
- data/doc/{news → archive}/RELEASE-2.3.0 +0 -0
- data/doc/{news → archive}/RELEASE-2.4.0 +0 -0
- data/doc/{news → archive}/RELEASE-2.4.1 +0 -0
- data/doc/{news → archive}/RELEASE-2.4.2 +0 -0
- data/doc/{news → archive}/RELEASE-2.4.3 +0 -0
- data/doc/{news → archive}/RELEASE-2.4.4 +0 -0
- data/doc/archive/RELEASE-2.4.5 +37 -0
- data/doc/{book/history.rdoc → guide/notes.rd} +62 -4
- data/doc/log/basic_stats/index.html +39 -0
- data/doc/log/bstats/stats.html +39 -0
- data/doc/log/changelog.html +141 -0
- data/doc/log/changelog.txt +1609 -0
- data/doc/log/stats.html +25 -0
- data/doc/log/testlog.txt +278 -0
- data/doc/rdoc/core/classes/Array.html +158 -147
- data/doc/rdoc/core/classes/Binding.html +54 -54
- data/doc/rdoc/core/classes/Class.html +59 -57
- data/doc/rdoc/core/classes/Comparable.html +67 -76
- data/doc/rdoc/core/classes/Dir.html +47 -47
- data/doc/rdoc/core/classes/Enumerable.html +232 -192
- data/doc/rdoc/core/classes/Exception.html +15 -16
- data/doc/rdoc/core/classes/File.html +128 -85
- data/doc/rdoc/core/classes/FileTest.html +7 -7
- data/doc/rdoc/core/classes/Float.html +16 -14
- data/doc/rdoc/core/classes/Functor.html +12 -12
- data/doc/rdoc/core/classes/Hash.html +490 -319
- data/doc/rdoc/core/classes/Indexable.html +110 -110
- data/doc/rdoc/core/classes/InstanceVariables.html +44 -44
- data/doc/rdoc/core/classes/Integer.html +122 -116
- data/doc/rdoc/core/classes/Kernel.html +415 -401
- data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
- data/doc/rdoc/core/classes/MatchData.html +24 -21
- data/doc/rdoc/core/classes/Module.html +230 -229
- data/doc/rdoc/core/classes/NilClass.html +28 -26
- data/doc/rdoc/core/classes/Numeric.html +30 -30
- data/doc/rdoc/core/classes/Object.html +8 -8
- data/doc/rdoc/core/classes/{Friend.html → ObjectSpace.html} +25 -48
- data/doc/rdoc/core/classes/Proc.html +29 -27
- data/doc/rdoc/core/classes/Range.html +17 -15
- data/doc/rdoc/core/classes/Regexp.html +17 -17
- data/doc/rdoc/core/classes/Stackable.html +31 -31
- data/doc/rdoc/core/classes/String.html +445 -401
- data/doc/rdoc/{more/classes/CLI/NoOptionError.html → core/classes/Struct.html} +24 -21
- data/doc/rdoc/core/classes/Symbol.html +73 -65
- data/doc/rdoc/core/classes/Time.html +87 -86
- data/doc/rdoc/core/classes/TrueClass.html +8 -8
- data/doc/rdoc/core/classes/UnboundMethod.html +17 -16
- data/doc/rdoc/core/created.rid +1 -1
- data/doc/rdoc/core/files/README.html +10 -16
- data/doc/rdoc/core/files/lib/core/facets/array/combination_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/conjoin_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/delete_rb.html +10 -1
- data/doc/rdoc/core/files/lib/core/facets/array/delete_unless_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array/delete_values_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/array/index_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/indexable_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/merge_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/only_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/pad_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/permutation_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/product_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/rotate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/select_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/splice_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array/stackable_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/binding/caller_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/binding/callstack_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/binding/defined_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/bitmask_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/class/cattr_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/class/descendents_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/class/prepend_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/class/to_proc_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/comparable/at_least_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/comparable/at_most_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/comparable/bound_rb.html +5 -1
- data/doc/rdoc/core/files/lib/core/facets/comparable/cap_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/comparable/clip_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/comparable/cmp_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/comparable/comparable_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/dir/ascend_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/dir/multiglob_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/dir/recurse_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/accumulate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/cluster_by_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/collect_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/commonality_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/count_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/divide_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/duplicates_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/each_by_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/entropy_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/frequency_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/graph_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/group_by_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/inject_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/map_send_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/mash_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/mode_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/modulate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/none_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/occur_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/one_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/probability_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/sum_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/take_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/uniq_by_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/exception/detail_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/exception/suppress_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/append_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/create_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/null_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/read_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/rewrite_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/rootname_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/split_all_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/file/split_root_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/write_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/file/writelines_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/filetest/root_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/alias_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/autonew_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/collate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/delete_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/insert_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/inverse_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/join_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/keys_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/op_add_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/op_and_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/op_mul_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/op_or_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/op_push_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/op_sub_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/rekey_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/replace_each_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/select_rb.html +1 -1
- data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/hash/stringify_keys_rb.html +1 -1
- data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/hash/symbolize_keys_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/hash/to_options_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/to_struct_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/traverse_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/update_each_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/update_keys_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/update_rb.html +8 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/update_values_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/weave_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/zipnew_rb.html +1 -5
- data/doc/rdoc/core/files/lib/core/facets/integer/factorial_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/integer/multiple_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/integer/odd_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/__here___rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/as_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/ask_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/attr_singleton_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/callstack_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/complete_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/constant_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/d_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/demo_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/ergo_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_class_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/instance_variables_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/not_nil_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/object_send_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/p_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/populate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/qua_class_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/resc_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/respond_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/returning_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/silence_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/kernel/try_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/matchdata/match_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/matchdata/matchset_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/metaid_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/abstract_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/alias_accessor_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/alias_method_chain_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/alias_module_function_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/ancestor_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/basename_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/conflict_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/include_function_module_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/instance_methods_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/is_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/methodize_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/modspace_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/module_load_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/nesting_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/op_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/prepend_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/redefine_method_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/rename_method_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/revise_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/spacename_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/wrap_method_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/nilclass/to_f_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/numeric/approx_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/numeric/distance_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/numeric/round_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/objectspace/classes_rb.html +92 -0
- data/doc/rdoc/{more/files/lib/more/facets/dictionarymatcher_rb.html → core/files/lib/core/facets/objectspace_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/proc/bind_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/proc/compose_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/proc/to_method_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/proc/update_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/range/combine_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/range/overlap_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/range/within_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/regexp/arity_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/align_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/bracket_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/camelcase_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/capitalized_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/chars_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/chomp_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/cleave_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/compress_lines_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/contains_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/divide_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/expand_tab_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/fold_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/indent_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/interpolate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/line_wrap_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/lines_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/margin_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/methodize_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/mscan_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/natcmp_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/nchar_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/op_sub_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/outdent_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/string/range_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/rewrite_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/shatter_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/snakecase_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/splice_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/start_with_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/tab_rb.html +8 -1
- data/doc/rdoc/core/files/lib/core/facets/string/tabto_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/string/titlecase_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/to_re_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/word_wrap_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/struct/attributes_rb.html +92 -0
- data/doc/rdoc/{more/files/lib/more/facets/bytes_rb.html → core/files/lib/core/facets/struct_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/symbol/chomp_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/symbol/generate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/symbol/not_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/symbol/succ_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/symbol/to_proc_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/advance_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/change_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/elapse_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/hence_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/time/stamp_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/to_hash_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod/arguments_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod/name_rb.html +1 -1
- data/doc/rdoc/core/fr_class_index.html +2 -1
- data/doc/rdoc/core/fr_file_index.html +30 -1
- data/doc/rdoc/core/fr_method_index.html +430 -423
- data/doc/rdoc/lore/classes/Date.html +6 -5
- data/doc/rdoc/{more/classes/CLI/Command/UniversalOptions.html → lore/classes/Enumerable.html} +7 -9
- data/doc/rdoc/lore/classes/Enumerable/Enumerator.html +147 -0
- data/doc/rdoc/lore/classes/OpenStruct.html +13 -15
- data/doc/rdoc/lore/created.rid +1 -1
- data/doc/rdoc/lore/files/README.html +10 -16
- data/doc/rdoc/lore/files/lib/lore/facets/date_rb.html +1 -1
- data/doc/rdoc/lore/files/lib/lore/facets/enumerator_rb.html +111 -0
- data/doc/rdoc/lore/files/lib/lore/facets/ostruct_rb.html +1 -1
- data/doc/rdoc/lore/fr_class_index.html +2 -0
- data/doc/rdoc/lore/fr_file_index.html +1 -0
- data/doc/rdoc/lore/fr_method_index.html +13 -12
- data/doc/rdoc/more/classes/ANSICode.html +66 -66
- data/doc/rdoc/more/classes/Advisable.html +37 -37
- data/doc/rdoc/more/classes/Advisable/Method.html +20 -20
- data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +27 -27
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +28 -28
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +19 -19
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +31 -31
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +33 -33
- data/doc/rdoc/more/classes/Argvector.html +76 -76
- data/doc/rdoc/more/classes/Association.html +28 -28
- data/doc/rdoc/more/classes/Association/Kernel.html +8 -8
- data/doc/rdoc/more/classes/Autoarray.html +12 -12
- data/doc/rdoc/more/classes/BBCode.html +34 -34
- data/doc/rdoc/more/classes/BaseX.html +16 -16
- data/doc/rdoc/more/classes/BiCrypt.html +67 -67
- data/doc/rdoc/more/classes/BinReadable.html +85 -85
- data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +25 -25
- data/doc/rdoc/more/classes/Binding.html +8 -8
- data/doc/rdoc/more/classes/BlankSlate.html +5 -5
- data/doc/rdoc/more/classes/Buildable.html +4 -4
- data/doc/rdoc/more/classes/BuildingBlock.html +32 -32
- data/doc/rdoc/more/classes/Capsule.html +41 -41
- data/doc/rdoc/more/classes/Cloneable.html +4 -4
- data/doc/rdoc/more/classes/ConsoleUtils.html +22 -22
- data/doc/rdoc/more/classes/Coroutine.html +28 -28
- data/doc/rdoc/more/classes/Crypt.html +16 -16
- data/doc/rdoc/more/classes/CssFilter.html +45 -45
- data/doc/rdoc/more/classes/CssTree.html +8 -8
- data/doc/rdoc/more/classes/Dictionary.html +228 -228
- data/doc/rdoc/more/classes/Downloader.html +56 -56
- data/doc/rdoc/more/classes/Duration.html +369 -445
- data/doc/rdoc/more/classes/Duration/Numeric.html +389 -0
- data/doc/rdoc/more/classes/{CLI/NoCommandError.html → Duration/Time.html} +30 -17
- data/doc/rdoc/more/classes/Enumerable.html +114 -51
- data/doc/rdoc/more/classes/Enumerable/Elementor.html +16 -16
- data/doc/rdoc/more/classes/Enumerable/Enumerator.html +4 -4
- data/doc/rdoc/more/classes/Enumerable/Filterable.html +246 -0
- data/doc/rdoc/more/classes/EnumerablePass.html +17 -17
- data/doc/rdoc/more/classes/{RecursiveDependency.html → Enumerator.html} +7 -4
- data/doc/rdoc/more/classes/{CLI.html → Enumerator/Filter.html} +22 -26
- data/doc/rdoc/more/classes/Equatable.html +16 -16
- data/doc/rdoc/more/classes/Expirable.html +17 -17
- data/doc/rdoc/more/classes/FileList.html +125 -125
- data/doc/rdoc/more/classes/Fileable.html +14 -14
- data/doc/rdoc/more/classes/Fileable/DSL.html +41 -41
- data/doc/rdoc/more/classes/Hash.html +16 -162
- data/doc/rdoc/more/classes/Hash2Xml.html +4 -4
- data/doc/rdoc/more/classes/HtmlFilter.html +9 -9
- data/doc/rdoc/more/classes/IORedirect.html +19 -19
- data/doc/rdoc/more/classes/InfinityClass.html +36 -36
- data/doc/rdoc/more/classes/InfinityClass/Numeric.html +23 -23
- data/doc/rdoc/more/classes/Ini.html +37 -37
- data/doc/rdoc/more/classes/Instantiable.html +9 -9
- data/doc/rdoc/more/classes/Instantize.html +8 -8
- data/doc/rdoc/more/classes/Interval.html +187 -187
- data/doc/rdoc/more/classes/It.html +12 -12
- data/doc/rdoc/more/classes/LRUCache.html +38 -38
- data/doc/rdoc/more/classes/LinkedList.html +68 -68
- data/doc/rdoc/more/classes/LinkedList/Node.html +4 -4
- data/doc/rdoc/more/classes/{DictionaryMatcher.html → Matcher.html} +66 -68
- data/doc/rdoc/more/classes/{DictionaryMatcher → Matcher}/MatchData.html +8 -8
- data/doc/rdoc/more/classes/{CacheDecorator.html → Memoizer.html} +64 -46
- data/doc/rdoc/more/classes/Module.html +182 -361
- data/doc/rdoc/more/classes/Multiton.html +12 -12
- data/doc/rdoc/more/classes/Multiton/MetaMethods.html +28 -28
- data/doc/rdoc/more/classes/Net/SMTP.html +8 -8
- data/doc/rdoc/more/classes/NullClass.html +24 -24
- data/doc/rdoc/more/classes/Numeric/Multipliers.html +456 -0
- data/doc/rdoc/more/classes/ObjectReflection.html +12 -12
- data/doc/rdoc/more/classes/OpEsc.html +8 -7
- data/doc/rdoc/more/classes/OpenCascade.html +4 -4
- data/doc/rdoc/more/classes/OpenCollection.html +8 -8
- data/doc/rdoc/more/classes/OpenHash.html +9 -9
- data/doc/rdoc/more/classes/{EventHook.html → OpenModule.html} +24 -63
- data/doc/rdoc/more/classes/OpenObject.html +95 -95
- data/doc/rdoc/more/classes/OpenStructable.html +326 -0
- data/doc/rdoc/more/classes/PQueue.html +84 -84
- data/doc/rdoc/more/classes/Paramix.html +11 -11
- data/doc/rdoc/more/classes/Paramix/Delegator.html +16 -16
- data/doc/rdoc/more/classes/PathList.html +8 -8
- data/doc/rdoc/more/classes/PathList/Finder.html +8 -8
- data/doc/rdoc/more/classes/Platform.html +46 -46
- data/doc/rdoc/more/classes/Pool.html +18 -18
- data/doc/rdoc/more/classes/Proc.html +9 -9
- data/doc/rdoc/more/classes/ProgressBar.html +52 -52
- data/doc/rdoc/more/classes/Prototype.html +28 -28
- data/doc/rdoc/more/classes/RWDelegator.html +16 -16
- data/doc/rdoc/more/classes/Random.html +5 -5
- data/doc/rdoc/more/classes/Random/Array.html +37 -37
- data/doc/rdoc/more/classes/Random/Hash.html +52 -52
- data/doc/rdoc/more/classes/Random/Object.html +4 -4
- data/doc/rdoc/more/classes/Random/String.html +34 -34
- data/doc/rdoc/more/classes/Random/String/Self.html +9 -9
- data/doc/rdoc/more/classes/Recorder.html +16 -16
- data/doc/rdoc/more/classes/Reference.html +19 -19
- data/doc/rdoc/more/classes/Registerable.html +13 -13
- data/doc/rdoc/more/classes/Semaphore.html +36 -36
- data/doc/rdoc/more/classes/Settings.html +28 -28
- data/doc/rdoc/more/classes/Settings/Setting.html +13 -13
- data/doc/rdoc/more/classes/Settings/SettingCollection.html +4 -4
- data/doc/rdoc/more/classes/SimpleStringIO.html +8 -8
- data/doc/rdoc/more/classes/Snapshot.html +16 -16
- data/doc/rdoc/more/classes/Snapshot/ValueHolder.html +12 -12
- data/doc/rdoc/more/classes/SparseArray.html +1397 -0
- data/doc/rdoc/more/classes/Stash.html +232 -0
- data/doc/rdoc/more/classes/String/Mask.html +72 -72
- data/doc/rdoc/more/classes/String/Words.html +49 -49
- data/doc/rdoc/more/classes/Struct.html +8 -8
- data/doc/rdoc/more/classes/SyncArray.html +4 -4
- data/doc/rdoc/more/classes/SyncHash.html +4 -4
- data/doc/rdoc/more/classes/SyncHash/Delegator.html +28 -28
- data/doc/rdoc/more/classes/SyncHash/Inheritor.html +28 -28
- data/doc/rdoc/more/classes/System.html +253 -253
- data/doc/rdoc/more/classes/Timer.html +48 -48
- data/doc/rdoc/more/classes/Timer/Dummy.html +9 -9
- data/doc/rdoc/more/classes/TracePoint.html +58 -58
- data/doc/rdoc/more/classes/Tuple.html +170 -170
- data/doc/rdoc/more/classes/TypeCast/Class.html +4 -4
- data/doc/rdoc/more/classes/TypeCast/Object.html +4 -4
- data/doc/rdoc/more/classes/Uninheritable.html +6 -6
- data/doc/rdoc/more/classes/VersionNumber.html +57 -57
- data/doc/rdoc/more/classes/XOXO.html +9 -9
- data/doc/rdoc/more/classes/ZipUtils.html +251 -118
- data/doc/rdoc/more/classes/ZipUtils/DryRun.html +203 -35
- data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +203 -35
- data/doc/rdoc/more/classes/ZipUtils/Verbose.html +173 -35
- data/doc/rdoc/more/created.rid +1 -1
- data/doc/rdoc/more/files/README.html +10 -16
- data/doc/rdoc/more/files/lib/more/facets/attr_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/buildable_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/consoleutils_rb.html +1 -18
- data/doc/rdoc/more/files/lib/more/facets/dependency_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/duration_rb.html +1 -41
- data/doc/rdoc/more/files/lib/more/facets/elementor_rb.html +2 -1
- data/doc/rdoc/more/files/lib/more/facets/enumerablepass_rb.html +2 -1
- data/doc/rdoc/more/files/lib/more/facets/{fileshell_rb.html → filter_rb.html} +6 -5
- data/doc/rdoc/more/files/lib/more/facets/inheritor_rb.html +3 -28
- data/doc/rdoc/more/files/lib/more/facets/iteration_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/kernel/meta_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/matcher_rb.html +97 -0
- data/doc/rdoc/more/files/lib/more/facets/memoize_rb.html +7 -4
- data/doc/rdoc/more/files/lib/more/facets/{cachedecorator_rb.html → memoizer_rb.html} +23 -49
- data/doc/rdoc/more/files/lib/more/facets/multipliers_rb.html +2 -18
- data/doc/rdoc/more/files/lib/more/facets/nilstatus_rb.html +1 -1
- data/doc/rdoc/{core/files/lib/core/facets/callstack_rb.html → more/files/lib/more/facets/openmodule_rb.html} +4 -4
- data/doc/rdoc/more/files/lib/more/facets/opesc_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/ostructable_rb.html +92 -0
- data/doc/rdoc/more/files/lib/more/facets/pathlist_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/snapshot_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/sparse_array_rb.html +92 -0
- data/doc/rdoc/more/files/lib/more/facets/stash_rb.html +166 -0
- data/doc/rdoc/more/files/lib/more/facets/string/words_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/succ_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/thread_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/ziputils_rb.html +6 -34
- data/doc/rdoc/more/fr_class_index.html +13 -17
- data/doc/rdoc/more/fr_file_index.html +7 -15
- data/doc/rdoc/more/fr_method_index.html +1079 -1003
- data/doc/rdoc/more/index.html +1 -1
- data/lib/core/facets/array/conjoin.rb +1 -1
- data/lib/core/facets/array/delete.rb +3 -60
- data/lib/core/facets/array/delete_unless.rb +15 -0
- data/lib/core/facets/array/delete_values.rb +50 -0
- data/lib/core/facets/array/index.rb +0 -26
- data/lib/core/facets/array/indexable.rb +2 -2
- data/lib/core/facets/array/merge.rb +1 -1
- data/lib/core/facets/array/only.rb +1 -2
- data/lib/core/facets/array/pad.rb +2 -2
- data/lib/core/facets/array/permutation.rb +1 -1
- data/lib/core/facets/array/product.rb +2 -2
- data/lib/core/facets/array/rotate.rb +2 -4
- data/lib/core/facets/array/select.rb +1 -1
- data/lib/core/facets/array/splice.rb +1 -1
- data/lib/core/facets/array/stackable.rb +2 -2
- data/lib/core/facets/binding/caller.rb +2 -7
- data/lib/core/facets/binding/callstack.rb +1 -0
- data/lib/core/facets/binding/defined.rb +0 -1
- data/lib/core/facets/bitmask.rb +6 -9
- data/lib/core/facets/class/cattr.rb +6 -9
- data/lib/core/facets/class/descendents.rb +0 -2
- data/lib/core/facets/class/prepend.rb +3 -4
- data/lib/core/facets/class/to_proc.rb +0 -20
- data/lib/core/facets/comparable/at_least.rb +1 -0
- data/lib/core/facets/comparable/at_most.rb +1 -0
- data/lib/core/facets/comparable/bound.rb +1 -65
- data/lib/core/facets/comparable/cap.rb +34 -0
- data/lib/core/facets/comparable/clip.rb +38 -0
- data/lib/core/facets/comparable/cmp.rb +3 -3
- data/lib/core/facets/comparable/comparable.rb +1 -1
- data/lib/core/facets/dir/ascend.rb +2 -5
- data/lib/core/facets/dir/multiglob.rb +0 -2
- data/lib/core/facets/dir/recurse.rb +1 -2
- data/lib/core/facets/enumerable/accumulate.rb +2 -0
- data/lib/core/facets/enumerable/cluster_by.rb +1 -1
- data/lib/core/facets/enumerable/collect.rb +2 -2
- data/lib/core/facets/enumerable/commonality.rb +1 -1
- data/lib/core/facets/enumerable/count.rb +1 -1
- data/lib/core/facets/enumerable/divide.rb +1 -1
- data/lib/core/facets/enumerable/duplicates.rb +2 -2
- data/lib/core/facets/enumerable/each_by.rb +1 -1
- data/lib/core/facets/enumerable/entropy.rb +2 -2
- data/lib/core/facets/enumerable/frequency.rb +1 -1
- data/lib/core/facets/enumerable/graph.rb +1 -0
- data/lib/core/facets/enumerable/group_by.rb +1 -1
- data/lib/core/facets/enumerable/inject.rb +2 -3
- data/lib/core/facets/enumerable/map_send.rb +15 -3
- data/lib/core/facets/enumerable/mash.rb +4 -5
- data/lib/core/facets/enumerable/mode.rb +1 -1
- data/lib/core/facets/enumerable/modulate.rb +2 -2
- data/lib/core/facets/enumerable/none.rb +1 -1
- data/lib/core/facets/enumerable/occur.rb +0 -2
- data/lib/core/facets/enumerable/one.rb +1 -1
- data/lib/core/facets/enumerable/probability.rb +1 -1
- data/lib/core/facets/enumerable/sum.rb +1 -1
- data/lib/core/facets/enumerable/take.rb +20 -0
- data/lib/core/facets/enumerable/uniq_by.rb +0 -2
- data/lib/core/facets/exception/detail.rb +1 -1
- data/lib/core/facets/exception/suppress.rb +1 -2
- data/lib/core/facets/file/append.rb +1 -1
- data/lib/core/facets/file/create.rb +1 -1
- data/lib/core/facets/file/null.rb +1 -1
- data/lib/core/facets/file/read.rb +3 -3
- data/lib/core/facets/file/rewrite.rb +1 -1
- data/lib/core/facets/file/rootname.rb +1 -1
- data/lib/core/facets/file/split_all.rb +19 -0
- data/lib/core/facets/file/split_root.rb +3 -0
- data/lib/core/facets/file/write.rb +1 -1
- data/lib/core/facets/file/writelines.rb +1 -2
- data/lib/core/facets/filetest/root.rb +1 -1
- data/lib/core/facets/hash/alias.rb +1 -1
- data/lib/core/facets/hash/autonew.rb +1 -17
- data/lib/core/facets/hash/collate.rb +1 -1
- data/lib/core/facets/hash/delete.rb +3 -3
- data/lib/core/facets/hash/insert.rb +1 -1
- data/lib/core/facets/hash/inverse.rb +1 -1
- data/lib/core/facets/hash/join.rb +1 -1
- data/lib/core/facets/hash/keys.rb +3 -3
- data/lib/core/facets/hash/op_add.rb +1 -1
- data/lib/core/facets/hash/op_and.rb +1 -1
- data/lib/core/facets/hash/op_mul.rb +1 -1
- data/lib/core/facets/hash/op_or.rb +1 -1
- data/lib/core/facets/hash/op_push.rb +1 -1
- data/lib/core/facets/hash/op_sub.rb +1 -1
- data/lib/core/facets/hash/rekey.rb +11 -7
- data/lib/core/facets/hash/replace_each.rb +16 -0
- data/lib/core/facets/hash/select.rb +1 -2
- data/lib/{more → core}/facets/hash/stringify_keys.rb +0 -0
- data/lib/core/facets/hash/symbolize_keys.rb +94 -0
- data/lib/core/facets/hash/to_options.rb +1 -0
- data/lib/core/facets/hash/to_struct.rb +1 -1
- data/lib/core/facets/hash/traverse.rb +2 -2
- data/lib/core/facets/hash/update.rb +5 -80
- data/lib/core/facets/hash/update_each.rb +18 -0
- data/lib/core/facets/hash/update_keys.rb +20 -0
- data/lib/core/facets/hash/update_values.rb +20 -0
- data/lib/core/facets/hash/weave.rb +1 -1
- data/lib/core/facets/hash/zipnew.rb +17 -1
- data/lib/core/facets/integer/factorial.rb +1 -1
- data/lib/core/facets/integer/multiple.rb +1 -1
- data/lib/core/facets/integer/odd.rb +2 -2
- data/lib/core/facets/kernel/__here__.rb +8 -0
- data/lib/core/facets/kernel/as.rb +2 -2
- data/lib/core/facets/kernel/attr_singleton.rb +5 -5
- data/lib/core/facets/{callstack.rb → kernel/callstack.rb} +1 -1
- data/lib/core/facets/kernel/complete.rb +1 -1
- data/lib/core/facets/kernel/constant.rb +1 -1
- data/lib/core/facets/kernel/d.rb +1 -5
- data/lib/core/facets/kernel/demo.rb +2 -2
- data/lib/core/facets/kernel/ergo.rb +2 -2
- data/lib/core/facets/kernel/instance_class.rb +1 -1
- data/lib/core/facets/kernel/instance_variables.rb +2 -4
- data/lib/core/facets/kernel/not_nil.rb +1 -1
- data/lib/core/facets/kernel/object_send.rb +1 -1
- data/lib/core/facets/kernel/p.rb +1 -1
- data/lib/core/facets/kernel/populate.rb +2 -2
- data/lib/core/facets/kernel/qua_class.rb +2 -2
- data/lib/core/facets/kernel/resc.rb +1 -1
- data/lib/core/facets/kernel/respond.rb +1 -1
- data/lib/core/facets/kernel/returning.rb +1 -1
- data/lib/core/facets/kernel/silence.rb +4 -4
- data/lib/core/facets/kernel/try.rb +5 -3
- data/lib/core/facets/matchdata/match.rb +1 -1
- data/lib/core/facets/matchdata/matchset.rb +2 -2
- data/lib/core/facets/metaid.rb +5 -5
- data/lib/core/facets/module/abstract.rb +1 -1
- data/lib/core/facets/module/alias_accessor.rb +3 -3
- data/lib/core/facets/module/alias_method_chain.rb +1 -2
- data/lib/core/facets/module/alias_module_function.rb +1 -1
- data/lib/core/facets/module/ancestor.rb +1 -1
- data/lib/core/facets/module/basename.rb +1 -1
- data/lib/core/facets/module/conflict.rb +1 -2
- data/lib/core/facets/module/include_function_module.rb +1 -1
- data/lib/core/facets/module/instance_methods.rb +4 -6
- data/lib/core/facets/module/is.rb +2 -2
- data/lib/core/facets/module/modspace.rb +1 -1
- data/lib/core/facets/module/module_load.rb +2 -2
- data/lib/core/facets/module/nesting.rb +1 -1
- data/lib/core/facets/module/op.rb +3 -6
- data/lib/core/facets/module/prepend.rb +1 -1
- data/lib/core/facets/module/redefine_method.rb +1 -1
- data/lib/core/facets/module/rename_method.rb +1 -1
- data/lib/core/facets/module/revise.rb +2 -2
- data/lib/core/facets/module/spacename.rb +1 -1
- data/lib/core/facets/module/wrap_method.rb +1 -1
- data/lib/core/facets/nilclass/to_f.rb +1 -1
- data/lib/core/facets/numeric/approx.rb +1 -1
- data/lib/core/facets/numeric/distance.rb +1 -1
- data/lib/core/facets/numeric/round.rb +3 -6
- data/lib/core/facets/objectspace.rb +6 -0
- data/lib/core/facets/objectspace/classes.rb +11 -0
- data/lib/core/facets/proc/bind.rb +1 -1
- data/lib/core/facets/proc/compose.rb +2 -2
- data/lib/core/facets/proc/to_method.rb +1 -1
- data/lib/core/facets/proc/update.rb +1 -1
- data/lib/core/facets/range/combine.rb +2 -2
- data/lib/core/facets/range/overlap.rb +1 -2
- data/lib/core/facets/range/within.rb +2 -4
- data/lib/core/facets/regexp/arity.rb +1 -1
- data/lib/core/facets/string/align.rb +3 -3
- data/lib/core/facets/string/bracket.rb +6 -6
- data/lib/core/facets/string/camelcase.rb +1 -1
- data/lib/core/facets/string/capitalized.rb +3 -3
- data/lib/core/facets/string/chars.rb +1 -1
- data/lib/core/facets/string/chomp.rb +2 -2
- data/lib/core/facets/string/cleave.rb +1 -1
- data/lib/core/facets/string/compress_lines.rb +17 -0
- data/lib/core/facets/string/contains.rb +7 -0
- data/lib/core/facets/string/divide.rb +1 -1
- data/lib/core/facets/string/expand_tab.rb +35 -0
- data/lib/core/facets/string/fold.rb +1 -1
- data/lib/core/facets/string/indent.rb +25 -0
- data/lib/core/facets/string/interpolate.rb +1 -1
- data/lib/core/facets/string/line_wrap.rb +1 -1
- data/lib/core/facets/string/lines.rb +1 -2
- data/lib/core/facets/string/margin.rb +30 -0
- data/lib/core/facets/string/methodize.rb +1 -1
- data/lib/core/facets/string/mscan.rb +1 -1
- data/lib/core/facets/string/natcmp.rb +1 -2
- data/lib/core/facets/string/nchar.rb +0 -2
- data/lib/core/facets/string/op_sub.rb +1 -1
- data/lib/core/facets/string/outdent.rb +1 -0
- data/lib/core/facets/string/range.rb +4 -5
- data/lib/core/facets/string/rewrite.rb +1 -1
- data/lib/core/facets/string/shatter.rb +1 -1
- data/lib/core/facets/string/snakecase.rb +1 -1
- data/lib/core/facets/string/splice.rb +2 -2
- data/lib/core/facets/string/start_with.rb +2 -4
- data/lib/core/facets/string/tab.rb +9 -92
- data/lib/core/facets/string/tabto.rb +19 -0
- data/lib/core/facets/string/titlecase.rb +1 -1
- data/lib/core/facets/string/to_re.rb +2 -2
- data/lib/core/facets/string/word_wrap.rb +2 -4
- data/lib/core/facets/struct.rb +6 -0
- data/lib/core/facets/struct/attributes.rb +11 -0
- data/lib/core/facets/symbol/chomp.rb +2 -2
- data/lib/core/facets/symbol/generate.rb +1 -1
- data/lib/core/facets/symbol/not.rb +2 -2
- data/lib/core/facets/symbol/succ.rb +1 -1
- data/lib/core/facets/symbol/to_proc.rb +2 -3
- data/lib/core/facets/time/advance.rb +2 -1
- data/lib/core/facets/time/elapse.rb +1 -1
- data/lib/core/facets/time/hence.rb +16 -13
- data/lib/core/facets/time/stamp.rb +2 -2
- data/lib/core/facets/to_hash.rb +1 -1
- data/lib/core/facets/unboundmethod/arguments.rb +1 -1
- data/lib/core/facets/unboundmethod/name.rb +1 -1
- data/lib/lore/facets/date.rb +2 -2
- data/lib/lore/facets/enumerator.rb +67 -0
- data/lib/lore/facets/ostruct.rb +3 -7
- data/lib/more/facets/attr.rb +10 -9
- data/lib/more/facets/consoleutils.rb +1 -15
- data/lib/more/facets/dependency.rb +1 -1
- data/lib/more/facets/duration.rb +271 -525
- data/lib/more/facets/filter.rb +121 -0
- data/lib/more/facets/inheritor.rb +37 -58
- data/lib/more/facets/iteration.rb +1 -1
- data/lib/more/facets/kernel/meta.rb +1 -1
- data/lib/more/facets/{dictionarymatcher.rb → matcher.rb} +15 -11
- data/lib/more/facets/memoize.rb +9 -12
- data/lib/more/facets/memoizer.rb +74 -0
- data/lib/more/facets/multipliers.rb +54 -66
- data/lib/more/facets/nilstatus.rb +3 -2
- data/lib/more/facets/openmodule.rb +15 -0
- data/lib/more/facets/opesc.rb +1 -1
- data/lib/more/facets/ostructable.rb +212 -0
- data/lib/more/facets/pathlist.rb +1 -0
- data/lib/more/facets/sparse_array.rb +809 -0
- data/lib/more/facets/stash.rb +66 -0
- data/lib/more/facets/string/words.rb +8 -11
- data/lib/more/facets/succ.rb +3 -3
- data/lib/more/facets/thread.rb +2 -2
- data/lib/more/facets/ziputils.rb +238 -97
- data/test/core/array/test_index.rb +17 -0
- data/test/core/class/test_cattr.rb +1 -1
- data/test/core/class/test_to_proc.rb +13 -0
- data/test/core/comparable/test_cap.rb +25 -0
- data/test/core/comparable/{test_bound.rb → test_clip.rb} +1 -20
- data/test/core/file/test_split_all.rb +32 -0
- data/test/core/hash/test_op_mul.rb +1 -1
- data/test/core/hash/test_op_push.rb +7 -0
- data/test/core/hash/test_replace_each.rb +14 -0
- data/test/core/hash/test_update_each.rb +13 -0
- data/test/core/hash/test_update_keys.rb +18 -0
- data/test/core/hash/test_update_values.rb +12 -0
- data/test/core/kernel/test_callstack.rb +1 -1
- data/test/core/string/test_indent.rb +13 -0
- data/test/core/string/test_margin.rb +100 -0
- data/test/core/string/test_outdent.rb +65 -0
- data/test/core/string/test_tab.rb +1 -162
- data/test/core/string/test_tabto.rb +13 -0
- data/test/{more → core}/test_metaid.rb +8 -8
- data/test/core/time/test_hence.rb +118 -4
- data/test/core/unboundmethod/test_name.rb +1 -1
- data/test/more/{test_arguments.rb → test_argvector.rb} +8 -12
- data/test/more/test_filter.rb +87 -0
- data/test/more/test_memoize.rb +11 -9
- data/test/more/test_sparsearray.rb +279 -0
- metadata +741 -725
- data/demo/bench/bench_load.rb +0 -56
- data/demo/bench/enumerable/bench_collect.rb +0 -84
- data/demo/bench/enumerable/bench_count.rb +0 -58
- data/demo/bench/general/bench_calls.rb +0 -74
- data/demo/bench/general/bench_includes.rb +0 -25
- data/demo/bench/general/bench_methods.rb +0 -17
- data/demo/bench/general/bench_pathname.rb +0 -24
- data/demo/bench/general/bench_range.rb +0 -64
- data/demo/bench/general/bench_return.rb +0 -56
- data/demo/bench/general/bench_yeild.rb +0 -75
- data/demo/bench/general/comment_loading/bench.rb +0 -46
- data/demo/bench/general/comment_loading/comments_begin.rb +0 -109
- data/demo/bench/general/comment_loading/comments_end.rb +0 -127
- data/demo/bench/general/comment_loading/comments_none.rb +0 -1
- data/demo/bench/general/comment_loading/comments_sharp.rb +0 -125
- data/demo/bench/integer/bench_factorial.rb +0 -31
- data/demo/sample/annotations/annotations1.rb +0 -22
- data/demo/sample/ansicolor/cdiff.rb +0 -20
- data/demo/sample/ansicolor/example.rb +0 -82
- data/doc/book/notes.rdoc +0 -9
- data/doc/rdoc/more/classes/BigDuration.html +0 -323
- data/doc/rdoc/more/classes/CLI/Arguments.html +0 -488
- data/doc/rdoc/more/classes/CLI/Command.html +0 -316
- data/doc/rdoc/more/classes/Chain.html +0 -206
- data/doc/rdoc/more/classes/FileShell.html +0 -743
- data/doc/rdoc/more/classes/TagIterator.html +0 -581
- data/doc/rdoc/more/classes/UploadUtils.html +0 -497
- data/doc/rdoc/more/classes/Weekdays.html +0 -218
- data/doc/rdoc/more/files/lib/more/facets/annotations_rb.html +0 -180
- data/doc/rdoc/more/files/lib/more/facets/arguments_rb.html +0 -142
- data/doc/rdoc/more/files/lib/more/facets/cattr_rb.html +0 -125
- data/doc/rdoc/more/files/lib/more/facets/chain_rb.html +0 -114
- data/doc/rdoc/more/files/lib/more/facets/command_rb.html +0 -170
- data/doc/rdoc/more/files/lib/more/facets/eventhook_rb.html +0 -141
- data/doc/rdoc/more/files/lib/more/facets/tagiterator_rb.html +0 -111
- data/doc/rdoc/more/files/lib/more/facets/times_rb.html +0 -163
- data/doc/rdoc/more/files/lib/more/facets/uploadutils_rb.html +0 -176
- data/lib/more/facets/annotations.rb +0 -302
- data/lib/more/facets/arguments.rb +0 -365
- data/lib/more/facets/bytes.rb +0 -175
- data/lib/more/facets/cachedecorator.rb +0 -117
- data/lib/more/facets/chain.rb +0 -58
- data/lib/more/facets/command.rb +0 -439
- data/lib/more/facets/eventhook.rb +0 -132
- data/lib/more/facets/fileshell.rb +0 -202
- data/lib/more/facets/hash/symbolize_keys.rb +0 -94
- data/lib/more/facets/tagiter.rb +0 -366
- data/lib/more/facets/times.rb +0 -431
- data/lib/more/facets/uploadutils.rb +0 -464
- data/test/core/hash/test_update.rb +0 -46
- data/test/more/test_annotations.rb +0 -120
- data/test/more/test_bytes.rb +0 -71
- data/test/more/test_command.rb +0 -69
- data/test/more/test_times.rb +0 -89
@@ -0,0 +1,66 @@
|
|
1
|
+
require 'facets/hash/rekey'
|
2
|
+
|
3
|
+
# = Hash
|
4
|
+
#
|
5
|
+
# Stash is just like Hash, except that all keys are
|
6
|
+
# converted to Strings.
|
7
|
+
#
|
8
|
+
# This is rather fresh code, so is not yet complete.
|
9
|
+
# For instnace, it currently does not ensure that default
|
10
|
+
# keys are strings when using default_proc.
|
11
|
+
#
|
12
|
+
class Stash < Hash
|
13
|
+
|
14
|
+
def fetch(k)
|
15
|
+
super(k.to_s)
|
16
|
+
end
|
17
|
+
|
18
|
+
def store(k, v)
|
19
|
+
super(k.to_s, v)
|
20
|
+
end
|
21
|
+
|
22
|
+
def has_key?(k)
|
23
|
+
super(k.to_s)
|
24
|
+
end
|
25
|
+
|
26
|
+
def key?(k)
|
27
|
+
super(k.to_s)
|
28
|
+
end
|
29
|
+
|
30
|
+
def [](k)
|
31
|
+
super(k.to_s)
|
32
|
+
end
|
33
|
+
|
34
|
+
def []=(k,v)
|
35
|
+
super(k.to_s, v)
|
36
|
+
end
|
37
|
+
|
38
|
+
def <<(other)
|
39
|
+
cash other
|
40
|
+
when Hash
|
41
|
+
super(other.rekey(&:to_s))
|
42
|
+
when Array
|
43
|
+
self[other[0].to_s] = other[1]
|
44
|
+
else
|
45
|
+
raise ArgumentError
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def update(other)
|
50
|
+
super(other.rekey(&:to_s))
|
51
|
+
end
|
52
|
+
|
53
|
+
def merge!(other)
|
54
|
+
super(other.rekey(&:to_s))
|
55
|
+
end
|
56
|
+
|
57
|
+
def replace
|
58
|
+
super(other.rekey(&:to_s))
|
59
|
+
end
|
60
|
+
|
61
|
+
def values_at(*keys)
|
62
|
+
super(keys.map{|k|k.to_s})
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
66
|
+
|
@@ -7,7 +7,7 @@ class String
|
|
7
7
|
# Returns an array of characters.
|
8
8
|
#
|
9
9
|
# "abc 123".words #=> ["abc","123"]
|
10
|
-
|
10
|
+
#
|
11
11
|
def words
|
12
12
|
self.split(/\s+/)
|
13
13
|
end
|
@@ -15,7 +15,7 @@ class String
|
|
15
15
|
# Iterate through each word of a string.
|
16
16
|
#
|
17
17
|
# "a string".each_word { |word, range| ... }
|
18
|
-
|
18
|
+
#
|
19
19
|
def each_word( &yld )
|
20
20
|
rest_of_string = self
|
21
21
|
wordfind = /([-'\w]+)/
|
@@ -38,8 +38,8 @@ class String
|
|
38
38
|
#
|
39
39
|
# "a string".word_filter { |word| word =~ /^a/ } #=> "string"
|
40
40
|
#
|
41
|
-
#
|
42
|
-
|
41
|
+
# CREDIT: George Moschovitis
|
42
|
+
#
|
43
43
|
def word_filter( &blk )
|
44
44
|
s = self.dup
|
45
45
|
s.word_filter!( &blk )
|
@@ -49,7 +49,7 @@ class String
|
|
49
49
|
#
|
50
50
|
# "a string".word_filter { |word| ... }
|
51
51
|
#
|
52
|
-
#
|
52
|
+
# CREDIT: George Moschovitis
|
53
53
|
|
54
54
|
def word_filter! #:yield:
|
55
55
|
rest_of_string = self
|
@@ -104,8 +104,7 @@ class String
|
|
104
104
|
# is a
|
105
105
|
# test
|
106
106
|
#
|
107
|
-
#
|
108
|
-
# CREDIT: Dayne Broderson
|
107
|
+
# CREDIT: Gavin Kistner, Dayne Broderson
|
109
108
|
|
110
109
|
def word_wrap( col_width=80 )
|
111
110
|
self.dup.word_wrap!( col_width )
|
@@ -113,8 +112,7 @@ class String
|
|
113
112
|
|
114
113
|
# As with #word_wrap, but modifies the string in place.
|
115
114
|
#
|
116
|
-
#
|
117
|
-
# CREDIT: Dayne Broderson
|
115
|
+
# CREDIT: Gavin Kistner, Dayne Broderson
|
118
116
|
|
119
117
|
def word_wrap!( col_width=80 )
|
120
118
|
self.gsub!( /(\S{#{col_width}})(?=\S)/, '\1 ' )
|
@@ -142,8 +140,7 @@ class String
|
|
142
140
|
# if possible, and appended by +ellipsis+, which defaults
|
143
141
|
# to '...'.
|
144
142
|
#
|
145
|
-
#
|
146
|
-
# CREDIT: Trans
|
143
|
+
# CREDIT: George Moschovitis, Trans
|
147
144
|
|
148
145
|
def brief(range=76, ellipsis="...")
|
149
146
|
if Range===range
|
data/lib/more/facets/succ.rb
CHANGED
@@ -4,7 +4,7 @@ class Integer
|
|
4
4
|
#
|
5
5
|
# 3.succ(2) #=> 5
|
6
6
|
#
|
7
|
-
#
|
7
|
+
# CREDIT: Trans
|
8
8
|
|
9
9
|
def succ(n=1)
|
10
10
|
self + n
|
@@ -14,7 +14,7 @@ class Integer
|
|
14
14
|
#
|
15
15
|
# 3.pred(2) #=> 1
|
16
16
|
#
|
17
|
-
#
|
17
|
+
# CREDIT: Trans
|
18
18
|
|
19
19
|
def pred(n=1)
|
20
20
|
self - n
|
@@ -32,7 +32,7 @@ class String
|
|
32
32
|
# "abc".succ(4) #=> "abg"
|
33
33
|
# "abc".succ(24) #=> "aca"
|
34
34
|
#
|
35
|
-
#
|
35
|
+
# CREDIT: Trans
|
36
36
|
|
37
37
|
def succ(n=1)
|
38
38
|
s = self
|
data/lib/more/facets/thread.rb
CHANGED
@@ -32,7 +32,7 @@ module Enumerable
|
|
32
32
|
# Like Enumerable#map but each iteration is processed via
|
33
33
|
# a separate thread.
|
34
34
|
#
|
35
|
-
#
|
35
|
+
# CREDIT Sean O'Halpin
|
36
36
|
|
37
37
|
def threaded_map #:yield:
|
38
38
|
map{ |e| Thread.new(e){ |t| yield(t) } }.map{ |t| t.value }
|
@@ -41,7 +41,7 @@ module Enumerable
|
|
41
41
|
# Like Enumerable#map_send but each iteration is processed via
|
42
42
|
# a separate thread.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# CREDIT Sean O'Halpin
|
45
45
|
|
46
46
|
def threaded_map_send(meth, *args, &block)
|
47
47
|
map{ |e| Thread.new(e){ |t| t.send(meth, *args, &block) } }.map{ |t| t.value }
|
data/lib/more/facets/ziputils.rb
CHANGED
@@ -1,60 +1,35 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
# Function module for compression methods.
|
4
|
-
#
|
5
|
-
# == Authors
|
6
|
-
#
|
7
|
-
# * Thomas Sawyer
|
8
|
-
#
|
9
|
-
# == Todo
|
10
|
-
#
|
11
|
-
# * Most of this shells out. It would be best to internalize.
|
12
|
-
#
|
13
|
-
# == Copyright
|
14
|
-
#
|
15
|
-
# Copyright (c) 2006 Thomas Sawyer
|
16
|
-
#
|
17
|
-
# Ruby License
|
18
|
-
#
|
19
|
-
# This module is free software. You may use, modify, and/or redistribute this
|
20
|
-
# software under the same terms as Ruby.
|
21
|
-
#
|
22
|
-
# This program is distributed in the hope that it will be useful, but WITHOUT
|
23
|
-
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
24
|
-
# FOR A PARTICULAR PURPOSE.
|
25
|
-
|
26
|
-
require 'facets/minitar'
|
27
|
-
require 'zlib'
|
1
|
+
#require 'zlib'
|
2
|
+
#require 'facets/minitar'
|
28
3
|
|
29
4
|
# = ZipUtils
|
30
5
|
#
|
31
6
|
# Function module for compression methods.
|
32
7
|
#
|
8
|
+
# TODO: Much of this shells out. It would be best to internalize.
|
9
|
+
#
|
33
10
|
module ZipUtils
|
34
11
|
|
35
12
|
COMPRESS_FORMAT = {
|
36
|
-
'tar.gz' => 'tar_gzip',
|
37
|
-
'tgz' => 'tar_gzip',
|
38
|
-
'tar.bz2' => 'tar_bzip',
|
39
|
-
'zip' => 'zip',
|
40
|
-
|
41
13
|
'.tar.gz' => 'tar_gzip',
|
42
14
|
'.tgz' => 'tar_gzip',
|
43
|
-
'.tar.bz2' => '
|
15
|
+
'.tar.bz2' => 'tar_bzip2',
|
44
16
|
'.zip' => 'zip'
|
45
17
|
}
|
46
18
|
|
19
|
+
###############
|
47
20
|
module_function
|
21
|
+
###############
|
48
22
|
|
49
|
-
# Compress based on given extension.
|
23
|
+
# Compress folder or file based on given extension.
|
50
24
|
# Supported extensions are:
|
51
|
-
# * tar.gz
|
52
|
-
# * tgz
|
53
|
-
# * tar.bz2
|
54
|
-
# * zip
|
55
|
-
|
56
|
-
|
57
|
-
|
25
|
+
# * .tar.gz
|
26
|
+
# * .tgz
|
27
|
+
# * .tar.bz2
|
28
|
+
# * .zip
|
29
|
+
#
|
30
|
+
# TODO: support gzip and bzip2 as well.
|
31
|
+
def compress(folder, file, options={})
|
32
|
+
format = COMPRESS_FORMAT[File.extname(file)]
|
58
33
|
if format
|
59
34
|
send(format, folder, file, options)
|
60
35
|
else
|
@@ -62,109 +37,162 @@ module ZipUtils
|
|
62
37
|
end
|
63
38
|
end
|
64
39
|
|
65
|
-
#
|
40
|
+
#
|
41
|
+
#
|
42
|
+
def gzip(file, option={})
|
43
|
+
require 'zlib'
|
44
|
+
fname = File.basename(file) + '.gz'
|
45
|
+
if options[:dryrun] or options[:verbose]
|
46
|
+
puts "gzip #{file}"
|
47
|
+
end
|
48
|
+
Zlib::GzipWriter.open(fname) do |gz|
|
49
|
+
gz.write(File.read(file))
|
50
|
+
end unless options[:dryrun] or options[:noop]
|
51
|
+
return File.expand_path(fname)
|
52
|
+
end
|
66
53
|
|
67
|
-
|
54
|
+
#
|
55
|
+
#
|
56
|
+
def ungzip(file, options={})
|
68
57
|
require 'zlib'
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
# display equivalent commandline
|
73
|
-
if options[:verbose] or options[:dryrun]
|
74
|
-
puts cmd
|
58
|
+
fname = File.basename(file).chomp(File.extname(file))
|
59
|
+
if options[:dryrun] or options[:verbose]
|
60
|
+
puts "ungzip #{file}"
|
75
61
|
end
|
76
|
-
|
62
|
+
Zlib::GzipReader.open(file) do |gz|
|
63
|
+
File.open(fname, 'wb'){ |f| f << gz.read }
|
64
|
+
end unless options[:dryrun] or options[:noop]
|
65
|
+
return File.expand_path(fname)
|
66
|
+
end
|
67
|
+
|
68
|
+
#
|
69
|
+
#
|
70
|
+
def bzip2(file, option={})
|
71
|
+
cmd = "bzip2 #{file}"
|
72
|
+
puts cmd if options[:dryrun] or options[:verbose]
|
73
|
+
system cmd unless options[:dryrun] or options[:noop]
|
74
|
+
return File.expand_path(file + '.bz2')
|
75
|
+
end
|
76
|
+
|
77
|
+
alias_method :bzip, :bzip2
|
78
|
+
|
79
|
+
#
|
80
|
+
#
|
81
|
+
def unbzip2(file, options={})
|
82
|
+
cmd = "unbzip2 #{file}"
|
83
|
+
puts cmd if options[:dryrun] or options[:verbose]
|
84
|
+
system cmd unless options[:dryrun] or options[:noop]
|
85
|
+
return File.expand_path(file.chomp(File.extname(file)))
|
86
|
+
end
|
87
|
+
|
88
|
+
alias_method :unbzip, :unbzip2
|
89
|
+
|
90
|
+
#
|
91
|
+
#
|
92
|
+
def tar(folder, file=nil, options={})
|
93
|
+
require 'facets/minitar'
|
94
|
+
file ||= File.basename(File.expand_path(folder)) + '.tar'
|
95
|
+
cmd = "tar -cf #{file} #{folder}"
|
96
|
+
puts cmd if options[:verbose] or options[:dryrun]
|
77
97
|
unless options[:noop] or options[:dryrun]
|
78
|
-
gzIO =
|
98
|
+
gzIO = File.open(file, 'wb')
|
79
99
|
Archive::Tar::Minitar.pack(folder, gzIO)
|
80
100
|
end
|
81
101
|
return File.expand_path(file)
|
82
102
|
end
|
83
|
-
alias_method :tar_z, :tar_gzip
|
84
103
|
|
85
104
|
#
|
105
|
+
#
|
106
|
+
def untar(file, options={})
|
107
|
+
require 'facets/minitar'
|
108
|
+
#file ||= File.basename(File.expand_path(folder)) + '.tar'
|
109
|
+
cmd = "untar #{file}"
|
110
|
+
puts cmd if options[:verbose] or options[:dryrun]
|
111
|
+
unless options[:noop] or options[:dryrun]
|
112
|
+
gzIO = File.open(file, 'wb')
|
113
|
+
Archive::Tar::Minitar.unpack(gzIO)
|
114
|
+
end
|
115
|
+
return File.expand_path(file)
|
116
|
+
end
|
86
117
|
|
87
|
-
|
88
|
-
|
89
|
-
|
118
|
+
# Tar Gzip
|
119
|
+
#
|
120
|
+
def tar_gzip(folder, file=nil, options={})
|
121
|
+
require 'zlib'
|
122
|
+
require 'facets/minitar'
|
123
|
+
file ||= File.basename(File.expand_path(folder)) + '.tar.gz' # '.tgz' which ?
|
124
|
+
cmd = "tar --gzip -czf #{file} #{folder}"
|
125
|
+
puts cmd if options[:verbose] or options[:dryrun]
|
126
|
+
unless options[:noop] or options[:dryrun]
|
127
|
+
gzIO = Zlib::GzipWriter.new(File.open(file, 'wb'))
|
128
|
+
Archive::Tar::Minitar.pack(folder, gzIO)
|
129
|
+
end
|
130
|
+
return File.expand_path(file)
|
90
131
|
end
|
91
132
|
|
92
|
-
|
133
|
+
alias_method :tar_z, :tar_gzip
|
93
134
|
|
94
|
-
def
|
95
|
-
|
96
|
-
|
135
|
+
#def tgz(folder, file=nil, options={})
|
136
|
+
# file ||= File.basename(File.expand_path(folder)) + '.tgz'
|
137
|
+
# tar_gzip(folder, file, options)
|
138
|
+
#end
|
97
139
|
|
140
|
+
# Untar Gzip
|
141
|
+
#
|
142
|
+
# TODO: Write unified untar_gzip function.
|
143
|
+
def untar_gzip(file, options={})
|
144
|
+
untar(ungzip(file, options), options)
|
98
145
|
end
|
146
|
+
|
99
147
|
alias_method :untar_z, :untar_gzip
|
100
148
|
|
101
149
|
# Tar Bzip2
|
102
|
-
|
150
|
+
#
|
103
151
|
def tar_bzip2(folder, file=nil, options={})
|
104
152
|
# name of file to create
|
105
153
|
file ||= File.basename(File.expand_path(folder)) + '.tar.bz2'
|
106
154
|
cmd = "tar --bzip2 -cf #{file} #{folder}"
|
107
|
-
|
108
|
-
|
109
|
-
puts cmd
|
110
|
-
end
|
111
|
-
# create tar.bzip2 file
|
112
|
-
unless options[:noop] or options[:dryrun]
|
113
|
-
system cmd
|
114
|
-
end
|
155
|
+
puts cmd if options[:dryrun] or options[:verbose]
|
156
|
+
system cmd unless options[:dryrun] or options[:noop]
|
115
157
|
return File.expand_path(file)
|
116
158
|
end
|
159
|
+
|
117
160
|
alias_method :tar_bzip, :tar_bzip2
|
161
|
+
|
118
162
|
alias_method :tar_j, :tar_bzip2
|
119
163
|
|
120
164
|
# Untar Bzip2
|
121
|
-
|
165
|
+
#
|
122
166
|
def untar_bzip2(file, options={})
|
123
167
|
cmd = "tar --bzip2 -xf #{file}"
|
124
|
-
|
125
|
-
|
126
|
-
puts cmd
|
127
|
-
end
|
128
|
-
# untar/bzip2 file
|
129
|
-
unless options[:noop] or options[:dryrun]
|
130
|
-
system cmd
|
131
|
-
end
|
168
|
+
puts cmd if options[:dryrun] or options[:verbose]
|
169
|
+
system cmd unless options[:dryrun] or options[:noop]
|
132
170
|
end
|
171
|
+
|
133
172
|
alias_method :untar_bzip, :untar_bzip2
|
173
|
+
|
134
174
|
alias_method :untar_j, :untar_bzip2
|
135
175
|
|
136
176
|
# Zip
|
137
|
-
|
177
|
+
#
|
138
178
|
def zip(folder, file=nil, options={})
|
139
179
|
raise ArgumentError if folder == '.*'
|
140
|
-
# name of file to create
|
141
180
|
file ||= File.basename(File.expand_path(folder)) + '.zip'
|
142
181
|
cmd = "zip -rqu #{file} #{folder}"
|
143
|
-
|
144
|
-
|
145
|
-
puts cmd
|
146
|
-
end
|
147
|
-
# create zip file
|
148
|
-
unless options[:noop] or options[:dryrun]
|
149
|
-
system cmd
|
150
|
-
end
|
182
|
+
puts cmd if options[:dryrun] or options[:verbose]
|
183
|
+
system cmd unless options[:dryrun] or options[:noop]
|
151
184
|
return File.expand_path(file)
|
152
185
|
end
|
153
186
|
|
154
187
|
# Unzip
|
155
|
-
|
188
|
+
#
|
156
189
|
def unzip(file, options={})
|
157
190
|
cmd = "unzip #{file}"
|
158
|
-
|
159
|
-
|
160
|
-
puts cmd
|
161
|
-
end
|
162
|
-
# unzip file
|
163
|
-
unless options[:noop] or options[:dryrun]
|
164
|
-
system cmd
|
165
|
-
end
|
191
|
+
puts cmd if options[:dryrun] or options[:verbose]
|
192
|
+
system cmd unless options[:dryrun] or options[:noop]
|
166
193
|
end
|
167
|
-
|
194
|
+
|
195
|
+
end #module ZipUtils
|
168
196
|
|
169
197
|
# Verbose version of ZipUtils.
|
170
198
|
#
|
@@ -178,6 +206,40 @@ module ZipUtils::Verbose
|
|
178
206
|
ZipUtils.tar_gzip(format_extension, folder, file, options)
|
179
207
|
end
|
180
208
|
|
209
|
+
def gzip(file, options={})
|
210
|
+
options[:verbose] = true
|
211
|
+
ZipUtils.gzip(file, options)
|
212
|
+
end
|
213
|
+
|
214
|
+
def ungzip(file, options={})
|
215
|
+
options[:verbose] = true
|
216
|
+
ZipUtils.ungzip(file, options)
|
217
|
+
end
|
218
|
+
|
219
|
+
def bzip2(file, options={})
|
220
|
+
options[:verbose] = true
|
221
|
+
ZipUtils.bzip2(file, options)
|
222
|
+
end
|
223
|
+
|
224
|
+
alias_method :bzip, :bzip2
|
225
|
+
|
226
|
+
def unbzip2(file, options={})
|
227
|
+
options[:verbose] = true
|
228
|
+
ZipUtils.unbzip2(file, options)
|
229
|
+
end
|
230
|
+
|
231
|
+
alias_method :unbzip, :unbzip2
|
232
|
+
|
233
|
+
def tar(folder, file=nil, options={})
|
234
|
+
options[:verbose] = true
|
235
|
+
ZipUtils.tar(folder, file, options)
|
236
|
+
end
|
237
|
+
|
238
|
+
def untar(file, options={})
|
239
|
+
options[:verbose] = true
|
240
|
+
ZipUtils.untar(file, options)
|
241
|
+
end
|
242
|
+
|
181
243
|
def tar_gzip(folder, file=nil, options={})
|
182
244
|
options[:verbose] = true
|
183
245
|
ZipUtils.tar_gzip(folder, file, options)
|
@@ -221,6 +283,40 @@ module ZipUtils::NoWrite
|
|
221
283
|
ZipUtils.tar_gzip(format_extension, folder, file, options)
|
222
284
|
end
|
223
285
|
|
286
|
+
def gzip(file, options={})
|
287
|
+
options[:noop] = true
|
288
|
+
ZipUtils.gzip(file, options)
|
289
|
+
end
|
290
|
+
|
291
|
+
def ungzip(file, options={})
|
292
|
+
options[:noop] = true
|
293
|
+
ZipUtils.ungzip(file, options)
|
294
|
+
end
|
295
|
+
|
296
|
+
def bzip2(file, options={})
|
297
|
+
options[:noop] = true
|
298
|
+
ZipUtils.bzip2(file, options)
|
299
|
+
end
|
300
|
+
|
301
|
+
alias_method :bzip, :bzip2
|
302
|
+
|
303
|
+
def unbzip2(file, options={})
|
304
|
+
options[:noop] = true
|
305
|
+
ZipUtils.unbzip2(file, options)
|
306
|
+
end
|
307
|
+
|
308
|
+
alias_method :unbzip, :unbzip2
|
309
|
+
|
310
|
+
def tar(folder, file=nil, options={})
|
311
|
+
options[:noop] = true
|
312
|
+
ZipUtils.tar(folder, file, options)
|
313
|
+
end
|
314
|
+
|
315
|
+
def untar(file, options={})
|
316
|
+
options[:noop] = true
|
317
|
+
ZipUtils.untar(file, options)
|
318
|
+
end
|
319
|
+
|
224
320
|
def tar_gzip(folder, file=nil, options={})
|
225
321
|
options[:noop] = true
|
226
322
|
ZipUtils.tar_gzip(folder, file, options)
|
@@ -236,11 +332,15 @@ module ZipUtils::NoWrite
|
|
236
332
|
ZipUtils.untar_bzip2(folder, file, options)
|
237
333
|
end
|
238
334
|
|
335
|
+
alias_method :tar_bzip, :tar_bzip2
|
336
|
+
|
239
337
|
def untar_bzip2(file, options={})
|
240
338
|
options[:noop] = true
|
241
339
|
ZipUtils.untar_bzip2(file, options)
|
242
340
|
end
|
243
341
|
|
342
|
+
alias_method :untar_bzip, :untar_bzip2
|
343
|
+
|
244
344
|
def zip(folder, file=nil, options={})
|
245
345
|
options[:noop] = true
|
246
346
|
ZipUtils.unzip(folder, file, options)
|
@@ -265,6 +365,40 @@ module ZipUtils::DryRun
|
|
265
365
|
ZipUtils.tar_gzip(format_extension, folder, file, options)
|
266
366
|
end
|
267
367
|
|
368
|
+
def gzip(file, options={})
|
369
|
+
options[:dryrun] = true
|
370
|
+
ZipUtils.gzip(file, options)
|
371
|
+
end
|
372
|
+
|
373
|
+
def ungzip(file, options={})
|
374
|
+
options[:dryrun] = true
|
375
|
+
ZipUtils.ungzip(file, options)
|
376
|
+
end
|
377
|
+
|
378
|
+
def bzip2(file, options={})
|
379
|
+
options[:dryrun] = true
|
380
|
+
ZipUtils.bzip2(file, options)
|
381
|
+
end
|
382
|
+
|
383
|
+
alias_method :bzip, :bzip2
|
384
|
+
|
385
|
+
def unbzip2(file, options={})
|
386
|
+
options[:dryrun] = true
|
387
|
+
ZipUtils.unbzip2(file, options)
|
388
|
+
end
|
389
|
+
|
390
|
+
alias_method :unbzip, :unbzip2
|
391
|
+
|
392
|
+
def tar(folder, file=nil, options={})
|
393
|
+
options[:dryrun] = true
|
394
|
+
ZipUtils.tar(folder, file, options)
|
395
|
+
end
|
396
|
+
|
397
|
+
def untar(file, options={})
|
398
|
+
options[:dryrun] = true
|
399
|
+
ZipUtils.untar(file, options)
|
400
|
+
end
|
401
|
+
|
268
402
|
def tar_gzip(folder, file=nil, options={})
|
269
403
|
options[:dryrun] = true
|
270
404
|
ZipUtils.tar_gzip(folder, file, options)
|
@@ -280,11 +414,15 @@ module ZipUtils::DryRun
|
|
280
414
|
ZipUtils.untar_bzip2(folder, file, options)
|
281
415
|
end
|
282
416
|
|
417
|
+
alias_method :tar_bzip, :tar_bzip2
|
418
|
+
|
283
419
|
def untar_bzip2(file, options={})
|
284
420
|
options[:dryrun] = true
|
285
421
|
ZipUtils.untar_bzip2(file, options)
|
286
422
|
end
|
287
423
|
|
424
|
+
alias_method :untar_bzip, :untar_bzip2
|
425
|
+
|
288
426
|
def zip(folder, file=nil, options={})
|
289
427
|
options[:dryrun] = true
|
290
428
|
ZipUtils.unzip(folder, file, options)
|
@@ -296,6 +434,9 @@ module ZipUtils::DryRun
|
|
296
434
|
end
|
297
435
|
end
|
298
436
|
|
437
|
+
|
438
|
+
|
439
|
+
# OLD VERSION
|
299
440
|
# #
|
300
441
|
# # DryRun version of ZipUtils.
|
301
442
|
# #
|