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
@@ -77,7 +77,7 @@ Typecast method extensions for <a href="Class.html">Class</a> class.
|
|
77
77
|
|
78
78
|
|
79
79
|
<div class="sectiontitle">Methods</div>
|
80
|
-
<span style="padding-right: 5px;"><a href="#
|
80
|
+
<span style="padding-right: 5px;"><a href="#M000964">cast_from</a></span>
|
81
81
|
|
82
82
|
|
83
83
|
|
@@ -87,7 +87,7 @@ Typecast method extensions for <a href="Class.html">Class</a> class.
|
|
87
87
|
<div class="sectiontitle">Public Instance methods</div>
|
88
88
|
<div class="method">
|
89
89
|
<div class="title">
|
90
|
-
<a name="
|
90
|
+
<a name="M000964"></a><b>cast_from</b>(object)
|
91
91
|
</div>
|
92
92
|
<div class="description">
|
93
93
|
<p>
|
@@ -98,8 +98,8 @@ Cast on object from another.
|
|
98
98
|
</pre>
|
99
99
|
</div>
|
100
100
|
<div class="sourcecode">
|
101
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
102
|
-
<div id="
|
101
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000964_source')" id="l_M000964_source">+</a> ]</p>
|
102
|
+
<div id="M000964_source" class="dyn-source">
|
103
103
|
<pre>
|
104
104
|
<span class="ruby-comment cmt"># File lib/more/facets/typecast.rb, line 161</span>
|
105
105
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cast_from</span>(<span class="ruby-identifier">object</span>)
|
@@ -77,7 +77,7 @@ Typecast method extensions for <a href="Object.html">Object</a> class.
|
|
77
77
|
|
78
78
|
|
79
79
|
<div class="sectiontitle">Methods</div>
|
80
|
-
<span style="padding-right: 5px;"><a href="#
|
80
|
+
<span style="padding-right: 5px;"><a href="#M000965">cast_to</a></span>
|
81
81
|
|
82
82
|
|
83
83
|
|
@@ -87,7 +87,7 @@ Typecast method extensions for <a href="Object.html">Object</a> class.
|
|
87
87
|
<div class="sectiontitle">Public Instance methods</div>
|
88
88
|
<div class="method">
|
89
89
|
<div class="title">
|
90
|
-
<a name="
|
90
|
+
<a name="M000965"></a><b>cast_to</b>(klass)
|
91
91
|
</div>
|
92
92
|
<div class="description">
|
93
93
|
<p>
|
@@ -98,8 +98,8 @@ Cast an object to another
|
|
98
98
|
</pre>
|
99
99
|
</div>
|
100
100
|
<div class="sourcecode">
|
101
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
102
|
-
<div id="
|
101
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000965_source')" id="l_M000965_source">+</a> ]</p>
|
102
|
+
<div id="M000965_source" class="dyn-source">
|
103
103
|
<pre>
|
104
104
|
<span class="ruby-comment cmt"># File lib/more/facets/typecast.rb, line 149</span>
|
105
105
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cast_to</span>(<span class="ruby-identifier">klass</span>)
|
@@ -73,7 +73,7 @@
|
|
73
73
|
<p>
|
74
74
|
Allows an object to declare itself as unable to be subclassed. The
|
75
75
|
technique behind this is very simple (redefinition of <a
|
76
|
-
href="Uninheritable.html#
|
76
|
+
href="Uninheritable.html#M001081">inherited</a>), so this just provides an
|
77
77
|
easier way to do the same thing with a consistent error message.
|
78
78
|
</p>
|
79
79
|
</div>
|
@@ -81,7 +81,7 @@ easier way to do the same thing with a consistent error message.
|
|
81
81
|
|
82
82
|
|
83
83
|
<div class="sectiontitle">Methods</div>
|
84
|
-
<span style="padding-right: 5px;"><a href="#
|
84
|
+
<span style="padding-right: 5px;"><a href="#M001081">inherited</a></span>
|
85
85
|
|
86
86
|
|
87
87
|
|
@@ -91,18 +91,18 @@ easier way to do the same thing with a consistent error message.
|
|
91
91
|
<div class="sectiontitle">Public Instance methods</div>
|
92
92
|
<div class="method">
|
93
93
|
<div class="title">
|
94
|
-
<a name="
|
94
|
+
<a name="M001081"></a><b>inherited</b>(klass)
|
95
95
|
</div>
|
96
96
|
<div class="description">
|
97
97
|
<p>
|
98
98
|
Redefines a class‘s <a
|
99
|
-
href="Uninheritable.html#
|
99
|
+
href="Uninheritable.html#M001081">inherited</a> definition to prevent
|
100
100
|
subclassing of the class extended by this module.
|
101
101
|
</p>
|
102
102
|
</div>
|
103
103
|
<div class="sourcecode">
|
104
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
105
|
-
<div id="
|
104
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001081_source')" id="l_M001081_source">+</a> ]</p>
|
105
|
+
<div id="M001081_source" class="dyn-source">
|
106
106
|
<pre>
|
107
107
|
<span class="ruby-comment cmt"># File lib/more/facets/uninheritable.rb, line 46</span>
|
108
108
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inherited</span>(<span class="ruby-identifier">klass</span>)
|
@@ -86,20 +86,20 @@ version numbers.
|
|
86
86
|
|
87
87
|
|
88
88
|
<div class="sectiontitle">Methods</div>
|
89
|
-
<span style="padding-right: 5px;"><a href="#
|
90
|
-
<span style="padding-right: 5px;"><a href="#
|
91
|
-
<span style="padding-right: 5px;"><a href="#
|
92
|
-
<span style="padding-right: 5px;"><a href="#
|
93
|
-
<span style="padding-right: 5px;"><a href="#
|
94
|
-
<span style="padding-right: 5px;"><a href="#
|
95
|
-
<span style="padding-right: 5px;"><a href="#
|
96
|
-
<span style="padding-right: 5px;"><a href="#
|
97
|
-
<span style="padding-right: 5px;"><a href="#
|
98
|
-
<span style="padding-right: 5px;"><a href="#
|
99
|
-
<span style="padding-right: 5px;"><a href="#
|
100
|
-
<span style="padding-right: 5px;"><a href="#
|
101
|
-
<span style="padding-right: 5px;"><a href="#
|
102
|
-
<span style="padding-right: 5px;"><a href="#
|
89
|
+
<span style="padding-right: 5px;"><a href="#M000194"><=></a></span>
|
90
|
+
<span style="padding-right: 5px;"><a href="#M000195">=~</a></span>
|
91
|
+
<span style="padding-right: 5px;"><a href="#M000193">[]</a></span>
|
92
|
+
<span style="padding-right: 5px;"><a href="#M000199">bump</a></span>
|
93
|
+
<span style="padding-right: 5px;"><a href="#M000201">constraint_lambda</a></span>
|
94
|
+
<span style="padding-right: 5px;"><a href="#M000192">inspect</a></span>
|
95
|
+
<span style="padding-right: 5px;"><a href="#M000196">major</a></span>
|
96
|
+
<span style="padding-right: 5px;"><a href="#M000200">method_missing</a></span>
|
97
|
+
<span style="padding-right: 5px;"><a href="#M000197">minor</a></span>
|
98
|
+
<span style="padding-right: 5px;"><a href="#M000189">new</a></span>
|
99
|
+
<span style="padding-right: 5px;"><a href="#M000202">parse_constraint</a></span>
|
100
|
+
<span style="padding-right: 5px;"><a href="#M000198">teeny</a></span>
|
101
|
+
<span style="padding-right: 5px;"><a href="#M000190">to_s</a></span>
|
102
|
+
<span style="padding-right: 5px;"><a href="#M000191">to_str</a></span>
|
103
103
|
|
104
104
|
<div class="sectiontitle">Included Modules</div>
|
105
105
|
<ul>
|
@@ -113,7 +113,7 @@ version numbers.
|
|
113
113
|
<div class="sectiontitle">Public Class methods</div>
|
114
114
|
<div class="method">
|
115
115
|
<div class="title">
|
116
|
-
<a name="
|
116
|
+
<a name="M000201"></a><b>constraint_lambda</b>( constraint )
|
117
117
|
</div>
|
118
118
|
<div class="description">
|
119
119
|
<p>
|
@@ -121,8 +121,8 @@ Parses a string constraint returning the operation as a lambda.
|
|
121
121
|
</p>
|
122
122
|
</div>
|
123
123
|
<div class="sourcecode">
|
124
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
125
|
-
<div id="
|
124
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000201_source')" id="l_M000201_source">+</a> ]</p>
|
125
|
+
<div id="M000201_source" class="dyn-source">
|
126
126
|
<pre>
|
127
127
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 113</span>
|
128
128
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">constraint_lambda</span>( <span class="ruby-identifier">constraint</span> )
|
@@ -135,11 +135,11 @@ Parses a string constraint returning the operation as a lambda.
|
|
135
135
|
</div>
|
136
136
|
<div class="method">
|
137
137
|
<div class="title">
|
138
|
-
<a name="
|
138
|
+
<a name="M000189"></a><b>new</b>( *args )
|
139
139
|
</div>
|
140
140
|
<div class="sourcecode">
|
141
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
142
|
-
<div id="
|
141
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000189_source')" id="l_M000189_source">+</a> ]</p>
|
142
|
+
<div id="M000189_source" class="dyn-source">
|
143
143
|
<pre>
|
144
144
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 40</span>
|
145
145
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">args</span> )
|
@@ -152,11 +152,11 @@ Parses a string constraint returning the operation as a lambda.
|
|
152
152
|
</div>
|
153
153
|
<div class="method">
|
154
154
|
<div class="title">
|
155
|
-
<a name="
|
155
|
+
<a name="M000202"></a><b>parse_constraint</b>( constraint )
|
156
156
|
</div>
|
157
157
|
<div class="sourcecode">
|
158
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
159
|
-
<div id="
|
158
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000202_source')" id="l_M000202_source">+</a> ]</p>
|
159
|
+
<div id="M000202_source" class="dyn-source">
|
160
160
|
<pre>
|
161
161
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 118</span>
|
162
162
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parse_constraint</span>( <span class="ruby-identifier">constraint</span> )
|
@@ -183,7 +183,7 @@ Parses a string constraint returning the operation as a lambda.
|
|
183
183
|
<div class="sectiontitle">Public Instance methods</div>
|
184
184
|
<div class="method">
|
185
185
|
<div class="title">
|
186
|
-
<a name="
|
186
|
+
<a name="M000194"></a><b><=></b>( other )
|
187
187
|
</div>
|
188
188
|
<div class="description">
|
189
189
|
<p>
|
@@ -191,8 +191,8 @@ Parses a string constraint returning the operation as a lambda.
|
|
191
191
|
</p>
|
192
192
|
</div>
|
193
193
|
<div class="sourcecode">
|
194
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
195
|
-
<div id="
|
194
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000194_source')" id="l_M000194_source">+</a> ]</p>
|
195
|
+
<div id="M000194_source" class="dyn-source">
|
196
196
|
<pre>
|
197
197
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 61</span>
|
198
198
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><=></span>( <span class="ruby-identifier">other</span> )
|
@@ -209,7 +209,7 @@ Parses a string constraint returning the operation as a lambda.
|
|
209
209
|
</div>
|
210
210
|
<div class="method">
|
211
211
|
<div class="title">
|
212
|
-
<a name="
|
212
|
+
<a name="M000195"></a><b>=~</b>( other )
|
213
213
|
</div>
|
214
214
|
<div class="description">
|
215
215
|
<p>
|
@@ -217,8 +217,8 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
217
217
|
</p>
|
218
218
|
</div>
|
219
219
|
<div class="sourcecode">
|
220
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
221
|
-
<div id="
|
220
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000195_source')" id="l_M000195_source">+</a> ]</p>
|
221
|
+
<div id="M000195_source" class="dyn-source">
|
222
222
|
<pre>
|
223
223
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 72</span>
|
224
224
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">=~</span>( <span class="ruby-identifier">other</span> )
|
@@ -233,11 +233,11 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
233
233
|
</div>
|
234
234
|
<div class="method">
|
235
235
|
<div class="title">
|
236
|
-
<a name="
|
236
|
+
<a name="M000193"></a><b>[]</b>(i)
|
237
237
|
</div>
|
238
238
|
<div class="sourcecode">
|
239
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
240
|
-
<div id="
|
239
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000193_source')" id="l_M000193_source">+</a> ]</p>
|
240
|
+
<div id="M000193_source" class="dyn-source">
|
241
241
|
<pre>
|
242
242
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 55</span>
|
243
243
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">i</span>)
|
@@ -249,11 +249,11 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
249
249
|
</div>
|
250
250
|
<div class="method">
|
251
251
|
<div class="title">
|
252
|
-
<a name="
|
252
|
+
<a name="M000199"></a><b>bump</b>(which=:teeny)
|
253
253
|
</div>
|
254
254
|
<div class="sourcecode">
|
255
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
256
|
-
<div id="
|
255
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000199_source')" id="l_M000199_source">+</a> ]</p>
|
256
|
+
<div id="M000199_source" class="dyn-source">
|
257
257
|
<pre>
|
258
258
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 92</span>
|
259
259
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bump</span>(<span class="ruby-identifier">which</span>=<span class="ruby-identifier">:teeny</span>)
|
@@ -274,11 +274,11 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
274
274
|
</div>
|
275
275
|
<div class="method">
|
276
276
|
<div class="title">
|
277
|
-
<a name="
|
277
|
+
<a name="M000192"></a><b>inspect</b>()
|
278
278
|
</div>
|
279
279
|
<div class="sourcecode">
|
280
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
281
|
-
<div id="
|
280
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000192_source')" id="l_M000192_source">+</a> ]</p>
|
281
|
+
<div id="M000192_source" class="dyn-source">
|
282
282
|
<pre>
|
283
283
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 51</span>
|
284
284
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
@@ -290,7 +290,7 @@ For pessimistic constraint (like ’~>’ in gems)
|
|
290
290
|
</div>
|
291
291
|
<div class="method">
|
292
292
|
<div class="title">
|
293
|
-
<a name="
|
293
|
+
<a name="M000196"></a><b>major</b>()
|
294
294
|
</div>
|
295
295
|
<div class="description">
|
296
296
|
<p>
|
@@ -298,8 +298,8 @@ Major is the first number in the version series.
|
|
298
298
|
</p>
|
299
299
|
</div>
|
300
300
|
<div class="sourcecode">
|
301
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
302
|
-
<div id="
|
301
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000196_source')" id="l_M000196_source">+</a> ]</p>
|
302
|
+
<div id="M000196_source" class="dyn-source">
|
303
303
|
<pre>
|
304
304
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 81</span>
|
305
305
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">major</span> ; <span class="ruby-ivar">@self</span>[<span class="ruby-value">0</span>] ; <span class="ruby-keyword kw">end</span>
|
@@ -309,7 +309,7 @@ Major is the first number in the version series.
|
|
309
309
|
</div>
|
310
310
|
<div class="method">
|
311
311
|
<div class="title">
|
312
|
-
<a name="
|
312
|
+
<a name="M000200"></a><b>method_missing</b>( sym, *args, &blk )
|
313
313
|
</div>
|
314
314
|
<div class="description">
|
315
315
|
<p>
|
@@ -317,8 +317,8 @@ Delegate to the array.
|
|
317
317
|
</p>
|
318
318
|
</div>
|
319
319
|
<div class="sourcecode">
|
320
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
321
|
-
<div id="
|
320
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000200_source')" id="l_M000200_source">+</a> ]</p>
|
321
|
+
<div id="M000200_source" class="dyn-source">
|
322
322
|
<pre>
|
323
323
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 107</span>
|
324
324
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>( <span class="ruby-identifier">sym</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span> )
|
@@ -330,7 +330,7 @@ Delegate to the array.
|
|
330
330
|
</div>
|
331
331
|
<div class="method">
|
332
332
|
<div class="title">
|
333
|
-
<a name="
|
333
|
+
<a name="M000197"></a><b>minor</b>()
|
334
334
|
</div>
|
335
335
|
<div class="description">
|
336
336
|
<p>
|
@@ -338,8 +338,8 @@ Minor is the second number in the version series.
|
|
338
338
|
</p>
|
339
339
|
</div>
|
340
340
|
<div class="sourcecode">
|
341
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
342
|
-
<div id="
|
341
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000197_source')" id="l_M000197_source">+</a> ]</p>
|
342
|
+
<div id="M000197_source" class="dyn-source">
|
343
343
|
<pre>
|
344
344
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 85</span>
|
345
345
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">minor</span> ; <span class="ruby-ivar">@self</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">||</span> <span class="ruby-value">0</span> ; <span class="ruby-keyword kw">end</span>
|
@@ -349,7 +349,7 @@ Minor is the second number in the version series.
|
|
349
349
|
</div>
|
350
350
|
<div class="method">
|
351
351
|
<div class="title">
|
352
|
-
<a name="
|
352
|
+
<a name="M000198"></a><b>teeny</b>()
|
353
353
|
</div>
|
354
354
|
<div class="description">
|
355
355
|
<p>
|
@@ -357,8 +357,8 @@ Teeny is third number in the version series.
|
|
357
357
|
</p>
|
358
358
|
</div>
|
359
359
|
<div class="sourcecode">
|
360
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
361
|
-
<div id="
|
360
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000198_source')" id="l_M000198_source">+</a> ]</p>
|
361
|
+
<div id="M000198_source" class="dyn-source">
|
362
362
|
<pre>
|
363
363
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 89</span>
|
364
364
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">teeny</span> ; <span class="ruby-ivar">@self</span>[<span class="ruby-value">2</span>] <span class="ruby-operator">||</span> <span class="ruby-value">0</span> ; <span class="ruby-keyword kw">end</span>
|
@@ -368,11 +368,11 @@ Teeny is third number in the version series.
|
|
368
368
|
</div>
|
369
369
|
<div class="method">
|
370
370
|
<div class="title">
|
371
|
-
<a name="
|
371
|
+
<a name="M000190"></a><b>to_s</b>()
|
372
372
|
</div>
|
373
373
|
<div class="sourcecode">
|
374
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
375
|
-
<div id="
|
374
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000190_source')" id="l_M000190_source">+</a> ]</p>
|
375
|
+
<div id="M000190_source" class="dyn-source">
|
376
376
|
<pre>
|
377
377
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 45</span>
|
378
378
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> ; <span class="ruby-ivar">@self</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">'.'</span>) ; <span class="ruby-keyword kw">end</span>
|
@@ -382,17 +382,17 @@ Teeny is third number in the version series.
|
|
382
382
|
</div>
|
383
383
|
<div class="method">
|
384
384
|
<div class="title">
|
385
|
-
<a name="
|
385
|
+
<a name="M000191"></a><b>to_str</b>()
|
386
386
|
</div>
|
387
387
|
<div class="description">
|
388
388
|
<p>
|
389
389
|
This is here only becuase File.join calls it instead of <a
|
390
|
-
href="VersionNumber.html#
|
390
|
+
href="VersionNumber.html#M000190">to_s</a>.
|
391
391
|
</p>
|
392
392
|
</div>
|
393
393
|
<div class="sourcecode">
|
394
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
395
|
-
<div id="
|
394
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000191_source')" id="l_M000191_source">+</a> ]</p>
|
395
|
+
<div id="M000191_source" class="dyn-source">
|
396
396
|
<pre>
|
397
397
|
<span class="ruby-comment cmt"># File lib/more/facets/version.rb, line 49</span>
|
398
398
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_str</span> ; <span class="ruby-ivar">@self</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">'.'</span>) ; <span class="ruby-keyword kw">end</span>
|
@@ -74,7 +74,7 @@
|
|
74
74
|
<a href="XOXO.html">XOXO</a> is a Ruby <a href="XOXO.html">XOXO</a> parser
|
75
75
|
and generator. <a href="It.html">It</a> provides a Ruby API similar to
|
76
76
|
Marshal and YAML (though more specific) to <a
|
77
|
-
href="XOXO.html#
|
77
|
+
href="XOXO.html#M000827">load</a> and <a href="XOXO.html#M000828">dump</a>
|
78
78
|
<a href="http://microformats.org/wiki/xoxo">XOXO</a>, an simple, open
|
79
79
|
outline format written in standard XHTML and suitable for embedding in
|
80
80
|
(X)HTML, Atom, RSS, and arbitrary XML.
|
@@ -84,8 +84,8 @@ outline format written in standard XHTML and suitable for embedding in
|
|
84
84
|
|
85
85
|
|
86
86
|
<div class="sectiontitle">Methods</div>
|
87
|
-
<span style="padding-right: 5px;"><a href="#
|
88
|
-
<span style="padding-right: 5px;"><a href="#
|
87
|
+
<span style="padding-right: 5px;"><a href="#M000828">dump</a></span>
|
88
|
+
<span style="padding-right: 5px;"><a href="#M000827">load</a></span>
|
89
89
|
|
90
90
|
|
91
91
|
|
@@ -95,7 +95,7 @@ outline format written in standard XHTML and suitable for embedding in
|
|
95
95
|
<div class="sectiontitle">Public Class methods</div>
|
96
96
|
<div class="method">
|
97
97
|
<div class="title">
|
98
|
-
<a name="
|
98
|
+
<a name="M000828"></a><b>dump</b>(struct, options={})
|
99
99
|
</div>
|
100
100
|
<div class="description">
|
101
101
|
<p>
|
@@ -131,8 +131,8 @@ wrapped <a href="XOXO.html">XOXO</a> document.
|
|
131
131
|
</table>
|
132
132
|
</div>
|
133
133
|
<div class="sourcecode">
|
134
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
135
|
-
<div id="
|
134
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000828_source')" id="l_M000828_source">+</a> ]</p>
|
135
|
+
<div id="M000828_source" class="dyn-source">
|
136
136
|
<pre>
|
137
137
|
<span class="ruby-comment cmt"># File lib/more/facets/xoxo.rb, line 71</span>
|
138
138
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dump</span>(<span class="ruby-identifier">struct</span>, <span class="ruby-identifier">options</span>={})
|
@@ -157,7 +157,7 @@ wrapped <a href="XOXO.html">XOXO</a> document.
|
|
157
157
|
</div>
|
158
158
|
<div class="method">
|
159
159
|
<div class="title">
|
160
|
-
<a name="
|
160
|
+
<a name="M000827"></a><b>load</b>(xoxo)
|
161
161
|
</div>
|
162
162
|
<div class="description">
|
163
163
|
<p>
|
@@ -166,8 +166,8 @@ IO or StringIO or <em>xoxo</em>.
|
|
166
166
|
</p>
|
167
167
|
</div>
|
168
168
|
<div class="sourcecode">
|
169
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
170
|
-
<div id="
|
169
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000827_source')" id="l_M000827_source">+</a> ]</p>
|
170
|
+
<div id="M000827_source" class="dyn-source">
|
171
171
|
<pre>
|
172
172
|
<span class="ruby-comment cmt"># File lib/more/facets/xoxo.rb, line 48</span>
|
173
173
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">load</span>(<span class="ruby-identifier">xoxo</span>)
|
@@ -73,25 +73,36 @@
|
|
73
73
|
<p>
|
74
74
|
Function module for compression methods.
|
75
75
|
</p>
|
76
|
+
<p>
|
77
|
+
TODO: Much of this shells out. <a href="It.html">It</a> would be best to
|
78
|
+
internalize.
|
79
|
+
</p>
|
76
80
|
</div>
|
77
81
|
|
78
82
|
|
79
83
|
|
80
84
|
<div class="sectiontitle">Methods</div>
|
81
|
-
<span style="padding-right: 5px;"><a href="#
|
82
|
-
<span style="padding-right: 5px;"><a href="#
|
83
|
-
<span style="padding-right: 5px;"><a href="#
|
84
|
-
<span style="padding-right: 5px;"><a href="#
|
85
|
-
<span style="padding-right: 5px;"><a href="#
|
86
|
-
<span style="padding-right: 5px;"><a href="#
|
87
|
-
<span style="padding-right: 5px;"><a href="#
|
88
|
-
<span style="padding-right: 5px;"><a href="#
|
89
|
-
<span style="padding-right: 5px;"><a href="#
|
90
|
-
<span style="padding-right: 5px;"><a href="#
|
91
|
-
<span style="padding-right: 5px;"><a href="#
|
92
|
-
<span style="padding-right: 5px;"><a href="#
|
93
|
-
<span style="padding-right: 5px;"><a href="#
|
94
|
-
<span style="padding-right: 5px;"><a href="#
|
85
|
+
<span style="padding-right: 5px;"><a href="#M000999">bzip</a></span>
|
86
|
+
<span style="padding-right: 5px;"><a href="#M000998">bzip2</a></span>
|
87
|
+
<span style="padding-right: 5px;"><a href="#M000995">compress</a></span>
|
88
|
+
<span style="padding-right: 5px;"><a href="#M000996">gzip</a></span>
|
89
|
+
<span style="padding-right: 5px;"><a href="#M001002">tar</a></span>
|
90
|
+
<span style="padding-right: 5px;"><a href="#M001009">tar_bzip</a></span>
|
91
|
+
<span style="padding-right: 5px;"><a href="#M001008">tar_bzip2</a></span>
|
92
|
+
<span style="padding-right: 5px;"><a href="#M001004">tar_gzip</a></span>
|
93
|
+
<span style="padding-right: 5px;"><a href="#M001010">tar_j</a></span>
|
94
|
+
<span style="padding-right: 5px;"><a href="#M001005">tar_z</a></span>
|
95
|
+
<span style="padding-right: 5px;"><a href="#M001001">unbzip</a></span>
|
96
|
+
<span style="padding-right: 5px;"><a href="#M001000">unbzip2</a></span>
|
97
|
+
<span style="padding-right: 5px;"><a href="#M000997">ungzip</a></span>
|
98
|
+
<span style="padding-right: 5px;"><a href="#M001003">untar</a></span>
|
99
|
+
<span style="padding-right: 5px;"><a href="#M001012">untar_bzip</a></span>
|
100
|
+
<span style="padding-right: 5px;"><a href="#M001011">untar_bzip2</a></span>
|
101
|
+
<span style="padding-right: 5px;"><a href="#M001006">untar_gzip</a></span>
|
102
|
+
<span style="padding-right: 5px;"><a href="#M001013">untar_j</a></span>
|
103
|
+
<span style="padding-right: 5px;"><a href="#M001007">untar_z</a></span>
|
104
|
+
<span style="padding-right: 5px;"><a href="#M001015">unzip</a></span>
|
105
|
+
<span style="padding-right: 5px;"><a href="#M001014">zip</a></span>
|
95
106
|
|
96
107
|
|
97
108
|
|
@@ -106,7 +117,7 @@ Module <a href="ZipUtils/Verbose.html" class="link">ZipUtils::Verbose</a><br />
|
|
106
117
|
<tr valign='top'>
|
107
118
|
<td class="attr-name">COMPRESS_FORMAT</td>
|
108
119
|
<td>=</td>
|
109
|
-
<td class="attr-value">{ '
|
120
|
+
<td class="attr-value">{ '.tar.gz' => 'tar_gzip', '.tgz' => 'tar_gzip', '.tar.bz2' => 'tar_bzip2', '.zip' => 'zip'</td>
|
110
121
|
</tr>
|
111
122
|
</table>
|
112
123
|
|
@@ -114,34 +125,71 @@ Module <a href="ZipUtils/Verbose.html" class="link">ZipUtils::Verbose</a><br />
|
|
114
125
|
<div class="sectiontitle">Public Instance methods</div>
|
115
126
|
<div class="method">
|
116
127
|
<div class="title">
|
117
|
-
<a name="
|
128
|
+
<a name="M000999"></a><b>bzip</b>(file, option={})
|
118
129
|
</div>
|
119
130
|
<div class="description">
|
120
131
|
<p>
|
121
|
-
|
132
|
+
Alias for <a href="ZipUtils.html#M000998">bzip2</a>
|
133
|
+
</p>
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
<div class="method">
|
137
|
+
<div class="title">
|
138
|
+
<a name="M000998"></a><b>bzip2</b>(file, option={})
|
139
|
+
</div>
|
140
|
+
<div class="aka">
|
141
|
+
This method is also aliased as
|
142
|
+
<a href="ZipUtils.html#M000999">bzip</a>
|
143
|
+
</div>
|
144
|
+
<div class="sourcecode">
|
145
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000998_source')" id="l_M000998_source">+</a> ]</p>
|
146
|
+
<div id="M000998_source" class="dyn-source">
|
147
|
+
<pre>
|
148
|
+
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line 70</span>
|
149
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bzip2</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">option</span>={})
|
150
|
+
<span class="ruby-identifier">cmd</span> = <span class="ruby-node">"bzip2 #{file}"</span>
|
151
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">cmd</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:verbose</span>]
|
152
|
+
<span class="ruby-identifier">system</span> <span class="ruby-identifier">cmd</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:noop</span>]
|
153
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">file</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'.bz2'</span>)
|
154
|
+
<span class="ruby-keyword kw">end</span>
|
155
|
+
</pre>
|
156
|
+
</div>
|
157
|
+
</div>
|
158
|
+
</div>
|
159
|
+
<div class="method">
|
160
|
+
<div class="title">
|
161
|
+
<a name="M000995"></a><b>compress</b>(folder, file, options={})
|
162
|
+
</div>
|
163
|
+
<div class="description">
|
164
|
+
<p>
|
165
|
+
Compress folder or file based on given extension. Supported extensions are:
|
122
166
|
</p>
|
123
167
|
<ul>
|
124
|
-
<li
|
168
|
+
<li>.tar.gz
|
125
169
|
|
126
170
|
</li>
|
127
|
-
<li
|
171
|
+
<li>.tgz
|
128
172
|
|
129
173
|
</li>
|
130
|
-
<li
|
174
|
+
<li>.tar.bz2
|
131
175
|
|
132
176
|
</li>
|
133
|
-
<li
|
177
|
+
<li>.<a href="ZipUtils.html#M001014">zip</a>
|
134
178
|
|
135
179
|
</li>
|
136
180
|
</ul>
|
181
|
+
<p>
|
182
|
+
TODO: support <a href="ZipUtils.html#M000996">gzip</a> and <a
|
183
|
+
href="ZipUtils.html#M000998">bzip2</a> as well.
|
184
|
+
</p>
|
137
185
|
</div>
|
138
186
|
<div class="sourcecode">
|
139
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
140
|
-
<div id="
|
187
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000995_source')" id="l_M000995_source">+</a> ]</p>
|
188
|
+
<div id="M000995_source" class="dyn-source">
|
141
189
|
<pre>
|
142
|
-
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line
|
143
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">compress</span>(<span class="ruby-identifier">
|
144
|
-
<span class="ruby-identifier">format</span> = <span class="ruby-constant">COMPRESS_FORMAT</span>[<span class="ruby-
|
190
|
+
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line 31</span>
|
191
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">compress</span>(<span class="ruby-identifier">folder</span>, <span class="ruby-identifier">file</span>, <span class="ruby-identifier">options</span>={})
|
192
|
+
<span class="ruby-identifier">format</span> = <span class="ruby-constant">COMPRESS_FORMAT</span>[<span class="ruby-constant">File</span>.<span class="ruby-identifier">extname</span>(<span class="ruby-identifier">file</span>)]
|
145
193
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">format</span>
|
146
194
|
<span class="ruby-identifier">send</span>(<span class="ruby-identifier">format</span>, <span class="ruby-identifier">folder</span>, <span class="ruby-identifier">file</span>, <span class="ruby-identifier">options</span>)
|
147
195
|
<span class="ruby-keyword kw">else</span>
|
@@ -154,17 +202,65 @@ Compress based on given extension. Supported extensions are:
|
|
154
202
|
</div>
|
155
203
|
<div class="method">
|
156
204
|
<div class="title">
|
157
|
-
<a name="
|
205
|
+
<a name="M000996"></a><b>gzip</b>(file, option={})
|
206
|
+
</div>
|
207
|
+
<div class="sourcecode">
|
208
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000996_source')" id="l_M000996_source">+</a> ]</p>
|
209
|
+
<div id="M000996_source" class="dyn-source">
|
210
|
+
<pre>
|
211
|
+
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line 42</span>
|
212
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gzip</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">option</span>={})
|
213
|
+
<span class="ruby-identifier">require</span> <span class="ruby-value str">'zlib'</span>
|
214
|
+
<span class="ruby-identifier">fname</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">file</span>) <span class="ruby-operator">+</span> <span class="ruby-value str">'.gz'</span>
|
215
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:verbose</span>]
|
216
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">"gzip #{file}"</span>
|
217
|
+
<span class="ruby-keyword kw">end</span>
|
218
|
+
<span class="ruby-constant">Zlib</span><span class="ruby-operator">::</span><span class="ruby-constant">GzipWriter</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">fname</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">gz</span><span class="ruby-operator">|</span>
|
219
|
+
<span class="ruby-identifier">gz</span>.<span class="ruby-identifier">write</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">file</span>))
|
220
|
+
<span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:noop</span>]
|
221
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">fname</span>)
|
222
|
+
<span class="ruby-keyword kw">end</span>
|
223
|
+
</pre>
|
224
|
+
</div>
|
225
|
+
</div>
|
226
|
+
</div>
|
227
|
+
<div class="method">
|
228
|
+
<div class="title">
|
229
|
+
<a name="M001002"></a><b>tar</b>(folder, file=nil, options={})
|
230
|
+
</div>
|
231
|
+
<div class="sourcecode">
|
232
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001002_source')" id="l_M001002_source">+</a> ]</p>
|
233
|
+
<div id="M001002_source" class="dyn-source">
|
234
|
+
<pre>
|
235
|
+
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line 92</span>
|
236
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tar</span>(<span class="ruby-identifier">folder</span>, <span class="ruby-identifier">file</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">options</span>={})
|
237
|
+
<span class="ruby-identifier">require</span> <span class="ruby-value str">'facets/minitar'</span>
|
238
|
+
<span class="ruby-identifier">file</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">folder</span>)) <span class="ruby-operator">+</span> <span class="ruby-value str">'.tar'</span>
|
239
|
+
<span class="ruby-identifier">cmd</span> = <span class="ruby-node">"tar -cf #{file} #{folder}"</span>
|
240
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">cmd</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:verbose</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>]
|
241
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:noop</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>]
|
242
|
+
<span class="ruby-identifier">gzIO</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">file</span>, <span class="ruby-value str">'wb'</span>)
|
243
|
+
<span class="ruby-constant">Archive</span><span class="ruby-operator">::</span><span class="ruby-constant">Tar</span><span class="ruby-operator">::</span><span class="ruby-constant">Minitar</span>.<span class="ruby-identifier">pack</span>(<span class="ruby-identifier">folder</span>, <span class="ruby-identifier">gzIO</span>)
|
244
|
+
<span class="ruby-keyword kw">end</span>
|
245
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">file</span>)
|
246
|
+
<span class="ruby-keyword kw">end</span>
|
247
|
+
</pre>
|
248
|
+
</div>
|
249
|
+
</div>
|
250
|
+
</div>
|
251
|
+
<div class="method">
|
252
|
+
<div class="title">
|
253
|
+
<a name="M001009"></a><b>tar_bzip</b>(folder, file=nil, options={})
|
158
254
|
</div>
|
159
255
|
<div class="description">
|
160
256
|
<p>
|
161
|
-
Alias for <a href="ZipUtils.html#
|
257
|
+
Alias for <a href="ZipUtils.html#M001008">tar_bzip2</a>
|
162
258
|
</p>
|
163
259
|
</div>
|
164
260
|
</div>
|
165
261
|
<div class="method">
|
166
262
|
<div class="title">
|
167
|
-
<a name="
|
263
|
+
<a name="M001008"></a><b>tar_bzip2</b>(folder, file=nil, options={})
|
168
264
|
</div>
|
169
265
|
<div class="description">
|
170
266
|
<p>
|
@@ -173,26 +269,20 @@ Tar Bzip2
|
|
173
269
|
</div>
|
174
270
|
<div class="aka">
|
175
271
|
This method is also aliased as
|
176
|
-
<a href="ZipUtils.html#
|
177
|
-
<a href="ZipUtils.html#
|
272
|
+
<a href="ZipUtils.html#M001009">tar_bzip</a>
|
273
|
+
<a href="ZipUtils.html#M001010">tar_j</a>
|
178
274
|
</div>
|
179
275
|
<div class="sourcecode">
|
180
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
181
|
-
<div id="
|
276
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001008_source')" id="l_M001008_source">+</a> ]</p>
|
277
|
+
<div id="M001008_source" class="dyn-source">
|
182
278
|
<pre>
|
183
|
-
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line
|
279
|
+
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line 151</span>
|
184
280
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tar_bzip2</span>(<span class="ruby-identifier">folder</span>, <span class="ruby-identifier">file</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">options</span>={})
|
185
281
|
<span class="ruby-comment cmt"># name of file to create</span>
|
186
282
|
<span class="ruby-identifier">file</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">folder</span>)) <span class="ruby-operator">+</span> <span class="ruby-value str">'.tar.bz2'</span>
|
187
283
|
<span class="ruby-identifier">cmd</span> = <span class="ruby-node">"tar --bzip2 -cf #{file} #{folder}"</span>
|
188
|
-
<span class="ruby-
|
189
|
-
<span class="ruby-keyword kw">
|
190
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">cmd</span>
|
191
|
-
<span class="ruby-keyword kw">end</span>
|
192
|
-
<span class="ruby-comment cmt"># create tar.bzip2 file</span>
|
193
|
-
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:noop</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>]
|
194
|
-
<span class="ruby-identifier">system</span> <span class="ruby-identifier">cmd</span>
|
195
|
-
<span class="ruby-keyword kw">end</span>
|
284
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">cmd</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:verbose</span>]
|
285
|
+
<span class="ruby-identifier">system</span> <span class="ruby-identifier">cmd</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:noop</span>]
|
196
286
|
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">file</span>)
|
197
287
|
<span class="ruby-keyword kw">end</span>
|
198
288
|
</pre>
|
@@ -201,7 +291,7 @@ Tar Bzip2
|
|
201
291
|
</div>
|
202
292
|
<div class="method">
|
203
293
|
<div class="title">
|
204
|
-
<a name="
|
294
|
+
<a name="M001004"></a><b>tar_gzip</b>(folder, file=nil, options={})
|
205
295
|
</div>
|
206
296
|
<div class="description">
|
207
297
|
<p>
|
@@ -210,23 +300,19 @@ Tar Gzip
|
|
210
300
|
</div>
|
211
301
|
<div class="aka">
|
212
302
|
This method is also aliased as
|
213
|
-
<a href="ZipUtils.html#
|
303
|
+
<a href="ZipUtils.html#M001005">tar_z</a>
|
214
304
|
</div>
|
215
305
|
<div class="sourcecode">
|
216
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
217
|
-
<div id="
|
306
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001004_source')" id="l_M001004_source">+</a> ]</p>
|
307
|
+
<div id="M001004_source" class="dyn-source">
|
218
308
|
<pre>
|
219
|
-
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line
|
309
|
+
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line 120</span>
|
220
310
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tar_gzip</span>(<span class="ruby-identifier">folder</span>, <span class="ruby-identifier">file</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">options</span>={})
|
221
311
|
<span class="ruby-identifier">require</span> <span class="ruby-value str">'zlib'</span>
|
222
|
-
<span class="ruby-
|
223
|
-
<span class="ruby-identifier">file</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">folder</span>)) <span class="ruby-operator">+</span> <span class="ruby-value str">'.tar.gz'</span>
|
312
|
+
<span class="ruby-identifier">require</span> <span class="ruby-value str">'facets/minitar'</span>
|
313
|
+
<span class="ruby-identifier">file</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">folder</span>)) <span class="ruby-operator">+</span> <span class="ruby-value str">'.tar.gz'</span> <span class="ruby-comment cmt"># '.tgz' which ?</span>
|
224
314
|
<span class="ruby-identifier">cmd</span> = <span class="ruby-node">"tar --gzip -czf #{file} #{folder}"</span>
|
225
|
-
<span class="ruby-
|
226
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:verbose</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>]
|
227
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">cmd</span>
|
228
|
-
<span class="ruby-keyword kw">end</span>
|
229
|
-
<span class="ruby-comment cmt"># create tar.gzip file</span>
|
315
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">cmd</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:verbose</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>]
|
230
316
|
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:noop</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>]
|
231
317
|
<span class="ruby-identifier">gzIO</span> = <span class="ruby-constant">Zlib</span><span class="ruby-operator">::</span><span class="ruby-constant">GzipWriter</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">file</span>, <span class="ruby-value str">'wb'</span>))
|
232
318
|
<span class="ruby-constant">Archive</span><span class="ruby-operator">::</span><span class="ruby-constant">Tar</span><span class="ruby-operator">::</span><span class="ruby-constant">Minitar</span>.<span class="ruby-identifier">pack</span>(<span class="ruby-identifier">folder</span>, <span class="ruby-identifier">gzIO</span>)
|
@@ -239,36 +325,100 @@ Tar Gzip
|
|
239
325
|
</div>
|
240
326
|
<div class="method">
|
241
327
|
<div class="title">
|
242
|
-
<a name="
|
328
|
+
<a name="M001010"></a><b>tar_j</b>(folder, file=nil, options={})
|
329
|
+
</div>
|
330
|
+
<div class="description">
|
331
|
+
<p>
|
332
|
+
Alias for <a href="ZipUtils.html#M001008">tar_bzip2</a>
|
333
|
+
</p>
|
334
|
+
</div>
|
335
|
+
</div>
|
336
|
+
<div class="method">
|
337
|
+
<div class="title">
|
338
|
+
<a name="M001005"></a><b>tar_z</b>(folder, file=nil, options={})
|
243
339
|
</div>
|
244
340
|
<div class="description">
|
245
341
|
<p>
|
246
|
-
Alias for <a href="ZipUtils.html#
|
342
|
+
Alias for <a href="ZipUtils.html#M001004">tar_gzip</a>
|
247
343
|
</p>
|
248
344
|
</div>
|
249
345
|
</div>
|
250
346
|
<div class="method">
|
251
347
|
<div class="title">
|
252
|
-
<a name="
|
348
|
+
<a name="M001001"></a><b>unbzip</b>(file, options={})
|
253
349
|
</div>
|
254
350
|
<div class="description">
|
255
351
|
<p>
|
256
|
-
Alias for <a href="ZipUtils.html#
|
352
|
+
Alias for <a href="ZipUtils.html#M001000">unbzip2</a>
|
257
353
|
</p>
|
258
354
|
</div>
|
259
355
|
</div>
|
260
356
|
<div class="method">
|
261
357
|
<div class="title">
|
262
|
-
<a name="
|
358
|
+
<a name="M001000"></a><b>unbzip2</b>(file, options={})
|
359
|
+
</div>
|
360
|
+
<div class="aka">
|
361
|
+
This method is also aliased as
|
362
|
+
<a href="ZipUtils.html#M001001">unbzip</a>
|
363
|
+
</div>
|
364
|
+
<div class="sourcecode">
|
365
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001000_source')" id="l_M001000_source">+</a> ]</p>
|
366
|
+
<div id="M001000_source" class="dyn-source">
|
367
|
+
<pre>
|
368
|
+
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line 81</span>
|
369
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unbzip2</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">options</span>={})
|
370
|
+
<span class="ruby-identifier">cmd</span> = <span class="ruby-node">"unbzip2 #{file}"</span>
|
371
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">cmd</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:verbose</span>]
|
372
|
+
<span class="ruby-identifier">system</span> <span class="ruby-identifier">cmd</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:noop</span>]
|
373
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">file</span>.<span class="ruby-identifier">chomp</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">extname</span>(<span class="ruby-identifier">file</span>)))
|
374
|
+
<span class="ruby-keyword kw">end</span>
|
375
|
+
</pre>
|
376
|
+
</div>
|
377
|
+
</div>
|
378
|
+
</div>
|
379
|
+
<div class="method">
|
380
|
+
<div class="title">
|
381
|
+
<a name="M000997"></a><b>ungzip</b>(file, options={})
|
382
|
+
</div>
|
383
|
+
<div class="sourcecode">
|
384
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000997_source')" id="l_M000997_source">+</a> ]</p>
|
385
|
+
<div id="M000997_source" class="dyn-source">
|
386
|
+
<pre>
|
387
|
+
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line 56</span>
|
388
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ungzip</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">options</span>={})
|
389
|
+
<span class="ruby-identifier">require</span> <span class="ruby-value str">'zlib'</span>
|
390
|
+
<span class="ruby-identifier">fname</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">file</span>).<span class="ruby-identifier">chomp</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">extname</span>(<span class="ruby-identifier">file</span>))
|
391
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:verbose</span>]
|
392
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">"ungzip #{file}"</span>
|
393
|
+
<span class="ruby-keyword kw">end</span>
|
394
|
+
<span class="ruby-constant">Zlib</span><span class="ruby-operator">::</span><span class="ruby-constant">GzipReader</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">file</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">gz</span><span class="ruby-operator">|</span>
|
395
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">fname</span>, <span class="ruby-value str">'wb'</span>){ <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">gz</span>.<span class="ruby-identifier">read</span> }
|
396
|
+
<span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:noop</span>]
|
397
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">fname</span>)
|
398
|
+
<span class="ruby-keyword kw">end</span>
|
399
|
+
</pre>
|
400
|
+
</div>
|
401
|
+
</div>
|
402
|
+
</div>
|
403
|
+
<div class="method">
|
404
|
+
<div class="title">
|
405
|
+
<a name="M001003"></a><b>untar</b>(file, options={})
|
263
406
|
</div>
|
264
407
|
<div class="sourcecode">
|
265
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
266
|
-
<div id="
|
408
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001003_source')" id="l_M001003_source">+</a> ]</p>
|
409
|
+
<div id="M001003_source" class="dyn-source">
|
267
410
|
<pre>
|
268
|
-
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line
|
269
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
270
|
-
<span class="ruby-identifier">
|
271
|
-
<span class="ruby-
|
411
|
+
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line 106</span>
|
412
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untar</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">options</span>={})
|
413
|
+
<span class="ruby-identifier">require</span> <span class="ruby-value str">'facets/minitar'</span>
|
414
|
+
<span class="ruby-comment cmt">#file ||= File.basename(File.expand_path(folder)) + '.tar'</span>
|
415
|
+
<span class="ruby-identifier">cmd</span> = <span class="ruby-node">"untar #{file}"</span>
|
416
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">cmd</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:verbose</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>]
|
417
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:noop</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>]
|
418
|
+
<span class="ruby-identifier">gzIO</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">file</span>, <span class="ruby-value str">'wb'</span>)
|
419
|
+
<span class="ruby-constant">Archive</span><span class="ruby-operator">::</span><span class="ruby-constant">Tar</span><span class="ruby-operator">::</span><span class="ruby-constant">Minitar</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-identifier">gzIO</span>)
|
420
|
+
<span class="ruby-keyword kw">end</span>
|
421
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">file</span>)
|
272
422
|
<span class="ruby-keyword kw">end</span>
|
273
423
|
</pre>
|
274
424
|
</div>
|
@@ -276,17 +426,17 @@ Alias for <a href="ZipUtils.html#M000955">tar_gzip</a>
|
|
276
426
|
</div>
|
277
427
|
<div class="method">
|
278
428
|
<div class="title">
|
279
|
-
<a name="
|
429
|
+
<a name="M001012"></a><b>untar_bzip</b>(file, options={})
|
280
430
|
</div>
|
281
431
|
<div class="description">
|
282
432
|
<p>
|
283
|
-
Alias for <a href="ZipUtils.html#
|
433
|
+
Alias for <a href="ZipUtils.html#M001011">untar_bzip2</a>
|
284
434
|
</p>
|
285
435
|
</div>
|
286
436
|
</div>
|
287
437
|
<div class="method">
|
288
438
|
<div class="title">
|
289
|
-
<a name="
|
439
|
+
<a name="M001011"></a><b>untar_bzip2</b>(file, options={})
|
290
440
|
</div>
|
291
441
|
<div class="description">
|
292
442
|
<p>
|
@@ -295,24 +445,18 @@ Untar Bzip2
|
|
295
445
|
</div>
|
296
446
|
<div class="aka">
|
297
447
|
This method is also aliased as
|
298
|
-
<a href="ZipUtils.html#
|
299
|
-
<a href="ZipUtils.html#
|
448
|
+
<a href="ZipUtils.html#M001012">untar_bzip</a>
|
449
|
+
<a href="ZipUtils.html#M001013">untar_j</a>
|
300
450
|
</div>
|
301
451
|
<div class="sourcecode">
|
302
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
303
|
-
<div id="
|
452
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001011_source')" id="l_M001011_source">+</a> ]</p>
|
453
|
+
<div id="M001011_source" class="dyn-source">
|
304
454
|
<pre>
|
305
|
-
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line
|
455
|
+
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line 166</span>
|
306
456
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untar_bzip2</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">options</span>={})
|
307
457
|
<span class="ruby-identifier">cmd</span> = <span class="ruby-node">"tar --bzip2 -xf #{file}"</span>
|
308
|
-
<span class="ruby-
|
309
|
-
<span class="ruby-keyword kw">
|
310
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">cmd</span>
|
311
|
-
<span class="ruby-keyword kw">end</span>
|
312
|
-
<span class="ruby-comment cmt"># untar/bzip2 file</span>
|
313
|
-
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:noop</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>]
|
314
|
-
<span class="ruby-identifier">system</span> <span class="ruby-identifier">cmd</span>
|
315
|
-
<span class="ruby-keyword kw">end</span>
|
458
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">cmd</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:verbose</span>]
|
459
|
+
<span class="ruby-identifier">system</span> <span class="ruby-identifier">cmd</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:noop</span>]
|
316
460
|
<span class="ruby-keyword kw">end</span>
|
317
461
|
</pre>
|
318
462
|
</div>
|
@@ -320,26 +464,28 @@ Untar Bzip2
|
|
320
464
|
</div>
|
321
465
|
<div class="method">
|
322
466
|
<div class="title">
|
323
|
-
<a name="
|
467
|
+
<a name="M001006"></a><b>untar_gzip</b>(file, options={})
|
324
468
|
</div>
|
325
469
|
<div class="description">
|
326
470
|
<p>
|
327
471
|
Untar Gzip
|
472
|
+
</p>
|
473
|
+
<p>
|
474
|
+
TODO: Write unified <a href="ZipUtils.html#M001006">untar_gzip</a>
|
475
|
+
function.
|
328
476
|
</p>
|
329
477
|
</div>
|
330
478
|
<div class="aka">
|
331
479
|
This method is also aliased as
|
332
|
-
<a href="ZipUtils.html#
|
480
|
+
<a href="ZipUtils.html#M001007">untar_z</a>
|
333
481
|
</div>
|
334
482
|
<div class="sourcecode">
|
335
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
336
|
-
<div id="
|
483
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001006_source')" id="l_M001006_source">+</a> ]</p>
|
484
|
+
<div id="M001006_source" class="dyn-source">
|
337
485
|
<pre>
|
338
|
-
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line
|
486
|
+
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line 143</span>
|
339
487
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untar_gzip</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">options</span>={})
|
340
|
-
<span class="ruby-identifier">
|
341
|
-
<span class="ruby-comment cmt"># TODO Write internalized untar_gzip function.</span>
|
342
|
-
|
488
|
+
<span class="ruby-identifier">untar</span>(<span class="ruby-identifier">ungzip</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">options</span>), <span class="ruby-identifier">options</span>)
|
343
489
|
<span class="ruby-keyword kw">end</span>
|
344
490
|
</pre>
|
345
491
|
</div>
|
@@ -347,27 +493,27 @@ Untar Gzip
|
|
347
493
|
</div>
|
348
494
|
<div class="method">
|
349
495
|
<div class="title">
|
350
|
-
<a name="
|
496
|
+
<a name="M001013"></a><b>untar_j</b>(file, options={})
|
351
497
|
</div>
|
352
498
|
<div class="description">
|
353
499
|
<p>
|
354
|
-
Alias for <a href="ZipUtils.html#
|
500
|
+
Alias for <a href="ZipUtils.html#M001011">untar_bzip2</a>
|
355
501
|
</p>
|
356
502
|
</div>
|
357
503
|
</div>
|
358
504
|
<div class="method">
|
359
505
|
<div class="title">
|
360
|
-
<a name="
|
506
|
+
<a name="M001007"></a><b>untar_z</b>(file, options={})
|
361
507
|
</div>
|
362
508
|
<div class="description">
|
363
509
|
<p>
|
364
|
-
Alias for <a href="ZipUtils.html#
|
510
|
+
Alias for <a href="ZipUtils.html#M001006">untar_gzip</a>
|
365
511
|
</p>
|
366
512
|
</div>
|
367
513
|
</div>
|
368
514
|
<div class="method">
|
369
515
|
<div class="title">
|
370
|
-
<a name="
|
516
|
+
<a name="M001015"></a><b>unzip</b>(file, options={})
|
371
517
|
</div>
|
372
518
|
<div class="description">
|
373
519
|
<p>
|
@@ -375,20 +521,14 @@ Unzip
|
|
375
521
|
</p>
|
376
522
|
</div>
|
377
523
|
<div class="sourcecode">
|
378
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
379
|
-
<div id="
|
524
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001015_source')" id="l_M001015_source">+</a> ]</p>
|
525
|
+
<div id="M001015_source" class="dyn-source">
|
380
526
|
<pre>
|
381
|
-
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line
|
527
|
+
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line 189</span>
|
382
528
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unzip</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">options</span>={})
|
383
529
|
<span class="ruby-identifier">cmd</span> = <span class="ruby-node">"unzip #{file}"</span>
|
384
|
-
<span class="ruby-
|
385
|
-
<span class="ruby-keyword kw">
|
386
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">cmd</span>
|
387
|
-
<span class="ruby-keyword kw">end</span>
|
388
|
-
<span class="ruby-comment cmt"># unzip file</span>
|
389
|
-
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:noop</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>]
|
390
|
-
<span class="ruby-identifier">system</span> <span class="ruby-identifier">cmd</span>
|
391
|
-
<span class="ruby-keyword kw">end</span>
|
530
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">cmd</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:verbose</span>]
|
531
|
+
<span class="ruby-identifier">system</span> <span class="ruby-identifier">cmd</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:noop</span>]
|
392
532
|
<span class="ruby-keyword kw">end</span>
|
393
533
|
</pre>
|
394
534
|
</div>
|
@@ -396,7 +536,7 @@ Unzip
|
|
396
536
|
</div>
|
397
537
|
<div class="method">
|
398
538
|
<div class="title">
|
399
|
-
<a name="
|
539
|
+
<a name="M001014"></a><b>zip</b>(folder, file=nil, options={})
|
400
540
|
</div>
|
401
541
|
<div class="description">
|
402
542
|
<p>
|
@@ -404,23 +544,16 @@ Zip
|
|
404
544
|
</p>
|
405
545
|
</div>
|
406
546
|
<div class="sourcecode">
|
407
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
408
|
-
<div id="
|
547
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M001014_source')" id="l_M001014_source">+</a> ]</p>
|
548
|
+
<div id="M001014_source" class="dyn-source">
|
409
549
|
<pre>
|
410
|
-
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line
|
550
|
+
<span class="ruby-comment cmt"># File lib/more/facets/ziputils.rb, line 178</span>
|
411
551
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">zip</span>(<span class="ruby-identifier">folder</span>, <span class="ruby-identifier">file</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">options</span>={})
|
412
552
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">folder</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'.*'</span>
|
413
|
-
<span class="ruby-comment cmt"># name of file to create</span>
|
414
553
|
<span class="ruby-identifier">file</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">folder</span>)) <span class="ruby-operator">+</span> <span class="ruby-value str">'.zip'</span>
|
415
554
|
<span class="ruby-identifier">cmd</span> = <span class="ruby-node">"zip -rqu #{file} #{folder}"</span>
|
416
|
-
<span class="ruby-
|
417
|
-
<span class="ruby-keyword kw">
|
418
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">cmd</span>
|
419
|
-
<span class="ruby-keyword kw">end</span>
|
420
|
-
<span class="ruby-comment cmt"># create zip file</span>
|
421
|
-
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:noop</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>]
|
422
|
-
<span class="ruby-identifier">system</span> <span class="ruby-identifier">cmd</span>
|
423
|
-
<span class="ruby-keyword kw">end</span>
|
555
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">cmd</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:verbose</span>]
|
556
|
+
<span class="ruby-identifier">system</span> <span class="ruby-identifier">cmd</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:dryrun</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:noop</span>]
|
424
557
|
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">file</span>)
|
425
558
|
<span class="ruby-keyword kw">end</span>
|
426
559
|
</pre>
|