facets 2.9.1 → 2.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1317) hide show
  1. data/.gitignore +11 -0
  2. data/.locat +24 -0
  3. data/.reap/ignore +1 -0
  4. data/.reap/yard.reap +42 -0
  5. data/.ruby +57 -0
  6. data/.test +31 -0
  7. data/.yard/core.yardopts +7 -0
  8. data/.yard/standard.yardopts +7 -0
  9. data/.yard/supplemental.yardopts +7 -0
  10. data/.yard/uncommon.yardopts +7 -0
  11. data/{AUTHORS → AUTHORS.rdoc} +2 -0
  12. data/Assembly +38 -0
  13. data/GPL3.txt +282 -0
  14. data/HISTORY.rdoc +28 -3
  15. data/MANIFEST +1107 -0
  16. data/NOTICE.rdoc +167 -0
  17. data/{PROFILE → Profile} +10 -7
  18. data/README.rdoc +3 -3
  19. data/{COPYING → RUBY.txt} +0 -0
  20. data/Rakefile +58 -15
  21. data/VERSION +1 -1
  22. data/facets.gemspec +152 -0
  23. data/lib/core-uncommon/facets/class/singleton.rb +8 -0
  24. data/lib/core-uncommon/facets/module/let.rb +27 -0
  25. data/lib/{core → core-uncommon}/facets/module/method_clash.rb +2 -1
  26. data/lib/core-uncommon/facets/string/acronym.rb +8 -0
  27. data/lib/core/facets.rb +81 -7
  28. data/lib/core/facets.yml +51 -1138
  29. data/lib/core/facets/array.rb +93 -5
  30. data/lib/core/facets/binding.rb +36 -4
  31. data/lib/core/facets/class.rb +14 -4
  32. data/lib/core/facets/comparable.rb +18 -4
  33. data/lib/core/facets/comparable/cap.rb +1 -1
  34. data/lib/core/facets/comparable/clip.rb +1 -1
  35. data/lib/core/facets/dir.rb +16 -4
  36. data/lib/core/facets/enumerable.rb +74 -4
  37. data/lib/core/facets/enumerable/map_with.rb +18 -0
  38. data/lib/core/facets/enumerable/zip_map.rb +1 -0
  39. data/lib/core/facets/exception.rb +11 -4
  40. data/lib/core/facets/exception/detail.rb +5 -1
  41. data/lib/core/facets/file.rb +30 -4
  42. data/lib/core/facets/filetest.rb +16 -4
  43. data/lib/core/facets/float.rb +6 -4
  44. data/lib/core/facets/hash.rb +108 -4
  45. data/lib/core/facets/hash/delete_values.rb +10 -1
  46. data/lib/core/facets/hash/slice.rb +5 -0
  47. data/lib/core/facets/integer.rb +20 -4
  48. data/lib/core/facets/kernel.rb +140 -4
  49. data/lib/core/facets/kernel/object_hexid.rb +4 -4
  50. data/lib/core/facets/matchdata.rb +8 -4
  51. data/lib/core/facets/method.rb +6 -4
  52. data/lib/core/facets/module.rb +86 -4
  53. data/lib/core/facets/module/redefine_method.rb +4 -2
  54. data/lib/core/facets/module/redirect_method.rb +1 -0
  55. data/lib/core/facets/nilclass.rb +8 -4
  56. data/lib/core/facets/numeric.rb +18 -4
  57. data/lib/core/facets/object.rb +14 -4
  58. data/lib/core/facets/objectspace.rb +10 -4
  59. data/lib/core/facets/proc.rb +18 -4
  60. data/lib/core/facets/process.rb +6 -4
  61. data/lib/core/facets/range.rb +14 -4
  62. data/lib/core/facets/regexp.rb +14 -4
  63. data/lib/core/facets/string.rb +134 -4
  64. data/lib/core/facets/struct.rb +6 -4
  65. data/lib/core/facets/symbol.rb +30 -4
  66. data/lib/core/facets/time.rb +34 -4
  67. data/lib/core/facets/unboundmethod.rb +8 -4
  68. data/lib/standard/facets/fileutils/ln_r.rb +83 -76
  69. data/lib/standard/facets/shellwords.rb +30 -0
  70. data/lib/supplemental/facets/enumargs.rb +195 -0
  71. data/lib/supplemental/facets/platform.rb +1 -1
  72. data/rdoc.assembly +50 -0
  73. data/site/.brite +2 -0
  74. data/site/assets/hover.js +14 -0
  75. data/site/assets/rdocs.js +28 -0
  76. data/site/assets/site.css +324 -0
  77. data/site/assets/syntax.css +60 -0
  78. data/site/atom.page +25 -0
  79. data/site/atom.xml +20 -0
  80. data/site/brite.yml +3 -0
  81. data/site/default.layout +114 -0
  82. data/site/index.html +110 -0
  83. data/site/index.page +94 -0
  84. data/site/learn.html +110 -0
  85. data/site/learn.page +78 -0
  86. data/site/media/APIdocs.png +0 -0
  87. data/site/media/RubyFacets.png +0 -0
  88. data/site/media/RubyFacetsShadow.png +0 -0
  89. data/site/media/RubyFacetsShadow2.png +0 -0
  90. data/site/media/RubyFacetsShadowFade.png +0 -0
  91. data/site/media/SPYlights.png +0 -0
  92. data/site/media/WeHeartFacets.png +0 -0
  93. data/site/media/abc.png +0 -0
  94. data/site/media/abc1.png +0 -0
  95. data/site/media/adverts/21-5G3Eta1L._AA_SL160_.jpg +0 -0
  96. data/site/media/adverts/21B53PF6W5L._AA_SL160_.jpg +0 -0
  97. data/site/media/adverts/21OsAAT9MaL._AA_SL160_.jpg +0 -0
  98. data/site/media/adverts/21PYg8IoswL._AA_SL160_.jpg +0 -0
  99. data/site/media/adverts/21WvvRAsbhL._AA_SL160_.jpg +0 -0
  100. data/site/media/adverts/amazon.html +30 -0
  101. data/site/media/adverts/rdoc.html +15 -0
  102. data/site/media/appleslice.jpg +0 -0
  103. data/site/media/clear.gif +0 -0
  104. data/site/media/core.jpg +0 -0
  105. data/site/media/fade_black_down.png +0 -0
  106. data/site/media/fade_blue_down.gif +0 -0
  107. data/site/media/fade_blue_up.gif +0 -0
  108. data/site/media/fade_red_down.png +0 -0
  109. data/site/media/fade_red_up (copy).png +0 -0
  110. data/site/media/fade_red_up.png +0 -0
  111. data/site/media/fade_yellow_down.jpg +0 -0
  112. data/site/media/fade_yellow_right.jpg +0 -0
  113. data/site/media/fade_yellow_up.jpg +0 -0
  114. data/site/media/favicon.ico +0 -0
  115. data/site/media/forkme.png +0 -0
  116. data/site/media/gray.jpg +0 -0
  117. data/site/media/heart.gif +0 -0
  118. data/site/media/itcamefrom.png +0 -0
  119. data/site/media/license.jpg +0 -0
  120. data/site/media/lightbulb.jpg +0 -0
  121. data/site/media/menu_bkg.png +0 -0
  122. data/site/media/mini.png +0 -0
  123. data/site/media/nitro.png +0 -0
  124. data/site/media/patch125.jpg +0 -0
  125. data/site/media/people.jpg +0 -0
  126. data/site/media/reap.png +0 -0
  127. data/site/media/ruby-lg.png +0 -0
  128. data/site/media/ruby.gif +0 -0
  129. data/site/media/temp.png +0 -0
  130. data/site/media/treetop.jpg +0 -0
  131. data/site/news.html +110 -0
  132. data/site/news.page +22 -0
  133. data/site/post.layout +23 -0
  134. data/site/posts/2008-01-01-how-facets-was-born.html +110 -0
  135. data/site/posts/2008-01-01-how-facets-was-born.post +26 -0
  136. data/site/posts/2008-03-24-release-2-4.html +110 -0
  137. data/site/posts/2008-03-24-release-2-4.post +61 -0
  138. data/site/posts/2009-07-21-new-website.html +110 -0
  139. data/site/posts/2009-07-21-new-website.post +17 -0
  140. data/site/posts/2009-08-22-release-2-7.html +110 -0
  141. data/site/posts/2009-08-22-release-2-7.post +130 -0
  142. data/site/posts/2009-11-09-release-2-8.html +110 -0
  143. data/site/posts/2009-11-09-release-2-8.post +61 -0
  144. data/site/posts/2010-09-01-release-2-9.html +110 -0
  145. data/site/posts/2010-09-01-release-2-9.post +39 -0
  146. data/site/source.html +110 -0
  147. data/site/source.page +46 -0
  148. data/src/core-uncommon/facets/array/median.rb +17 -0
  149. data/src/core-uncommon/facets/array/op_pow.rb +9 -0
  150. data/src/core-uncommon/facets/array/percentile.rb +32 -0
  151. data/src/core-uncommon/facets/class/preallocate.rb +52 -0
  152. data/src/core-uncommon/facets/class/singleton.rb +8 -0
  153. data/src/core-uncommon/facets/enumerable/has.rb +22 -0
  154. data/src/core-uncommon/facets/enumerable/have.rb +1 -0
  155. data/src/core-uncommon/facets/integer/roman.rb +77 -0
  156. data/src/core-uncommon/facets/kernel/demo.rb +27 -0
  157. data/src/core-uncommon/facets/kernel/eigenclass.rb +21 -0
  158. data/src/core-uncommon/facets/kernel/instance_exec.rb +44 -0
  159. data/src/core-uncommon/facets/kernel/memo.rb +41 -0
  160. data/src/core-uncommon/facets/kernel/trap_chain.rb +23 -0
  161. data/src/core-uncommon/facets/kernel/y.rb +20 -0
  162. data/src/core-uncommon/facets/method/memoize.rb +13 -0
  163. data/src/core-uncommon/facets/module/attr_class_accessor.rb +39 -0
  164. data/src/core-uncommon/facets/module/attr_inheritor.rb +15 -0
  165. data/src/core-uncommon/facets/module/attr_tester.rb +49 -0
  166. data/src/core-uncommon/facets/module/attr_validator.rb +40 -0
  167. data/src/core-uncommon/facets/module/cattr.rb +264 -0
  168. data/src/core-uncommon/facets/module/class_accessor.rb +33 -0
  169. data/src/core-uncommon/facets/module/class_extend.rb +85 -0
  170. data/src/core-uncommon/facets/module/class_inheritor.rb +77 -0
  171. data/src/core-uncommon/facets/module/copy_inheritor.rb +42 -0
  172. data/src/core-uncommon/facets/module/enclosure.rb +82 -0
  173. data/src/core-uncommon/facets/module/enclosures.rb +1 -0
  174. data/src/core-uncommon/facets/module/include_as.rb +1 -0
  175. data/src/core-uncommon/facets/module/instance_function.rb +90 -0
  176. data/src/core-uncommon/facets/module/let.rb +27 -0
  177. data/src/core-uncommon/facets/module/memoize.rb +12 -0
  178. data/src/core-uncommon/facets/module/method_clash.rb +59 -0
  179. data/src/core-uncommon/facets/module/method_space.rb +99 -0
  180. data/src/core-uncommon/facets/module/module_load.rb +78 -0
  181. data/src/core-uncommon/facets/module/preextend.rb +29 -0
  182. data/src/core-uncommon/facets/module/prepend.rb +61 -0
  183. data/src/core-uncommon/facets/regexp/op_or.rb +13 -0
  184. data/src/core-uncommon/facets/string/acronym.rb +8 -0
  185. data/src/core-uncommon/facets/string/crypt.rb +19 -0
  186. data/src/core-uncommon/facets/string/roman.rb +1 -0
  187. data/src/core/facets.rb +70 -0
  188. data/src/core/facets.yml +57 -0
  189. data/src/core/facets/applique/file_helpers.rb +33 -0
  190. data/src/core/facets/array.rb +28 -0
  191. data/src/core/facets/array/after.rb +1 -0
  192. data/src/core/facets/array/before.rb +39 -0
  193. data/src/core/facets/array/collapse.rb +12 -0
  194. data/src/core/facets/array/collisions.rb +1 -0
  195. data/src/core/facets/array/combination.rb +43 -0
  196. data/src/core/facets/array/commonality.rb +37 -0
  197. data/src/core/facets/array/conjoin.rb +89 -0
  198. data/src/core/facets/array/contains.rb +7 -0
  199. data/src/core/facets/array/delete.rb +4 -0
  200. data/src/core/facets/array/delete_unless.rb +15 -0
  201. data/src/core/facets/array/delete_values.rb +50 -0
  202. data/src/core/facets/array/divide.rb +20 -0
  203. data/src/core/facets/array/duplicates.rb +1 -0
  204. data/src/core/facets/array/entropy.rb +39 -0
  205. data/src/core/facets/array/extract_options.rb +31 -0
  206. data/src/core/facets/array/from.rb +33 -0
  207. data/src/core/facets/array/index.rb +23 -0
  208. data/src/core/facets/array/indexable.rb +31 -0
  209. data/src/core/facets/array/merge.rb +22 -0
  210. data/src/core/facets/array/mode.rb +22 -0
  211. data/src/core/facets/array/nonuniq.rb +37 -0
  212. data/src/core/facets/array/not_empty.rb +13 -0
  213. data/src/core/facets/array/only.rb +26 -0
  214. data/src/core/facets/array/pad.rb +41 -0
  215. data/src/core/facets/array/peek.rb +1 -0
  216. data/src/core/facets/array/permutation.rb +32 -0
  217. data/src/core/facets/array/poke.rb +1 -0
  218. data/src/core/facets/array/probability.rb +39 -0
  219. data/src/core/facets/array/product.rb +30 -0
  220. data/src/core/facets/array/pull.rb +30 -0
  221. data/src/core/facets/array/recurse.rb +29 -0
  222. data/src/core/facets/array/recursively.rb +47 -0
  223. data/src/core/facets/array/rotate.rb +48 -0
  224. data/src/core/facets/array/select.rb +20 -0
  225. data/src/core/facets/array/splice.rb +27 -0
  226. data/src/core/facets/array/split.rb +27 -0
  227. data/src/core/facets/array/store.rb +12 -0
  228. data/src/core/facets/array/thru.rb +1 -0
  229. data/src/core/facets/array/traverse.rb +44 -0
  230. data/src/core/facets/array/uniq_by.rb +16 -0
  231. data/src/core/facets/binding.rb +32 -0
  232. data/src/core/facets/binding/__callee__.rb +1 -0
  233. data/src/core/facets/binding/__method__.rb +1 -0
  234. data/src/core/facets/binding/call_stack.rb +1 -0
  235. data/src/core/facets/binding/caller.rb +44 -0
  236. data/src/core/facets/binding/callstack.rb +1 -0
  237. data/src/core/facets/binding/defined.rb +12 -0
  238. data/src/core/facets/binding/eval.rb +14 -0
  239. data/src/core/facets/binding/local_variables.rb +17 -0
  240. data/src/core/facets/binding/op.rb +24 -0
  241. data/src/core/facets/binding/self.rb +12 -0
  242. data/src/core/facets/boolean.rb +121 -0
  243. data/src/core/facets/class.rb +20 -0
  244. data/src/core/facets/class/descendants.rb +35 -0
  245. data/src/core/facets/class/methodize.rb +19 -0
  246. data/src/core/facets/class/pathize.rb +19 -0
  247. data/src/core/facets/class/subclasses.rb +28 -0
  248. data/src/core/facets/class/to_proc.rb +25 -0
  249. data/src/core/facets/comparable.rb +20 -0
  250. data/src/core/facets/comparable/at_least.rb +1 -0
  251. data/src/core/facets/comparable/at_most.rb +1 -0
  252. data/src/core/facets/comparable/bound.rb +1 -0
  253. data/src/core/facets/comparable/cap.rb +34 -0
  254. data/src/core/facets/comparable/clip.rb +38 -0
  255. data/src/core/facets/comparable/cmp.rb +41 -0
  256. data/src/core/facets/comparable/op_get.rb +45 -0
  257. data/src/core/facets/denumerable.rb +76 -0
  258. data/src/core/facets/dir.rb +20 -0
  259. data/src/core/facets/dir/ascend.rb +56 -0
  260. data/src/core/facets/dir/descend.rb +1 -0
  261. data/src/core/facets/dir/each_child.rb +16 -0
  262. data/src/core/facets/dir/multiglob.rb +78 -0
  263. data/src/core/facets/dir/parent.rb +16 -0
  264. data/src/core/facets/dir/recurse.rb +35 -0
  265. data/src/core/facets/enumerable.rb +20 -0
  266. data/src/core/facets/enumerable/accumulate.rb +61 -0
  267. data/src/core/facets/enumerable/cluster_by.rb +18 -0
  268. data/src/core/facets/enumerable/collect_with_index.rb +2 -0
  269. data/src/core/facets/enumerable/compact_map.rb +36 -0
  270. data/src/core/facets/enumerable/count.rb +53 -0
  271. data/src/core/facets/enumerable/defer.rb +73 -0
  272. data/src/core/facets/enumerable/each_by.rb +33 -0
  273. data/src/core/facets/enumerable/each_with_object.rb +38 -0
  274. data/src/core/facets/enumerable/every.rb +40 -0
  275. data/src/core/facets/enumerable/ewise.rb +59 -0
  276. data/src/core/facets/enumerable/exclude.rb +16 -0
  277. data/src/core/facets/enumerable/expand.rb +15 -0
  278. data/src/core/facets/enumerable/filter.rb +33 -0
  279. data/src/core/facets/enumerable/find_yield.rb +42 -0
  280. data/src/core/facets/enumerable/frequency.rb +24 -0
  281. data/src/core/facets/enumerable/graph.rb +37 -0
  282. data/src/core/facets/enumerable/group_by.rb +33 -0
  283. data/src/core/facets/enumerable/map_by.rb +35 -0
  284. data/src/core/facets/enumerable/map_detect.rb +1 -0
  285. data/src/core/facets/enumerable/map_send.rb +26 -0
  286. data/src/core/facets/enumerable/map_with.rb +18 -0
  287. data/src/core/facets/enumerable/map_with_index.rb +23 -0
  288. data/src/core/facets/enumerable/mash.rb +1 -0
  289. data/src/core/facets/enumerable/modulate.rb +22 -0
  290. data/src/core/facets/enumerable/none.rb +32 -0
  291. data/src/core/facets/enumerable/occur.rb +38 -0
  292. data/src/core/facets/enumerable/one.rb +39 -0
  293. data/src/core/facets/enumerable/per.rb +85 -0
  294. data/src/core/facets/enumerable/purge.rb +43 -0
  295. data/src/core/facets/enumerable/recursively.rb +66 -0
  296. data/src/core/facets/enumerable/sum.rb +16 -0
  297. data/src/core/facets/enumerable/take.rb +16 -0
  298. data/src/core/facets/enumerable/uniq_by.rb +13 -0
  299. data/src/core/facets/enumerable/visit.rb +30 -0
  300. data/src/core/facets/enumerable/zip_map.rb +1 -0
  301. data/src/core/facets/enumerator.rb +75 -0
  302. data/src/core/facets/enumerator/fx.rb +36 -0
  303. data/src/core/facets/exception.rb +21 -0
  304. data/src/core/facets/exception/detail.rb +23 -0
  305. data/src/core/facets/exception/raised.rb +14 -0
  306. data/src/core/facets/exception/suppress.rb +22 -0
  307. data/src/core/facets/file.rb +20 -0
  308. data/src/core/facets/file/append.rb +14 -0
  309. data/src/core/facets/file/create.rb +21 -0
  310. data/src/core/facets/file/ext.rb +36 -0
  311. data/src/core/facets/file/null.rb +21 -0
  312. data/src/core/facets/file/read_binary.rb +18 -0
  313. data/src/core/facets/file/read_list.rb +34 -0
  314. data/src/core/facets/file/rewrite.rb +90 -0
  315. data/src/core/facets/file/rootname.rb +23 -0
  316. data/src/core/facets/file/sanitize.rb +18 -0
  317. data/src/core/facets/file/split_all.rb +19 -0
  318. data/src/core/facets/file/split_root.rb +13 -0
  319. data/src/core/facets/file/write.rb +24 -0
  320. data/src/core/facets/file/writelines.rb +27 -0
  321. data/src/core/facets/filetest.rb +20 -0
  322. data/src/core/facets/filetest/absolute.rb +1 -0
  323. data/src/core/facets/filetest/contains.rb +12 -0
  324. data/src/core/facets/filetest/relative.rb +38 -0
  325. data/src/core/facets/filetest/root.rb +17 -0
  326. data/src/core/facets/filetest/safe.rb +20 -0
  327. data/src/core/facets/filetest/separator_pattern.rb +19 -0
  328. data/src/core/facets/float.rb +20 -0
  329. data/src/core/facets/float/round.rb +2 -0
  330. data/src/core/facets/functor.rb +78 -0
  331. data/src/core/facets/hash.rb +20 -0
  332. data/src/core/facets/hash/alias.rb +31 -0
  333. data/src/core/facets/hash/argumentize.rb +28 -0
  334. data/src/core/facets/hash/at.rb +8 -0
  335. data/src/core/facets/hash/autonew.rb +24 -0
  336. data/src/core/facets/hash/collate.rb +62 -0
  337. data/src/core/facets/hash/count.rb +12 -0
  338. data/src/core/facets/hash/data.rb +41 -0
  339. data/src/core/facets/hash/dearray_values.rb +46 -0
  340. data/src/core/facets/hash/deep_merge.rb +33 -0
  341. data/src/core/facets/hash/delete.rb +4 -0
  342. data/src/core/facets/hash/delete_at.rb +7 -0
  343. data/src/core/facets/hash/delete_unless.rb +17 -0
  344. data/src/core/facets/hash/delete_values.rb +41 -0
  345. data/src/core/facets/hash/diff.rb +17 -0
  346. data/src/core/facets/hash/except.rb +25 -0
  347. data/src/core/facets/hash/graph.rb +18 -0
  348. data/src/core/facets/hash/insert.rb +19 -0
  349. data/src/core/facets/hash/inverse.rb +30 -0
  350. data/src/core/facets/hash/join.rb +17 -0
  351. data/src/core/facets/hash/keys.rb +45 -0
  352. data/src/core/facets/hash/mash.rb +1 -0
  353. data/src/core/facets/hash/new_with.rb +15 -0
  354. data/src/core/facets/hash/op.rb +7 -0
  355. data/src/core/facets/hash/op_add.rb +12 -0
  356. data/src/core/facets/hash/op_and.rb +33 -0
  357. data/src/core/facets/hash/op_mul.rb +18 -0
  358. data/src/core/facets/hash/op_or.rb +12 -0
  359. data/src/core/facets/hash/op_push.rb +17 -0
  360. data/src/core/facets/hash/op_sub.rb +26 -0
  361. data/src/core/facets/hash/recurse.rb +29 -0
  362. data/src/core/facets/hash/recursively.rb +61 -0
  363. data/src/core/facets/hash/rekey.rb +79 -0
  364. data/src/core/facets/hash/replace_each.rb +16 -0
  365. data/src/core/facets/hash/reverse_merge.rb +30 -0
  366. data/src/core/facets/hash/select.rb +17 -0
  367. data/src/core/facets/hash/slice.rb +37 -0
  368. data/src/core/facets/hash/stringify_keys.rb +1 -0
  369. data/src/core/facets/hash/subset.rb +24 -0
  370. data/src/core/facets/hash/swap.rb +17 -0
  371. data/src/core/facets/hash/symbolize_keys.rb +92 -0
  372. data/src/core/facets/hash/to_h.rb +1 -0
  373. data/src/core/facets/hash/to_mod.rb +33 -0
  374. data/src/core/facets/hash/to_options.rb +1 -0
  375. data/src/core/facets/hash/to_proc.rb +39 -0
  376. data/src/core/facets/hash/to_struct.rb +17 -0
  377. data/src/core/facets/hash/traverse.rb +47 -0
  378. data/src/core/facets/hash/update.rb +6 -0
  379. data/src/core/facets/hash/update_each.rb +18 -0
  380. data/src/core/facets/hash/update_keys.rb +20 -0
  381. data/src/core/facets/hash/update_values.rb +20 -0
  382. data/src/core/facets/hash/weave.rb +76 -0
  383. data/src/core/facets/hash/zip.rb +18 -0
  384. data/src/core/facets/indexable.rb +270 -0
  385. data/src/core/facets/instance.rb +157 -0
  386. data/src/core/facets/integer.rb +20 -0
  387. data/src/core/facets/integer/bit.rb +1 -0
  388. data/src/core/facets/integer/bitmask.rb +99 -0
  389. data/src/core/facets/integer/even.rb +1 -0
  390. data/src/core/facets/integer/factorial.rb +21 -0
  391. data/src/core/facets/integer/multiple.rb +19 -0
  392. data/src/core/facets/integer/odd.rb +37 -0
  393. data/src/core/facets/integer/of.rb +18 -0
  394. data/src/core/facets/integer/ordinal.rb +24 -0
  395. data/src/core/facets/kernel.rb +20 -0
  396. data/src/core/facets/kernel/__callee__.rb +1 -0
  397. data/src/core/facets/kernel/__class__.rb +9 -0
  398. data/src/core/facets/kernel/__dir__.rb +26 -0
  399. data/src/core/facets/kernel/__get__.rb +15 -0
  400. data/src/core/facets/kernel/__method__.rb +48 -0
  401. data/src/core/facets/kernel/__set__.rb +1 -0
  402. data/src/core/facets/kernel/as.rb +115 -0
  403. data/src/core/facets/kernel/ask.rb +28 -0
  404. data/src/core/facets/kernel/assign.rb +76 -0
  405. data/src/core/facets/kernel/assign_from.rb +1 -0
  406. data/src/core/facets/kernel/attr_singleton.rb +59 -0
  407. data/src/core/facets/kernel/blank.rb +84 -0
  408. data/src/core/facets/kernel/call_stack.rb +56 -0
  409. data/src/core/facets/kernel/callstack.rb +1 -0
  410. data/src/core/facets/kernel/case.rb +8 -0
  411. data/src/core/facets/kernel/complete.rb +26 -0
  412. data/src/core/facets/kernel/constant.rb +20 -0
  413. data/src/core/facets/kernel/d.rb +27 -0
  414. data/src/core/facets/kernel/deep_clone.rb +1 -0
  415. data/src/core/facets/kernel/deep_copy.rb +38 -0
  416. data/src/core/facets/kernel/disable_warnings.rb +26 -0
  417. data/src/core/facets/kernel/enable_warnings.rb +1 -0
  418. data/src/core/facets/kernel/equate.rb +16 -0
  419. data/src/core/facets/kernel/ergo.rb +43 -0
  420. data/src/core/facets/kernel/extend.rb +27 -0
  421. data/src/core/facets/kernel/extension.rb +12 -0
  422. data/src/core/facets/kernel/false.rb +2 -0
  423. data/src/core/facets/kernel/here.rb +11 -0
  424. data/src/core/facets/kernel/identical.rb +4 -0
  425. data/src/core/facets/kernel/in.rb +13 -0
  426. data/src/core/facets/kernel/instance_assign.rb +20 -0
  427. data/src/core/facets/kernel/instance_class.rb +26 -0
  428. data/src/core/facets/kernel/instance_send.rb +7 -0
  429. data/src/core/facets/kernel/load_all.rb +1 -0
  430. data/src/core/facets/kernel/load_relative.rb +1 -0
  431. data/src/core/facets/kernel/maybe.rb +19 -0
  432. data/src/core/facets/kernel/meta_alias.rb +23 -0
  433. data/src/core/facets/kernel/meta_class.rb +17 -0
  434. data/src/core/facets/kernel/meta_def.rb +20 -0
  435. data/src/core/facets/kernel/meta_eval.rb +20 -0
  436. data/src/core/facets/kernel/method.rb +50 -0
  437. data/src/core/facets/kernel/no.rb +1 -0
  438. data/src/core/facets/kernel/not.rb +37 -0
  439. data/src/core/facets/kernel/not_nil.rb +18 -0
  440. data/src/core/facets/kernel/object_class.rb +10 -0
  441. data/src/core/facets/kernel/object_hexid.rb +31 -0
  442. data/src/core/facets/kernel/object_send.rb +33 -0
  443. data/src/core/facets/kernel/p.rb +24 -0
  444. data/src/core/facets/kernel/presence.rb +1 -0
  445. data/src/core/facets/kernel/present.rb +1 -0
  446. data/src/core/facets/kernel/qua_class.rb +31 -0
  447. data/src/core/facets/kernel/require_all.rb +42 -0
  448. data/src/core/facets/kernel/require_relative.rb +52 -0
  449. data/src/core/facets/kernel/respond.rb +42 -0
  450. data/src/core/facets/kernel/returning.rb +27 -0
  451. data/src/core/facets/kernel/silence.rb +73 -0
  452. data/src/core/facets/kernel/silence_warnings.rb +1 -0
  453. data/src/core/facets/kernel/singleton_class.rb +9 -0
  454. data/src/core/facets/kernel/source_location.rb +13 -0
  455. data/src/core/facets/kernel/super_method.rb +11 -0
  456. data/src/core/facets/kernel/tap.rb +48 -0
  457. data/src/core/facets/kernel/temporarily.rb +23 -0
  458. data/src/core/facets/kernel/true.rb +26 -0
  459. data/src/core/facets/kernel/try.rb +58 -0
  460. data/src/core/facets/kernel/val.rb +19 -0
  461. data/src/core/facets/kernel/with.rb +20 -0
  462. data/src/core/facets/kernel/writers.rb +91 -0
  463. data/src/core/facets/kernel/yes.rb +25 -0
  464. data/src/core/facets/lazy.rb +238 -0
  465. data/src/core/facets/matchdata.rb +20 -0
  466. data/src/core/facets/matchdata/match.rb +15 -0
  467. data/src/core/facets/matchdata/matchset.rb +44 -0
  468. data/src/core/facets/method.rb +20 -0
  469. data/src/core/facets/module.rb +20 -0
  470. data/src/core/facets/module/abstract.rb +24 -0
  471. data/src/core/facets/module/alias_accessor.rb +45 -0
  472. data/src/core/facets/module/alias_method_chain.rb +67 -0
  473. data/src/core/facets/module/alias_module_function.rb +30 -0
  474. data/src/core/facets/module/all_instance_methods.rb +19 -0
  475. data/src/core/facets/module/ancestor.rb +16 -0
  476. data/src/core/facets/module/anonymous.rb +25 -0
  477. data/src/core/facets/module/attr_setter.rb +52 -0
  478. data/src/core/facets/module/basename.rb +31 -0
  479. data/src/core/facets/module/can.rb +20 -0
  480. data/src/core/facets/module/class.rb +12 -0
  481. data/src/core/facets/module/class_def.rb +2 -0
  482. data/src/core/facets/module/class_method_defined.rb +1 -0
  483. data/src/core/facets/module/extend.rb +1 -0
  484. data/src/core/facets/module/home.rb +90 -0
  485. data/src/core/facets/module/homename.rb +1 -0
  486. data/src/core/facets/module/housing.rb +1 -0
  487. data/src/core/facets/module/include_function_module.rb +25 -0
  488. data/src/core/facets/module/instance_method.rb +25 -0
  489. data/src/core/facets/module/instance_method_defined.rb +23 -0
  490. data/src/core/facets/module/integrate.rb +49 -0
  491. data/src/core/facets/module/is.rb +57 -0
  492. data/src/core/facets/module/methodize.rb +20 -0
  493. data/src/core/facets/module/modname.rb +1 -0
  494. data/src/core/facets/module/module_def.rb +31 -0
  495. data/src/core/facets/module/nodef.rb +13 -0
  496. data/src/core/facets/module/op.rb +107 -0
  497. data/src/core/facets/module/op_add.rb +1 -0
  498. data/src/core/facets/module/op_mul.rb +1 -0
  499. data/src/core/facets/module/op_sub.rb +1 -0
  500. data/src/core/facets/module/pathize.rb +20 -0
  501. data/src/core/facets/module/redefine_method.rb +37 -0
  502. data/src/core/facets/module/redirect_method.rb +46 -0
  503. data/src/core/facets/module/remove.rb +1 -0
  504. data/src/core/facets/module/rename_method.rb +30 -0
  505. data/src/core/facets/module/revise.rb +41 -0
  506. data/src/core/facets/module/set.rb +36 -0
  507. data/src/core/facets/module/singleton_method_defined.rb +1 -0
  508. data/src/core/facets/module/spacename.rb +25 -0
  509. data/src/core/facets/module/to_obj.rb +20 -0
  510. data/src/core/facets/module/wrap_method.rb +35 -0
  511. data/src/core/facets/na.rb +21 -0
  512. data/src/core/facets/nilclass.rb +20 -0
  513. data/src/core/facets/nilclass/ergo.rb +1 -0
  514. data/src/core/facets/nilclass/to_f.rb +17 -0
  515. data/src/core/facets/numeric.rb +20 -0
  516. data/src/core/facets/numeric/approx.rb +15 -0
  517. data/src/core/facets/numeric/distance.rb +14 -0
  518. data/src/core/facets/numeric/length.rb +10 -0
  519. data/src/core/facets/numeric/round.rb +69 -0
  520. data/src/core/facets/numeric/round_at.rb +1 -0
  521. data/src/core/facets/numeric/round_to.rb +1 -0
  522. data/src/core/facets/numeric/spacing.rb +20 -0
  523. data/src/core/facets/object.rb +20 -0
  524. data/src/core/facets/object/clone.rb +1 -0
  525. data/src/core/facets/object/dup.rb +79 -0
  526. data/src/core/facets/object/object_state.rb +77 -0
  527. data/src/core/facets/object/replace.rb +43 -0
  528. data/src/core/facets/object/try_dup.rb +1 -0
  529. data/src/core/facets/objectspace.rb +20 -0
  530. data/src/core/facets/objectspace/classes.rb +11 -0
  531. data/src/core/facets/objectspace/op_fetch.rb +3 -0
  532. data/src/core/facets/objectspace/reflect.rb +62 -0
  533. data/src/core/facets/proc.rb +20 -0
  534. data/src/core/facets/proc/bind.rb +24 -0
  535. data/src/core/facets/proc/bind_to.rb +17 -0
  536. data/src/core/facets/proc/compose.rb +42 -0
  537. data/src/core/facets/proc/curry.rb +32 -0
  538. data/src/core/facets/proc/partial.rb +33 -0
  539. data/src/core/facets/proc/to_method.rb +38 -0
  540. data/src/core/facets/proc/update.rb +9 -0
  541. data/src/core/facets/process.rb +20 -0
  542. data/src/core/facets/process/daemon.rb +32 -0
  543. data/src/core/facets/range.rb +20 -0
  544. data/src/core/facets/range/combine.rb +47 -0
  545. data/src/core/facets/range/overlap.rb +12 -0
  546. data/src/core/facets/range/to_r.rb +26 -0
  547. data/src/core/facets/range/umbrella.rb +1 -0
  548. data/src/core/facets/range/within.rb +64 -0
  549. data/src/core/facets/regexp.rb +20 -0
  550. data/src/core/facets/regexp/arity.rb +17 -0
  551. data/src/core/facets/regexp/multiline.rb +13 -0
  552. data/src/core/facets/regexp/op_add.rb +18 -0
  553. data/src/core/facets/regexp/op_or.rb +18 -0
  554. data/src/core/facets/regexp/to_re.rb +28 -0
  555. data/src/core/facets/string.rb +20 -0
  556. data/src/core/facets/string/align.rb +125 -0
  557. data/src/core/facets/string/bracket.rb +64 -0
  558. data/src/core/facets/string/bytes.rb +21 -0
  559. data/src/core/facets/string/camelcase.rb +62 -0
  560. data/src/core/facets/string/capitalized.rb +49 -0
  561. data/src/core/facets/string/characters.rb +13 -0
  562. data/src/core/facets/string/cleanlines.rb +27 -0
  563. data/src/core/facets/string/cleave.rb +36 -0
  564. data/src/core/facets/string/cmp.rb +1 -0
  565. data/src/core/facets/string/compress_lines.rb +17 -0
  566. data/src/core/facets/string/divide.rb +18 -0
  567. data/src/core/facets/string/each_char.rb +31 -0
  568. data/src/core/facets/string/each_word.rb +17 -0
  569. data/src/core/facets/string/edit_distance.rb +124 -0
  570. data/src/core/facets/string/end_with.rb +1 -0
  571. data/src/core/facets/string/exclude.rb +10 -0
  572. data/src/core/facets/string/expand_tab.rb +35 -0
  573. data/src/core/facets/string/file.rb +35 -0
  574. data/src/core/facets/string/fold.rb +39 -0
  575. data/src/core/facets/string/indent.rb +67 -0
  576. data/src/core/facets/string/index_all.rb +24 -0
  577. data/src/core/facets/string/interpolate.rb +19 -0
  578. data/src/core/facets/string/lchomp.rb +33 -0
  579. data/src/core/facets/string/line_wrap.rb +18 -0
  580. data/src/core/facets/string/lines.rb +19 -0
  581. data/src/core/facets/string/lowercase.rb +1 -0
  582. data/src/core/facets/string/margin.rb +31 -0
  583. data/src/core/facets/string/methodize.rb +27 -0
  584. data/src/core/facets/string/modulize.rb +31 -0
  585. data/src/core/facets/string/mscan.rb +19 -0
  586. data/src/core/facets/string/natcmp.rb +86 -0
  587. data/src/core/facets/string/nchar.rb +32 -0
  588. data/src/core/facets/string/newlines.rb +32 -0
  589. data/src/core/facets/string/op_div.rb +14 -0
  590. data/src/core/facets/string/op_sub.rb +14 -0
  591. data/src/core/facets/string/outdent.rb +1 -0
  592. data/src/core/facets/string/pathize.rb +28 -0
  593. data/src/core/facets/string/quote.rb +93 -0
  594. data/src/core/facets/string/random_binary.rb +10 -0
  595. data/src/core/facets/string/range.rb +60 -0
  596. data/src/core/facets/string/range_all.rb +1 -0
  597. data/src/core/facets/string/range_of_line.rb +1 -0
  598. data/src/core/facets/string/rewrite.rb +24 -0
  599. data/src/core/facets/string/shatter.rb +22 -0
  600. data/src/core/facets/string/similarity.rb +89 -0
  601. data/src/core/facets/string/snakecase.rb +21 -0
  602. data/src/core/facets/string/splice.rb +33 -0
  603. data/src/core/facets/string/squish.rb +22 -0
  604. data/src/core/facets/string/start_with.rb +60 -0
  605. data/src/core/facets/string/store.rb +7 -0
  606. data/src/core/facets/string/subtract.rb +4 -0
  607. data/src/core/facets/string/tab.rb +17 -0
  608. data/src/core/facets/string/tabto.rb +19 -0
  609. data/src/core/facets/string/titlecase.rb +15 -0
  610. data/src/core/facets/string/to_re.rb +26 -0
  611. data/src/core/facets/string/unbracket.rb +1 -0
  612. data/src/core/facets/string/underscore.rb +22 -0
  613. data/src/core/facets/string/unfold.rb +27 -0
  614. data/src/core/facets/string/unindent.rb +1 -0
  615. data/src/core/facets/string/unquote.rb +1 -0
  616. data/src/core/facets/string/uppercase.rb +23 -0
  617. data/src/core/facets/string/variablize.rb +13 -0
  618. data/src/core/facets/string/word_wrap.rb +32 -0
  619. data/src/core/facets/string/words.rb +12 -0
  620. data/src/core/facets/string/xor.rb +26 -0
  621. data/src/core/facets/struct.rb +20 -0
  622. data/src/core/facets/struct/attributes.rb +15 -0
  623. data/src/core/facets/symbol.rb +20 -0
  624. data/src/core/facets/symbol/as_s.rb +17 -0
  625. data/src/core/facets/symbol/bang.rb +1 -0
  626. data/src/core/facets/symbol/chomp.rb +24 -0
  627. data/src/core/facets/symbol/generate.rb +24 -0
  628. data/src/core/facets/symbol/not.rb +29 -0
  629. data/src/core/facets/symbol/op_div.rb +21 -0
  630. data/src/core/facets/symbol/plain.rb +43 -0
  631. data/src/core/facets/symbol/query.rb +1 -0
  632. data/src/core/facets/symbol/setter.rb +1 -0
  633. data/src/core/facets/symbol/succ.rb +23 -0
  634. data/src/core/facets/symbol/thrown.rb +18 -0
  635. data/src/core/facets/symbol/to_proc.rb +33 -0
  636. data/src/core/facets/symbol/variablize.rb +14 -0
  637. data/src/core/facets/time.rb +20 -0
  638. data/src/core/facets/time/ago.rb +1 -0
  639. data/src/core/facets/time/change.rb +46 -0
  640. data/src/core/facets/time/dst_adjustment.rb +24 -0
  641. data/src/core/facets/time/elapse.rb +18 -0
  642. data/src/core/facets/time/future.rb +14 -0
  643. data/src/core/facets/time/hence.rb +1 -0
  644. data/src/core/facets/time/in.rb +1 -0
  645. data/src/core/facets/time/less.rb +1 -0
  646. data/src/core/facets/time/past.rb +1 -0
  647. data/src/core/facets/time/round_to.rb +21 -0
  648. data/src/core/facets/time/set.rb +27 -0
  649. data/src/core/facets/time/shift.rb +95 -0
  650. data/src/core/facets/time/stamp.rb +45 -0
  651. data/src/core/facets/time/to_time.rb +21 -0
  652. data/src/core/facets/time/trunc.rb +15 -0
  653. data/src/core/facets/to_hash.rb +336 -0
  654. data/src/core/facets/unboundmethod.rb +20 -0
  655. data/src/core/facets/unboundmethod/arguments.rb +44 -0
  656. data/src/core/facets/unboundmethod/name.rb +28 -0
  657. data/src/standard/facets/basicobject.rb +75 -0
  658. data/src/standard/facets/cgi.rb +44 -0
  659. data/src/standard/facets/continuation.rb +56 -0
  660. data/src/standard/facets/date.rb +433 -0
  661. data/src/standard/facets/digest.rb +2 -0
  662. data/src/standard/facets/digest/base64digest.rb +45 -0
  663. data/src/standard/facets/digest/salted_digest.rb +44 -0
  664. data/src/standard/facets/erb.rb +66 -0
  665. data/src/standard/facets/fileutils.rb +13 -0
  666. data/src/standard/facets/fileutils/amass.rb +33 -0
  667. data/src/standard/facets/fileutils/cp_rx.rb +44 -0
  668. data/src/standard/facets/fileutils/head.rb +1 -0
  669. data/src/standard/facets/fileutils/ln_r.rb +99 -0
  670. data/src/standard/facets/fileutils/outofdate.rb +38 -0
  671. data/src/standard/facets/fileutils/safe_ln.rb +27 -0
  672. data/src/standard/facets/fileutils/slice.rb +55 -0
  673. data/src/standard/facets/fileutils/stage.rb +66 -0
  674. data/src/standard/facets/fileutils/tail.rb +1 -0
  675. data/src/standard/facets/fileutils/wc.rb +63 -0
  676. data/src/standard/facets/fileutils/whereis.rb +66 -0
  677. data/src/standard/facets/fileutils/which.rb +60 -0
  678. data/src/standard/facets/find.rb +16 -0
  679. data/src/standard/facets/getoptlong.rb +59 -0
  680. data/src/standard/facets/math.rb +6 -0
  681. data/src/standard/facets/math/abs.rb +8 -0
  682. data/src/standard/facets/math/acot.rb +8 -0
  683. data/src/standard/facets/math/acoth.rb +8 -0
  684. data/src/standard/facets/math/acsc.rb +8 -0
  685. data/src/standard/facets/math/acsch.rb +8 -0
  686. data/src/standard/facets/math/amd.rb +17 -0
  687. data/src/standard/facets/math/approx_equal.rb +15 -0
  688. data/src/standard/facets/math/asec.rb +8 -0
  689. data/src/standard/facets/math/asech.rb +8 -0
  690. data/src/standard/facets/math/atkinson_index.rb +16 -0
  691. data/src/standard/facets/math/beta.rb +9 -0
  692. data/src/standard/facets/math/cdf.rb +10 -0
  693. data/src/standard/facets/math/ceil.rb +8 -0
  694. data/src/standard/facets/math/cot.rb +8 -0
  695. data/src/standard/facets/math/coth.rb +8 -0
  696. data/src/standard/facets/math/csc.rb +8 -0
  697. data/src/standard/facets/math/csch.rb +8 -0
  698. data/src/standard/facets/math/delta.rb +9 -0
  699. data/src/standard/facets/math/epsilon.rb +21 -0
  700. data/src/standard/facets/math/exp10.rb +8 -0
  701. data/src/standard/facets/math/exp2.rb +8 -0
  702. data/src/standard/facets/math/factorial.rb +37 -0
  703. data/src/standard/facets/math/floor.rb +8 -0
  704. data/src/standard/facets/math/gamma.rb +12 -0
  705. data/src/standard/facets/math/gcd.rb +23 -0
  706. data/src/standard/facets/math/gini_coefficient.rb +33 -0
  707. data/src/standard/facets/math/kldivergence.rb +19 -0
  708. data/src/standard/facets/math/lcm.rb +15 -0
  709. data/src/standard/facets/math/lgamma.rb +21 -0
  710. data/src/standard/facets/math/linsolve.rb +10 -0
  711. data/src/standard/facets/math/log2.rb +14 -0
  712. data/src/standard/facets/math/max.rb +1 -0
  713. data/src/standard/facets/math/mean.rb +16 -0
  714. data/src/standard/facets/math/median.rb +15 -0
  715. data/src/standard/facets/math/min.rb +35 -0
  716. data/src/standard/facets/math/pow.rb +8 -0
  717. data/src/standard/facets/math/pstd.rb +1 -0
  718. data/src/standard/facets/math/pvariance.rb +1 -0
  719. data/src/standard/facets/math/rmd.rb +16 -0
  720. data/src/standard/facets/math/root.rb +8 -0
  721. data/src/standard/facets/math/sec.rb +8 -0
  722. data/src/standard/facets/math/sech.rb +8 -0
  723. data/src/standard/facets/math/sign.rb +9 -0
  724. data/src/standard/facets/math/sinc.rb +8 -0
  725. data/src/standard/facets/math/sqr.rb +8 -0
  726. data/src/standard/facets/math/sqsolve.rb +53 -0
  727. data/src/standard/facets/math/std.rb +27 -0
  728. data/src/standard/facets/math/stderr.rb +1 -0
  729. data/src/standard/facets/math/sum.rb +16 -0
  730. data/src/standard/facets/math/summed_sqdevs.rb +14 -0
  731. data/src/standard/facets/math/theil_index.rb +24 -0
  732. data/src/standard/facets/math/variance.rb +31 -0
  733. data/src/standard/facets/net/http.rb +32 -0
  734. data/src/standard/facets/ostruct.rb +210 -0
  735. data/src/standard/facets/pathname.rb +240 -0
  736. data/src/standard/facets/random.rb +446 -0
  737. data/src/standard/facets/rbconfig.rb +78 -0
  738. data/src/standard/facets/set.rb +32 -0
  739. data/src/standard/facets/shellwords.rb +112 -0
  740. data/src/standard/facets/strscan.rb +16 -0
  741. data/src/standard/facets/thread.rb +98 -0
  742. data/src/standard/facets/uri.rb +211 -0
  743. data/src/standard/facets/yaml.rb +59 -0
  744. data/src/standard/facets/zlib.rb +38 -0
  745. data/src/supplemental/facets/argvector.rb +343 -0
  746. data/src/supplemental/facets/atomicfile.rb +51 -0
  747. data/src/supplemental/facets/enumargs.rb +195 -0
  748. data/src/supplemental/facets/interval.rb +284 -0
  749. data/src/supplemental/facets/main.rb +62 -0
  750. data/src/supplemental/facets/memoizable.rb +141 -0
  751. data/src/supplemental/facets/metaid.rb +7 -0
  752. data/src/supplemental/facets/multipliers.rb +65 -0
  753. data/src/supplemental/facets/multiton.rb +387 -0
  754. data/src/supplemental/facets/nullclass.rb +38 -0
  755. data/src/supplemental/facets/opesc.rb +79 -0
  756. data/src/supplemental/facets/platform.rb +377 -0
  757. data/src/supplemental/facets/reference.rb +83 -0
  758. data/src/supplemental/facets/timer.rb +207 -0
  759. data/src/supplemental/facets/tuple.rb +282 -0
  760. data/test/core-uncommon/array/test_median.rb +6 -4
  761. data/test/core-uncommon/array/test_percentile.rb +6 -4
  762. data/test/core-uncommon/class/test_preallocate.rb +22 -17
  763. data/test/core-uncommon/module/test_cattr.rb +35 -27
  764. data/test/core-uncommon/module/test_class_extend.rb +54 -47
  765. data/test/core-uncommon/module/test_class_inheritor.rb +108 -121
  766. data/test/core-uncommon/module/test_copy_inheritor.rb +25 -22
  767. data/test/core-uncommon/module/test_enclosure.rb +13 -9
  768. data/test/core-uncommon/module/test_instance_function.rb +20 -16
  769. data/test/core-uncommon/module/test_memoize.rb +23 -20
  770. data/test/core-uncommon/module/test_method_clash.rb +59 -0
  771. data/test/core-uncommon/module/test_method_space.rb +52 -44
  772. data/test/core-uncommon/module/test_module_load.rb +13 -9
  773. data/test/core-uncommon/module/test_preextend.rb +16 -12
  774. data/test/core-uncommon/module/test_prepend.rb +16 -12
  775. data/test/core/array/test_after.rb +18 -8
  776. data/test/core/array/test_before.rb +19 -9
  777. data/test/core/array/test_collapse.rb +7 -3
  778. data/test/core/array/test_combination.rb +17 -13
  779. data/test/core/array/test_commonality.rb +25 -17
  780. data/test/core/array/test_conjoin.rb +35 -31
  781. data/test/core/array/test_contains.rb +8 -4
  782. data/test/core/array/test_delete.rb +31 -16
  783. data/test/core/array/test_divide.rb +8 -4
  784. data/test/core/array/test_duplicates.rb +8 -4
  785. data/test/core/array/test_entropy.rb +14 -6
  786. data/test/core/array/test_extract_options.rb +17 -9
  787. data/test/core/array/test_first.rb +10 -6
  788. data/test/core/array/test_index.rb +12 -8
  789. data/test/core/array/test_last.rb +10 -6
  790. data/test/core/array/test_merge.rb +18 -10
  791. data/test/core/array/test_mode.rb +10 -6
  792. data/test/core/array/test_nonuniq.rb +16 -8
  793. data/test/core/array/test_not_empty.rb +10 -6
  794. data/test/core/array/test_only.rb +10 -6
  795. data/test/core/array/test_pad.rb +29 -21
  796. data/test/core/array/test_peek.rb +19 -15
  797. data/test/core/array/test_permutation.rb +11 -7
  798. data/test/core/array/test_poke.rb +14 -10
  799. data/test/core/array/test_probability.rb +11 -4
  800. data/test/core/array/test_product.rb +24 -20
  801. data/test/core/array/test_pull.rb +9 -5
  802. data/test/core/array/test_recurse.rb +29 -21
  803. data/test/core/array/test_recursively.rb +24 -20
  804. data/test/core/array/test_rotate.rb +27 -19
  805. data/test/core/array/test_select.rb +9 -5
  806. data/test/core/array/test_splice.rb +14 -10
  807. data/test/core/array/test_split.rb +13 -9
  808. data/test/core/array/test_store.rb +13 -11
  809. data/test/core/array/test_traverse.rb +17 -9
  810. data/test/core/array/test_uniq_by.rb +10 -6
  811. data/test/core/binding/test_caller.rb +35 -18
  812. data/test/core/binding/test_defined.rb +5 -3
  813. data/test/core/binding/test_eval.rb +5 -3
  814. data/test/core/binding/test_local_variables.rb +15 -11
  815. data/test/core/binding/test_op.rb +10 -6
  816. data/test/core/binding/test_self.rb +7 -4
  817. data/test/core/class/test_descendents.rb +11 -7
  818. data/test/core/class/test_subclasses.rb +11 -8
  819. data/test/core/class/test_to_proc.rb +9 -5
  820. data/test/core/comparable/test_bound.rb +23 -19
  821. data/test/core/comparable/test_cap.rb +25 -13
  822. data/test/core/comparable/test_clip.rb +23 -19
  823. data/test/core/comparable/test_cmp.rb +9 -5
  824. data/test/core/comparable/test_op_get.rb +42 -37
  825. data/test/core/denumerable_tc.rb +132 -91
  826. data/test/core/dir/test_ascend.rb +27 -19
  827. data/test/core/dir/test_descend.rb +14 -10
  828. data/test/core/dir/test_each_child.rb +15 -11
  829. data/test/core/dir/test_multiglob.rb +16 -8
  830. data/test/core/dir/test_parent.rb +7 -3
  831. data/test/core/dir/test_recurse.rb +21 -13
  832. data/test/core/enumerable/test_accumulate.rb +31 -23
  833. data/test/core/enumerable/test_cluster_by.rb +20 -16
  834. data/test/core/enumerable/test_compact_map.rb +14 -18
  835. data/test/core/enumerable/test_count.rb +22 -18
  836. data/test/core/enumerable/test_defer.rb +18 -15
  837. data/test/core/enumerable/test_each_by.rb +40 -36
  838. data/test/core/enumerable/test_each_with_object.rb +10 -6
  839. data/test/core/enumerable/test_every.rb +23 -15
  840. data/test/core/enumerable/test_ewise.rb +22 -14
  841. data/test/core/enumerable/test_exclude.rb +9 -5
  842. data/test/core/enumerable/test_expand.rb +9 -5
  843. data/test/core/enumerable/test_filter.rb +11 -7
  844. data/test/core/enumerable/test_find_yield.rb +71 -64
  845. data/test/core/enumerable/test_frequency.rb +8 -4
  846. data/test/core/enumerable/test_graph.rb +32 -28
  847. data/test/core/enumerable/test_group_by.rb +26 -22
  848. data/test/core/enumerable/test_map_by.rb +19 -15
  849. data/test/core/enumerable/test_map_send.rb +19 -3
  850. data/test/core/enumerable/test_map_with_index.rb +15 -7
  851. data/test/core/enumerable/test_mash.rb +10 -6
  852. data/test/core/enumerable/test_modulate.rb +10 -6
  853. data/test/core/enumerable/test_none.rb +20 -10
  854. data/test/core/enumerable/test_occur.rb +20 -7
  855. data/test/core/enumerable/test_one.rb +24 -12
  856. data/test/core/enumerable/test_per.rb +10 -6
  857. data/test/core/enumerable/test_purge.rb +14 -10
  858. data/test/core/enumerable/test_recursively.rb +22 -18
  859. data/test/core/enumerable/test_sum.rb +7 -3
  860. data/test/core/enumerable/test_take.rb +8 -4
  861. data/test/core/enumerable/test_uniq_by.rb +16 -10
  862. data/test/core/enumerable/test_visit.rb +9 -5
  863. data/test/core/enumerator/test_fx.rb +9 -5
  864. data/test/core/enumerator/test_new.rb +14 -10
  865. data/test/core/enumerator_tc.rb +29 -17
  866. data/test/core/exception/test_detail.rb +7 -8
  867. data/test/core/exception/test_raised.rb +6 -4
  868. data/test/core/exception/test_suppress.rb +6 -4
  869. data/test/core/file/test_append.rb +15 -12
  870. data/test/core/file/test_create.rb +10 -6
  871. data/test/core/file/test_ext.rb +23 -19
  872. data/test/core/file/test_null.rb +7 -3
  873. data/test/core/file/test_read_binary.rb +11 -7
  874. data/test/core/file/test_read_list.rb +9 -5
  875. data/test/core/file/test_rewrite.rb +24 -12
  876. data/test/core/file/test_rootname.rb +7 -3
  877. data/test/core/file/test_sanitize.rb +20 -16
  878. data/test/core/file/test_split_all.rb +8 -4
  879. data/test/core/file/test_write.rb +12 -8
  880. data/test/core/file/test_writelines.rb +11 -7
  881. data/test/core/filetest/test_root.rb +7 -3
  882. data/test/core/functor_tc.rb +27 -15
  883. data/test/core/hash/test_alias.rb +16 -8
  884. data/test/core/hash/test_argumentize.rb +14 -10
  885. data/test/core/hash/test_at.rb +9 -5
  886. data/test/core/hash/test_autonew.rb +15 -11
  887. data/test/core/hash/test_collate.rb +43 -33
  888. data/test/core/hash/test_count.rb +7 -3
  889. data/test/core/hash/test_data.rb +23 -19
  890. data/test/core/hash/test_dearray_values.rb +17 -9
  891. data/test/core/hash/test_deep_merge.rb +19 -11
  892. data/test/core/hash/test_delete_at.rb +12 -8
  893. data/test/core/hash/test_delete_unless.rb +12 -8
  894. data/test/core/hash/test_delete_values.rb +22 -14
  895. data/test/core/hash/test_diff.rb +10 -6
  896. data/test/core/hash/test_expect.rb +16 -8
  897. data/test/core/hash/test_graph.rb +29 -21
  898. data/test/core/hash/test_insert.rb +11 -7
  899. data/test/core/hash/test_inverse.rb +11 -7
  900. data/test/core/hash/test_join.rb +23 -19
  901. data/test/core/hash/test_keys.rb +38 -19
  902. data/test/core/hash/test_new_with.rb +10 -6
  903. data/test/core/hash/test_op_add.rb +11 -7
  904. data/test/core/hash/test_op_and.rb +22 -18
  905. data/test/core/hash/test_op_mul.rb +10 -6
  906. data/test/core/hash/test_op_or.rb +10 -6
  907. data/test/core/hash/test_op_push.rb +26 -22
  908. data/test/core/hash/test_op_sub.rb +19 -11
  909. data/test/core/hash/test_recurse.rb +27 -19
  910. data/test/core/hash/test_recursively.rb +57 -53
  911. data/test/core/hash/test_rekey.rb +64 -56
  912. data/test/core/hash/test_replace_each.rb +10 -6
  913. data/test/core/hash/test_reverse_merge.rb +28 -16
  914. data/test/core/hash/test_select.rb +37 -33
  915. data/test/core/hash/test_slice.rb +16 -8
  916. data/test/core/hash/test_stringify_keys.rb +17 -9
  917. data/test/core/hash/test_swap.rb +8 -4
  918. data/test/core/hash/test_symbolize_keys.rb +17 -9
  919. data/test/core/hash/test_to_mod.rb +16 -12
  920. data/test/core/hash/test_to_proc.rb +13 -9
  921. data/test/core/hash/test_to_struct.rb +13 -9
  922. data/test/core/hash/test_traverse.rb +21 -13
  923. data/test/core/hash/test_update_each.rb +10 -6
  924. data/test/core/hash/test_update_keys.rb +14 -10
  925. data/test/core/hash/test_update_values.rb +9 -6
  926. data/test/core/hash/test_weave.rb +10 -6
  927. data/test/core/hash/test_zip.rb +9 -5
  928. data/test/core/indexable_tc.rb +156 -107
  929. data/test/core/integer/test_bitmask.rb +52 -39
  930. data/test/core/integer/test_even.rb +14 -7
  931. data/test/core/integer/test_factorial.rb +22 -14
  932. data/test/core/integer/test_multiple.rb +10 -7
  933. data/test/core/integer/test_odd.rb +14 -7
  934. data/test/core/integer/test_of.rb +25 -13
  935. data/test/core/integer/test_ordinal.rb +19 -12
  936. data/test/core/kernel/test_as.rb +46 -31
  937. data/test/core/kernel/test_ask.rb +3 -2
  938. data/test/core/kernel/test_assign.rb +44 -39
  939. data/test/core/kernel/test_assign_from.rb +32 -24
  940. data/test/core/kernel/test_attr_singleton.rb +26 -14
  941. data/test/core/kernel/test_blank.rb +51 -31
  942. data/test/core/kernel/test_callstack.rb +13 -5
  943. data/test/core/kernel/test_class.rb +8 -4
  944. data/test/core/kernel/test_complete.rb +13 -9
  945. data/test/core/kernel/test_constant.rb +10 -6
  946. data/test/core/kernel/test_d.rb +3 -3
  947. data/test/core/kernel/test_deep_copy.rb +29 -21
  948. data/test/core/kernel/test_dir.rb +14 -6
  949. data/test/core/kernel/test_disable_warnings.rb +22 -10
  950. data/test/core/kernel/test_ergo.rb +21 -12
  951. data/test/core/kernel/test_extension.rb +10 -6
  952. data/test/core/kernel/test_get.rb +40 -20
  953. data/test/core/kernel/test_here.rb +7 -3
  954. data/test/core/kernel/test_in.rb +8 -4
  955. data/test/core/kernel/test_instance_assign.rb +13 -9
  956. data/test/core/kernel/test_instance_class.rb +8 -4
  957. data/test/core/kernel/test_instance_send.rb +16 -12
  958. data/test/core/kernel/test_maybe.rb +7 -3
  959. data/test/core/kernel/test_meta_alias.rb +10 -6
  960. data/test/core/kernel/test_meta_class.rb +23 -15
  961. data/test/core/kernel/test_meta_def.rb +9 -5
  962. data/test/core/kernel/test_meta_eval.rb +11 -7
  963. data/test/core/kernel/test_method.rb +11 -7
  964. data/test/core/kernel/test_not.rb +38 -31
  965. data/test/core/kernel/test_not_nil.rb +16 -12
  966. data/test/core/kernel/test_object_class.rb +13 -5
  967. data/test/core/kernel/test_object_hexid.rb +9 -5
  968. data/test/core/kernel/test_object_send.rb +15 -11
  969. data/test/core/kernel/test_presence.rb +27 -19
  970. data/test/core/kernel/test_qua_class.rb +16 -10
  971. data/test/core/kernel/test_require_all.rb +3 -3
  972. data/test/core/kernel/test_require_relative.rb +3 -3
  973. data/test/core/kernel/test_respond.rb +25 -19
  974. data/test/core/kernel/test_returning.rb +10 -6
  975. data/test/core/kernel/test_silence.rb +7 -7
  976. data/test/core/kernel/test_singleton_class.rb +9 -5
  977. data/test/core/kernel/test_source_location.rb +17 -10
  978. data/test/core/kernel/test_super_method.rb +16 -13
  979. data/test/core/kernel/test_tap.rb +27 -23
  980. data/test/core/kernel/test_temporarily.rb +16 -12
  981. data/test/core/kernel/test_true.rb +21 -13
  982. data/test/core/kernel/test_try.rb +22 -14
  983. data/test/core/kernel/test_val.rb +22 -18
  984. data/test/core/kernel/test_with.rb +10 -6
  985. data/test/core/kernel/test_writers.rb +40 -36
  986. data/test/core/matchdata/test_match.rb +8 -4
  987. data/test/core/matchdata/test_matchset.rb +19 -9
  988. data/test/core/module/test_abstract.rb +16 -12
  989. data/test/core/module/test_alias_accessor.rb +17 -13
  990. data/test/core/module/test_alias_method_chain.rb +23 -20
  991. data/test/core/module/test_alias_module_function.rb +14 -11
  992. data/test/core/module/test_all_instance_methods.rb +19 -15
  993. data/test/core/module/test_ancestor.rb +9 -5
  994. data/test/core/module/test_anonymous.rb +11 -7
  995. data/test/core/module/test_attr_setter.rb +19 -15
  996. data/test/core/module/test_basename.rb +7 -3
  997. data/test/core/module/test_can.rb +12 -8
  998. data/test/core/module/test_class.rb +13 -9
  999. data/test/core/module/test_class_def.rb +15 -11
  1000. data/test/core/module/test_instance_method.rb +12 -8
  1001. data/test/core/module/test_instance_method_defined.rb +25 -13
  1002. data/test/core/module/test_integrate.rb +16 -12
  1003. data/test/core/module/test_is.rb +33 -26
  1004. data/test/core/module/test_methodize.rb +14 -6
  1005. data/test/core/module/test_modname.rb +7 -3
  1006. data/test/core/module/test_module_def.rb +15 -11
  1007. data/test/core/module/test_nodef.rb +10 -6
  1008. data/test/core/module/test_op.rb +40 -26
  1009. data/test/core/module/test_pathize.rb +14 -6
  1010. data/test/core/module/test_redefine_method.rb +19 -11
  1011. data/test/core/module/test_redirect_method.rb +19 -11
  1012. data/test/core/module/test_remove.rb +10 -7
  1013. data/test/core/module/test_rename_method.rb +21 -13
  1014. data/test/core/module/test_revise.rb +41 -30
  1015. data/test/core/module/test_set.rb +19 -15
  1016. data/test/core/module/test_spacename.rb +8 -4
  1017. data/test/core/module/test_to_obj.rb +12 -8
  1018. data/test/core/module/test_wrap_method.rb +19 -11
  1019. data/test/core/nilclass/test_to_f.rb +7 -4
  1020. data/test/core/numeric/test_approx.rb +10 -6
  1021. data/test/core/numeric/test_distance.rb +9 -5
  1022. data/test/core/numeric/test_length.rb +8 -4
  1023. data/test/core/numeric/test_round.rb +51 -33
  1024. data/test/core/numeric/test_spacing.rb +10 -6
  1025. data/test/core/object/test_dup.rb +55 -56
  1026. data/test/core/object/test_object_state.rb +57 -54
  1027. data/test/core/object/test_replace.rb +47 -42
  1028. data/test/core/object/test_try_dup.rb +38 -25
  1029. data/test/core/proc/test_bind.rb +20 -17
  1030. data/test/core/proc/test_bind_to.rb +10 -6
  1031. data/test/core/proc/test_compose.rb +19 -11
  1032. data/test/core/proc/test_curry.rb +31 -27
  1033. data/test/core/proc/test_partial.rb +19 -15
  1034. data/test/core/proc/test_to_method.rb +28 -24
  1035. data/test/core/proc/test_update.rb +8 -4
  1036. data/test/core/range/test_combine.rb +23 -15
  1037. data/test/core/range/test_overlap.rb +8 -4
  1038. data/test/core/range/test_to_r.rb +11 -7
  1039. data/test/core/range/test_umbrella.rb +23 -19
  1040. data/test/core/range/test_within.rb +19 -6
  1041. data/test/core/regexp/test_arity.rb +20 -10
  1042. data/test/core/regexp/test_multiline.rb +12 -8
  1043. data/test/core/regexp/test_op_add.rb +8 -4
  1044. data/test/core/regexp/test_op_or.rb +9 -5
  1045. data/test/core/regexp/test_to_re.rb +15 -7
  1046. data/test/core/string/test_align.rb +19 -11
  1047. data/test/core/string/test_bracket.rb +28 -24
  1048. data/test/core/string/test_bytes.rb +6 -4
  1049. data/test/core/string/test_camelcase.rb +58 -49
  1050. data/test/core/string/test_capitalized.rb +21 -11
  1051. data/test/core/string/test_characters.rb +6 -4
  1052. data/test/core/string/test_cleanlines.rb +5 -3
  1053. data/test/core/string/test_cleave.rb +19 -15
  1054. data/test/core/string/test_cmp.rb +12 -8
  1055. data/test/core/string/test_compress_lines.rb +11 -7
  1056. data/test/core/string/test_divide.rb +10 -6
  1057. data/test/core/string/test_each_char.rb +10 -6
  1058. data/test/core/string/test_each_word.rb +10 -6
  1059. data/test/core/string/test_edit_distance.rb +12 -8
  1060. data/test/core/string/test_end_with.rb +15 -7
  1061. data/test/core/string/test_exclude.rb +15 -11
  1062. data/test/core/string/test_expand_tabs.rb +39 -36
  1063. data/test/core/string/test_file.rb +8 -4
  1064. data/test/core/string/test_fold.rb +14 -10
  1065. data/test/core/string/test_indent.rb +66 -57
  1066. data/test/core/string/test_index_all.rb +7 -3
  1067. data/test/core/string/test_interpolate.rb +8 -4
  1068. data/test/core/string/test_lchomp.rb +17 -9
  1069. data/test/core/string/test_line_wrap.rb +8 -4
  1070. data/test/core/string/test_lines.rb +8 -4
  1071. data/test/core/string/test_lowercase.rb +10 -6
  1072. data/test/core/string/test_margin.rb +107 -90
  1073. data/test/core/string/test_methodize.rb +19 -15
  1074. data/test/core/string/test_modulize.rb +19 -15
  1075. data/test/core/string/test_mscan.rb +12 -8
  1076. data/test/core/string/test_natcmp.rb +12 -8
  1077. data/test/core/string/test_nchar.rb +10 -6
  1078. data/test/core/string/test_newlines.rb +5 -3
  1079. data/test/core/string/test_op_div.rb +8 -4
  1080. data/test/core/string/test_op_sub.rb +8 -4
  1081. data/test/core/string/test_pathize.rb +19 -16
  1082. data/test/core/string/test_quote.rb +35 -32
  1083. data/test/core/string/test_range.rb +24 -12
  1084. data/test/core/string/test_rewrite.rb +10 -6
  1085. data/test/core/string/test_shatter.rb +10 -6
  1086. data/test/core/string/test_similarity.rb +7 -3
  1087. data/test/core/string/test_snakecase.rb +10 -6
  1088. data/test/core/string/test_splice.rb +27 -21
  1089. data/test/core/string/test_squish.rb +21 -13
  1090. data/test/core/string/test_start_with.rb +15 -7
  1091. data/test/core/string/test_store.rb +9 -5
  1092. data/test/core/string/test_subtract.rb +9 -5
  1093. data/test/core/string/test_tab.rb +8 -4
  1094. data/test/core/string/test_tabto.rb +8 -4
  1095. data/test/core/string/test_titlecase.rb +9 -5
  1096. data/test/core/string/test_to_re.rb +25 -17
  1097. data/test/core/string/test_unbracket.rb +27 -15
  1098. data/test/core/string/test_underscore.rb +13 -9
  1099. data/test/core/string/test_unfold.rb +10 -6
  1100. data/test/core/string/test_unindent.rb +65 -60
  1101. data/test/core/string/test_unquote.rb +7 -3
  1102. data/test/core/string/test_uppercase.rb +13 -9
  1103. data/test/core/string/test_variablize.rb +8 -4
  1104. data/test/core/string/test_word_wrap.rb +64 -42
  1105. data/test/core/string/test_words.rb +16 -10
  1106. data/test/core/string/test_xor.rb +9 -5
  1107. data/test/core/symbol/test_as_s.rb +8 -4
  1108. data/test/core/symbol/test_bang.rb +9 -5
  1109. data/test/core/symbol/test_chomp.rb +12 -4
  1110. data/test/core/symbol/test_generate.rb +11 -7
  1111. data/test/core/symbol/test_not.rb +11 -7
  1112. data/test/core/symbol/test_op_div.rb +8 -4
  1113. data/test/core/symbol/test_plain.rb +11 -5
  1114. data/test/core/symbol/test_query.rb +11 -5
  1115. data/test/core/symbol/test_setter.rb +9 -5
  1116. data/test/core/symbol/test_succ.rb +9 -5
  1117. data/test/core/symbol/test_to_proc.rb +24 -21
  1118. data/test/core/symbol/test_variablize.rb +7 -3
  1119. data/test/core/time/test_ago.rb +8 -5
  1120. data/test/core/time/test_change.rb +10 -6
  1121. data/test/core/time/test_dst_adjustment.rb +4 -3
  1122. data/test/core/time/test_elapse.rb +8 -4
  1123. data/test/core/time/test_future.rb +22 -11
  1124. data/test/core/time/test_hence.rb +8 -5
  1125. data/test/core/time/test_in.rb +8 -5
  1126. data/test/core/time/test_less.rb +30 -28
  1127. data/test/core/time/test_past.rb +22 -11
  1128. data/test/core/time/test_round_to.rb +22 -16
  1129. data/test/core/time/test_set.rb +31 -27
  1130. data/test/core/time/test_shift.rb +128 -119
  1131. data/test/core/time/test_stamp.rb +26 -18
  1132. data/test/core/time/test_to_time.rb +8 -4
  1133. data/test/core/time/test_trunc.rb +23 -17
  1134. data/test/core/to_hash_tc.rb +138 -91
  1135. data/test/core/unboundmethod/test_arguments.rb +16 -12
  1136. data/test/core/unboundmethod/test_name.rb +11 -7
  1137. data/test/standard/test_date.rb +49 -29
  1138. data/test/standard/test_ostruct.rb +144 -127
  1139. data/test/standard/test_random.rb +162 -119
  1140. data/test/standard/test_shellwords.rb +51 -45
  1141. data/test/standard/test_thread.rb +15 -12
  1142. data/test/standard/test_timer.rb +38 -28
  1143. data/test/standard/test_uri.rb +24 -16
  1144. data/test/supplemental/test_argvector.rb +51 -39
  1145. data/test/supplemental/test_enumargs.rb +89 -0
  1146. data/test/supplemental/test_memoizable.rb +29 -25
  1147. data/test/supplemental/test_multipliers.rb +90 -47
  1148. data/test/supplemental/test_tuple.rb +48 -36
  1149. data/work/CHANGES +2529 -0
  1150. data/work/NOTES.rdoc +143 -0
  1151. data/work/bench/bench_load.rb +56 -0
  1152. data/work/bench/enumerable/bench_collect.rb +84 -0
  1153. data/work/bench/enumerable/bench_count.rb +58 -0
  1154. data/work/bench/general/bench_calls.rb +74 -0
  1155. data/work/bench/general/bench_includes.rb +25 -0
  1156. data/work/bench/general/bench_methods.rb +17 -0
  1157. data/work/bench/general/bench_pathname.rb +24 -0
  1158. data/work/bench/general/bench_range.rb +64 -0
  1159. data/work/bench/general/bench_return.rb +56 -0
  1160. data/work/bench/general/bench_yeild.rb +75 -0
  1161. data/work/bench/general/comment_loading/bench.rb +46 -0
  1162. data/work/bench/general/comment_loading/comments_begin.rb +109 -0
  1163. data/work/bench/general/comment_loading/comments_end.rb +127 -0
  1164. data/work/bench/general/comment_loading/comments_none.rb +1 -0
  1165. data/work/bench/general/comment_loading/comments_sharp.rb +125 -0
  1166. data/work/bench/hash/bench_slice.rb +62 -0
  1167. data/work/bench/integer/bench_factorial.rb +31 -0
  1168. data/work/consider/aspects.rb +254 -0
  1169. data/work/consider/attr.rb +82 -0
  1170. data/work/consider/bin.rb +26 -0
  1171. data/work/consider/blackmagic.rb +103 -0
  1172. data/work/consider/bool_attr_accessor.rb +414 -0
  1173. data/work/consider/duration.rb +286 -0
  1174. data/work/consider/forwardable_chain.patch +448 -0
  1175. data/work/consider/knowself.rb +42 -0
  1176. data/work/consider/lib/core/facets.rb +37 -0
  1177. data/work/consider/lib/core/facets/array/fetch.rb +37 -0
  1178. data/work/consider/lib/core/facets/array/op_div.rb +23 -0
  1179. data/work/consider/lib/core/facets/hash/having.rb +75 -0
  1180. data/work/consider/lib/core/facets/string/trim.rb +70 -0
  1181. data/work/consider/lib/more/facets/argv.rb +47 -0
  1182. data/work/consider/lib/more/facets/extension.rb +30 -0
  1183. data/work/consider/lib/more/facets/fixnum.rb +55 -0
  1184. data/work/consider/lib/more/facets/forwardable_chain.patch +448 -0
  1185. data/work/consider/lib/more/facets/gem.rb +23 -0
  1186. data/work/consider/lib/more/facets/interface.rb +230 -0
  1187. data/work/consider/lib/more/facets/plugin.rb +153 -0
  1188. data/work/consider/lib/more/facets/recorder.rb +54 -0
  1189. data/work/consider/lib/more/facets/tasksystem.rb +350 -0
  1190. data/work/consider/mapcar.rb +74 -0
  1191. data/work/consider/require_directory.rb +4 -0
  1192. data/work/consider/set.rb +47 -0
  1193. data/work/consider/succ.rb +44 -0
  1194. data/work/consider/succ_case.rb +39 -0
  1195. data/work/defunct/core/facets/array/combinations.rb +33 -0
  1196. data/work/defunct/core/facets/array/combos.rb +47 -0
  1197. data/work/defunct/core/facets/array/each_uniq_pair.rb +43 -0
  1198. data/work/defunct/core/facets/array/permutation.rb +75 -0
  1199. data/work/defunct/core/facets/array/to_path.rb +14 -0
  1200. data/work/defunct/core/facets/class/initializer.rb +60 -0
  1201. data/work/defunct/core/facets/class/prepend.rb +52 -0
  1202. data/work/defunct/core/facets/class/remove_descendents.rb +42 -0
  1203. data/work/defunct/core/facets/enumerable/cascade.rb +28 -0
  1204. data/work/defunct/core/facets/enumerable/each.rb +89 -0
  1205. data/work/defunct/core/facets/enumerable/to_hash.rb +30 -0
  1206. data/work/defunct/core/facets/hash/access.rb +146 -0
  1207. data/work/defunct/core/facets/hash/group_by_value.rb +66 -0
  1208. data/work/defunct/core/facets/hash/normalize_keys.rb +134 -0
  1209. data/work/defunct/core/facets/hash/op_div.rb +11 -0
  1210. data/work/defunct/core/facets/hash/variablize_keys.rb +48 -0
  1211. data/work/defunct/core/facets/kernel/__assign__.rb +28 -0
  1212. data/work/defunct/core/facets/kernel/__real__.rb +48 -0
  1213. data/work/defunct/core/facets/kernel/deep_clone.rb +48 -0
  1214. data/work/defunct/core/facets/kernel/instance_assume.rb +66 -0
  1215. data/work/defunct/core/facets/kernel/once.rb +54 -0
  1216. data/work/defunct/core/facets/kernel/warn_with_line.rb +29 -0
  1217. data/work/defunct/core/facets/method/curry.rb +10 -0
  1218. data/work/defunct/core/facets/method/partial.rb +10 -0
  1219. data/work/defunct/core/facets/module/attr_toggler.rb +59 -0
  1220. data/work/defunct/core/facets/module/by_name.rb +56 -0
  1221. data/work/defunct/core/facets/module/compare_on.rb +35 -0
  1222. data/work/defunct/core/facets/module/equate_on.rb +36 -0
  1223. data/work/defunct/core/facets/module/methodize.rb +19 -0
  1224. data/work/defunct/core/facets/module/module_method.rb +14 -0
  1225. data/work/defunct/core/facets/module/on_included.rb +80 -0
  1226. data/work/defunct/core/facets/proc/bind.rb +38 -0
  1227. data/work/defunct/core/facets/proc/to_h.rb +22 -0
  1228. data/work/defunct/core/facets/string/camelcase.rb +25 -0
  1229. data/work/defunct/core/facets/string/indexable.rb +144 -0
  1230. data/work/defunct/core/facets/string/stackable.rb +181 -0
  1231. data/work/defunct/core/facets/string/to_const.rb +31 -0
  1232. data/work/defunct/core/facets/string/to_proc.rb +52 -0
  1233. data/work/defunct/core/facets/symbol/pad.rb +1 -0
  1234. data/work/defunct/core/facets/symbol/shadow.rb +37 -0
  1235. data/work/defunct/core/facets/symbol/to_const.rb +31 -0
  1236. data/work/defunct/more/facets/annotations.rb +302 -0
  1237. data/work/defunct/more/facets/duration.rb +540 -0
  1238. data/work/defunct/more/facets/logger.rb +158 -0
  1239. data/work/defunct/more/facets/multiton.rb +390 -0
  1240. data/work/defunct/more/facets/multiton2.rb +237 -0
  1241. data/work/defunct/more/facets/uploadutils.rb +466 -0
  1242. data/work/defunct/script/conflicts +63 -0
  1243. data/work/defunct/script/methods +49 -0
  1244. data/work/defunct/test/string/test_crypt.rb +17 -0
  1245. data/work/defunct/test/string/test_indexable.rb +68 -0
  1246. data/work/defunct/test/string/test_stackable.rb +94 -0
  1247. data/work/defunct/test/string/test_stylize.rb +52 -0
  1248. data/work/defunct/test/test_continuation.rb +15 -0
  1249. data/work/defunct/test/test_instance_exec.rb +44 -0
  1250. data/work/defunct/test/test_ioredirect.rb +23 -0
  1251. data/work/defunct/test/test_prepend.rb +19 -0
  1252. data/work/defunct/test/test_succ.rb +35 -0
  1253. data/work/defunct/yard.assembly +44 -0
  1254. data/work/sandbox/component.rb +120 -0
  1255. data/work/sandbox/enumerator.rb +12 -0
  1256. data/work/sandbox/enumx.rb +116 -0
  1257. data/work/sandbox/express.rb +48 -0
  1258. data/work/sandbox/multidispatch.rb +236 -0
  1259. data/work/sandbox/multidispatch0.rb +224 -0
  1260. data/work/sandbox/multiton2.rb +590 -0
  1261. data/work/sandbox/namespace.rb +169 -0
  1262. data/work/sandbox/safe-study/safe_extension.rb +17 -0
  1263. data/work/sandbox/safe-study/safe_study.rb +16 -0
  1264. data/work/sandbox/to_data.rb +141 -0
  1265. data/work/sandbox/visit.rb +62 -0
  1266. data/work/site/endorse.page +65 -0
  1267. data/work/site/posts/2010-01-25-test_rails_with_facets.post +151 -0
  1268. data/work/site/posts/enumargs.md +30 -0
  1269. data/work/site/posts/tomslib.rb +47 -0
  1270. data/work/site/posts/weblog.xml +78 -0
  1271. data/work/site/sidebar.txt +19 -0
  1272. data/work/todo/more/test_basicobject.rb +34 -0
  1273. data/work/todo/more/test_fileutils_slice.rb +88 -0
  1274. data/work/todo/more/test_fileutils_wc.rb +53 -0
  1275. data/work/todo/more/test_fileutils_which.rb +45 -0
  1276. data/work/todo/more/test_getoptlong.rb +26 -0
  1277. data/work/todo/more/test_multiton.rb +184 -0
  1278. data/work/trash/hook.rdoc +49 -0
  1279. data/work/trash/menu.html +71 -0
  1280. data/work/trash/site-jekyll/.htaccess +1 -0
  1281. data/work/trash/site-jekyll/.rsync-filter +7 -0
  1282. data/work/trash/site-jekyll/.till +1 -0
  1283. data/work/trash/site-jekyll/_config.yml +6 -0
  1284. data/work/trash/site-jekyll/_layouts/default.html +101 -0
  1285. data/work/trash/site-jekyll/_layouts/post.html +23 -0
  1286. data/work/trash/site-jekyll/_posts/2008-01-01-how-facets-was-born.markdown +25 -0
  1287. data/work/trash/site-jekyll/_posts/2008-04-04-times-collect.markdown +33 -0
  1288. data/work/trash/site-jekyll/_posts/2008-10-10-string-margin.markdown +52 -0
  1289. data/work/trash/site-jekyll/_posts/2009-07-21-new-website.markdown +16 -0
  1290. data/work/trash/site-jekyll/_posts/2009-08-22-release-2-7.markdown +127 -0
  1291. data/work/trash/site-jekyll/_posts/2009-11-09-release-2-8.markdown +58 -0
  1292. data/work/trash/site-jekyll/about.html +79 -0
  1293. data/work/trash/site-jekyll/assets/scripts/hover.js +14 -0
  1294. data/work/trash/site-jekyll/assets/scripts/rdocs.js +28 -0
  1295. data/work/trash/site-jekyll/assets/styles/site.css +317 -0
  1296. data/work/trash/site-jekyll/assets/styles/syntax.css +60 -0
  1297. data/work/trash/site-jekyll/atom.xml +23 -0
  1298. data/work/trash/site-jekyll/community.html +72 -0
  1299. data/work/trash/site-jekyll/download.html +84 -0
  1300. data/work/trash/site-jekyll/endorse.html +64 -0
  1301. data/work/trash/site-jekyll/index.html +17 -0
  1302. data/work/trash/site-jekyll/learn.html +221 -0
  1303. data/work/trash/site-jekyll/source.html +74 -0
  1304. data/work/trash/site/.htaccess +1 -0
  1305. data/work/trash/site/.rsync-filter +10 -0
  1306. data/work/trash/site/js/hover.js +14 -0
  1307. data/work/trash/site/js/rdocs.js +28 -0
  1308. data/work/trash/site/quick.html +250 -0
  1309. data/work/trash/site/splash.html +44 -0
  1310. data/work/trash/task/count +48 -0
  1311. data/work/trash/task/load +40 -0
  1312. data/work/trash/task/publish +83 -0
  1313. data/work/trash/task/tag +26 -0
  1314. data/work/trash/test_inject.rb +17 -0
  1315. metadata +1017 -523
  1316. data/NOTICE +0 -27
  1317. data/test/core/module/test_method_clash.rb +0 -50
@@ -0,0 +1,11 @@
1
+ .cache
2
+ .rdoc
3
+ .yardoc
4
+ .reap/digest
5
+ log
6
+ site/doc
7
+ ri
8
+ doc/webri
9
+ doc/yard
10
+ pkg
11
+ tmp
data/.locat ADDED
@@ -0,0 +1,24 @@
1
+
2
+ match 'lib/**/*.rb' do |file, line|
3
+ case line
4
+ when /^\s+#/
5
+ 'Comment'
6
+ when /^\s+$/
7
+ 'Blank'
8
+ else
9
+ 'Code'
10
+ end
11
+ end
12
+
13
+ match '{test,spec}/**/*.rb' do |file, line|
14
+ unless line.strip.empty?
15
+ 'Test'
16
+ end
17
+ end
18
+
19
+ match 'qed/**/*.rdoc' do |file, line|
20
+ unless line.strip.empty?
21
+ 'Test'
22
+ end
23
+ end
24
+
@@ -0,0 +1 @@
1
+ work
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # yard core extensions
4
+ file "lib/core/**/*.rb" do
5
+ cmd = "yard "
6
+ cmd << "-o site/doc/yard/core "
7
+ #cmd << "--title 'Facets Standard Extensions' "
8
+ cmd << "-r doc/README.core "
9
+ cmd << "lib/core - README.rdoc AUTHORS.rdoc NOTICE.rdoc "
10
+ abort unless system cmd
11
+ end
12
+
13
+ # yard core-uncommon extensions
14
+ file "lib/core-uncommon/**/*.rb" do
15
+ cmd = "yard "
16
+ cmd << "-o site/doc/yard/core-uncommon "
17
+ #cmd << "--title 'Facets Uncommon Core Extensions' "
18
+ cmd << "-r doc/README.uncommon "
19
+ cmd << "lib/core-uncommon - README.rdoc AUTHORS.rdoc NOTICE.rdoc "
20
+ abort unless system cmd
21
+ end
22
+
23
+ # yard standard extensions
24
+ file "lib/standard/**/*.rb" do
25
+ cmd = "yard "
26
+ cmd << "-o site/doc/yard/standard "
27
+ #cmd << "--title 'Facets Standard Extensions' "
28
+ cmd << "-r doc/README.standard "
29
+ cmd << "lib/standard - README.rdoc AUTHORS.rdoc NOTICE.rdoc "
30
+ abort unless system cmd
31
+ end
32
+
33
+ # yard supplemental library
34
+ file "lib/supplemental/**/*.rb" do
35
+ cmd = "yard "
36
+ cmd << "-o site/doc/yard/supplemental "
37
+ #cmd << "--title 'Facets Supplemental Library' "
38
+ cmd << "-r doc/README.supplemental "
39
+ cmd << "lib/supplemental - README.rdoc AUTHORS.rdoc NOTICE.rdoc "
40
+ abort unless system cmd
41
+ end
42
+
data/.ruby ADDED
@@ -0,0 +1,57 @@
1
+ ---
2
+ authors:
3
+ - name: Thomas Sawyer
4
+ email: transfire@gmail.com
5
+ copyrights:
6
+ - holder: Thomas Sawyer
7
+ year: '2004'
8
+ license: Ruby
9
+ replacements: []
10
+ conflicts: []
11
+ requirements:
12
+ - name: lemon
13
+ groups:
14
+ - test
15
+ development: true
16
+ - name: qed
17
+ groups:
18
+ - test
19
+ development: true
20
+ - name: detroit
21
+ groups:
22
+ - build
23
+ development: true
24
+ dependencies: []
25
+ repositories:
26
+ - uri: git@github.com:rubyworks/facets.git
27
+ scm: git
28
+ name: upstream
29
+ resources:
30
+ home: http://rubyworks.github.com/facets
31
+ code: http://github.com/rubyworks/facets
32
+ docs: http://rubyworks.github.com/facets/learn.html
33
+ wiki: http://wiki.github.com/rubyworks/facets
34
+ talk: http://groups.google.com/group/facets-universal
35
+ load_path:
36
+ - lib/core
37
+ - lib/core-uncommon
38
+ - lib/standard
39
+ - lib/supplemental
40
+ extra:
41
+ slogan: ALL YOUR BASE ARE BELONG TO RUBY!
42
+ manifest: MANIFEST
43
+ source: []
44
+ alternatives: []
45
+ revision: 0
46
+ title: Facets
47
+ name: facets
48
+ summary: Premium Ruby Extensions
49
+ created: '2004-12-16'
50
+ description: Facets is the premier collection of extension methods for the Ruby programming
51
+ language. Facets extensions are unique by virtue of thier atomicity. They are stored
52
+ in individual files allowing for highly granular control of requirements. In addition,
53
+ Facets includes a few additional classes and mixins suitable to wide variety of
54
+ applications.
55
+ organization: rubyworks
56
+ version: 2.9.2
57
+ date: '2011-08-23'
data/.test ADDED
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'ae'
4
+ require 'lemon'
5
+ require 'fileutils'
6
+
7
+ # A few File methods utilize this location for testing.
8
+ # Ultimately a more robust solution is needed b/c currently
9
+ # there is no guarentee that tests are always run from project
10
+ # root dir. Perhaps we can do a Dir.chdir to ensure it?
11
+ tmp = File.join(File.dirname(__FILE__), 'tmp')
12
+ FileUtils.mkdir(tmp) unless File.directory?(tmp)
13
+
14
+ # Default test run.
15
+ Test.run do |r|
16
+ r.files << 'test/**/test_*.rb'
17
+ end
18
+
19
+ # Generate SimpleCov coverage report.
20
+ Test.run :cov do |r|
21
+ r.files << 'test/**/test_*.rb'
22
+ require 'simplecov'
23
+ SimpleCov.start do
24
+ coverage_dir 'log/coverage'
25
+ add_filter "/test/"
26
+ add_group "Core", "lib/core"
27
+ add_group "Uncommon", "lib/core-uncommon"
28
+ add_group "Standard", "lib/standard"
29
+ add_group "Supplement", "lib/supplemental"
30
+ end
31
+ end
@@ -0,0 +1,7 @@
1
+ --output-dir "site/doc/yard/core"
2
+ --title "Facets Core Extensions"
3
+ --readme README.rdoc
4
+ --protected
5
+ lib/core
6
+ -
7
+ README.rdoc
@@ -0,0 +1,7 @@
1
+ --output-dir "site/doc/yard/standard"
2
+ --title "Facets Standard Library Extensions"
3
+ --readme README.rdoc
4
+ --protected
5
+ lib/standard
6
+ -
7
+ README.rdoc
@@ -0,0 +1,7 @@
1
+ --output-dir "site/doc/yard/supplemental"
2
+ --title "Facets Supplemental Class and Modules"
3
+ --readme README.rdoc
4
+ --protected
5
+ lib/supplemental
6
+ -
7
+ README.rdoc
@@ -0,0 +1,7 @@
1
+ --output-dir "site/doc/yard/uncommon"
2
+ --title "Facets Uncommon Core Extensions"
3
+ --readme README.rdoc
4
+ --protected
5
+ lib/core-uncommon
6
+ -
7
+ README.rdoc
@@ -9,6 +9,8 @@
9
9
  The following developers have recently contributed to the development of Facets.
10
10
  They are held in the highest regard for their efforts.
11
11
 
12
+ * Michel Martens Clap-like CLI parser added to Shellwords.
13
+
12
14
  * Alexey Petrushin Some methods from `ruby-ext` project.
13
15
  * Michael Harmer Documentation Improvements
14
16
  * Lavir the Whiolet Improved Range#at_rand and added File#ext.
@@ -0,0 +1,38 @@
1
+ ---
2
+ gem:
3
+ active: true
4
+
5
+ github:
6
+ active: true
7
+
8
+ email:
9
+ service: Email
10
+ mailto:
11
+ - ruby-talk@ruby-lang.org
12
+ - rubyworks-mailinglist@googlegroups.com
13
+
14
+ vclog:
15
+ output: log/ChangeLog.rdoc
16
+ active: false
17
+
18
+ # TODO: Use ruby-test tool when ready
19
+ lemon:
20
+ tool : Custom
21
+ track : main
22
+ test: |
23
+ sh 'ruby-test test'
24
+ active: false
25
+
26
+ #rubyforge:
27
+ # service: Rubyforge
28
+ # groupid: 804
29
+ # sitemap:
30
+ # site : '.'
31
+ # #doc/rdoc: rdoc
32
+ # #doc/yard: yard
33
+ # active: false
34
+
35
+ #till:
36
+ # service: Till
37
+ # active: false
38
+
@@ -0,0 +1,282 @@
1
+
2
+ GNU GENERAL PUBLIC LICENSE
3
+ Version 2, June 1991
4
+
5
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
6
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
7
+ Everyone is permitted to copy and distribute verbatim copies
8
+ of this license document, but changing it is not allowed.
9
+
10
+ Preamble
11
+
12
+ The licenses for most software are designed to take away your
13
+ freedom to share and change it. By contrast, the GNU General Public
14
+ License is intended to guarantee your freedom to share and change free
15
+ software--to make sure the software is free for all its users. This
16
+ General Public License applies to most of the Free Software
17
+ Foundation's software and to any other program whose authors commit to
18
+ using it. (Some other Free Software Foundation software is covered by
19
+ the GNU Library General Public License instead.) You can apply it to
20
+ your programs, too.
21
+
22
+ When we speak of free software, we are referring to freedom, not
23
+ price. Our General Public Licenses are designed to make sure that you
24
+ have the freedom to distribute copies of free software (and charge for
25
+ this service if you wish), that you receive source code or can get it
26
+ if you want it, that you can change the software or use pieces of it
27
+ in new free programs; and that you know you can do these things.
28
+
29
+ To protect your rights, we need to make restrictions that forbid
30
+ anyone to deny you these rights or to ask you to surrender the rights.
31
+ These restrictions translate to certain responsibilities for you if you
32
+ distribute copies of the software, or if you modify it.
33
+
34
+ For example, if you distribute copies of such a program, whether
35
+ gratis or for a fee, you must give the recipients all the rights that
36
+ you have. You must make sure that they, too, receive or can get the
37
+ source code. And you must show them these terms so they know their
38
+ rights.
39
+
40
+ We protect your rights with two steps: (1) copyright the software, and
41
+ (2) offer you this license which gives you legal permission to copy,
42
+ distribute and/or modify the software.
43
+
44
+ Also, for each author's protection and ours, we want to make certain
45
+ that everyone understands that there is no warranty for this free
46
+ software. If the software is modified by someone else and passed on, we
47
+ want its recipients to know that what they have is not the original, so
48
+ that any problems introduced by others will not reflect on the original
49
+ authors' reputations.
50
+
51
+ Finally, any free program is threatened constantly by software
52
+ patents. We wish to avoid the danger that redistributors of a free
53
+ program will individually obtain patent licenses, in effect making the
54
+ program proprietary. To prevent this, we have made it clear that any
55
+ patent must be licensed for everyone's free use or not licensed at all.
56
+
57
+ The precise terms and conditions for copying, distribution and
58
+ modification follow.
59
+
60
+ GNU GENERAL PUBLIC LICENSE
61
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
62
+
63
+ 0. This License applies to any program or other work which contains
64
+ a notice placed by the copyright holder saying it may be distributed
65
+ under the terms of this General Public License. The "Program", below,
66
+ refers to any such program or work, and a "work based on the Program"
67
+ means either the Program or any derivative work under copyright law:
68
+ that is to say, a work containing the Program or a portion of it,
69
+ either verbatim or with modifications and/or translated into another
70
+ language. (Hereinafter, translation is included without limitation in
71
+ the term "modification".) Each licensee is addressed as "you".
72
+
73
+ Activities other than copying, distribution and modification are not
74
+ covered by this License; they are outside its scope. The act of
75
+ running the Program is not restricted, and the output from the Program
76
+ is covered only if its contents constitute a work based on the
77
+ Program (independent of having been made by running the Program).
78
+ Whether that is true depends on what the Program does.
79
+
80
+ 1. You may copy and distribute verbatim copies of the Program's
81
+ source code as you receive it, in any medium, provided that you
82
+ conspicuously and appropriately publish on each copy an appropriate
83
+ copyright notice and disclaimer of warranty; keep intact all the
84
+ notices that refer to this License and to the absence of any warranty;
85
+ and give any other recipients of the Program a copy of this License
86
+ along with the Program.
87
+
88
+ You may charge a fee for the physical act of transferring a copy, and
89
+ you may at your option offer warranty protection in exchange for a fee.
90
+
91
+ 2. You may modify your copy or copies of the Program or any portion
92
+ of it, thus forming a work based on the Program, and copy and
93
+ distribute such modifications or work under the terms of Section 1
94
+ above, provided that you also meet all of these conditions:
95
+
96
+ a) You must cause the modified files to carry prominent notices
97
+ stating that you changed the files and the date of any change.
98
+
99
+ b) You must cause any work that you distribute or publish, that in
100
+ whole or in part contains or is derived from the Program or any
101
+ part thereof, to be licensed as a whole at no charge to all third
102
+ parties under the terms of this License.
103
+
104
+ c) If the modified program normally reads commands interactively
105
+ when run, you must cause it, when started running for such
106
+ interactive use in the most ordinary way, to print or display an
107
+ announcement including an appropriate copyright notice and a
108
+ notice that there is no warranty (or else, saying that you provide
109
+ a warranty) and that users may redistribute the program under
110
+ these conditions, and telling the user how to view a copy of this
111
+ License. (Exception: if the Program itself is interactive but
112
+ does not normally print such an announcement, your work based on
113
+ the Program is not required to print an announcement.)
114
+
115
+ These requirements apply to the modified work as a whole. If
116
+ identifiable sections of that work are not derived from the Program,
117
+ and can be reasonably considered independent and separate works in
118
+ themselves, then this License, and its terms, do not apply to those
119
+ sections when you distribute them as separate works. But when you
120
+ distribute the same sections as part of a whole which is a work based
121
+ on the Program, the distribution of the whole must be on the terms of
122
+ this License, whose permissions for other licensees extend to the
123
+ entire whole, and thus to each and every part regardless of who wrote it.
124
+
125
+ Thus, it is not the intent of this section to claim rights or contest
126
+ your rights to work written entirely by you; rather, the intent is to
127
+ exercise the right to control the distribution of derivative or
128
+ collective works based on the Program.
129
+
130
+ In addition, mere aggregation of another work not based on the Program
131
+ with the Program (or with a work based on the Program) on a volume of
132
+ a storage or distribution medium does not bring the other work under
133
+ the scope of this License.
134
+
135
+ 3. You may copy and distribute the Program (or a work based on it,
136
+ under Section 2) in object code or executable form under the terms of
137
+ Sections 1 and 2 above provided that you also do one of the following:
138
+
139
+ a) Accompany it with the complete corresponding machine-readable
140
+ source code, which must be distributed under the terms of Sections
141
+ 1 and 2 above on a medium customarily used for software interchange; or,
142
+
143
+ b) Accompany it with a written offer, valid for at least three
144
+ years, to give any third party, for a charge no more than your
145
+ cost of physically performing source distribution, a complete
146
+ machine-readable copy of the corresponding source code, to be
147
+ distributed under the terms of Sections 1 and 2 above on a medium
148
+ customarily used for software interchange; or,
149
+
150
+ c) Accompany it with the information you received as to the offer
151
+ to distribute corresponding source code. (This alternative is
152
+ allowed only for noncommercial distribution and only if you
153
+ received the program in object code or executable form with such
154
+ an offer, in accord with Subsection b above.)
155
+
156
+ The source code for a work means the preferred form of the work for
157
+ making modifications to it. For an executable work, complete source
158
+ code means all the source code for all modules it contains, plus any
159
+ associated interface definition files, plus the scripts used to
160
+ control compilation and installation of the executable. However, as a
161
+ special exception, the source code distributed need not include
162
+ anything that is normally distributed (in either source or binary
163
+ form) with the major components (compiler, kernel, and so on) of the
164
+ operating system on which the executable runs, unless that component
165
+ itself accompanies the executable.
166
+
167
+ If distribution of executable or object code is made by offering
168
+ access to copy from a designated place, then offering equivalent
169
+ access to copy the source code from the same place counts as
170
+ distribution of the source code, even though third parties are not
171
+ compelled to copy the source along with the object code.
172
+
173
+ 4. You may not copy, modify, sublicense, or distribute the Program
174
+ except as expressly provided under this License. Any attempt
175
+ otherwise to copy, modify, sublicense or distribute the Program is
176
+ void, and will automatically terminate your rights under this License.
177
+ However, parties who have received copies, or rights, from you under
178
+ this License will not have their licenses terminated so long as such
179
+ parties remain in full compliance.
180
+
181
+ 5. You are not required to accept this License, since you have not
182
+ signed it. However, nothing else grants you permission to modify or
183
+ distribute the Program or its derivative works. These actions are
184
+ prohibited by law if you do not accept this License. Therefore, by
185
+ modifying or distributing the Program (or any work based on the
186
+ Program), you indicate your acceptance of this License to do so, and
187
+ all its terms and conditions for copying, distributing or modifying
188
+ the Program or works based on it.
189
+
190
+ 6. Each time you redistribute the Program (or any work based on the
191
+ Program), the recipient automatically receives a license from the
192
+ original licensor to copy, distribute or modify the Program subject to
193
+ these terms and conditions. You may not impose any further
194
+ restrictions on the recipients' exercise of the rights granted herein.
195
+ You are not responsible for enforcing compliance by third parties to
196
+ this License.
197
+
198
+ 7. If, as a consequence of a court judgment or allegation of patent
199
+ infringement or for any other reason (not limited to patent issues),
200
+ conditions are imposed on you (whether by court order, agreement or
201
+ otherwise) that contradict the conditions of this License, they do not
202
+ excuse you from the conditions of this License. If you cannot
203
+ distribute so as to satisfy simultaneously your obligations under this
204
+ License and any other pertinent obligations, then as a consequence you
205
+ may not distribute the Program at all. For example, if a patent
206
+ license would not permit royalty-free redistribution of the Program by
207
+ all those who receive copies directly or indirectly through you, then
208
+ the only way you could satisfy both it and this License would be to
209
+ refrain entirely from distribution of the Program.
210
+
211
+ If any portion of this section is held invalid or unenforceable under
212
+ any particular circumstance, the balance of the section is intended to
213
+ apply and the section as a whole is intended to apply in other
214
+ circumstances.
215
+
216
+ It is not the purpose of this section to induce you to infringe any
217
+ patents or other property right claims or to contest validity of any
218
+ such claims; this section has the sole purpose of protecting the
219
+ integrity of the free software distribution system, which is
220
+ implemented by public license practices. Many people have made
221
+ generous contributions to the wide range of software distributed
222
+ through that system in reliance on consistent application of that
223
+ system; it is up to the author/donor to decide if he or she is willing
224
+ to distribute software through any other system and a licensee cannot
225
+ impose that choice.
226
+
227
+ This section is intended to make thoroughly clear what is believed to
228
+ be a consequence of the rest of this License.
229
+
230
+ 8. If the distribution and/or use of the Program is restricted in
231
+ certain countries either by patents or by copyrighted interfaces, the
232
+ original copyright holder who places the Program under this License
233
+ may add an explicit geographical distribution limitation excluding
234
+ those countries, so that distribution is permitted only in or among
235
+ countries not thus excluded. In such case, this License incorporates
236
+ the limitation as if written in the body of this License.
237
+
238
+ 9. The Free Software Foundation may publish revised and/or new versions
239
+ of the General Public License from time to time. Such new versions will
240
+ be similar in spirit to the present version, but may differ in detail to
241
+ address new problems or concerns.
242
+
243
+ Each version is given a distinguishing version number. If the Program
244
+ specifies a version number of this License which applies to it and "any
245
+ later version", you have the option of following the terms and conditions
246
+ either of that version or of any later version published by the Free
247
+ Software Foundation. If the Program does not specify a version number of
248
+ this License, you may choose any version ever published by the Free Software
249
+ Foundation.
250
+
251
+ 10. If you wish to incorporate parts of the Program into other free
252
+ programs whose distribution conditions are different, write to the author
253
+ to ask for permission. For software which is copyrighted by the Free
254
+ Software Foundation, write to the Free Software Foundation; we sometimes
255
+ make exceptions for this. Our decision will be guided by the two goals
256
+ of preserving the free status of all derivatives of our free software and
257
+ of promoting the sharing and reuse of software generally.
258
+
259
+ NO WARRANTY
260
+
261
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
262
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
263
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
264
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
265
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
266
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
267
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
268
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
269
+ REPAIR OR CORRECTION.
270
+
271
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
272
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
273
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
274
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
275
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
276
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
277
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
278
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
279
+ POSSIBILITY OF SUCH DAMAGES.
280
+
281
+ END OF TERMS AND CONDITIONS
282
+