facets 1.4.2 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (393) hide show
  1. data/ProjectInfo +12 -4
  2. data/lib/facets/core/kernel/own.rb +2 -2
  3. data/lib/facets/core/kernel/quaclass.rb +7 -4
  4. data/lib/facets/core/module/basename.rb +3 -3
  5. data/lib/facets/more/command.rb +10 -2
  6. data/lib/facets/more/cookie.rb +112 -121
  7. data/lib/facets/more/http.rb +2 -2
  8. data/lib/facets/more/httpaccess.rb +1 -1
  9. data/lib/facets/more/paramix.rb +14 -10
  10. data/lib/facets/more/tracepoint.rb +5 -4
  11. data/test/lib/facets/core/array/test_at_rand.rb +1 -1
  12. data/test/lib/facets/core/array/test_delete_unless.rb +1 -1
  13. data/test/lib/facets/core/array/test_delete_values.rb +1 -1
  14. data/test/lib/facets/core/array/test_delete_values_at.rb +1 -1
  15. data/test/lib/facets/core/array/test_first.rb +1 -1
  16. data/test/lib/facets/core/array/test_head.rb +1 -1
  17. data/test/lib/facets/core/array/test_last_index.rb +1 -1
  18. data/test/lib/facets/core/array/test_merge.rb +1 -1
  19. data/test/lib/facets/core/array/test_mid.rb +1 -1
  20. data/test/lib/facets/core/array/test_middle.rb +1 -1
  21. data/test/lib/facets/core/array/test_op_fetch.rb +1 -1
  22. data/test/lib/facets/core/array/test_op_store.rb +1 -1
  23. data/test/lib/facets/core/array/test_pick.rb +1 -1
  24. data/test/lib/facets/core/array/test_pos.rb +1 -1
  25. data/test/lib/facets/core/array/test_pot.rb +1 -1
  26. data/test/lib/facets/core/array/test_pull.rb +1 -1
  27. data/test/lib/facets/core/array/test_rand_index.rb +1 -1
  28. data/test/lib/facets/core/array/test_rand_subset.rb +1 -1
  29. data/test/lib/facets/core/array/test_range.rb +1 -1
  30. data/test/lib/facets/core/array/test_rotate.rb +1 -1
  31. data/test/lib/facets/core/array/test_select.rb +1 -1
  32. data/test/lib/facets/core/array/test_shuffle.rb +1 -1
  33. data/test/lib/facets/core/array/test_thru.rb +1 -1
  34. data/test/lib/facets/core/array/test_to_b.rb +1 -1
  35. data/test/lib/facets/core/array/test_to_h.rb +1 -1
  36. data/test/lib/facets/core/array/test_to_hash.rb +1 -1
  37. data/test/lib/facets/core/binding/self/test_of_caller.rb +1 -1
  38. data/test/lib/facets/core/binding/test___LINE__.rb +1 -1
  39. data/test/lib/facets/core/binding/test_call_stack.rb +1 -1
  40. data/test/lib/facets/core/binding/test_called.rb +1 -1
  41. data/test/lib/facets/core/binding/test_caller.rb +1 -1
  42. data/test/lib/facets/core/binding/test_defined.rb +1 -1
  43. data/test/lib/facets/core/binding/test_eval.rb +1 -1
  44. data/test/lib/facets/core/binding/test_local_variables.rb +1 -1
  45. data/test/lib/facets/core/binding/test_method_name.rb +1 -1
  46. data/test/lib/facets/core/binding/test_op_fetch.rb +1 -1
  47. data/test/lib/facets/core/binding/test_op_store.rb +1 -1
  48. data/test/lib/facets/core/binding/test_self.rb +1 -1
  49. data/test/lib/facets/core/class/test_cattr.rb +1 -1
  50. data/test/lib/facets/core/class/test_descendents.rb +1 -1
  51. data/test/lib/facets/core/class/test_method_name.rb +1 -1
  52. data/test/lib/facets/core/class/test_remove_descendents.rb +1 -1
  53. data/test/lib/facets/core/class/test_unix_path.rb +1 -1
  54. data/test/lib/facets/core/comparable/test_at_least.rb +1 -1
  55. data/test/lib/facets/core/comparable/test_clip.rb +1 -1
  56. data/test/lib/facets/core/comparable/test_cmp.rb +1 -1
  57. data/test/lib/facets/core/continuation/self/test_create.rb +1 -1
  58. data/test/lib/facets/core/date/test_days_in_month.rb +1 -1
  59. data/test/lib/facets/core/date/test_days_of_month.rb +1 -1
  60. data/test/lib/facets/core/date/test_stamp.rb +1 -1
  61. data/test/lib/facets/core/date/test_to_date.rb +1 -1
  62. data/test/lib/facets/core/date/test_to_s.rb +1 -1
  63. data/test/lib/facets/core/date/test_to_time.rb +1 -1
  64. data/test/lib/facets/core/dir/self/test_ancestor.rb +1 -1
  65. data/test/lib/facets/core/dir/self/test_ascend.rb +1 -1
  66. data/test/lib/facets/core/enumerable/self/test_combinations.rb +1 -1
  67. data/test/lib/facets/core/enumerable/self/test_cross.rb +1 -1
  68. data/test/lib/facets/core/enumerable/test_collect_with_index.rb +1 -1
  69. data/test/lib/facets/core/enumerable/test_commonality.rb +1 -1
  70. data/test/lib/facets/core/enumerable/test_compact_collect.rb +1 -1
  71. data/test/lib/facets/core/enumerable/test_count.rb +1 -1
  72. data/test/lib/facets/core/enumerable/test_cross.rb +1 -1
  73. data/test/lib/facets/core/enumerable/test_each_combination.rb +1 -1
  74. data/test/lib/facets/core/enumerable/test_each_pair.rb +1 -1
  75. data/test/lib/facets/core/enumerable/test_each_slice.rb +1 -1
  76. data/test/lib/facets/core/enumerable/test_each_unique_pair.rb +1 -1
  77. data/test/lib/facets/core/enumerable/test_entropy.rb +1 -1
  78. data/test/lib/facets/core/enumerable/test_every.rb +1 -1
  79. data/test/lib/facets/core/enumerable/test_ew.rb +1 -1
  80. data/test/lib/facets/core/enumerable/test_filter_collect.rb +1 -1
  81. data/test/lib/facets/core/enumerable/test_find_collisions.rb +1 -1
  82. data/test/lib/facets/core/enumerable/test_frequency.rb +1 -1
  83. data/test/lib/facets/core/enumerable/test_graph.rb +1 -1
  84. data/test/lib/facets/core/enumerable/test_ideal_entropy.rb +1 -1
  85. data/test/lib/facets/core/enumerable/test_none.rb +1 -1
  86. data/test/lib/facets/core/enumerable/test_occur.rb +1 -1
  87. data/test/lib/facets/core/enumerable/test_one.rb +1 -1
  88. data/test/lib/facets/core/enumerable/test_op_pow.rb +1 -1
  89. data/test/lib/facets/core/enumerable/test_partition_by.rb +1 -1
  90. data/test/lib/facets/core/enumerable/test_permute.rb +1 -1
  91. data/test/lib/facets/core/enumerable/test_probability.rb +1 -1
  92. data/test/lib/facets/core/enumerable/test_to_h.rb +1 -1
  93. data/test/lib/facets/core/enumerable/test_uniq_by.rb +1 -1
  94. data/test/lib/facets/core/file/self/test_create.rb +1 -1
  95. data/test/lib/facets/core/file/self/test_open_as_string.rb +1 -1
  96. data/test/lib/facets/core/file/self/test_read_list.rb +1 -1
  97. data/test/lib/facets/core/file/self/test_sanitize.rb +1 -1
  98. data/test/lib/facets/core/file/self/test_split_all.rb +1 -1
  99. data/test/lib/facets/core/float/test_round_at.rb +1 -1
  100. data/test/lib/facets/core/float/test_round_to.rb +1 -1
  101. data/test/lib/facets/core/hash/self/test_zipnew.rb +1 -1
  102. data/test/lib/facets/core/hash/test_alias.rb +1 -1
  103. data/test/lib/facets/core/hash/test_assert_has_keys.rb +1 -1
  104. data/test/lib/facets/core/hash/test_assert_has_only_keys.rb +1 -1
  105. data/test/lib/facets/core/hash/test_at.rb +1 -1
  106. data/test/lib/facets/core/hash/test_collate.rb +1 -1
  107. data/test/lib/facets/core/hash/test_each.rb +1 -1
  108. data/test/lib/facets/core/hash/test_each_with_index.rb +1 -1
  109. data/test/lib/facets/core/hash/test_each_with_key.rb +1 -1
  110. data/test/lib/facets/core/hash/test_graph.rb +1 -1
  111. data/test/lib/facets/core/hash/test_has_keys.rb +1 -1
  112. data/test/lib/facets/core/hash/test_has_only_keys.rb +1 -1
  113. data/test/lib/facets/core/hash/test_inverse.rb +1 -1
  114. data/test/lib/facets/core/hash/test_keys_to_s.rb +1 -1
  115. data/test/lib/facets/core/hash/test_keys_to_sym.rb +1 -1
  116. data/test/lib/facets/core/hash/test_op_fetch.rb +1 -1
  117. data/test/lib/facets/core/hash/test_op_lshift.rb +1 -1
  118. data/test/lib/facets/core/hash/test_rand_key.rb +1 -1
  119. data/test/lib/facets/core/hash/test_rand_pair.rb +1 -1
  120. data/test/lib/facets/core/hash/test_rand_value.rb +1 -1
  121. data/test/lib/facets/core/hash/test_replace_each.rb +1 -1
  122. data/test/lib/facets/core/hash/test_shuffle.rb +1 -1
  123. data/test/lib/facets/core/hash/test_slice.rb +1 -1
  124. data/test/lib/facets/core/hash/test_swap.rb +1 -1
  125. data/test/lib/facets/core/hash/test_swapkey.rb +1 -1
  126. data/test/lib/facets/core/hash/test_to_h.rb +1 -1
  127. data/test/lib/facets/core/hash/test_to_ostruct.rb +1 -1
  128. data/test/lib/facets/core/hash/test_to_ostruct_recurse.rb +1 -1
  129. data/test/lib/facets/core/hash/test_traverse.rb +1 -1
  130. data/test/lib/facets/core/hash/test_update_each.rb +1 -1
  131. data/test/lib/facets/core/hash/test_update_keys.rb +1 -1
  132. data/test/lib/facets/core/hash/test_update_values.rb +1 -1
  133. data/test/lib/facets/core/hash/test_weave.rb +1 -1
  134. data/test/lib/facets/core/integer/test_factorial.rb +1 -1
  135. data/test/lib/facets/core/integer/test_multiple.rb +1 -1
  136. data/test/lib/facets/core/integer/test_ordinal.rb +1 -1
  137. data/test/lib/facets/core/integer/test_times_collect.rb +1 -1
  138. data/test/lib/facets/core/kernel/test___class__.rb +1 -1
  139. data/test/lib/facets/core/kernel/test___method__.rb +1 -1
  140. data/test/lib/facets/core/kernel/test_as.rb +1 -1
  141. data/test/lib/facets/core/kernel/test_assign_from.rb +1 -1
  142. data/test/lib/facets/core/kernel/test_assign_with.rb +1 -1
  143. data/test/lib/facets/core/kernel/test_bool.rb +1 -1
  144. data/test/lib/facets/core/kernel/test_bug.rb +1 -1
  145. data/test/lib/facets/core/kernel/test_call_stack.rb +1 -1
  146. data/test/lib/facets/core/kernel/test_called.rb +1 -1
  147. data/test/lib/facets/core/kernel/test_constant.rb +1 -1
  148. data/test/lib/facets/core/kernel/test_copy.rb +1 -1
  149. data/test/lib/facets/core/kernel/test_deep_copy.rb +1 -1
  150. data/test/lib/facets/core/kernel/test_demo.rb +1 -1
  151. data/test/lib/facets/core/kernel/test_fn.rb +1 -1
  152. data/test/lib/facets/core/kernel/test_generate_method_name.rb +1 -1
  153. data/test/lib/facets/core/kernel/test_get_by_id.rb +1 -1
  154. data/test/lib/facets/core/kernel/test_here.rb +1 -1
  155. data/test/lib/facets/core/kernel/test_in.rb +1 -1
  156. data/test/lib/facets/core/kernel/test_maybe.rb +1 -1
  157. data/test/lib/facets/core/kernel/test_metaclass.rb +1 -1
  158. data/test/lib/facets/core/kernel/test_method.rb +1 -1
  159. data/test/lib/facets/core/kernel/test_methods.rb +1 -1
  160. data/test/lib/facets/core/kernel/test_new.rb +1 -1
  161. data/test/lib/facets/core/kernel/test_object_class.rb +1 -1
  162. data/test/lib/facets/core/kernel/test_object_hexid.rb +1 -1
  163. data/test/lib/facets/core/kernel/test_quaclass.rb +1 -1
  164. data/test/lib/facets/core/kernel/test_require_all.rb +1 -1
  165. data/test/lib/facets/core/kernel/test_require_esc.rb +1 -1
  166. data/test/lib/facets/core/kernel/test_require_facet.rb +1 -1
  167. data/test/lib/facets/core/kernel/test_resc.rb +1 -1
  168. data/test/lib/facets/core/kernel/test_returning.rb +1 -1
  169. data/test/lib/facets/core/kernel/test_send_as.rb +1 -1
  170. data/test/lib/facets/core/kernel/test_set_from.rb +1 -1
  171. data/test/lib/facets/core/kernel/test_set_with.rb +1 -1
  172. data/test/lib/facets/core/kernel/test_silently.rb +1 -1
  173. data/test/lib/facets/core/kernel/test_singleton.rb +1 -1
  174. data/test/lib/facets/core/kernel/test_singleton_class.rb +1 -1
  175. data/test/lib/facets/core/kernel/test_superior.rb +1 -1
  176. data/test/lib/facets/core/kernel/test_supermethod.rb +1 -1
  177. data/test/lib/facets/core/kernel/test_this.rb +1 -1
  178. data/test/lib/facets/core/kernel/test_to_b.rb +1 -1
  179. data/test/lib/facets/core/kernel/test_to_bool.rb +1 -1
  180. data/test/lib/facets/core/kernel/test_uri.rb +1 -1
  181. data/test/lib/facets/core/kernel/test_val.rb +1 -1
  182. data/test/lib/facets/core/kernel/test_with_accessor.rb +1 -1
  183. data/test/lib/facets/core/matchdata/test_match.rb +1 -1
  184. data/test/lib/facets/core/matchdata/test_matchtree.rb +1 -1
  185. data/test/lib/facets/core/module/test_abstract.rb +1 -1
  186. data/test/lib/facets/core/module/test_alias_module_function.rb +1 -1
  187. data/test/lib/facets/core/module/test_ancestor.rb +1 -1
  188. data/test/lib/facets/core/module/test_basename.rb +1 -1
  189. data/test/lib/facets/core/module/test_by_name.rb +1 -1
  190. data/test/lib/facets/core/module/test_class_extension.rb +1 -1
  191. data/test/lib/facets/core/module/test_clone_using.rb +1 -1
  192. data/test/lib/facets/core/module/test_dirname.rb +1 -1
  193. data/test/lib/facets/core/module/test_equate_on.rb +1 -1
  194. data/test/lib/facets/core/module/test_generate_instance_method_name.rb +1 -1
  195. data/test/lib/facets/core/module/test_include_as.rb +1 -1
  196. data/test/lib/facets/core/module/test_initializer.rb +1 -1
  197. data/test/lib/facets/core/module/test_instance_methods.rb +1 -1
  198. data/test/lib/facets/core/module/test_integrate.rb +1 -1
  199. data/test/lib/facets/core/module/test_memoize.rb +1 -1
  200. data/test/lib/facets/core/module/test_modspace.rb +1 -1
  201. data/test/lib/facets/core/module/test_namespace.rb +1 -1
  202. data/test/lib/facets/core/module/test_nesting.rb +1 -1
  203. data/test/lib/facets/core/module/test_nodef.rb +1 -1
  204. data/test/lib/facets/core/module/test_on_included.rb +1 -1
  205. data/test/lib/facets/core/module/test_redef.rb +1 -1
  206. data/test/lib/facets/core/module/test_redefine_method.rb +1 -1
  207. data/test/lib/facets/core/module/test_redirect.rb +1 -1
  208. data/test/lib/facets/core/module/test_redirect_method.rb +1 -1
  209. data/test/lib/facets/core/module/test_remove.rb +1 -1
  210. data/test/lib/facets/core/module/test_rename.rb +1 -1
  211. data/test/lib/facets/core/module/test_rename_method.rb +1 -1
  212. data/test/lib/facets/core/module/test_revisal.rb +1 -1
  213. data/test/lib/facets/core/module/test_shadow_method.rb +1 -1
  214. data/test/lib/facets/core/module/test_sort_on.rb +1 -1
  215. data/test/lib/facets/core/module/test_this.rb +1 -1
  216. data/test/lib/facets/core/module/test_wrap.rb +1 -1
  217. data/test/lib/facets/core/module/test_wrap_method.rb +1 -1
  218. data/test/lib/facets/core/nilclass/test_blank.rb +1 -1
  219. data/test/lib/facets/core/nilclass/test_empty.rb +1 -1
  220. data/test/lib/facets/core/nilclass/test_include.rb +1 -1
  221. data/test/lib/facets/core/nilclass/test_op_fetch.rb +1 -1
  222. data/test/lib/facets/core/nilclass/test_size.rb +1 -1
  223. data/test/lib/facets/core/nilclass/test_to_h.rb +1 -1
  224. data/test/lib/facets/core/numeric/test_approx.rb +1 -1
  225. data/test/lib/facets/core/numeric/test_ceil_multiple.rb +1 -1
  226. data/test/lib/facets/core/numeric/test_succ.rb +1 -1
  227. data/test/lib/facets/core/numeric/test_to_b.rb +1 -1
  228. data/test/lib/facets/core/ostruct/test___merge__.rb +1 -1
  229. data/test/lib/facets/core/ostruct/test___update__.rb +1 -1
  230. data/test/lib/facets/core/ostruct/test_op_fetch.rb +1 -1
  231. data/test/lib/facets/core/ostruct/test_op_store.rb +1 -1
  232. data/test/lib/facets/core/proc/test_compose.rb +1 -1
  233. data/test/lib/facets/core/proc/test_to_method.rb +1 -1
  234. data/test/lib/facets/core/range/test_to_r.rb +1 -1
  235. data/test/lib/facets/core/range/test_to_range.rb +1 -1
  236. data/test/lib/facets/core/range/test_umbrella.rb +1 -1
  237. data/test/lib/facets/core/range/test_within.rb +1 -1
  238. data/test/lib/facets/core/regexp/test_arity.rb +1 -1
  239. data/test/lib/facets/core/regexp/test_to_re.rb +1 -1
  240. data/test/lib/facets/core/regexp/test_to_regexp.rb +1 -1
  241. data/test/lib/facets/core/string/self/test_interpolate.rb +1 -1
  242. data/test/lib/facets/core/string/self/test_patterns.rb +1 -1
  243. data/test/lib/facets/core/string/self/test_rand_letter.rb +1 -1
  244. data/test/lib/facets/core/string/test_align_center.rb +1 -1
  245. data/test/lib/facets/core/string/test_at_rand.rb +1 -1
  246. data/test/lib/facets/core/string/test_basename.rb +1 -1
  247. data/test/lib/facets/core/string/test_blank.rb +1 -1
  248. data/test/lib/facets/core/string/test_bracket.rb +1 -1
  249. data/test/lib/facets/core/string/test_camelcase.rb +1 -1
  250. data/test/lib/facets/core/string/test_camelize.rb +1 -1
  251. data/test/lib/facets/core/string/test_capitalized.rb +1 -1
  252. data/test/lib/facets/core/string/test_chars.rb +1 -1
  253. data/test/lib/facets/core/string/test_cmp.rb +1 -1
  254. data/test/lib/facets/core/string/test_demodulize.rb +1 -1
  255. data/test/lib/facets/core/string/test_downcase.rb +1 -1
  256. data/test/lib/facets/core/string/test_dresner.rb +1 -1
  257. data/test/lib/facets/core/string/test_each_char.rb +1 -1
  258. data/test/lib/facets/core/string/test_each_word.rb +1 -1
  259. data/test/lib/facets/core/string/test_first.rb +1 -1
  260. data/test/lib/facets/core/string/test_fold.rb +1 -1
  261. data/test/lib/facets/core/string/test_humanize.rb +1 -1
  262. data/test/lib/facets/core/string/test_indent.rb +1 -1
  263. data/test/lib/facets/core/string/test_index_all.rb +1 -1
  264. data/test/lib/facets/core/string/test_last.rb +1 -1
  265. data/test/lib/facets/core/string/test_line_wrap.rb +1 -1
  266. data/test/lib/facets/core/string/test_lines.rb +1 -1
  267. data/test/lib/facets/core/string/test_lowercase.rb +1 -1
  268. data/test/lib/facets/core/string/test_margin.rb +1 -1
  269. data/test/lib/facets/core/string/test_methodize.rb +1 -1
  270. data/test/lib/facets/core/string/test_modulize.rb +1 -1
  271. data/test/lib/facets/core/string/test_mscan.rb +1 -1
  272. data/test/lib/facets/core/string/test_natcmp.rb +1 -1
  273. data/test/lib/facets/core/string/test_nchar.rb +1 -1
  274. data/test/lib/facets/core/string/test_pathize.rb +1 -1
  275. data/test/lib/facets/core/string/test_pop.rb +1 -1
  276. data/test/lib/facets/core/string/test_pot.rb +1 -1
  277. data/test/lib/facets/core/string/test_push.rb +1 -1
  278. data/test/lib/facets/core/string/test_quote.rb +1 -1
  279. data/test/lib/facets/core/string/test_rand_byte.rb +1 -1
  280. data/test/lib/facets/core/string/test_rand_index.rb +1 -1
  281. data/test/lib/facets/core/string/test_range.rb +1 -1
  282. data/test/lib/facets/core/string/test_range_all.rb +1 -1
  283. data/test/lib/facets/core/string/test_range_of_line.rb +1 -1
  284. data/test/lib/facets/core/string/test_regesc.rb +1 -1
  285. data/test/lib/facets/core/string/test_shatter.rb +1 -1
  286. data/test/lib/facets/core/string/test_shift.rb +1 -1
  287. data/test/lib/facets/core/string/test_shuffle.rb +1 -1
  288. data/test/lib/facets/core/string/test_similarity.rb +1 -1
  289. data/test/lib/facets/core/string/test_singular.rb +1 -1
  290. data/test/lib/facets/core/string/test_soundex.rb +1 -1
  291. data/test/lib/facets/core/string/test_succ.rb +1 -1
  292. data/test/lib/facets/core/string/test_to_a.rb +1 -1
  293. data/test/lib/facets/core/string/test_to_b.rb +1 -1
  294. data/test/lib/facets/core/string/test_to_const.rb +1 -1
  295. data/test/lib/facets/core/string/test_to_date.rb +1 -1
  296. data/test/lib/facets/core/string/test_to_proc.rb +1 -1
  297. data/test/lib/facets/core/string/test_to_re.rb +1 -1
  298. data/test/lib/facets/core/string/test_to_time.rb +1 -1
  299. data/test/lib/facets/core/string/test_unix_crypt.rb +1 -1
  300. data/test/lib/facets/core/string/test_unpack.rb +1 -1
  301. data/test/lib/facets/core/string/test_unshift.rb +1 -1
  302. data/test/lib/facets/core/string/test_upcase.rb +1 -1
  303. data/test/lib/facets/core/string/test_whitespace.rb +1 -1
  304. data/test/lib/facets/core/string/test_word_filter.rb +1 -1
  305. data/test/lib/facets/core/string/test_word_wrap.rb +1 -1
  306. data/test/lib/facets/core/string/test_words.rb +1 -1
  307. data/test/lib/facets/core/symbol/test_camelcase.rb +1 -1
  308. data/test/lib/facets/core/symbol/test_camelize.rb +1 -1
  309. data/test/lib/facets/core/symbol/test_capitalize.rb +1 -1
  310. data/test/lib/facets/core/symbol/test_capitalized.rb +1 -1
  311. data/test/lib/facets/core/symbol/test_downcase.rb +1 -1
  312. data/test/lib/facets/core/symbol/test_not.rb +1 -1
  313. data/test/lib/facets/core/symbol/test_pad.rb +1 -1
  314. data/test/lib/facets/core/symbol/test_succ.rb +1 -1
  315. data/test/lib/facets/core/symbol/test_to_const.rb +1 -1
  316. data/test/lib/facets/core/symbol/test_to_proc.rb +1 -1
  317. data/test/lib/facets/core/symbol/test_to_str.rb +1 -1
  318. data/test/lib/facets/core/symbol/test_underscore.rb +1 -1
  319. data/test/lib/facets/core/symbol/test_upcase.rb +1 -1
  320. data/test/lib/facets/core/time/test_change.rb +1 -1
  321. data/test/lib/facets/core/time/test_elapse.rb +1 -1
  322. data/test/lib/facets/core/time/test_stamp.rb +1 -1
  323. data/test/lib/facets/core/time/test_to_date.rb +1 -1
  324. data/test/lib/facets/core/time/test_to_s.rb +1 -1
  325. data/test/lib/facets/core/time/test_to_time.rb +1 -1
  326. data/test/lib/facets/more/test_annattr.rb +1 -1
  327. data/test/lib/facets/more/test_annotation.rb +1 -1
  328. data/test/lib/facets/more/test_ansicode.rb +1 -1
  329. data/test/lib/facets/more/test_association.rb +1 -1
  330. data/test/lib/facets/more/test_basicobject.rb +1 -1
  331. data/test/lib/facets/more/test_bbcode.rb +1 -1
  332. data/test/lib/facets/more/test_binaryreader.rb +1 -1
  333. data/test/lib/facets/more/test_bitmask.rb +1 -1
  334. data/test/lib/facets/more/test_bytes.rb +1 -1
  335. data/test/lib/facets/more/test_classmethods.rb +1 -1
  336. data/test/lib/facets/more/test_command.rb +1 -1
  337. data/test/lib/facets/more/test_coroutine.rb +1 -1
  338. data/test/lib/facets/more/test_crypt.rb +1 -1
  339. data/test/lib/facets/more/test_dictionary.rb +1 -1
  340. data/test/lib/facets/more/test_elementor.rb +1 -1
  341. data/test/lib/facets/more/test_enumerablepass.rb +1 -1
  342. data/test/lib/facets/more/test_floatstring.rb +1 -1
  343. data/test/lib/facets/more/test_functor.rb +1 -1
  344. data/test/lib/facets/more/test_htmlbuilder.rb +1 -1
  345. data/test/lib/facets/more/test_inheritor.rb +1 -1
  346. data/test/lib/facets/more/test_interval.rb +1 -1
  347. data/test/lib/facets/more/test_json.rb +1 -1
  348. data/test/lib/facets/more/test_lisp.rb +1 -1
  349. data/test/lib/facets/more/test_lisp_format.rb +1 -1
  350. data/test/lib/facets/more/test_lrucache.rb +1 -1
  351. data/test/lib/facets/more/test_mathconstants.rb +1 -1
  352. data/test/lib/facets/more/test_methodprobe.rb +1 -1
  353. data/test/lib/facets/more/test_multipliers.rb +1 -1
  354. data/test/lib/facets/more/test_multiton.rb +1 -1
  355. data/test/lib/facets/more/test_nackclass.rb +1 -1
  356. data/test/lib/facets/more/test_nilcomparable.rb +1 -1
  357. data/test/lib/facets/more/test_opencascade.rb +1 -1
  358. data/test/lib/facets/more/test_openobject.rb +1 -1
  359. data/test/lib/facets/more/test_overload.rb +1 -1
  360. data/test/lib/facets/more/test_paramix.rb +1 -1
  361. data/test/lib/facets/more/test_pqueue.rb +1 -1
  362. data/test/lib/facets/more/test_preinitialize.rb +1 -1
  363. data/test/lib/facets/more/test_promoteself.rb +1 -1
  364. data/test/lib/facets/more/test_recorder.rb +1 -1
  365. data/test/lib/facets/more/test_snapshot.rb +1 -1
  366. data/test/lib/facets/more/test_statichash.rb +1 -1
  367. data/test/lib/facets/more/test_syncarray.rb +1 -1
  368. data/test/lib/facets/more/test_synchash.rb +1 -1
  369. data/test/lib/facets/more/test_tagiterator.rb +1 -1
  370. data/test/lib/facets/more/test_taskable.rb +1 -1
  371. data/test/lib/facets/more/test_timer.rb +1 -1
  372. data/test/lib/facets/more/test_times.rb +1 -1
  373. data/test/lib/facets/more/test_tuple.rb +1 -1
  374. data/test/lib/facets/more/test_typecast.rb +1 -1
  375. data/test/lib/facets/more/test_uninheritable.rb +1 -1
  376. data/test/lib/facets/more/test_units.rb +1 -1
  377. data/test/lib/facets/more/test_xmlbuilder.rb +1 -1
  378. data/test/lib/facets/more/test_xmlhelper.rb +1 -1
  379. data/test/lib/facets/more/test_xoxo.rb +1 -1
  380. data/test/lib/facets/more/test_yamlstruct.rb +1 -1
  381. data/web/documentation.html +10 -10
  382. data/web/{favicon.ico → images/favicon.ico} +0 -0
  383. data/web/index.html +2 -2
  384. metadata +4 -18
  385. data/FIXTURE/filelist/testfile.txt +0 -0
  386. data/FIXTURE/filelist/testfile2.txt +0 -0
  387. data/FIXTURE/ls_r/A.txt +0 -0
  388. data/FIXTURE/ls_r/A/B.txt +0 -0
  389. data/FIXTURE/ls_r/A/B/C.txt +0 -0
  390. data/FIXTURE/test_file.txt +0 -25
  391. data/FIXTURE/test_file2.txt +0 -25
  392. data/lib/facet/kernel/adhoc.rb +0 -1
  393. data/lib/facets/core/kernel/adhoc.rb +0 -11
@@ -2,7 +2,7 @@
2
2
 
3
3
  title : Facets
4
4
  name : facets
5
- version : '1.4.2'
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.bz2, deb ]
41
- dir: ../REL
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 : release
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 "special" class,
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).class_eval( &blk ) if blk
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
- # Access to an object's "special" class, otherwise
5
- # known as it's eigenclass or metaclass or own, etc.
4
+ # Easy access to an object qua class, otherwise
5
+ # known as the object's metaclass or singleton class.
6
6
  #
7
- # One day these names must be reconciled!
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 self.name
22
- self.name.gsub(/^.*::/, '')
21
+ if name and not name.empty?
22
+ name.gsub(/^.*::/, '')
23
23
  else
24
- self.inspect.gsub('#<','').gsub('>','').sub(':', '_')
24
+ nil #inspect.gsub('#<','').gsub('>','').sub(':', '_')
25
25
  end
26
26
  end
27
27
 
@@ -107,8 +107,16 @@ module Console ; end
107
107
 
108
108
  class Console::Command
109
109
 
110
- def self.execute( *args )
111
- new.execute( *args )
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
@@ -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
- # WebAgent
39
+ # Web Namespace
42
40
 
43
- class WebAgent
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
- =end
556
+ end #module Web
@@ -13,7 +13,7 @@
13
13
  #
14
14
  # == Developers Notes
15
15
  #
16
- # TODO This an HTTPAccess may be merged?
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 = WebAgent::CookieManager.new
130
+ @cookie_manager = Web::CookieManager.new
131
131
  self.proxy = proxy
132
132
  end
133
133
 
@@ -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
- define_method( mod.basename ) do |key|
97
- if params.key?(key)
98
- params[key]
99
- else
100
- super if defined?( super )
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
- define_method( mod.basename ) do |key|
121
- if params.key?(key)
122
- params[key]
123
- else
124
- super if defined?( super )
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