facets 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/ProjectInfo +12 -4
- data/lib/facets/core/kernel/own.rb +2 -2
- data/lib/facets/core/kernel/quaclass.rb +7 -4
- data/lib/facets/core/module/basename.rb +3 -3
- data/lib/facets/more/command.rb +10 -2
- data/lib/facets/more/cookie.rb +112 -121
- data/lib/facets/more/http.rb +2 -2
- data/lib/facets/more/httpaccess.rb +1 -1
- data/lib/facets/more/paramix.rb +14 -10
- data/lib/facets/more/tracepoint.rb +5 -4
- data/test/lib/facets/core/array/test_at_rand.rb +1 -1
- data/test/lib/facets/core/array/test_delete_unless.rb +1 -1
- data/test/lib/facets/core/array/test_delete_values.rb +1 -1
- data/test/lib/facets/core/array/test_delete_values_at.rb +1 -1
- data/test/lib/facets/core/array/test_first.rb +1 -1
- data/test/lib/facets/core/array/test_head.rb +1 -1
- data/test/lib/facets/core/array/test_last_index.rb +1 -1
- data/test/lib/facets/core/array/test_merge.rb +1 -1
- data/test/lib/facets/core/array/test_mid.rb +1 -1
- data/test/lib/facets/core/array/test_middle.rb +1 -1
- data/test/lib/facets/core/array/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/array/test_op_store.rb +1 -1
- data/test/lib/facets/core/array/test_pick.rb +1 -1
- data/test/lib/facets/core/array/test_pos.rb +1 -1
- data/test/lib/facets/core/array/test_pot.rb +1 -1
- data/test/lib/facets/core/array/test_pull.rb +1 -1
- data/test/lib/facets/core/array/test_rand_index.rb +1 -1
- data/test/lib/facets/core/array/test_rand_subset.rb +1 -1
- data/test/lib/facets/core/array/test_range.rb +1 -1
- data/test/lib/facets/core/array/test_rotate.rb +1 -1
- data/test/lib/facets/core/array/test_select.rb +1 -1
- data/test/lib/facets/core/array/test_shuffle.rb +1 -1
- data/test/lib/facets/core/array/test_thru.rb +1 -1
- data/test/lib/facets/core/array/test_to_b.rb +1 -1
- data/test/lib/facets/core/array/test_to_h.rb +1 -1
- data/test/lib/facets/core/array/test_to_hash.rb +1 -1
- data/test/lib/facets/core/binding/self/test_of_caller.rb +1 -1
- data/test/lib/facets/core/binding/test___LINE__.rb +1 -1
- data/test/lib/facets/core/binding/test_call_stack.rb +1 -1
- data/test/lib/facets/core/binding/test_called.rb +1 -1
- data/test/lib/facets/core/binding/test_caller.rb +1 -1
- data/test/lib/facets/core/binding/test_defined.rb +1 -1
- data/test/lib/facets/core/binding/test_eval.rb +1 -1
- data/test/lib/facets/core/binding/test_local_variables.rb +1 -1
- data/test/lib/facets/core/binding/test_method_name.rb +1 -1
- data/test/lib/facets/core/binding/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/binding/test_op_store.rb +1 -1
- data/test/lib/facets/core/binding/test_self.rb +1 -1
- data/test/lib/facets/core/class/test_cattr.rb +1 -1
- data/test/lib/facets/core/class/test_descendents.rb +1 -1
- data/test/lib/facets/core/class/test_method_name.rb +1 -1
- data/test/lib/facets/core/class/test_remove_descendents.rb +1 -1
- data/test/lib/facets/core/class/test_unix_path.rb +1 -1
- data/test/lib/facets/core/comparable/test_at_least.rb +1 -1
- data/test/lib/facets/core/comparable/test_clip.rb +1 -1
- data/test/lib/facets/core/comparable/test_cmp.rb +1 -1
- data/test/lib/facets/core/continuation/self/test_create.rb +1 -1
- data/test/lib/facets/core/date/test_days_in_month.rb +1 -1
- data/test/lib/facets/core/date/test_days_of_month.rb +1 -1
- data/test/lib/facets/core/date/test_stamp.rb +1 -1
- data/test/lib/facets/core/date/test_to_date.rb +1 -1
- data/test/lib/facets/core/date/test_to_s.rb +1 -1
- data/test/lib/facets/core/date/test_to_time.rb +1 -1
- data/test/lib/facets/core/dir/self/test_ancestor.rb +1 -1
- data/test/lib/facets/core/dir/self/test_ascend.rb +1 -1
- data/test/lib/facets/core/enumerable/self/test_combinations.rb +1 -1
- data/test/lib/facets/core/enumerable/self/test_cross.rb +1 -1
- data/test/lib/facets/core/enumerable/test_collect_with_index.rb +1 -1
- data/test/lib/facets/core/enumerable/test_commonality.rb +1 -1
- data/test/lib/facets/core/enumerable/test_compact_collect.rb +1 -1
- data/test/lib/facets/core/enumerable/test_count.rb +1 -1
- data/test/lib/facets/core/enumerable/test_cross.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_combination.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_pair.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_slice.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_unique_pair.rb +1 -1
- data/test/lib/facets/core/enumerable/test_entropy.rb +1 -1
- data/test/lib/facets/core/enumerable/test_every.rb +1 -1
- data/test/lib/facets/core/enumerable/test_ew.rb +1 -1
- data/test/lib/facets/core/enumerable/test_filter_collect.rb +1 -1
- data/test/lib/facets/core/enumerable/test_find_collisions.rb +1 -1
- data/test/lib/facets/core/enumerable/test_frequency.rb +1 -1
- data/test/lib/facets/core/enumerable/test_graph.rb +1 -1
- data/test/lib/facets/core/enumerable/test_ideal_entropy.rb +1 -1
- data/test/lib/facets/core/enumerable/test_none.rb +1 -1
- data/test/lib/facets/core/enumerable/test_occur.rb +1 -1
- data/test/lib/facets/core/enumerable/test_one.rb +1 -1
- data/test/lib/facets/core/enumerable/test_op_pow.rb +1 -1
- data/test/lib/facets/core/enumerable/test_partition_by.rb +1 -1
- data/test/lib/facets/core/enumerable/test_permute.rb +1 -1
- data/test/lib/facets/core/enumerable/test_probability.rb +1 -1
- data/test/lib/facets/core/enumerable/test_to_h.rb +1 -1
- data/test/lib/facets/core/enumerable/test_uniq_by.rb +1 -1
- data/test/lib/facets/core/file/self/test_create.rb +1 -1
- data/test/lib/facets/core/file/self/test_open_as_string.rb +1 -1
- data/test/lib/facets/core/file/self/test_read_list.rb +1 -1
- data/test/lib/facets/core/file/self/test_sanitize.rb +1 -1
- data/test/lib/facets/core/file/self/test_split_all.rb +1 -1
- data/test/lib/facets/core/float/test_round_at.rb +1 -1
- data/test/lib/facets/core/float/test_round_to.rb +1 -1
- data/test/lib/facets/core/hash/self/test_zipnew.rb +1 -1
- data/test/lib/facets/core/hash/test_alias.rb +1 -1
- data/test/lib/facets/core/hash/test_assert_has_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_assert_has_only_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_at.rb +1 -1
- data/test/lib/facets/core/hash/test_collate.rb +1 -1
- data/test/lib/facets/core/hash/test_each.rb +1 -1
- data/test/lib/facets/core/hash/test_each_with_index.rb +1 -1
- data/test/lib/facets/core/hash/test_each_with_key.rb +1 -1
- data/test/lib/facets/core/hash/test_graph.rb +1 -1
- data/test/lib/facets/core/hash/test_has_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_has_only_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_inverse.rb +1 -1
- data/test/lib/facets/core/hash/test_keys_to_s.rb +1 -1
- data/test/lib/facets/core/hash/test_keys_to_sym.rb +1 -1
- data/test/lib/facets/core/hash/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/hash/test_op_lshift.rb +1 -1
- data/test/lib/facets/core/hash/test_rand_key.rb +1 -1
- data/test/lib/facets/core/hash/test_rand_pair.rb +1 -1
- data/test/lib/facets/core/hash/test_rand_value.rb +1 -1
- data/test/lib/facets/core/hash/test_replace_each.rb +1 -1
- data/test/lib/facets/core/hash/test_shuffle.rb +1 -1
- data/test/lib/facets/core/hash/test_slice.rb +1 -1
- data/test/lib/facets/core/hash/test_swap.rb +1 -1
- data/test/lib/facets/core/hash/test_swapkey.rb +1 -1
- data/test/lib/facets/core/hash/test_to_h.rb +1 -1
- data/test/lib/facets/core/hash/test_to_ostruct.rb +1 -1
- data/test/lib/facets/core/hash/test_to_ostruct_recurse.rb +1 -1
- data/test/lib/facets/core/hash/test_traverse.rb +1 -1
- data/test/lib/facets/core/hash/test_update_each.rb +1 -1
- data/test/lib/facets/core/hash/test_update_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_update_values.rb +1 -1
- data/test/lib/facets/core/hash/test_weave.rb +1 -1
- data/test/lib/facets/core/integer/test_factorial.rb +1 -1
- data/test/lib/facets/core/integer/test_multiple.rb +1 -1
- data/test/lib/facets/core/integer/test_ordinal.rb +1 -1
- data/test/lib/facets/core/integer/test_times_collect.rb +1 -1
- data/test/lib/facets/core/kernel/test___class__.rb +1 -1
- data/test/lib/facets/core/kernel/test___method__.rb +1 -1
- data/test/lib/facets/core/kernel/test_as.rb +1 -1
- data/test/lib/facets/core/kernel/test_assign_from.rb +1 -1
- data/test/lib/facets/core/kernel/test_assign_with.rb +1 -1
- data/test/lib/facets/core/kernel/test_bool.rb +1 -1
- data/test/lib/facets/core/kernel/test_bug.rb +1 -1
- data/test/lib/facets/core/kernel/test_call_stack.rb +1 -1
- data/test/lib/facets/core/kernel/test_called.rb +1 -1
- data/test/lib/facets/core/kernel/test_constant.rb +1 -1
- data/test/lib/facets/core/kernel/test_copy.rb +1 -1
- data/test/lib/facets/core/kernel/test_deep_copy.rb +1 -1
- data/test/lib/facets/core/kernel/test_demo.rb +1 -1
- data/test/lib/facets/core/kernel/test_fn.rb +1 -1
- data/test/lib/facets/core/kernel/test_generate_method_name.rb +1 -1
- data/test/lib/facets/core/kernel/test_get_by_id.rb +1 -1
- data/test/lib/facets/core/kernel/test_here.rb +1 -1
- data/test/lib/facets/core/kernel/test_in.rb +1 -1
- data/test/lib/facets/core/kernel/test_maybe.rb +1 -1
- data/test/lib/facets/core/kernel/test_metaclass.rb +1 -1
- data/test/lib/facets/core/kernel/test_method.rb +1 -1
- data/test/lib/facets/core/kernel/test_methods.rb +1 -1
- data/test/lib/facets/core/kernel/test_new.rb +1 -1
- data/test/lib/facets/core/kernel/test_object_class.rb +1 -1
- data/test/lib/facets/core/kernel/test_object_hexid.rb +1 -1
- data/test/lib/facets/core/kernel/test_quaclass.rb +1 -1
- data/test/lib/facets/core/kernel/test_require_all.rb +1 -1
- data/test/lib/facets/core/kernel/test_require_esc.rb +1 -1
- data/test/lib/facets/core/kernel/test_require_facet.rb +1 -1
- data/test/lib/facets/core/kernel/test_resc.rb +1 -1
- data/test/lib/facets/core/kernel/test_returning.rb +1 -1
- data/test/lib/facets/core/kernel/test_send_as.rb +1 -1
- data/test/lib/facets/core/kernel/test_set_from.rb +1 -1
- data/test/lib/facets/core/kernel/test_set_with.rb +1 -1
- data/test/lib/facets/core/kernel/test_silently.rb +1 -1
- data/test/lib/facets/core/kernel/test_singleton.rb +1 -1
- data/test/lib/facets/core/kernel/test_singleton_class.rb +1 -1
- data/test/lib/facets/core/kernel/test_superior.rb +1 -1
- data/test/lib/facets/core/kernel/test_supermethod.rb +1 -1
- data/test/lib/facets/core/kernel/test_this.rb +1 -1
- data/test/lib/facets/core/kernel/test_to_b.rb +1 -1
- data/test/lib/facets/core/kernel/test_to_bool.rb +1 -1
- data/test/lib/facets/core/kernel/test_uri.rb +1 -1
- data/test/lib/facets/core/kernel/test_val.rb +1 -1
- data/test/lib/facets/core/kernel/test_with_accessor.rb +1 -1
- data/test/lib/facets/core/matchdata/test_match.rb +1 -1
- data/test/lib/facets/core/matchdata/test_matchtree.rb +1 -1
- data/test/lib/facets/core/module/test_abstract.rb +1 -1
- data/test/lib/facets/core/module/test_alias_module_function.rb +1 -1
- data/test/lib/facets/core/module/test_ancestor.rb +1 -1
- data/test/lib/facets/core/module/test_basename.rb +1 -1
- data/test/lib/facets/core/module/test_by_name.rb +1 -1
- data/test/lib/facets/core/module/test_class_extension.rb +1 -1
- data/test/lib/facets/core/module/test_clone_using.rb +1 -1
- data/test/lib/facets/core/module/test_dirname.rb +1 -1
- data/test/lib/facets/core/module/test_equate_on.rb +1 -1
- data/test/lib/facets/core/module/test_generate_instance_method_name.rb +1 -1
- data/test/lib/facets/core/module/test_include_as.rb +1 -1
- data/test/lib/facets/core/module/test_initializer.rb +1 -1
- data/test/lib/facets/core/module/test_instance_methods.rb +1 -1
- data/test/lib/facets/core/module/test_integrate.rb +1 -1
- data/test/lib/facets/core/module/test_memoize.rb +1 -1
- data/test/lib/facets/core/module/test_modspace.rb +1 -1
- data/test/lib/facets/core/module/test_namespace.rb +1 -1
- data/test/lib/facets/core/module/test_nesting.rb +1 -1
- data/test/lib/facets/core/module/test_nodef.rb +1 -1
- data/test/lib/facets/core/module/test_on_included.rb +1 -1
- data/test/lib/facets/core/module/test_redef.rb +1 -1
- data/test/lib/facets/core/module/test_redefine_method.rb +1 -1
- data/test/lib/facets/core/module/test_redirect.rb +1 -1
- data/test/lib/facets/core/module/test_redirect_method.rb +1 -1
- data/test/lib/facets/core/module/test_remove.rb +1 -1
- data/test/lib/facets/core/module/test_rename.rb +1 -1
- data/test/lib/facets/core/module/test_rename_method.rb +1 -1
- data/test/lib/facets/core/module/test_revisal.rb +1 -1
- data/test/lib/facets/core/module/test_shadow_method.rb +1 -1
- data/test/lib/facets/core/module/test_sort_on.rb +1 -1
- data/test/lib/facets/core/module/test_this.rb +1 -1
- data/test/lib/facets/core/module/test_wrap.rb +1 -1
- data/test/lib/facets/core/module/test_wrap_method.rb +1 -1
- data/test/lib/facets/core/nilclass/test_blank.rb +1 -1
- data/test/lib/facets/core/nilclass/test_empty.rb +1 -1
- data/test/lib/facets/core/nilclass/test_include.rb +1 -1
- data/test/lib/facets/core/nilclass/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/nilclass/test_size.rb +1 -1
- data/test/lib/facets/core/nilclass/test_to_h.rb +1 -1
- data/test/lib/facets/core/numeric/test_approx.rb +1 -1
- data/test/lib/facets/core/numeric/test_ceil_multiple.rb +1 -1
- data/test/lib/facets/core/numeric/test_succ.rb +1 -1
- data/test/lib/facets/core/numeric/test_to_b.rb +1 -1
- data/test/lib/facets/core/ostruct/test___merge__.rb +1 -1
- data/test/lib/facets/core/ostruct/test___update__.rb +1 -1
- data/test/lib/facets/core/ostruct/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/ostruct/test_op_store.rb +1 -1
- data/test/lib/facets/core/proc/test_compose.rb +1 -1
- data/test/lib/facets/core/proc/test_to_method.rb +1 -1
- data/test/lib/facets/core/range/test_to_r.rb +1 -1
- data/test/lib/facets/core/range/test_to_range.rb +1 -1
- data/test/lib/facets/core/range/test_umbrella.rb +1 -1
- data/test/lib/facets/core/range/test_within.rb +1 -1
- data/test/lib/facets/core/regexp/test_arity.rb +1 -1
- data/test/lib/facets/core/regexp/test_to_re.rb +1 -1
- data/test/lib/facets/core/regexp/test_to_regexp.rb +1 -1
- data/test/lib/facets/core/string/self/test_interpolate.rb +1 -1
- data/test/lib/facets/core/string/self/test_patterns.rb +1 -1
- data/test/lib/facets/core/string/self/test_rand_letter.rb +1 -1
- data/test/lib/facets/core/string/test_align_center.rb +1 -1
- data/test/lib/facets/core/string/test_at_rand.rb +1 -1
- data/test/lib/facets/core/string/test_basename.rb +1 -1
- data/test/lib/facets/core/string/test_blank.rb +1 -1
- data/test/lib/facets/core/string/test_bracket.rb +1 -1
- data/test/lib/facets/core/string/test_camelcase.rb +1 -1
- data/test/lib/facets/core/string/test_camelize.rb +1 -1
- data/test/lib/facets/core/string/test_capitalized.rb +1 -1
- data/test/lib/facets/core/string/test_chars.rb +1 -1
- data/test/lib/facets/core/string/test_cmp.rb +1 -1
- data/test/lib/facets/core/string/test_demodulize.rb +1 -1
- data/test/lib/facets/core/string/test_downcase.rb +1 -1
- data/test/lib/facets/core/string/test_dresner.rb +1 -1
- data/test/lib/facets/core/string/test_each_char.rb +1 -1
- data/test/lib/facets/core/string/test_each_word.rb +1 -1
- data/test/lib/facets/core/string/test_first.rb +1 -1
- data/test/lib/facets/core/string/test_fold.rb +1 -1
- data/test/lib/facets/core/string/test_humanize.rb +1 -1
- data/test/lib/facets/core/string/test_indent.rb +1 -1
- data/test/lib/facets/core/string/test_index_all.rb +1 -1
- data/test/lib/facets/core/string/test_last.rb +1 -1
- data/test/lib/facets/core/string/test_line_wrap.rb +1 -1
- data/test/lib/facets/core/string/test_lines.rb +1 -1
- data/test/lib/facets/core/string/test_lowercase.rb +1 -1
- data/test/lib/facets/core/string/test_margin.rb +1 -1
- data/test/lib/facets/core/string/test_methodize.rb +1 -1
- data/test/lib/facets/core/string/test_modulize.rb +1 -1
- data/test/lib/facets/core/string/test_mscan.rb +1 -1
- data/test/lib/facets/core/string/test_natcmp.rb +1 -1
- data/test/lib/facets/core/string/test_nchar.rb +1 -1
- data/test/lib/facets/core/string/test_pathize.rb +1 -1
- data/test/lib/facets/core/string/test_pop.rb +1 -1
- data/test/lib/facets/core/string/test_pot.rb +1 -1
- data/test/lib/facets/core/string/test_push.rb +1 -1
- data/test/lib/facets/core/string/test_quote.rb +1 -1
- data/test/lib/facets/core/string/test_rand_byte.rb +1 -1
- data/test/lib/facets/core/string/test_rand_index.rb +1 -1
- data/test/lib/facets/core/string/test_range.rb +1 -1
- data/test/lib/facets/core/string/test_range_all.rb +1 -1
- data/test/lib/facets/core/string/test_range_of_line.rb +1 -1
- data/test/lib/facets/core/string/test_regesc.rb +1 -1
- data/test/lib/facets/core/string/test_shatter.rb +1 -1
- data/test/lib/facets/core/string/test_shift.rb +1 -1
- data/test/lib/facets/core/string/test_shuffle.rb +1 -1
- data/test/lib/facets/core/string/test_similarity.rb +1 -1
- data/test/lib/facets/core/string/test_singular.rb +1 -1
- data/test/lib/facets/core/string/test_soundex.rb +1 -1
- data/test/lib/facets/core/string/test_succ.rb +1 -1
- data/test/lib/facets/core/string/test_to_a.rb +1 -1
- data/test/lib/facets/core/string/test_to_b.rb +1 -1
- data/test/lib/facets/core/string/test_to_const.rb +1 -1
- data/test/lib/facets/core/string/test_to_date.rb +1 -1
- data/test/lib/facets/core/string/test_to_proc.rb +1 -1
- data/test/lib/facets/core/string/test_to_re.rb +1 -1
- data/test/lib/facets/core/string/test_to_time.rb +1 -1
- data/test/lib/facets/core/string/test_unix_crypt.rb +1 -1
- data/test/lib/facets/core/string/test_unpack.rb +1 -1
- data/test/lib/facets/core/string/test_unshift.rb +1 -1
- data/test/lib/facets/core/string/test_upcase.rb +1 -1
- data/test/lib/facets/core/string/test_whitespace.rb +1 -1
- data/test/lib/facets/core/string/test_word_filter.rb +1 -1
- data/test/lib/facets/core/string/test_word_wrap.rb +1 -1
- data/test/lib/facets/core/string/test_words.rb +1 -1
- data/test/lib/facets/core/symbol/test_camelcase.rb +1 -1
- data/test/lib/facets/core/symbol/test_camelize.rb +1 -1
- data/test/lib/facets/core/symbol/test_capitalize.rb +1 -1
- data/test/lib/facets/core/symbol/test_capitalized.rb +1 -1
- data/test/lib/facets/core/symbol/test_downcase.rb +1 -1
- data/test/lib/facets/core/symbol/test_not.rb +1 -1
- data/test/lib/facets/core/symbol/test_pad.rb +1 -1
- data/test/lib/facets/core/symbol/test_succ.rb +1 -1
- data/test/lib/facets/core/symbol/test_to_const.rb +1 -1
- data/test/lib/facets/core/symbol/test_to_proc.rb +1 -1
- data/test/lib/facets/core/symbol/test_to_str.rb +1 -1
- data/test/lib/facets/core/symbol/test_underscore.rb +1 -1
- data/test/lib/facets/core/symbol/test_upcase.rb +1 -1
- data/test/lib/facets/core/time/test_change.rb +1 -1
- data/test/lib/facets/core/time/test_elapse.rb +1 -1
- data/test/lib/facets/core/time/test_stamp.rb +1 -1
- data/test/lib/facets/core/time/test_to_date.rb +1 -1
- data/test/lib/facets/core/time/test_to_s.rb +1 -1
- data/test/lib/facets/core/time/test_to_time.rb +1 -1
- data/test/lib/facets/more/test_annattr.rb +1 -1
- data/test/lib/facets/more/test_annotation.rb +1 -1
- data/test/lib/facets/more/test_ansicode.rb +1 -1
- data/test/lib/facets/more/test_association.rb +1 -1
- data/test/lib/facets/more/test_basicobject.rb +1 -1
- data/test/lib/facets/more/test_bbcode.rb +1 -1
- data/test/lib/facets/more/test_binaryreader.rb +1 -1
- data/test/lib/facets/more/test_bitmask.rb +1 -1
- data/test/lib/facets/more/test_bytes.rb +1 -1
- data/test/lib/facets/more/test_classmethods.rb +1 -1
- data/test/lib/facets/more/test_command.rb +1 -1
- data/test/lib/facets/more/test_coroutine.rb +1 -1
- data/test/lib/facets/more/test_crypt.rb +1 -1
- data/test/lib/facets/more/test_dictionary.rb +1 -1
- data/test/lib/facets/more/test_elementor.rb +1 -1
- data/test/lib/facets/more/test_enumerablepass.rb +1 -1
- data/test/lib/facets/more/test_floatstring.rb +1 -1
- data/test/lib/facets/more/test_functor.rb +1 -1
- data/test/lib/facets/more/test_htmlbuilder.rb +1 -1
- data/test/lib/facets/more/test_inheritor.rb +1 -1
- data/test/lib/facets/more/test_interval.rb +1 -1
- data/test/lib/facets/more/test_json.rb +1 -1
- data/test/lib/facets/more/test_lisp.rb +1 -1
- data/test/lib/facets/more/test_lisp_format.rb +1 -1
- data/test/lib/facets/more/test_lrucache.rb +1 -1
- data/test/lib/facets/more/test_mathconstants.rb +1 -1
- data/test/lib/facets/more/test_methodprobe.rb +1 -1
- data/test/lib/facets/more/test_multipliers.rb +1 -1
- data/test/lib/facets/more/test_multiton.rb +1 -1
- data/test/lib/facets/more/test_nackclass.rb +1 -1
- data/test/lib/facets/more/test_nilcomparable.rb +1 -1
- data/test/lib/facets/more/test_opencascade.rb +1 -1
- data/test/lib/facets/more/test_openobject.rb +1 -1
- data/test/lib/facets/more/test_overload.rb +1 -1
- data/test/lib/facets/more/test_paramix.rb +1 -1
- data/test/lib/facets/more/test_pqueue.rb +1 -1
- data/test/lib/facets/more/test_preinitialize.rb +1 -1
- data/test/lib/facets/more/test_promoteself.rb +1 -1
- data/test/lib/facets/more/test_recorder.rb +1 -1
- data/test/lib/facets/more/test_snapshot.rb +1 -1
- data/test/lib/facets/more/test_statichash.rb +1 -1
- data/test/lib/facets/more/test_syncarray.rb +1 -1
- data/test/lib/facets/more/test_synchash.rb +1 -1
- data/test/lib/facets/more/test_tagiterator.rb +1 -1
- data/test/lib/facets/more/test_taskable.rb +1 -1
- data/test/lib/facets/more/test_timer.rb +1 -1
- data/test/lib/facets/more/test_times.rb +1 -1
- data/test/lib/facets/more/test_tuple.rb +1 -1
- data/test/lib/facets/more/test_typecast.rb +1 -1
- data/test/lib/facets/more/test_uninheritable.rb +1 -1
- data/test/lib/facets/more/test_units.rb +1 -1
- data/test/lib/facets/more/test_xmlbuilder.rb +1 -1
- data/test/lib/facets/more/test_xmlhelper.rb +1 -1
- data/test/lib/facets/more/test_xoxo.rb +1 -1
- data/test/lib/facets/more/test_yamlstruct.rb +1 -1
- data/web/documentation.html +10 -10
- data/web/{favicon.ico → images/favicon.ico} +0 -0
- data/web/index.html +2 -2
- metadata +4 -18
- data/FIXTURE/filelist/testfile.txt +0 -0
- data/FIXTURE/filelist/testfile2.txt +0 -0
- data/FIXTURE/ls_r/A.txt +0 -0
- data/FIXTURE/ls_r/A/B.txt +0 -0
- data/FIXTURE/ls_r/A/B/C.txt +0 -0
- data/FIXTURE/test_file.txt +0 -25
- data/FIXTURE/test_file2.txt +0 -25
- data/lib/facet/kernel/adhoc.rb +0 -1
- data/lib/facets/core/kernel/adhoc.rb +0 -11
data/ProjectInfo
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
title : Facets
|
4
4
|
name : facets
|
5
|
-
version : '1.4.
|
5
|
+
version : '1.4.3'
|
6
6
|
created : '2004-12-16'
|
7
7
|
status : Beta/Stable
|
8
8
|
|
@@ -36,10 +36,14 @@ revision:
|
|
36
36
|
|
37
37
|
# --- TASKS --- #
|
38
38
|
|
39
|
+
backup: !!backup
|
40
|
+
dir: ../BACKUP
|
41
|
+
|
39
42
|
package: !!package
|
40
|
-
distribute: [ gem, tar.
|
41
|
-
dir: ../
|
43
|
+
distribute: [ gem, tar.gz ]
|
44
|
+
dir: ../RELEASE
|
42
45
|
exclude:
|
46
|
+
- _darcs
|
43
47
|
- web/doc/api
|
44
48
|
|
45
49
|
roll: !!package
|
@@ -59,7 +63,7 @@ release: !!release
|
|
59
63
|
project : facets
|
60
64
|
groupid : 804
|
61
65
|
package : Facets
|
62
|
-
dir :
|
66
|
+
dir : ../RELEASE
|
63
67
|
|
64
68
|
extest: !!extest
|
65
69
|
files: 'lib/facets/**/*.rb'
|
@@ -73,6 +77,8 @@ rdoc-core: !!rdoc
|
|
73
77
|
include:
|
74
78
|
- 'lib/facets/core/**/*'
|
75
79
|
- '[A-Z]*'
|
80
|
+
exclude:
|
81
|
+
- Reapfile
|
76
82
|
|
77
83
|
rdoc-more: !!rdoc
|
78
84
|
dir: web/doc/api/more
|
@@ -81,6 +87,8 @@ rdoc-more: !!rdoc
|
|
81
87
|
include:
|
82
88
|
- 'lib/facets/more/**/*'
|
83
89
|
- '[A-Z]*'
|
90
|
+
exclude:
|
91
|
+
- Reapfile
|
84
92
|
|
85
93
|
publish: !!publish
|
86
94
|
host: rubyforge.org
|
@@ -1,11 +1,11 @@
|
|
1
1
|
|
2
2
|
module Kernel
|
3
3
|
|
4
|
-
# Easy access to an object's
|
4
|
+
# Easy access to an object's specialized class,
|
5
5
|
# otherwise known as it's metaclass or singleton class.
|
6
6
|
|
7
7
|
def own(&blk)
|
8
|
-
(class << self; self; end).
|
8
|
+
(class << self; self; end).module_eval( &blk ) if blk
|
9
9
|
return (class << self; self; end)
|
10
10
|
end
|
11
11
|
|
@@ -1,12 +1,15 @@
|
|
1
1
|
|
2
2
|
module Kernel
|
3
3
|
|
4
|
-
#
|
5
|
-
# known as
|
4
|
+
# Easy access to an object qua class, otherwise
|
5
|
+
# known as the object's metaclass or singleton class.
|
6
6
|
#
|
7
|
-
#
|
7
|
+
# It is what it is.
|
8
|
+
#
|
9
|
+
# -- transonoma
|
8
10
|
|
9
|
-
def quaclass
|
11
|
+
def quaclass( &block )
|
12
|
+
(class << self; self; end).module_eval(&block) if block
|
10
13
|
(class << self; self; end)
|
11
14
|
end
|
12
15
|
alias_method :__quaclass__, :quaclass
|
@@ -18,10 +18,10 @@ class Module
|
|
18
18
|
# m.basename #=> "Module_0xb7bb0434"
|
19
19
|
#
|
20
20
|
def basename
|
21
|
-
if
|
22
|
-
|
21
|
+
if name and not name.empty?
|
22
|
+
name.gsub(/^.*::/, '')
|
23
23
|
else
|
24
|
-
|
24
|
+
nil #inspect.gsub('#<','').gsub('>','').sub(':', '_')
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
data/lib/facets/more/command.rb
CHANGED
@@ -107,8 +107,16 @@ module Console ; end
|
|
107
107
|
|
108
108
|
class Console::Command
|
109
109
|
|
110
|
-
|
111
|
-
|
110
|
+
class << self
|
111
|
+
# Starts the command execution.
|
112
|
+
|
113
|
+
def execute( *args )
|
114
|
+
new.execute( *args )
|
115
|
+
end
|
116
|
+
|
117
|
+
# Alias for #execute.
|
118
|
+
|
119
|
+
alias_method :start, :execute
|
112
120
|
end
|
113
121
|
|
114
122
|
# Do not let this pass through on to
|
data/lib/facets/more/cookie.rb
CHANGED
@@ -20,6 +20,9 @@
|
|
20
20
|
#
|
21
21
|
# == Additional Information
|
22
22
|
#
|
23
|
+
# I refered to w3m's source to make these classes. Some comments
|
24
|
+
# are quoted from it. I'm thanksful for author(s) of it.
|
25
|
+
#
|
23
26
|
# * w3m homepage: http://ei5nazha.yz.yamagata-u.ac.jp/~aito/w3m/eng/
|
24
27
|
#
|
25
28
|
# == Develop Notes
|
@@ -31,16 +34,18 @@
|
|
31
34
|
# Copyright:: Copyright (c) 2004 TAKAHASHI `Maki' Masayoshi
|
32
35
|
# License:: Ruby License
|
33
36
|
|
34
|
-
# = Cookie
|
35
|
-
#
|
36
|
-
# I refered to w3m's source to make these classes. Some comments
|
37
|
-
# are quoted from it. I'm thanksful for author(s) of it.
|
38
|
-
|
39
37
|
require 'uri'
|
40
38
|
|
41
|
-
#
|
39
|
+
# Web Namespace
|
42
40
|
|
43
|
-
class
|
41
|
+
class Web
|
42
|
+
|
43
|
+
# == Web::CookieUtils Module
|
44
|
+
#
|
45
|
+
# -- CookieUtils::head_match?(str1, str2)
|
46
|
+
# -- CookieUtils::tail_match?(str1, str2)
|
47
|
+
# -- CookieUtils::domain_match(host, domain)
|
48
|
+
# -- CookieUtils::total_dot_num(str)
|
44
49
|
|
45
50
|
module CookieUtils
|
46
51
|
|
@@ -75,6 +80,53 @@ class WebAgent
|
|
75
80
|
|
76
81
|
end
|
77
82
|
|
83
|
+
# == Web::Cookie Class
|
84
|
+
#
|
85
|
+
# === Class Methods
|
86
|
+
#
|
87
|
+
# -- Cookie::new()
|
88
|
+
#
|
89
|
+
# create new cookie.
|
90
|
+
#
|
91
|
+
# === Methods
|
92
|
+
#
|
93
|
+
# -- Cookie#match?(url)
|
94
|
+
#
|
95
|
+
# match cookie by url. if match, return true. otherwise,
|
96
|
+
# return false.
|
97
|
+
#
|
98
|
+
# -- Cookie#name
|
99
|
+
# -- Cookie#name=(name)
|
100
|
+
# -- Cookie#value
|
101
|
+
# -- Cookie#value=(value)
|
102
|
+
# -- Cookie#domain
|
103
|
+
# -- Cookie#domain=(domain)
|
104
|
+
# -- Cookie#path
|
105
|
+
# -- Cookie#path=(path)
|
106
|
+
# -- Cookie#expires
|
107
|
+
# -- Cookie#expires=(expires)
|
108
|
+
# -- Cookie#url
|
109
|
+
# -- Cookie#url=(url)
|
110
|
+
#
|
111
|
+
# accessor methods for cookie's items.
|
112
|
+
#
|
113
|
+
# -- Cookie#discard?
|
114
|
+
# -- Cookie#discard=(discard)
|
115
|
+
# -- Cookie#use?
|
116
|
+
# -- Cookie#use=(use)
|
117
|
+
# -- Cookie#secure?
|
118
|
+
# -- Cookie#secure=(secure)
|
119
|
+
# -- Cookie#domain_orig?
|
120
|
+
# -- Cookie#domain_orig=(domain_orig)
|
121
|
+
# -- Cookie#path_orig?
|
122
|
+
# -- Cookie#path_orig=(path_orig)
|
123
|
+
# -- Cookie#override?
|
124
|
+
# -- Cookie#override=(override)
|
125
|
+
# -- Cookie#flag
|
126
|
+
# -- Cookie#set_flag(flag_num)
|
127
|
+
#
|
128
|
+
# accessor methods for flags.
|
129
|
+
|
78
130
|
class Cookie
|
79
131
|
include CookieUtils
|
80
132
|
|
@@ -225,6 +277,58 @@ class WebAgent
|
|
225
277
|
|
226
278
|
end
|
227
279
|
|
280
|
+
# == Web::CookieManager Class
|
281
|
+
#
|
282
|
+
# Load, save, parse and send cookies.
|
283
|
+
#
|
284
|
+
# === Usage
|
285
|
+
#
|
286
|
+
# ## initialize
|
287
|
+
# cm = WebAgent::CookieManager.new("/home/foo/bar/cookie")
|
288
|
+
#
|
289
|
+
# ## load cookie data
|
290
|
+
# cm.load_cookies()
|
291
|
+
#
|
292
|
+
# ## parse cookie from string (maybe "Set-Cookie:" header)
|
293
|
+
# cm.parse(str)
|
294
|
+
#
|
295
|
+
# ## send cookie data to url
|
296
|
+
# f.write(cm.find(url))
|
297
|
+
#
|
298
|
+
# ## save cookie to cookiefile
|
299
|
+
# cm.save_cookies()
|
300
|
+
#
|
301
|
+
#
|
302
|
+
# === Class Methods
|
303
|
+
#
|
304
|
+
# -- CookieManager::new(file=nil)
|
305
|
+
#
|
306
|
+
# create new CookieManager. If a file is provided,
|
307
|
+
# use it as cookies' file.
|
308
|
+
#
|
309
|
+
# === Methods
|
310
|
+
#
|
311
|
+
# -- CookieManager#save_cookies(force = nil)
|
312
|
+
#
|
313
|
+
# save cookies' data into file. if argument is true,
|
314
|
+
# save data although data is not modified.
|
315
|
+
#
|
316
|
+
# -- CookieManager#parse(str, url)
|
317
|
+
#
|
318
|
+
# parse string and store cookie (to parse HTTP response header).
|
319
|
+
#
|
320
|
+
# -- CookieManager#find(url)
|
321
|
+
#
|
322
|
+
# get cookies and make into string (to send as HTTP request header).
|
323
|
+
#
|
324
|
+
# -- CookieManager#add(cookie)
|
325
|
+
#
|
326
|
+
# add new cookie.
|
327
|
+
#
|
328
|
+
# -- CookieManager#load_cookies()
|
329
|
+
#
|
330
|
+
# load cookies' data from file.
|
331
|
+
|
228
332
|
class CookieManager
|
229
333
|
include CookieUtils
|
230
334
|
|
@@ -448,118 +552,5 @@ class WebAgent
|
|
448
552
|
return true
|
449
553
|
end
|
450
554
|
end
|
451
|
-
end
|
452
|
-
|
453
|
-
__END__
|
454
|
-
|
455
|
-
=begin
|
456
|
-
|
457
|
-
== WebAgent::CookieManager Class
|
458
|
-
|
459
|
-
Load, save, parse and send cookies.
|
460
|
-
|
461
|
-
=== Usage
|
462
|
-
|
463
|
-
## initialize
|
464
|
-
cm = WebAgent::CookieManager.new("/home/foo/bar/cookie")
|
465
|
-
|
466
|
-
## load cookie data
|
467
|
-
cm.load_cookies()
|
468
|
-
|
469
|
-
## parse cookie from string (maybe "Set-Cookie:" header)
|
470
|
-
cm.parse(str)
|
471
|
-
|
472
|
-
## send cookie data to url
|
473
|
-
f.write(cm.find(url))
|
474
|
-
|
475
|
-
## save cookie to cookiefile
|
476
|
-
cm.save_cookies()
|
477
|
-
|
478
|
-
|
479
|
-
=== Class Methods
|
480
|
-
|
481
|
-
-- CookieManager::new(file=nil)
|
482
|
-
|
483
|
-
create new CookieManager. If a file is provided,
|
484
|
-
use it as cookies' file.
|
485
|
-
|
486
|
-
=== Methods
|
487
|
-
|
488
|
-
-- CookieManager#save_cookies(force = nil)
|
489
|
-
|
490
|
-
save cookies' data into file. if argument is true,
|
491
|
-
save data although data is not modified.
|
492
|
-
|
493
|
-
-- CookieManager#parse(str, url)
|
494
|
-
|
495
|
-
parse string and store cookie (to parse HTTP response header).
|
496
|
-
|
497
|
-
-- CookieManager#find(url)
|
498
|
-
|
499
|
-
get cookies and make into string (to send as HTTP request header).
|
500
|
-
|
501
|
-
-- CookieManager#add(cookie)
|
502
|
-
|
503
|
-
add new cookie.
|
504
|
-
|
505
|
-
-- CookieManager#load_cookies()
|
506
|
-
|
507
|
-
load cookies' data from file.
|
508
|
-
|
509
|
-
|
510
|
-
== WebAgent::CookieUtils Module
|
511
|
-
|
512
|
-
-- CookieUtils::head_match?(str1, str2)
|
513
|
-
-- CookieUtils::tail_match?(str1, str2)
|
514
|
-
-- CookieUtils::domain_match(host, domain)
|
515
|
-
-- CookieUtils::total_dot_num(str)
|
516
|
-
|
517
|
-
|
518
|
-
== WebAgent::Cookie Class
|
519
|
-
|
520
|
-
=== Class Methods
|
521
|
-
|
522
|
-
-- Cookie::new()
|
523
|
-
|
524
|
-
create new cookie.
|
525
|
-
|
526
|
-
=== Methods
|
527
|
-
|
528
|
-
-- Cookie#match?(url)
|
529
|
-
|
530
|
-
match cookie by url. if match, return true. otherwise,
|
531
|
-
return false.
|
532
|
-
|
533
|
-
-- Cookie#name
|
534
|
-
-- Cookie#name=(name)
|
535
|
-
-- Cookie#value
|
536
|
-
-- Cookie#value=(value)
|
537
|
-
-- Cookie#domain
|
538
|
-
-- Cookie#domain=(domain)
|
539
|
-
-- Cookie#path
|
540
|
-
-- Cookie#path=(path)
|
541
|
-
-- Cookie#expires
|
542
|
-
-- Cookie#expires=(expires)
|
543
|
-
-- Cookie#url
|
544
|
-
-- Cookie#url=(url)
|
545
|
-
|
546
|
-
accessor methods for cookie's items.
|
547
|
-
|
548
|
-
-- Cookie#discard?
|
549
|
-
-- Cookie#discard=(discard)
|
550
|
-
-- Cookie#use?
|
551
|
-
-- Cookie#use=(use)
|
552
|
-
-- Cookie#secure?
|
553
|
-
-- Cookie#secure=(secure)
|
554
|
-
-- Cookie#domain_orig?
|
555
|
-
-- Cookie#domain_orig=(domain_orig)
|
556
|
-
-- Cookie#path_orig?
|
557
|
-
-- Cookie#path_orig=(path_orig)
|
558
|
-
-- Cookie#override?
|
559
|
-
-- Cookie#override=(override)
|
560
|
-
-- Cookie#flag
|
561
|
-
-- Cookie#set_flag(flag_num)
|
562
|
-
|
563
|
-
accessor methods for flags.
|
564
555
|
|
565
|
-
|
556
|
+
end #module Web
|
data/lib/facets/more/http.rb
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
#
|
14
14
|
# == Developers Notes
|
15
15
|
#
|
16
|
-
# TODO This
|
16
|
+
# TODO This and HTTPAccess may be merged?
|
17
17
|
|
18
18
|
# Author:: Hiroshi Nakamura
|
19
19
|
# Copyright:: Copyright (c) 2000 Hiroshi Nakamura
|
@@ -22,7 +22,7 @@
|
|
22
22
|
require 'uri'
|
23
23
|
require 'time'
|
24
24
|
|
25
|
-
# = HTTP Container
|
25
|
+
# = HTTP Container
|
26
26
|
#
|
27
27
|
# HTTP Module is a contatiner for HTTP related tools.
|
28
28
|
# See HTTPAccess.
|
@@ -127,7 +127,7 @@ class Client
|
|
127
127
|
@session_manager.agent_name = @agent_name
|
128
128
|
@session_manager.from = @from
|
129
129
|
@session_manager.ssl_config = @ssl_config
|
130
|
-
@cookie_manager =
|
130
|
+
@cookie_manager = Web::CookieManager.new
|
131
131
|
self.proxy = proxy
|
132
132
|
end
|
133
133
|
|
data/lib/facets/more/paramix.rb
CHANGED
@@ -93,11 +93,13 @@ class Module
|
|
93
93
|
params = args.last.is_a?(Hash) ? args.pop : {}
|
94
94
|
args.each do |mod|
|
95
95
|
mixin_parameters[mod] = params
|
96
|
-
|
97
|
-
|
98
|
-
params
|
99
|
-
|
100
|
-
|
96
|
+
if mod.basename
|
97
|
+
define_method( mod.basename ) do |key|
|
98
|
+
if params.key?(key)
|
99
|
+
params[key]
|
100
|
+
else
|
101
|
+
super if defined?( super )
|
102
|
+
end
|
101
103
|
end
|
102
104
|
end
|
103
105
|
end
|
@@ -117,11 +119,13 @@ class Module
|
|
117
119
|
args.each do |mod|
|
118
120
|
(class << self; self; end).class_eval do
|
119
121
|
mixin_parameters[mod] = params
|
120
|
-
|
121
|
-
|
122
|
-
params
|
123
|
-
|
124
|
-
|
122
|
+
if mod.basename
|
123
|
+
define_method( mod.basename ) do |key|
|
124
|
+
if params.key?(key)
|
125
|
+
params[key]
|
126
|
+
else
|
127
|
+
super if defined?( super )
|
128
|
+
end
|
125
129
|
end
|
126
130
|
end
|
127
131
|
end
|