facets 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (794) hide show
  1. data/ProjectInfo +22 -34
  2. metadata +37 -895
  3. data/CHANGELOG +0 -254
  4. data/Rakefile +0 -173
  5. data/TODO +0 -46
  6. data/conf/facets/noauto +0 -48
  7. data/data/facets/index.yml +0 -446
  8. data/lib/facet/array.rb +0 -33
  9. data/lib/facet/array/at_rand.rb +0 -52
  10. data/lib/facet/array/body.rb +0 -2
  11. data/lib/facet/array/delete_unless.rb +0 -35
  12. data/lib/facet/array/delete_values.rb +0 -38
  13. data/lib/facet/array/delete_values_at.rb +0 -57
  14. data/lib/facet/array/each_with_key.rb +0 -9
  15. data/lib/facet/array/first.rb +0 -84
  16. data/lib/facet/array/foot.rb +0 -2
  17. data/lib/facet/array/head.rb +0 -80
  18. data/lib/facet/array/last.rb +0 -2
  19. data/lib/facet/array/last_index.rb +0 -35
  20. data/lib/facet/array/merge.rb +0 -40
  21. data/lib/facet/array/mid.rb +0 -50
  22. data/lib/facet/array/middle.rb +0 -45
  23. data/lib/facet/array/op_fetch.rb +0 -40
  24. data/lib/facet/array/op_store.rb +0 -47
  25. data/lib/facet/array/pick.rb +0 -68
  26. data/lib/facet/array/pos.rb +0 -39
  27. data/lib/facet/array/pull.rb +0 -37
  28. data/lib/facet/array/rand_index.rb +0 -30
  29. data/lib/facet/array/rand_subset.rb +0 -56
  30. data/lib/facet/array/range.rb +0 -47
  31. data/lib/facet/array/rotate.rb +0 -67
  32. data/lib/facet/array/select.rb +0 -37
  33. data/lib/facet/array/shuffle.rb +0 -66
  34. data/lib/facet/array/slap.rb +0 -37
  35. data/lib/facet/array/store.rb +0 -7
  36. data/lib/facet/array/tail.rb +0 -2
  37. data/lib/facet/array/thru.rb +0 -38
  38. data/lib/facet/array/to_b.rb +0 -31
  39. data/lib/facet/array/to_h.rb +0 -57
  40. data/lib/facet/array/to_hash.rb +0 -46
  41. data/lib/facet/array/unzip.rb +0 -20
  42. data/lib/facet/binding.rb +0 -14
  43. data/lib/facet/binding/__DIR__.rb +0 -2
  44. data/lib/facet/binding/__FILE__.rb +0 -2
  45. data/lib/facet/binding/__LINE__.rb +0 -58
  46. data/lib/facet/binding/call_stack.rb +0 -42
  47. data/lib/facet/binding/called.rb +0 -41
  48. data/lib/facet/binding/caller.rb +0 -42
  49. data/lib/facet/binding/defined.rb +0 -41
  50. data/lib/facet/binding/eval.rb +0 -42
  51. data/lib/facet/binding/local_variables.rb +0 -45
  52. data/lib/facet/binding/method_name.rb +0 -48
  53. data/lib/facet/binding/op_fetch.rb +0 -45
  54. data/lib/facet/binding/op_store.rb +0 -46
  55. data/lib/facet/binding/self.rb +0 -41
  56. data/lib/facet/binding/self/of_caller.rb +0 -122
  57. data/lib/facet/class.rb +0 -5
  58. data/lib/facet/class/by_name.rb +0 -1
  59. data/lib/facet/class/descendents.rb +0 -44
  60. data/lib/facet/class/remove_descendents.rb +0 -46
  61. data/lib/facet/class/remove_subclasses.rb +0 -2
  62. data/lib/facet/class/subclasses.rb +0 -2
  63. data/lib/facet/comparable.rb +0 -5
  64. data/lib/facet/comparable/at_least.rb +0 -53
  65. data/lib/facet/comparable/at_most.rb +0 -2
  66. data/lib/facet/comparable/cap.rb +0 -2
  67. data/lib/facet/comparable/clip.rb +0 -72
  68. data/lib/facet/comparable/cmp.rb +0 -38
  69. data/lib/facet/continuation.rb +0 -1
  70. data/lib/facet/continuation/self/create.rb +0 -71
  71. data/lib/facet/date.rb +0 -0
  72. data/lib/facet/date/days_in_month.rb +0 -42
  73. data/lib/facet/date/days_of_month.rb +0 -34
  74. data/lib/facet/date/stamp.rb +0 -52
  75. data/lib/facet/date/to_date.rb +0 -36
  76. data/lib/facet/date/to_s.rb +0 -33
  77. data/lib/facet/date/to_time.rb +0 -36
  78. data/lib/facet/dir.rb +0 -4
  79. data/lib/facet/dir/self/ancestor.rb +0 -33
  80. data/lib/facet/dir/self/ascend.rb +0 -56
  81. data/lib/facet/dir/self/ls_r.rb +0 -76
  82. data/lib/facet/dir/self/recurse.rb +0 -2
  83. data/lib/facet/enumerable.rb +0 -38
  84. data/lib/facet/enumerable/collect_with_counter.rb +0 -2
  85. data/lib/facet/enumerable/collect_with_index.rb +0 -51
  86. data/lib/facet/enumerable/commonality.rb +0 -63
  87. data/lib/facet/enumerable/compact_collect.rb +0 -50
  88. data/lib/facet/enumerable/compact_map.rb +0 -2
  89. data/lib/facet/enumerable/cross.rb +0 -44
  90. data/lib/facet/enumerable/each_by.rb +0 -2
  91. data/lib/facet/enumerable/each_combination.rb +0 -59
  92. data/lib/facet/enumerable/each_pair.rb +0 -50
  93. data/lib/facet/enumerable/each_permutation.rb +0 -2
  94. data/lib/facet/enumerable/each_slice.rb +0 -131
  95. data/lib/facet/enumerable/each_unique_pair.rb +0 -66
  96. data/lib/facet/enumerable/each_with_counter.rb +0 -8
  97. data/lib/facet/enumerable/elementwise.rb +0 -2
  98. data/lib/facet/enumerable/entropy.rb +0 -52
  99. data/lib/facet/enumerable/every.rb +0 -65
  100. data/lib/facet/enumerable/ew.rb +0 -64
  101. data/lib/facet/enumerable/filter_collect.rb +0 -58
  102. data/lib/facet/enumerable/filter_map.rb +0 -2
  103. data/lib/facet/enumerable/find_collisions.rb +0 -41
  104. data/lib/facet/enumerable/frequency.rb +0 -39
  105. data/lib/facet/enumerable/graph.rb +0 -59
  106. data/lib/facet/enumerable/ideal_entropy.rb +0 -49
  107. data/lib/facet/enumerable/map_with_counter.rb +0 -2
  108. data/lib/facet/enumerable/map_with_index.rb +0 -2
  109. data/lib/facet/enumerable/none.rb +0 -56
  110. data/lib/facet/enumerable/nonuniq.rb +0 -39
  111. data/lib/facet/enumerable/occur.rb +0 -62
  112. data/lib/facet/enumerable/one.rb +0 -65
  113. data/lib/facet/enumerable/op_pow.rb +0 -38
  114. data/lib/facet/enumerable/partition_by.rb +0 -55
  115. data/lib/facet/enumerable/permute.rb +0 -135
  116. data/lib/facet/enumerable/probability.rb +0 -59
  117. data/lib/facet/enumerable/project.rb +0 -11
  118. data/lib/facet/enumerable/self/combinations.rb +0 -68
  119. data/lib/facet/enumerable/self/cross.rb +0 -79
  120. data/lib/facet/enumerable/to_h.rb +0 -50
  121. data/lib/facet/enumerable/uniq_by.rb +0 -39
  122. data/lib/facet/enumerable/where.rb +0 -12
  123. data/lib/facet/file.rb +0 -5
  124. data/lib/facet/file/self/create.rb +0 -52
  125. data/lib/facet/file/self/open_as_string.rb +0 -81
  126. data/lib/facet/file/self/read_list.rb +0 -47
  127. data/lib/facet/file/self/sanitize.rb +0 -50
  128. data/lib/facet/file/self/split_all.rb +0 -36
  129. data/lib/facet/fileutils.rb +0 -0
  130. data/lib/facet/fileutils/head.rb +0 -2
  131. data/lib/facet/fileutils/safe_ln.rb +0 -38
  132. data/lib/facet/fileutils/slice.rb +0 -152
  133. data/lib/facet/fileutils/split_all.rb +0 -29
  134. data/lib/facet/fileutils/tail.rb +0 -2
  135. data/lib/facet/fileutils/wc.rb +0 -128
  136. data/lib/facet/fileutils/whereis.rb +0 -76
  137. data/lib/facet/fileutils/which.rb +0 -117
  138. data/lib/facet/float.rb +0 -3
  139. data/lib/facet/float/approx.rb +0 -42
  140. data/lib/facet/float/round_at.rb +0 -72
  141. data/lib/facet/float/round_to.rb +0 -73
  142. data/lib/facet/hash.rb +0 -40
  143. data/lib/facet/hash/alias.rb +0 -54
  144. data/lib/facet/hash/assert_has_keys.rb +0 -38
  145. data/lib/facet/hash/assert_has_only_keys.rb +0 -38
  146. data/lib/facet/hash/at.rb +0 -26
  147. data/lib/facet/hash/collate.rb +0 -53
  148. data/lib/facet/hash/delete_unless.rb +0 -15
  149. data/lib/facet/hash/each.rb +0 -61
  150. data/lib/facet/hash/each_with_index.rb +0 -35
  151. data/lib/facet/hash/each_with_key.rb +0 -32
  152. data/lib/facet/hash/graph.rb +0 -31
  153. data/lib/facet/hash/has_keys.rb +0 -37
  154. data/lib/facet/hash/has_only_keys.rb +0 -37
  155. data/lib/facet/hash/inverse.rb +0 -51
  156. data/lib/facet/hash/join.rb +0 -19
  157. data/lib/facet/hash/keys_to_iv.rb +0 -60
  158. data/lib/facet/hash/keys_to_s.rb +0 -80
  159. data/lib/facet/hash/keys_to_sym.rb +0 -91
  160. data/lib/facet/hash/op_fetch.rb +0 -146
  161. data/lib/facet/hash/op_lshift.rb +0 -28
  162. data/lib/facet/hash/op_store.rb +0 -2
  163. data/lib/facet/hash/rand_key.rb +0 -47
  164. data/lib/facet/hash/rand_pair.rb +0 -50
  165. data/lib/facet/hash/rand_value.rb +0 -60
  166. data/lib/facet/hash/replace_each.rb +0 -33
  167. data/lib/facet/hash/self/zipnew.rb +0 -37
  168. data/lib/facet/hash/shuffle.rb +0 -53
  169. data/lib/facet/hash/slice.rb +0 -33
  170. data/lib/facet/hash/stringify_keys.rb +0 -2
  171. data/lib/facet/hash/swap.rb +0 -36
  172. data/lib/facet/hash/swapkey.rb +0 -44
  173. data/lib/facet/hash/symoblize_keys.rb +0 -2
  174. data/lib/facet/hash/to_h.rb +0 -35
  175. data/lib/facet/hash/to_ostruct.rb +0 -40
  176. data/lib/facet/hash/to_ostruct_recurse.rb +0 -45
  177. data/lib/facet/hash/traverse.rb +0 -63
  178. data/lib/facet/hash/update_each.rb +0 -43
  179. data/lib/facet/hash/update_keys.rb +0 -31
  180. data/lib/facet/hash/update_values.rb +0 -32
  181. data/lib/facet/hash/variablize_keys.rb +0 -2
  182. data/lib/facet/hash/weave.rb +0 -88
  183. data/lib/facet/integer.rb +0 -8
  184. data/lib/facet/integer/even.rb +0 -2
  185. data/lib/facet/integer/fac.rb +0 -2
  186. data/lib/facet/integer/fact.rb +0 -2
  187. data/lib/facet/integer/factorial.rb +0 -61
  188. data/lib/facet/integer/multiple.rb +0 -69
  189. data/lib/facet/integer/odd.rb +0 -2
  190. data/lib/facet/integer/ordinal.rb +0 -41
  191. data/lib/facet/integer/times_collect.rb +0 -39
  192. data/lib/facet/integer/times_map.rb +0 -2
  193. data/lib/facet/kernel.rb +0 -65
  194. data/lib/facet/kernel/__DIR__.rb +0 -11
  195. data/lib/facet/kernel/__class__.rb +0 -31
  196. data/lib/facet/kernel/__meta__.rb +0 -28
  197. data/lib/facet/kernel/adhoc.rb +0 -11
  198. data/lib/facet/kernel/as.rb +0 -91
  199. data/lib/facet/kernel/assign_from.rb +0 -82
  200. data/lib/facet/kernel/assign_with.rb +0 -75
  201. data/lib/facet/kernel/autoreload.rb +0 -46
  202. data/lib/facet/kernel/autoreload_glob.rb +0 -36
  203. data/lib/facet/kernel/bool.rb +0 -77
  204. data/lib/facet/kernel/bug.rb +0 -39
  205. data/lib/facet/kernel/call_stack.rb +0 -59
  206. data/lib/facet/kernel/called.rb +0 -40
  207. data/lib/facet/kernel/complete.rb +0 -6
  208. data/lib/facet/kernel/constant.rb +0 -52
  209. data/lib/facet/kernel/copy.rb +0 -48
  210. data/lib/facet/kernel/deep_copy.rb +0 -49
  211. data/lib/facet/kernel/demo.rb +0 -46
  212. data/lib/facet/kernel/eigenclass.rb +0 -17
  213. data/lib/facet/kernel/false.rb +0 -2
  214. data/lib/facet/kernel/fn.rb +0 -33
  215. data/lib/facet/kernel/generate_method_name.rb +0 -39
  216. data/lib/facet/kernel/get_by_id.rb +0 -33
  217. data/lib/facet/kernel/here.rb +0 -34
  218. data/lib/facet/kernel/in.rb +0 -35
  219. data/lib/facet/kernel/instance_assign.rb +0 -25
  220. data/lib/facet/kernel/instvar.rb +0 -13
  221. data/lib/facet/kernel/is.rb +0 -5
  222. data/lib/facet/kernel/maybe.rb +0 -41
  223. data/lib/facet/kernel/me.rb +0 -17
  224. data/lib/facet/kernel/meta.rb +0 -2
  225. data/lib/facet/kernel/metaclass.rb +0 -42
  226. data/lib/facet/kernel/method.rb +0 -76
  227. data/lib/facet/kernel/method_name.rb +0 -49
  228. data/lib/facet/kernel/methods.rb +0 -79
  229. data/lib/facet/kernel/nack.rb +0 -12
  230. data/lib/facet/kernel/new.rb +0 -40
  231. data/lib/facet/kernel/object_class.rb +0 -31
  232. data/lib/facet/kernel/object_hexid.rb +0 -35
  233. data/lib/facet/kernel/op_esc.rb +0 -37
  234. data/lib/facet/kernel/own.rb +0 -17
  235. data/lib/facet/kernel/p.rb +0 -12
  236. data/lib/facet/kernel/require_all.rb +0 -44
  237. data/lib/facet/kernel/require_esc.rb +0 -42
  238. data/lib/facet/kernel/require_facet.rb +0 -41
  239. data/lib/facet/kernel/require_local.rb +0 -25
  240. data/lib/facet/kernel/resc.rb +0 -32
  241. data/lib/facet/kernel/returning.rb +0 -49
  242. data/lib/facet/kernel/send_as.rb +0 -34
  243. data/lib/facet/kernel/set_from.rb +0 -69
  244. data/lib/facet/kernel/set_with.rb +0 -74
  245. data/lib/facet/kernel/silence_warnings.rb +0 -2
  246. data/lib/facet/kernel/silently.rb +0 -41
  247. data/lib/facet/kernel/singleton.rb +0 -47
  248. data/lib/facet/kernel/superior.rb +0 -53
  249. data/lib/facet/kernel/supermethod.rb +0 -44
  250. data/lib/facet/kernel/this.rb +0 -33
  251. data/lib/facet/kernel/to_b.rb +0 -41
  252. data/lib/facet/kernel/to_bool.rb +0 -47
  253. data/lib/facet/kernel/true.rb +0 -2
  254. data/lib/facet/kernel/unuri.rb +0 -2
  255. data/lib/facet/kernel/uri.rb +0 -38
  256. data/lib/facet/kernel/val.rb +0 -52
  257. data/lib/facet/kernel/warn_with_line.rb +0 -30
  258. data/lib/facet/kernel/with_accessor.rb +0 -94
  259. data/lib/facet/kernel/with_reader.rb +0 -2
  260. data/lib/facet/kernel/with_writer.rb +0 -2
  261. data/lib/facet/logger.rb +0 -0
  262. data/lib/facet/logger/format.rb +0 -28
  263. data/lib/facet/logger/format_message.rb +0 -1
  264. data/lib/facet/matchdata.rb +0 -3
  265. data/lib/facet/matchdata/match.rb +0 -37
  266. data/lib/facet/matchdata/matchset.rb +0 -2
  267. data/lib/facet/matchdata/matchtree.rb +0 -62
  268. data/lib/facet/module.rb +0 -40
  269. data/lib/facet/module/abstract.rb +0 -50
  270. data/lib/facet/module/alias_module_function.rb +0 -57
  271. data/lib/facet/module/ancestor.rb +0 -38
  272. data/lib/facet/module/attr.rb +0 -23
  273. data/lib/facet/module/attr_setter.rb +0 -48
  274. data/lib/facet/module/attr_tester.rb +0 -56
  275. data/lib/facet/module/basename.rb +0 -39
  276. data/lib/facet/module/by_name.rb +0 -68
  277. data/lib/facet/module/cattr_accessor.rb +0 -141
  278. data/lib/facet/module/cattr_reader.rb +0 -2
  279. data/lib/facet/module/cattr_writer.rb +0 -2
  280. data/lib/facet/module/clone_removing.rb +0 -2
  281. data/lib/facet/module/clone_renaming.rb +0 -2
  282. data/lib/facet/module/clone_using.rb +0 -87
  283. data/lib/facet/module/dirname.rb +0 -42
  284. data/lib/facet/module/equate_on.rb +0 -70
  285. data/lib/facet/module/generate_instance_method_name.rb +0 -47
  286. data/lib/facet/module/include_as.rb +0 -102
  287. data/lib/facet/module/initializer.rb +0 -65
  288. data/lib/facet/module/instance_methods.rb +0 -186
  289. data/lib/facet/module/integrate.rb +0 -51
  290. data/lib/facet/module/is.rb +0 -34
  291. data/lib/facet/module/memoize.rb +0 -95
  292. data/lib/facet/module/modspace.rb +0 -43
  293. data/lib/facet/module/namespace.rb +0 -61
  294. data/lib/facet/module/nesting.rb +0 -45
  295. data/lib/facet/module/redef.rb +0 -31
  296. data/lib/facet/module/redefine_method.rb +0 -57
  297. data/lib/facet/module/redirect.rb +0 -30
  298. data/lib/facet/module/redirect_method.rb +0 -64
  299. data/lib/facet/module/remove.rb +0 -29
  300. data/lib/facet/module/rename.rb +0 -31
  301. data/lib/facet/module/rename_method.rb +0 -38
  302. data/lib/facet/module/revisal.rb +0 -49
  303. data/lib/facet/module/shadow_all.rb +0 -17
  304. data/lib/facet/module/shadow_method.rb +0 -42
  305. data/lib/facet/module/sort_on.rb +0 -73
  306. data/lib/facet/module/undef.rb +0 -29
  307. data/lib/facet/module/wrap.rb +0 -30
  308. data/lib/facet/module/wrap_method.rb +0 -48
  309. data/lib/facet/nilclass.rb +0 -7
  310. data/lib/facet/nilclass/empty.rb +0 -32
  311. data/lib/facet/nilclass/include.rb +0 -32
  312. data/lib/facet/nilclass/length.rb +0 -2
  313. data/lib/facet/nilclass/op_fetch.rb +0 -37
  314. data/lib/facet/nilclass/size.rb +0 -44
  315. data/lib/facet/nilclass/to_f.rb +0 -32
  316. data/lib/facet/nilclass/to_h.rb +0 -33
  317. data/lib/facet/numeric.rb +0 -5
  318. data/lib/facet/numeric/ceil_multiple.rb +0 -40
  319. data/lib/facet/numeric/pred.rb +0 -2
  320. data/lib/facet/numeric/succ.rb +0 -69
  321. data/lib/facet/numeric/to_b.rb +0 -38
  322. data/lib/facet/ostruct.rb +0 -0
  323. data/lib/facet/ostruct/__merge__.rb +0 -52
  324. data/lib/facet/ostruct/__table__.rb +0 -17
  325. data/lib/facet/ostruct/__update__.rb +0 -45
  326. data/lib/facet/ostruct/op_fetch.rb +0 -40
  327. data/lib/facet/ostruct/op_store.rb +0 -42
  328. data/lib/facet/ostruct/to_h.rb +0 -8
  329. data/lib/facet/pathname.rb +0 -2
  330. data/lib/facet/pathname/ascend.rb +0 -22
  331. data/lib/facet/pathname/descend.rb +0 -20
  332. data/lib/facet/proc.rb +0 -3
  333. data/lib/facet/proc/compose.rb +0 -62
  334. data/lib/facet/proc/op_mul.rb +0 -2
  335. data/lib/facet/proc/to_method.rb +0 -74
  336. data/lib/facet/range.rb +0 -4
  337. data/lib/facet/range/to_r.rb +0 -32
  338. data/lib/facet/range/to_range.rb +0 -36
  339. data/lib/facet/range/umbrella.rb +0 -67
  340. data/lib/facet/range/within.rb +0 -44
  341. data/lib/facet/regexp.rb +0 -3
  342. data/lib/facet/regexp/arity.rb +0 -41
  343. data/lib/facet/regexp/to_re.rb +0 -38
  344. data/lib/facet/regexp/to_regexp.rb +0 -36
  345. data/lib/facet/string.rb +0 -86
  346. data/lib/facet/string/align_center.rb +0 -87
  347. data/lib/facet/string/align_left.rb +0 -2
  348. data/lib/facet/string/align_right.rb +0 -2
  349. data/lib/facet/string/at.rb +0 -8
  350. data/lib/facet/string/at_rand.rb +0 -65
  351. data/lib/facet/string/basename.rb +0 -48
  352. data/lib/facet/string/blank.rb +0 -36
  353. data/lib/facet/string/bracket.rb +0 -70
  354. data/lib/facet/string/brief.rb +0 -33
  355. data/lib/facet/string/bytes.rb +0 -19
  356. data/lib/facet/string/camelcase.rb +0 -58
  357. data/lib/facet/string/camelize.rb +0 -35
  358. data/lib/facet/string/capitalized.rb +0 -38
  359. data/lib/facet/string/chars.rb +0 -34
  360. data/lib/facet/string/cmp.rb +0 -43
  361. data/lib/facet/string/demodulize.rb +0 -40
  362. data/lib/facet/string/dequote.rb +0 -29
  363. data/lib/facet/string/downcase.rb +0 -37
  364. data/lib/facet/string/dresner.rb +0 -49
  365. data/lib/facet/string/each_char.rb +0 -35
  366. data/lib/facet/string/each_word.rb +0 -50
  367. data/lib/facet/string/ends_with.rb +0 -2
  368. data/lib/facet/string/first.rb +0 -94
  369. data/lib/facet/string/first_char.rb +0 -20
  370. data/lib/facet/string/fold.rb +0 -67
  371. data/lib/facet/string/format.rb +0 -17
  372. data/lib/facet/string/frequency.rb +0 -39
  373. data/lib/facet/string/humanize.rb +0 -31
  374. data/lib/facet/string/indent.rb +0 -68
  375. data/lib/facet/string/index_all.rb +0 -40
  376. data/lib/facet/string/last.rb +0 -94
  377. data/lib/facet/string/last_char.rb +0 -22
  378. data/lib/facet/string/line_wrap.rb +0 -77
  379. data/lib/facet/string/lines.rb +0 -33
  380. data/lib/facet/string/lowercase.rb +0 -32
  381. data/lib/facet/string/margin.rb +0 -138
  382. data/lib/facet/string/mscan.rb +0 -42
  383. data/lib/facet/string/natcmp.rb +0 -108
  384. data/lib/facet/string/nchar.rb +0 -45
  385. data/lib/facet/string/ordinal.rb +0 -16
  386. data/lib/facet/string/plural.rb +0 -2
  387. data/lib/facet/string/pop.rb +0 -54
  388. data/lib/facet/string/probability.rb +0 -34
  389. data/lib/facet/string/pull.rb +0 -17
  390. data/lib/facet/string/push.rb +0 -44
  391. data/lib/facet/string/quote.rb +0 -68
  392. data/lib/facet/string/rand_byte.rb +0 -55
  393. data/lib/facet/string/rand_index.rb +0 -29
  394. data/lib/facet/string/range.rb +0 -37
  395. data/lib/facet/string/range_all.rb +0 -48
  396. data/lib/facet/string/range_of_line.rb +0 -42
  397. data/lib/facet/string/regesc.rb +0 -32
  398. data/lib/facet/string/self/format.rb +0 -17
  399. data/lib/facet/string/self/interpolate.rb +0 -31
  400. data/lib/facet/string/self/patterns.rb +0 -51
  401. data/lib/facet/string/self/rand_letter.rb +0 -34
  402. data/lib/facet/string/self/random.rb +0 -36
  403. data/lib/facet/string/shatter.rb +0 -45
  404. data/lib/facet/string/shift.rb +0 -42
  405. data/lib/facet/string/shuffle.rb +0 -42
  406. data/lib/facet/string/similarity.rb +0 -108
  407. data/lib/facet/string/singular.rb +0 -117
  408. data/lib/facet/string/slap.rb +0 -44
  409. data/lib/facet/string/soundex.rb +0 -102
  410. data/lib/facet/string/starts_with.rb +0 -24
  411. data/lib/facet/string/succ.rb +0 -38
  412. data/lib/facet/string/tab.rb +0 -2
  413. data/lib/facet/string/tabto.rb +0 -2
  414. data/lib/facet/string/to_a.rb +0 -35
  415. data/lib/facet/string/to_arr.rb +0 -55
  416. data/lib/facet/string/to_b.rb +0 -64
  417. data/lib/facet/string/to_const.rb +0 -39
  418. data/lib/facet/string/to_date.rb +0 -35
  419. data/lib/facet/string/to_proc.rb +0 -54
  420. data/lib/facet/string/to_re.rb +0 -46
  421. data/lib/facet/string/to_rx.rb +0 -2
  422. data/lib/facet/string/to_time.rb +0 -34
  423. data/lib/facet/string/unbracket.rb +0 -46
  424. data/lib/facet/string/underscore.rb +0 -18
  425. data/lib/facet/string/unix_crypt.rb +0 -41
  426. data/lib/facet/string/unpack.rb +0 -45
  427. data/lib/facet/string/unshift.rb +0 -42
  428. data/lib/facet/string/upcase.rb +0 -45
  429. data/lib/facet/string/uppercase.rb +0 -2
  430. data/lib/facet/string/whitespace.rb +0 -27
  431. data/lib/facet/string/word_filter.rb +0 -61
  432. data/lib/facet/string/word_wrap.rb +0 -90
  433. data/lib/facet/string/words.rb +0 -45
  434. data/lib/facet/symbol.rb +0 -13
  435. data/lib/facet/symbol/camelcase.rb +0 -42
  436. data/lib/facet/symbol/camelize.rb +0 -33
  437. data/lib/facet/symbol/capitalize.rb +0 -31
  438. data/lib/facet/symbol/capitalized.rb +0 -33
  439. data/lib/facet/symbol/downcase.rb +0 -36
  440. data/lib/facet/symbol/not.rb +0 -40
  441. data/lib/facet/symbol/pad.rb +0 -43
  442. data/lib/facet/symbol/succ.rb +0 -42
  443. data/lib/facet/symbol/to_const.rb +0 -40
  444. data/lib/facet/symbol/to_proc.rb +0 -45
  445. data/lib/facet/symbol/to_str.rb +0 -39
  446. data/lib/facet/symbol/underscore.rb +0 -32
  447. data/lib/facet/symbol/upcase.rb +0 -37
  448. data/lib/facet/time.rb +0 -7
  449. data/lib/facet/time/change.rb +0 -51
  450. data/lib/facet/time/elapse.rb +0 -41
  451. data/lib/facet/time/self/days_extrema.rb +0 -22
  452. data/lib/facet/time/stamp.rb +0 -47
  453. data/lib/facet/time/to_date.rb +0 -37
  454. data/lib/facet/time/to_s.rb +0 -33
  455. data/lib/facet/time/to_time.rb +0 -36
  456. data/lib/facet/unboundmethod.rb +0 -1
  457. data/lib/facet/unboundmethod/name.rb +0 -8
  458. data/lib/facets.rb +0 -200
  459. data/lib/facets/english/bytes.rb +0 -212
  460. data/lib/facets/english/multipliers.rb +0 -192
  461. data/lib/facets/english/ormsupport.rb +0 -233
  462. data/lib/facets/english/time.rb +0 -327
  463. data/lib/facets/group/inflect.rb +0 -71
  464. data/lib/facets/group/nilasemptiness.rb +0 -34
  465. data/lib/facets/group/random.rb +0 -21
  466. data/lib/facets/group/stringasarray.rb +0 -16
  467. data/lib/facets/method/README +0 -1
  468. data/lib/facets/support/functor.rb +0 -49
  469. data/setup.rb +0 -1551
  470. data/test/FIXTURE/create_file +0 -1
  471. data/test/FIXTURE/filelist/testfile.txt +0 -0
  472. data/test/FIXTURE/filelist/testfile2.txt +0 -0
  473. data/test/FIXTURE/ls_r/A.txt +0 -0
  474. data/test/FIXTURE/ls_r/A/B.txt +0 -0
  475. data/test/FIXTURE/ls_r/A/B/C.txt +0 -0
  476. data/test/FIXTURE/open_as_string_file +0 -1
  477. data/test/FIXTURE/read_list_file +0 -6
  478. data/test/FIXTURE/test_file.txt +0 -25
  479. data/test/FIXTURE/test_file2.txt +0 -25
  480. data/test/lib/facet/array/test_at_rand.rb +0 -34
  481. data/test/lib/facet/array/test_delete_unless.rb +0 -28
  482. data/test/lib/facet/array/test_delete_values.rb +0 -28
  483. data/test/lib/facet/array/test_delete_values_at.rb +0 -31
  484. data/test/lib/facet/array/test_first.rb +0 -46
  485. data/test/lib/facet/array/test_head.rb +0 -42
  486. data/test/lib/facet/array/test_last_index.rb +0 -26
  487. data/test/lib/facet/array/test_merge.rb +0 -35
  488. data/test/lib/facet/array/test_mid.rb +0 -33
  489. data/test/lib/facet/array/test_middle.rb +0 -29
  490. data/test/lib/facet/array/test_op_fetch.rb +0 -27
  491. data/test/lib/facet/array/test_op_store.rb +0 -30
  492. data/test/lib/facet/array/test_pick.rb +0 -40
  493. data/test/lib/facet/array/test_pos.rb +0 -28
  494. data/test/lib/facet/array/test_pull.rb +0 -28
  495. data/test/lib/facet/array/test_rand_index.rb +0 -29
  496. data/test/lib/facet/array/test_rand_subset.rb +0 -29
  497. data/test/lib/facet/array/test_range.rb +0 -32
  498. data/test/lib/facet/array/test_rotate.rb +0 -36
  499. data/test/lib/facet/array/test_select.rb +0 -28
  500. data/test/lib/facet/array/test_shuffle.rb +0 -35
  501. data/test/lib/facet/array/test_slap.rb +0 -28
  502. data/test/lib/facet/array/test_thru.rb +0 -27
  503. data/test/lib/facet/array/test_to_b.rb +0 -27
  504. data/test/lib/facet/array/test_to_h.rb +0 -33
  505. data/test/lib/facet/array/test_to_hash.rb +0 -27
  506. data/test/lib/facet/binding/self/test_of_caller.rb +0 -35
  507. data/test/lib/facet/binding/test___LINE__.rb +0 -43
  508. data/test/lib/facet/binding/test_call_stack.rb +0 -34
  509. data/test/lib/facet/binding/test_called.rb +0 -30
  510. data/test/lib/facet/binding/test_caller.rb +0 -35
  511. data/test/lib/facet/binding/test_defined.rb +0 -34
  512. data/test/lib/facet/binding/test_eval.rb +0 -34
  513. data/test/lib/facet/binding/test_local_variables.rb +0 -34
  514. data/test/lib/facet/binding/test_method_name.rb +0 -34
  515. data/test/lib/facet/binding/test_op_fetch.rb +0 -34
  516. data/test/lib/facet/binding/test_op_store.rb +0 -35
  517. data/test/lib/facet/binding/test_self.rb +0 -34
  518. data/test/lib/facet/class/test_descendents.rb +0 -30
  519. data/test/lib/facet/class/test_remove_descendents.rb +0 -32
  520. data/test/lib/facet/comparable/test_at_least.rb +0 -34
  521. data/test/lib/facet/comparable/test_clip.rb +0 -44
  522. data/test/lib/facet/comparable/test_cmp.rb +0 -28
  523. data/test/lib/facet/continuation/self/test_create.rb +0 -26
  524. data/test/lib/facet/date/test_days_in_month.rb +0 -30
  525. data/test/lib/facet/date/test_days_of_month.rb +0 -30
  526. data/test/lib/facet/date/test_stamp.rb +0 -38
  527. data/test/lib/facet/date/test_to_date.rb +0 -30
  528. data/test/lib/facet/date/test_to_s.rb +0 -30
  529. data/test/lib/facet/date/test_to_time.rb +0 -30
  530. data/test/lib/facet/dir/self/test_ancestor.rb +0 -26
  531. data/test/lib/facet/dir/self/test_ascend.rb +0 -41
  532. data/test/lib/facet/dir/self/test_ls_r.rb +0 -52
  533. data/test/lib/facet/enumerable/self/test_combinations.rb +0 -43
  534. data/test/lib/facet/enumerable/self/test_cross.rb +0 -31
  535. data/test/lib/facet/enumerable/test_collect_with_index.rb +0 -27
  536. data/test/lib/facet/enumerable/test_commonality.rb +0 -31
  537. data/test/lib/facet/enumerable/test_compact_collect.rb +0 -27
  538. data/test/lib/facet/enumerable/test_cross.rb +0 -30
  539. data/test/lib/facet/enumerable/test_each_combination.rb +0 -29
  540. data/test/lib/facet/enumerable/test_each_pair.rb +0 -29
  541. data/test/lib/facet/enumerable/test_each_slice.rb +0 -74
  542. data/test/lib/facet/enumerable/test_each_unique_pair.rb +0 -29
  543. data/test/lib/facet/enumerable/test_entropy.rb +0 -26
  544. data/test/lib/facet/enumerable/test_every.rb +0 -35
  545. data/test/lib/facet/enumerable/test_ew.rb +0 -31
  546. data/test/lib/facet/enumerable/test_filter_collect.rb +0 -31
  547. data/test/lib/facet/enumerable/test_find_collisions.rb +0 -30
  548. data/test/lib/facet/enumerable/test_frequency.rb +0 -27
  549. data/test/lib/facet/enumerable/test_graph.rb +0 -30
  550. data/test/lib/facet/enumerable/test_ideal_entropy.rb +0 -27
  551. data/test/lib/facet/enumerable/test_none.rb +0 -33
  552. data/test/lib/facet/enumerable/test_occur.rb +0 -30
  553. data/test/lib/facet/enumerable/test_one.rb +0 -35
  554. data/test/lib/facet/enumerable/test_op_pow.rb +0 -27
  555. data/test/lib/facet/enumerable/test_partition_by.rb +0 -31
  556. data/test/lib/facet/enumerable/test_permute.rb +0 -29
  557. data/test/lib/facet/enumerable/test_probability.rb +0 -27
  558. data/test/lib/facet/enumerable/test_to_h.rb +0 -27
  559. data/test/lib/facet/enumerable/test_uniq_by.rb +0 -28
  560. data/test/lib/facet/file/self/test_create.rb +0 -39
  561. data/test/lib/facet/file/self/test_open_as_string.rb +0 -40
  562. data/test/lib/facet/file/self/test_read_list.rb +0 -37
  563. data/test/lib/facet/file/self/test_sanitize.rb +0 -46
  564. data/test/lib/facet/file/self/test_split_all.rb +0 -27
  565. data/test/lib/facet/fileutils/test_slice.rb +0 -96
  566. data/test/lib/facet/fileutils/test_wc.rb +0 -68
  567. data/test/lib/facet/fileutils/test_which.rb +0 -61
  568. data/test/lib/facet/float/test_approx.rb +0 -28
  569. data/test/lib/facet/float/test_round_at.rb +0 -46
  570. data/test/lib/facet/float/test_round_to.rb +0 -46
  571. data/test/lib/facet/hash/self/test_zipnew.rb +0 -28
  572. data/test/lib/facet/hash/test_alias.rb +0 -31
  573. data/test/lib/facet/hash/test_assert_has_keys.rb +0 -27
  574. data/test/lib/facet/hash/test_assert_has_only_keys.rb +0 -27
  575. data/test/lib/facet/hash/test_at.rb +0 -28
  576. data/test/lib/facet/hash/test_collate.rb +0 -35
  577. data/test/lib/facet/hash/test_each.rb +0 -36
  578. data/test/lib/facet/hash/test_each_with_index.rb +0 -29
  579. data/test/lib/facet/hash/test_each_with_key.rb +0 -29
  580. data/test/lib/facet/hash/test_graph.rb +0 -28
  581. data/test/lib/facet/hash/test_has_keys.rb +0 -27
  582. data/test/lib/facet/hash/test_has_only_keys.rb +0 -27
  583. data/test/lib/facet/hash/test_inverse.rb +0 -28
  584. data/test/lib/facet/hash/test_keys_to_s.rb +0 -34
  585. data/test/lib/facet/hash/test_keys_to_sym.rb +0 -34
  586. data/test/lib/facet/hash/test_op_fetch.rb +0 -111
  587. data/test/lib/facet/hash/test_op_lshift.rb +0 -29
  588. data/test/lib/facet/hash/test_rand_key.rb +0 -27
  589. data/test/lib/facet/hash/test_rand_pair.rb +0 -27
  590. data/test/lib/facet/hash/test_rand_value.rb +0 -27
  591. data/test/lib/facet/hash/test_replace_each.rb +0 -29
  592. data/test/lib/facet/hash/test_shuffle.rb +0 -32
  593. data/test/lib/facet/hash/test_slice.rb +0 -27
  594. data/test/lib/facet/hash/test_swap.rb +0 -27
  595. data/test/lib/facet/hash/test_swapkey.rb +0 -29
  596. data/test/lib/facet/hash/test_to_h.rb +0 -27
  597. data/test/lib/facet/hash/test_to_ostruct.rb +0 -30
  598. data/test/lib/facet/hash/test_to_ostruct_recurse.rb +0 -30
  599. data/test/lib/facet/hash/test_traverse.rb +0 -37
  600. data/test/lib/facet/hash/test_update_each.rb +0 -29
  601. data/test/lib/facet/hash/test_update_keys.rb +0 -28
  602. data/test/lib/facet/hash/test_update_values.rb +0 -28
  603. data/test/lib/facet/hash/test_weave.rb +0 -29
  604. data/test/lib/facet/integer/test_factorial.rb +0 -30
  605. data/test/lib/facet/integer/test_multiple.rb +0 -43
  606. data/test/lib/facet/integer/test_ordinal.rb +0 -29
  607. data/test/lib/facet/integer/test_times_collect.rb +0 -28
  608. data/test/lib/facet/kernel/test___class__.rb +0 -26
  609. data/test/lib/facet/kernel/test_as.rb +0 -42
  610. data/test/lib/facet/kernel/test_assign_from.rb +0 -31
  611. data/test/lib/facet/kernel/test_assign_with.rb +0 -31
  612. data/test/lib/facet/kernel/test_bool.rb +0 -41
  613. data/test/lib/facet/kernel/test_bug.rb +0 -26
  614. data/test/lib/facet/kernel/test_call_stack.rb +0 -26
  615. data/test/lib/facet/kernel/test_called.rb +0 -26
  616. data/test/lib/facet/kernel/test_constant.rb +0 -33
  617. data/test/lib/facet/kernel/test_copy.rb +0 -40
  618. data/test/lib/facet/kernel/test_deep_copy.rb +0 -40
  619. data/test/lib/facet/kernel/test_demo.rb +0 -28
  620. data/test/lib/facet/kernel/test_fn.rb +0 -26
  621. data/test/lib/facet/kernel/test_generate_method_name.rb +0 -26
  622. data/test/lib/facet/kernel/test_get_by_id.rb +0 -28
  623. data/test/lib/facet/kernel/test_here.rb +0 -26
  624. data/test/lib/facet/kernel/test_in.rb +0 -27
  625. data/test/lib/facet/kernel/test_maybe.rb +0 -26
  626. data/test/lib/facet/kernel/test_metaclass.rb +0 -34
  627. data/test/lib/facet/kernel/test_method.rb +0 -32
  628. data/test/lib/facet/kernel/test_method_name.rb +0 -31
  629. data/test/lib/facet/kernel/test_methods.rb +0 -50
  630. data/test/lib/facet/kernel/test_new.rb +0 -30
  631. data/test/lib/facet/kernel/test_object_class.rb +0 -26
  632. data/test/lib/facet/kernel/test_object_hexid.rb +0 -27
  633. data/test/lib/facet/kernel/test_require_all.rb +0 -26
  634. data/test/lib/facet/kernel/test_require_esc.rb +0 -27
  635. data/test/lib/facet/kernel/test_require_facet.rb +0 -27
  636. data/test/lib/facet/kernel/test_resc.rb +0 -27
  637. data/test/lib/facet/kernel/test_returning.rb +0 -30
  638. data/test/lib/facet/kernel/test_send_as.rb +0 -26
  639. data/test/lib/facet/kernel/test_set_from.rb +0 -33
  640. data/test/lib/facet/kernel/test_set_with.rb +0 -33
  641. data/test/lib/facet/kernel/test_silently.rb +0 -28
  642. data/test/lib/facet/kernel/test_singleton.rb +0 -40
  643. data/test/lib/facet/kernel/test_superior.rb +0 -30
  644. data/test/lib/facet/kernel/test_supermethod.rb +0 -33
  645. data/test/lib/facet/kernel/test_this.rb +0 -26
  646. data/test/lib/facet/kernel/test_to_b.rb +0 -28
  647. data/test/lib/facet/kernel/test_to_bool.rb +0 -28
  648. data/test/lib/facet/kernel/test_uri.rb +0 -30
  649. data/test/lib/facet/kernel/test_val.rb +0 -43
  650. data/test/lib/facet/kernel/test_with_accessor.rb +0 -51
  651. data/test/lib/facet/matchdata/test_match.rb +0 -29
  652. data/test/lib/facet/matchdata/test_matchtree.rb +0 -32
  653. data/test/lib/facet/module/test_abstract.rb +0 -36
  654. data/test/lib/facet/module/test_alias_module_function.rb +0 -34
  655. data/test/lib/facet/module/test_ancestor.rb +0 -26
  656. data/test/lib/facet/module/test_basename.rb +0 -26
  657. data/test/lib/facet/module/test_by_name.rb +0 -29
  658. data/test/lib/facet/module/test_cattr_accessor.rb +0 -55
  659. data/test/lib/facet/module/test_clone_using.rb +0 -55
  660. data/test/lib/facet/module/test_dirname.rb +0 -26
  661. data/test/lib/facet/module/test_equate_on.rb +0 -37
  662. data/test/lib/facet/module/test_generate_instance_method_name.rb +0 -33
  663. data/test/lib/facet/module/test_include_as.rb +0 -35
  664. data/test/lib/facet/module/test_initializer.rb +0 -32
  665. data/test/lib/facet/module/test_instance_methods.rb +0 -59
  666. data/test/lib/facet/module/test_integrate.rb +0 -35
  667. data/test/lib/facet/module/test_memoize.rb +0 -50
  668. data/test/lib/facet/module/test_modspace.rb +0 -27
  669. data/test/lib/facet/module/test_namespace.rb +0 -33
  670. data/test/lib/facet/module/test_nesting.rb +0 -36
  671. data/test/lib/facet/module/test_redef.rb +0 -30
  672. data/test/lib/facet/module/test_redefine_method.rb +0 -30
  673. data/test/lib/facet/module/test_redirect.rb +0 -30
  674. data/test/lib/facet/module/test_redirect_method.rb +0 -30
  675. data/test/lib/facet/module/test_remove.rb +0 -30
  676. data/test/lib/facet/module/test_rename.rb +0 -31
  677. data/test/lib/facet/module/test_rename_method.rb +0 -31
  678. data/test/lib/facet/module/test_revisal.rb +0 -35
  679. data/test/lib/facet/module/test_shadow_method.rb +0 -30
  680. data/test/lib/facet/module/test_sort_on.rb +0 -42
  681. data/test/lib/facet/module/test_undef.rb +0 -30
  682. data/test/lib/facet/module/test_wrap.rb +0 -30
  683. data/test/lib/facet/module/test_wrap_method.rb +0 -30
  684. data/test/lib/facet/nilclass/test_empty.rb +0 -26
  685. data/test/lib/facet/nilclass/test_include.rb +0 -26
  686. data/test/lib/facet/nilclass/test_op_fetch.rb +0 -28
  687. data/test/lib/facet/nilclass/test_size.rb +0 -30
  688. data/test/lib/facet/nilclass/test_to_f.rb +0 -26
  689. data/test/lib/facet/nilclass/test_to_h.rb +0 -26
  690. data/test/lib/facet/numeric/test_ceil_multiple.rb +0 -31
  691. data/test/lib/facet/numeric/test_succ.rb +0 -40
  692. data/test/lib/facet/numeric/test_to_b.rb +0 -27
  693. data/test/lib/facet/ostruct/test___merge__.rb +0 -38
  694. data/test/lib/facet/ostruct/test___update__.rb +0 -29
  695. data/test/lib/facet/ostruct/test_op_fetch.rb +0 -27
  696. data/test/lib/facet/ostruct/test_op_store.rb +0 -28
  697. data/test/lib/facet/proc/test_compose.rb +0 -36
  698. data/test/lib/facet/proc/test_to_method.rb +0 -31
  699. data/test/lib/facet/range/test_to_r.rb +0 -27
  700. data/test/lib/facet/range/test_to_range.rb +0 -27
  701. data/test/lib/facet/range/test_umbrella.rb +0 -34
  702. data/test/lib/facet/range/test_within.rb +0 -29
  703. data/test/lib/facet/regexp/test_arity.rb +0 -33
  704. data/test/lib/facet/regexp/test_to_re.rb +0 -27
  705. data/test/lib/facet/regexp/test_to_regexp.rb +0 -27
  706. data/test/lib/facet/string/self/test_interpolate.rb +0 -27
  707. data/test/lib/facet/string/self/test_patterns.rb +0 -28
  708. data/test/lib/facet/string/self/test_rand_letter.rb +0 -26
  709. data/test/lib/facet/string/test_align_center.rb +0 -34
  710. data/test/lib/facet/string/test_at_rand.rb +0 -35
  711. data/test/lib/facet/string/test_basename.rb +0 -41
  712. data/test/lib/facet/string/test_blank.rb +0 -27
  713. data/test/lib/facet/string/test_bracket.rb +0 -49
  714. data/test/lib/facet/string/test_camelcase.rb +0 -39
  715. data/test/lib/facet/string/test_camelize.rb +0 -26
  716. data/test/lib/facet/string/test_capitalized.rb +0 -26
  717. data/test/lib/facet/string/test_chars.rb +0 -27
  718. data/test/lib/facet/string/test_cmp.rb +0 -30
  719. data/test/lib/facet/string/test_demodulize.rb +0 -38
  720. data/test/lib/facet/string/test_downcase.rb +0 -26
  721. data/test/lib/facet/string/test_dresner.rb +0 -32
  722. data/test/lib/facet/string/test_each_char.rb +0 -29
  723. data/test/lib/facet/string/test_each_word.rb +0 -29
  724. data/test/lib/facet/string/test_first.rb +0 -43
  725. data/test/lib/facet/string/test_fold.rb +0 -34
  726. data/test/lib/facet/string/test_frequency.rb +0 -28
  727. data/test/lib/facet/string/test_humanize.rb +0 -26
  728. data/test/lib/facet/string/test_indent.rb +0 -40
  729. data/test/lib/facet/string/test_index_all.rb +0 -26
  730. data/test/lib/facet/string/test_last.rb +0 -46
  731. data/test/lib/facet/string/test_line_wrap.rb +0 -27
  732. data/test/lib/facet/string/test_lines.rb +0 -26
  733. data/test/lib/facet/string/test_lowercase.rb +0 -26
  734. data/test/lib/facet/string/test_margin.rb +0 -117
  735. data/test/lib/facet/string/test_mscan.rb +0 -30
  736. data/test/lib/facet/string/test_natcmp.rb +0 -30
  737. data/test/lib/facet/string/test_nchar.rb +0 -29
  738. data/test/lib/facet/string/test_pop.rb +0 -47
  739. data/test/lib/facet/string/test_probability.rb +0 -28
  740. data/test/lib/facet/string/test_push.rb +0 -40
  741. data/test/lib/facet/string/test_quote.rb +0 -49
  742. data/test/lib/facet/string/test_rand_byte.rb +0 -35
  743. data/test/lib/facet/string/test_rand_index.rb +0 -26
  744. data/test/lib/facet/string/test_range.rb +0 -27
  745. data/test/lib/facet/string/test_range_all.rb +0 -27
  746. data/test/lib/facet/string/test_range_of_line.rb +0 -28
  747. data/test/lib/facet/string/test_regesc.rb +0 -28
  748. data/test/lib/facet/string/test_shatter.rb +0 -29
  749. data/test/lib/facet/string/test_shift.rb +0 -40
  750. data/test/lib/facet/string/test_shuffle.rb +0 -27
  751. data/test/lib/facet/string/test_similarity.rb +0 -26
  752. data/test/lib/facet/string/test_singular.rb +0 -32
  753. data/test/lib/facet/string/test_slap.rb +0 -40
  754. data/test/lib/facet/string/test_soundex.rb +0 -41
  755. data/test/lib/facet/string/test_succ.rb +0 -29
  756. data/test/lib/facet/string/test_to_a.rb +0 -27
  757. data/test/lib/facet/string/test_to_arr.rb +0 -26
  758. data/test/lib/facet/string/test_to_b.rb +0 -41
  759. data/test/lib/facet/string/test_to_const.rb +0 -28
  760. data/test/lib/facet/string/test_to_date.rb +0 -30
  761. data/test/lib/facet/string/test_to_proc.rb +0 -33
  762. data/test/lib/facet/string/test_to_re.rb +0 -28
  763. data/test/lib/facet/string/test_to_time.rb +0 -30
  764. data/test/lib/facet/string/test_unix_crypt.rb +0 -30
  765. data/test/lib/facet/string/test_unpack.rb +0 -34
  766. data/test/lib/facet/string/test_unshift.rb +0 -39
  767. data/test/lib/facet/string/test_upcase.rb +0 -30
  768. data/test/lib/facet/string/test_whitespace.rb +0 -27
  769. data/test/lib/facet/string/test_word_filter.rb +0 -34
  770. data/test/lib/facet/string/test_word_wrap.rb +0 -51
  771. data/test/lib/facet/string/test_words.rb +0 -37
  772. data/test/lib/facet/symbol/test_camelcase.rb +0 -26
  773. data/test/lib/facet/symbol/test_camelize.rb +0 -27
  774. data/test/lib/facet/symbol/test_capitalize.rb +0 -26
  775. data/test/lib/facet/symbol/test_capitalized.rb +0 -27
  776. data/test/lib/facet/symbol/test_downcase.rb +0 -27
  777. data/test/lib/facet/symbol/test_not.rb +0 -29
  778. data/test/lib/facet/symbol/test_pad.rb +0 -27
  779. data/test/lib/facet/symbol/test_succ.rb +0 -28
  780. data/test/lib/facet/symbol/test_to_const.rb +0 -28
  781. data/test/lib/facet/symbol/test_to_proc.rb +0 -27
  782. data/test/lib/facet/symbol/test_to_str.rb +0 -28
  783. data/test/lib/facet/symbol/test_underscore.rb +0 -26
  784. data/test/lib/facet/symbol/test_upcase.rb +0 -27
  785. data/test/lib/facet/time/test_change.rb +0 -33
  786. data/test/lib/facet/time/test_elapse.rb +0 -27
  787. data/test/lib/facet/time/test_stamp.rb +0 -31
  788. data/test/lib/facet/time/test_to_date.rb +0 -31
  789. data/test/lib/facet/time/test_to_s.rb +0 -31
  790. data/test/lib/facet/time/test_to_time.rb +0 -31
  791. data/test/lib/facets/english/test_bytes.rb +0 -84
  792. data/test/lib/facets/english/test_multipliers.rb +0 -114
  793. data/test/lib/facets/english/test_time.rb +0 -73
  794. data/test/testdir.rb +0 -8
@@ -1,39 +0,0 @@
1
- # _____ _
2
- # |_ _|__ ___| |_
3
- # | |/ _ \/ __| __|
4
- # | | __/\__ \ |_
5
- # |_|\___||___/\__|
6
- #
7
- # for lib/facet/file/self/create.rb
8
- #
9
- # Extracted Sun Dec 04 13:57:47 EST 2005
10
- # Unit Tools Reap Test Extractor
11
- #
12
-
13
- require 'facet/file/self/create.rb'
14
-
15
-
16
- require 'test/unit'
17
-
18
- # FIND TEST DIRECTORY
19
- paths = File.expand_path(File.dirname(__FILE__)).split('/')
20
- paths.size.downto(1) do |i|
21
- f = (paths.slice(0..i)+['test']).join('/')
22
- $TESTDIR = File.join(f,'FIXTURE') if File.directory?(f)
23
- end
24
- raise unless $TESTDIR
25
-
26
- class TC_CREATE < Test::Unit::TestCase
27
-
28
- def test_create
29
- f = File.join( $TESTDIR, 'create_file' )
30
- t = 'This is a test'
31
- File.create( f, t )
32
- assert( File.exists?( f ) )
33
- s = File.read( f )
34
- assert_equal( t, s )
35
- end
36
-
37
- end
38
-
39
-
@@ -1,40 +0,0 @@
1
- # _____ _
2
- # |_ _|__ ___| |_
3
- # | |/ _ \/ __| __|
4
- # | | __/\__ \ |_
5
- # |_|\___||___/\__|
6
- #
7
- # for lib/facet/file/self/open_as_string.rb
8
- #
9
- # Extracted Sun Dec 04 13:57:47 EST 2005
10
- # Unit Tools Reap Test Extractor
11
- #
12
-
13
- require 'facet/file/self/open_as_string.rb'
14
-
15
-
16
- require 'test/unit'
17
-
18
- # FIND TEST DIRECTORY
19
- paths = File.expand_path(File.dirname(__FILE__)).split('/')
20
- paths.size.downto(1) do |i|
21
- f = (paths.slice(0..i)+['test']).join('/')
22
- $TESTDIR = File.join(f,'FIXTURE') if File.directory?(f)
23
- end
24
- raise unless $TESTDIR
25
-
26
- class TC_OPEN_AS_STRING < Test::Unit::TestCase
27
-
28
- def test_open_as_string
29
- f = File.join( $TESTDIR, 'open_as_string_file' )
30
- t = 'This is a test'
31
- File.open( f, 'w' ) { |s| s << t }
32
- assert( File.exists?( f ) )
33
- File.open_as_string(f) { |s| s.reverse! }
34
- s = File.read( f )
35
- assert_equal( t.reverse, s )
36
- end
37
-
38
- end
39
-
40
-
@@ -1,37 +0,0 @@
1
- # _____ _
2
- # |_ _|__ ___| |_
3
- # | |/ _ \/ __| __|
4
- # | | __/\__ \ |_
5
- # |_|\___||___/\__|
6
- #
7
- # for lib/facet/file/self/read_list.rb
8
- #
9
- # Extracted Sun Dec 04 13:57:47 EST 2005
10
- # Unit Tools Reap Test Extractor
11
- #
12
-
13
- require 'facet/file/self/read_list.rb'
14
-
15
-
16
- require 'test/unit'
17
-
18
- # FIND TEST DIRECTORY
19
- paths = File.expand_path(File.dirname(__FILE__)).split('/')
20
- paths.size.downto(1) do |i|
21
- f = (paths.slice(0..i)+['test']).join('/')
22
- $TESTDIR = File.join(f,'FIXTURE') if File.directory?(f)
23
- end
24
- raise unless $TESTDIR
25
-
26
- class TC_READ_LIST < Test::Unit::TestCase
27
-
28
- def test_read_list
29
- f = File.join( $TESTDIR, 'read_list_file' )
30
- s = File.read_list( f )
31
- r = ['A','B','C']
32
- assert_equal( r, s )
33
- end
34
-
35
- end
36
-
37
-
@@ -1,46 +0,0 @@
1
- # _____ _
2
- # |_ _|__ ___| |_
3
- # | |/ _ \/ __| __|
4
- # | | __/\__ \ |_
5
- # |_|\___||___/\__|
6
- #
7
- # for lib/facet/file/self/sanitize.rb
8
- #
9
- # Extracted Sun Dec 04 13:57:47 EST 2005
10
- # Unit Tools Reap Test Extractor
11
- #
12
-
13
- require 'facet/file/self/sanitize.rb'
14
-
15
-
16
- require 'test/unit'
17
-
18
- class TCFile < Test::Unit::TestCase
19
-
20
- def test_01_001
21
- assert_equal( "This_is_a_test", File.sanitize('This is a test') )
22
- end
23
-
24
- def test_01_001
25
- assert_equal( "test", File.sanitize('This\is\test') )
26
- end
27
-
28
- def test_01_001
29
- assert_equal( "test", File.sanitize('This/is/test') )
30
- end
31
-
32
- def test_01_001
33
- assert_equal( "te_____st", File.sanitize('This/te#$#@!st') )
34
- end
35
-
36
- def test_01_001
37
- assert_equal( "_.", File.sanitize('.') )
38
- end
39
-
40
- def test_01_001
41
- assert_equal( "_....", File.sanitize('....') )
42
- end
43
-
44
- end
45
-
46
-
@@ -1,27 +0,0 @@
1
- # _____ _
2
- # |_ _|__ ___| |_
3
- # | |/ _ \/ __| __|
4
- # | | __/\__ \ |_
5
- # |_|\___||___/\__|
6
- #
7
- # for lib/facet/file/self/split_all.rb
8
- #
9
- # Extracted Sun Dec 04 13:57:47 EST 2005
10
- # Unit Tools Reap Test Extractor
11
- #
12
-
13
- require 'facet/file/self/split_all.rb'
14
-
15
-
16
- require 'test/unit'
17
-
18
- class TCFile < Test::Unit::TestCase
19
-
20
- def test_split_all
21
- fp = "this/is/test"
22
- assert_equal( ['this', 'is', 'test'], File.split_all(fp) )
23
- end
24
-
25
- end
26
-
27
-
@@ -1,96 +0,0 @@
1
- # _____ _
2
- # |_ _|__ ___| |_
3
- # | |/ _ \/ __| __|
4
- # | | __/\__ \ |_
5
- # |_|\___||___/\__|
6
- #
7
- # for lib/facet/fileutils/slice.rb
8
- #
9
- # Extracted Sun Dec 04 13:19:24 EST 2005
10
- # Unit Tools Reap Test Extractor
11
- #
12
-
13
- require 'facet/fileutils/slice.rb'
14
-
15
-
16
- require 'test/unit'
17
-
18
- # FIND TEST DIRECTORY
19
- paths = File.expand_path(File.dirname(__FILE__)).split('/')
20
- paths.size.downto(1) do |i|
21
- f = (paths.slice(0..i)+['test']).join('/')
22
- $TESTDIR = File.join(f,'FIXTURE') if File.directory?(f)
23
- end
24
- raise unless $TESTDIR
25
-
26
- class TC_FileUtils_HeadTail < Test::Unit::TestCase
27
-
28
- def setup
29
- @workdir = Dir.getwd
30
- @thisdir = $TESTDIR
31
-
32
- @tfile = 'test_file.txt'
33
-
34
- @expected_head1 = ["line1\n","line2\n","line3\n","line4\n","line5\n"]
35
- @expected_head1.push("line6\n","line7\n","line8\n","line9\n","line10\n")
36
- @expected_head2 = ["line1\n","line2\n","line3\n","line4\n","line5\n"]
37
-
38
- @expected_tail1 = ["line16\n","line17\n","line18\n","line19\n","line20\n"]
39
- @expected_tail1.push("line21\n","line22\n","line23\n","line24\n","line25\n")
40
- @expected_tail2 = ["line21\n","line22\n","line23\n","line24\n","line25\n"]
41
-
42
- @expected_body1 = ["line10\n", "line11\n", "line12\n", "line13\n", "line14\n"]
43
- @expected_body1.push("line15\n","line16\n", "line17\n", "line18\n", "line19\n","line20\n")
44
- @expected_body2 = ["line14\n","line15\n","line16\n","line17\n","line18\n","line19\n","line20\n"]
45
- @expected_body3 = ["line5\n","line6\n","line7\n","line8\n","line9\n","line10\n"]
46
- end
47
-
48
- def test_method
49
- assert_respond_to( FileUtils, :head )
50
- assert_respond_to( FileUtils, :tail )
51
- assert_respond_to( FileUtils, :slice )
52
- end
53
-
54
- # head
55
-
56
- def test_head
57
- Dir.chdir @thisdir
58
- begin
59
- assert_nothing_raised{ FileUtils.head(@tfile) }
60
- assert_nothing_raised{ FileUtils.head(@tfile,5) }
61
- assert_equal(@expected_head1,FileUtils.head(@tfile))
62
- assert_equal(@expected_head2,FileUtils.head(@tfile,5))
63
- ensure
64
- Dir.chdir @workdir
65
- end
66
- end
67
-
68
- # slice
69
-
70
- def test_slice
71
- Dir.chdir @thisdir
72
- begin
73
- assert_nothing_raised{ FileUtils.slice(@tfile,5,10) }
74
- assert_equal(@expected_body3,FileUtils.slice(@tfile,5,10))
75
- ensure
76
- Dir.chdir @workdir
77
- end
78
- end
79
-
80
- # tail
81
-
82
- def test_tail
83
- Dir.chdir @thisdir
84
- begin
85
- assert_nothing_raised{ FileUtils.tail(@tfile) }
86
- assert_nothing_raised{ FileUtils.tail(@tfile,5) }
87
- assert_equal(@expected_tail1,FileUtils.tail(@tfile))
88
- assert_equal(@expected_tail2,FileUtils.tail(@tfile,5))
89
- ensure
90
- Dir.chdir @workdir
91
- end
92
- end
93
-
94
- end
95
-
96
-
@@ -1,68 +0,0 @@
1
- # _____ _
2
- # |_ _|__ ___| |_
3
- # | |/ _ \/ __| __|
4
- # | | __/\__ \ |_
5
- # |_|\___||___/\__|
6
- #
7
- # for lib/facet/fileutils/wc.rb
8
- #
9
- # Extracted Sun Dec 04 13:57:47 EST 2005
10
- # Unit Tools Reap Test Extractor
11
- #
12
-
13
- require 'facet/fileutils/wc.rb'
14
-
15
-
16
- require 'test/unit'
17
-
18
- # FIND TEST DIRECTORY
19
- paths = File.expand_path(File.dirname(__FILE__)).split('/')
20
- paths.size.downto(1) do |i|
21
- f = (paths.slice(0..i)+['test']).join('/')
22
- $TESTDIR = File.join(f,'FIXTURE') if File.directory?(f)
23
- end
24
- raise unless $TESTDIR
25
-
26
- class TC_FileUtils_WC < Test::Unit::TestCase
27
-
28
- def setup
29
- @workdir = Dir.getwd
30
- @thisdir = $TESTDIR
31
-
32
- @file = 'test_file.txt'
33
- end
34
-
35
- def test_method
36
- assert_respond_to( FileUtils, :wc )
37
- end
38
-
39
- def test_wc
40
- Dir.chdir @thisdir
41
- begin
42
- assert_nothing_raised{ FileUtils.wc(@file) }
43
- assert_nothing_raised{ FileUtils.wc(@file,'bytes') }
44
- assert_nothing_raised{ FileUtils.wc(@file,'chars') }
45
- assert_nothing_raised{ FileUtils.wc(@file,'words') }
46
- assert_nothing_raised{ FileUtils.wc(@file,'lines') }
47
- assert_raises(RuntimeError){ FileUtils.wc(@file,'bogus') }
48
- ensure
49
- Dir.chdir @workdir
50
- end
51
- end
52
-
53
- def test_wc_results
54
- Dir.chdir @thisdir
55
- begin
56
- assert_equal([166,166,25,25],FileUtils.wc(@file))
57
- assert_equal(166,FileUtils.wc(@file,'bytes'),"Wrong number of bytes")
58
- assert_equal(166,FileUtils.wc(@file,'chars'),"Wrong number of chars")
59
- assert_equal(25,FileUtils.wc(@file,'words'),"Wrong number of words")
60
- assert_equal(25,FileUtils.wc(@file,'lines'),"Wrong number of lines")
61
- ensure
62
- Dir.chdir @workdir
63
- end
64
- end
65
-
66
- end
67
-
68
-
@@ -1,61 +0,0 @@
1
- # _____ _
2
- # |_ _|__ ___| |_
3
- # | |/ _ \/ __| __|
4
- # | | __/\__ \ |_
5
- # |_|\___||___/\__|
6
- #
7
- # for lib/facet/fileutils/which.rb
8
- #
9
- # Extracted Sun Dec 04 13:57:47 EST 2005
10
- # Unit Tools Reap Test Extractor
11
- #
12
-
13
- require 'facet/fileutils/which.rb'
14
-
15
-
16
- require 'test/unit'
17
- require 'rbconfig'
18
-
19
- # FIND TEST DIRECTORY
20
- paths = File.expand_path(File.dirname(__FILE__)).split('/')
21
- paths.size.downto(1) do |i|
22
- f = (paths.slice(0..i)+['test']).join('/')
23
- $TESTDIR = File.join(f,'FIXTURE') if File.directory?(f)
24
- end
25
- raise unless $TESTDIR
26
-
27
- class TC_FileUtils_Which < Test::Unit::TestCase
28
- include Config
29
-
30
- def setup
31
- @workdir = Dir.getwd
32
- @thisdir = $TESTDIR
33
-
34
- @expected_ruby_exe = File.join( CONFIG['bindir'], CONFIG['ruby_install_name'] )
35
- if File::ALT_SEPARATOR
36
- @expected_ruby_exe.gsub!(/\//,'\\')
37
- @expected_ruby_exe += ".exe"
38
- end
39
- end
40
-
41
- def test_method
42
- assert_respond_to( FileUtils, :which )
43
- end
44
-
45
- # which
46
-
47
- def test_which
48
- Dir.chdir @thisdir
49
- begin
50
- ruby_exe = nil
51
- assert_nothing_raised { ruby_exe = FileUtils.which(CONFIG['ruby_install_name']) }
52
- assert_equal(@expected_ruby_exe, ruby_exe)
53
- assert_equal(nil, FileUtils.which("blahblah"))
54
- ensure
55
- Dir.chdir @workdir
56
- end
57
- end
58
-
59
- end
60
-
61
-
@@ -1,28 +0,0 @@
1
- # _____ _
2
- # |_ _|__ ___| |_
3
- # | |/ _ \/ __| __|
4
- # | | __/\__ \ |_
5
- # |_|\___||___/\__|
6
- #
7
- # for lib/facet/float/approx.rb
8
- #
9
- # Extracted Sun Dec 04 13:57:47 EST 2005
10
- # Unit Tools Reap Test Extractor
11
- #
12
-
13
- require 'facet/float/approx.rb'
14
-
15
-
16
- require 'test/unit'
17
-
18
- class TCFloat < Test::Unit::TestCase
19
-
20
- def test_approx?
21
- f = 10.006
22
- assert( f.approx?(10.01) )
23
- assert( f.approx?(10, 0.1) )
24
- end
25
-
26
- end
27
-
28
-