facets 2.5.0 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. data/AUTHORS +1 -1
  2. data/CHANGES +28 -45
  3. data/MANIFEST +35 -4
  4. data/README +3 -14
  5. data/RELEASE +36 -70
  6. data/VERSION +1 -1
  7. data/doc/archive/RELEASE-2.5.0 +83 -0
  8. data/doc/log/basic_stats/index.html +4 -4
  9. data/doc/log/changelog.html +509 -2
  10. data/doc/log/changelog.txt +130 -1522
  11. data/doc/rdoc/core/classes/Array.html +366 -141
  12. data/doc/rdoc/core/classes/Binding.html +45 -45
  13. data/doc/rdoc/core/classes/Class.html +38 -38
  14. data/doc/rdoc/core/classes/Comparable.html +26 -26
  15. data/doc/rdoc/core/classes/Enumerable.html +174 -170
  16. data/doc/rdoc/core/classes/Enumerable/Enumerator.html +130 -0
  17. data/doc/rdoc/core/classes/Enumerator.html +132 -0
  18. data/doc/rdoc/core/classes/Exception.html +8 -8
  19. data/doc/rdoc/core/classes/File.html +58 -58
  20. data/doc/rdoc/core/classes/FileTest.html +4 -4
  21. data/doc/rdoc/core/classes/Float.html +8 -8
  22. data/doc/rdoc/core/classes/Functor.html +12 -12
  23. data/doc/rdoc/core/classes/Hash.html +447 -263
  24. data/doc/rdoc/core/classes/Indexable.html +110 -110
  25. data/doc/rdoc/core/classes/Integer.html +2 -2
  26. data/doc/rdoc/core/classes/Kernel.html +329 -329
  27. data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
  28. data/doc/rdoc/core/classes/MatchData.html +15 -15
  29. data/doc/rdoc/core/classes/Module.html +176 -157
  30. data/doc/rdoc/core/classes/NilClass.html +23 -23
  31. data/doc/rdoc/core/classes/Numeric.html +27 -27
  32. data/doc/rdoc/core/classes/Object.html +8 -8
  33. data/doc/rdoc/core/classes/ObjectSpace.html +5 -5
  34. data/doc/rdoc/core/classes/Proc.html +22 -22
  35. data/doc/rdoc/core/classes/Regexp.html +1 -1
  36. data/doc/rdoc/core/classes/Stackable.html +31 -31
  37. data/doc/rdoc/core/classes/String.html +332 -291
  38. data/doc/rdoc/core/classes/Symbol.html +1 -1
  39. data/doc/rdoc/core/classes/TrueClass.html +8 -8
  40. data/doc/rdoc/core/classes/UnboundMethod.html +18 -13
  41. data/doc/rdoc/core/created.rid +1 -1
  42. data/doc/rdoc/core/files/README.html +7 -29
  43. data/doc/rdoc/core/files/lib/core/facets/array/product_rb.html +1 -1
  44. data/doc/rdoc/core/files/lib/core/facets/enumerable/collect_rb.html +10 -1
  45. data/doc/rdoc/core/files/lib/core/facets/enumerable/compact_map_rb.html +92 -0
  46. data/doc/rdoc/core/files/lib/core/facets/enumerable/map_with_index_rb.html +92 -0
  47. data/doc/rdoc/core/files/lib/core/facets/enumerable/split_rb.html +1 -1
  48. data/doc/rdoc/core/files/lib/core/facets/hash/collate_rb.html +1 -1
  49. data/doc/rdoc/core/files/lib/core/facets/hash/group_by_value_rb.html +92 -0
  50. data/doc/rdoc/core/files/lib/core/facets/hash/new_with_rb.html +92 -0
  51. data/doc/rdoc/core/files/lib/core/facets/module/conflict_rb.html +1 -1
  52. data/doc/rdoc/core/files/lib/core/facets/module/extend_rb.html +92 -0
  53. data/doc/rdoc/core/files/lib/core/facets/string/align_rb.html +1 -1
  54. data/doc/rdoc/core/files/lib/core/facets/string/file_rb.html +96 -0
  55. data/doc/rdoc/core/files/lib/core/facets/string/xor_rb.html +1 -1
  56. data/doc/rdoc/core/files/lib/core/facets/to_hash_rb.html +5 -1
  57. data/doc/rdoc/core/files/lib/core/facets/unboundmethod/name_rb.html +1 -1
  58. data/doc/rdoc/core/fr_class_index.html +2 -0
  59. data/doc/rdoc/core/fr_file_index.html +6 -0
  60. data/doc/rdoc/core/fr_method_index.html +386 -373
  61. data/doc/rdoc/lore/classes/OpenStruct.html +6 -4
  62. data/doc/rdoc/lore/created.rid +1 -1
  63. data/doc/rdoc/lore/files/README.html +7 -29
  64. data/doc/rdoc/lore/files/lib/lore/facets/ostruct_rb.html +1 -1
  65. data/doc/rdoc/more/classes/ANSICode.html +66 -66
  66. data/doc/rdoc/more/classes/Advisable.html +37 -37
  67. data/doc/rdoc/more/classes/Advisable/Method.html +20 -20
  68. data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +27 -27
  69. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +28 -28
  70. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +19 -19
  71. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +31 -31
  72. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +33 -33
  73. data/doc/rdoc/more/classes/Association.html +67 -53
  74. data/doc/rdoc/more/classes/Association/Kernel.html +11 -12
  75. data/doc/rdoc/more/classes/BBCode.html +36 -36
  76. data/doc/rdoc/more/classes/BaseX.html +16 -16
  77. data/doc/rdoc/more/classes/BiCrypt.html +67 -67
  78. data/doc/rdoc/more/classes/BinReadable.html +85 -85
  79. data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +25 -25
  80. data/doc/rdoc/more/classes/Binding.html +8 -8
  81. data/doc/rdoc/more/classes/Buildable.html +4 -4
  82. data/doc/rdoc/more/classes/Cloneable.html +4 -4
  83. data/doc/rdoc/more/classes/ConsoleUtils.html +18 -18
  84. data/doc/rdoc/more/classes/Crypt.html +16 -16
  85. data/doc/rdoc/more/classes/CssTree.html +8 -8
  86. data/doc/rdoc/more/classes/Dictionary.html +52 -45
  87. data/doc/rdoc/more/classes/Enumerable.html +50 -50
  88. data/doc/rdoc/more/classes/Enumerable/Elementor.html +16 -16
  89. data/doc/rdoc/more/classes/Enumerable/Enumerator.html +4 -4
  90. data/doc/rdoc/more/classes/Enumerable/Filterable.html +30 -30
  91. data/doc/rdoc/more/classes/EnumerablePass.html +15 -15
  92. data/doc/rdoc/more/classes/Equatable.html +16 -16
  93. data/doc/rdoc/more/classes/Expirable.html +17 -17
  94. data/doc/rdoc/more/classes/Fileable.html +14 -14
  95. data/doc/rdoc/more/classes/Fileable/DSL.html +41 -41
  96. data/doc/rdoc/more/classes/Hash2Xml.html +4 -4
  97. data/doc/rdoc/more/classes/Hook.html +162 -0
  98. data/doc/rdoc/more/classes/HtmlFilter.html +9 -9
  99. data/doc/rdoc/more/classes/Instantiable.html +9 -9
  100. data/doc/rdoc/more/classes/Instantize.html +8 -8
  101. data/doc/rdoc/more/classes/Interval.html +187 -187
  102. data/doc/rdoc/more/classes/It.html +12 -12
  103. data/doc/rdoc/more/classes/Matcher.html +38 -38
  104. data/doc/rdoc/more/classes/Matcher/MatchData.html +4 -4
  105. data/doc/rdoc/more/classes/Memoizer.html +21 -21
  106. data/doc/rdoc/more/classes/Multiton.html +12 -12
  107. data/doc/rdoc/more/classes/Multiton/MetaMethods.html +28 -28
  108. data/doc/rdoc/more/classes/Net/SMTP.html +8 -8
  109. data/doc/rdoc/more/classes/OpEsc.html +5 -5
  110. data/doc/rdoc/more/classes/OpenCascade.html +4 -4
  111. data/doc/rdoc/more/classes/OpenHash.html +9 -9
  112. data/doc/rdoc/more/classes/OpenStructable.html +36 -36
  113. data/doc/rdoc/more/classes/PQueue.html +84 -84
  114. data/doc/rdoc/more/classes/Paramix.html +16 -16
  115. data/doc/rdoc/more/classes/Paramix/Delegator.html +16 -16
  116. data/doc/rdoc/more/classes/RWDelegator.html +16 -16
  117. data/doc/rdoc/more/classes/Random.html +5 -5
  118. data/doc/rdoc/more/classes/Random/Array.html +37 -37
  119. data/doc/rdoc/more/classes/Random/Hash.html +52 -52
  120. data/doc/rdoc/more/classes/Random/Object.html +4 -4
  121. data/doc/rdoc/more/classes/Random/String.html +34 -34
  122. data/doc/rdoc/more/classes/Random/String/Self.html +9 -9
  123. data/doc/rdoc/more/classes/Registerable.html +13 -13
  124. data/doc/rdoc/more/classes/Stash.html +28 -28
  125. data/doc/rdoc/more/classes/String/Mask.html +72 -72
  126. data/doc/rdoc/more/classes/String/Words.html +31 -31
  127. data/doc/rdoc/more/classes/System.html +253 -253
  128. data/doc/rdoc/more/classes/Timer.html +48 -48
  129. data/doc/rdoc/more/classes/Timer/Dummy.html +9 -9
  130. data/doc/rdoc/more/classes/Tuple.html +170 -170
  131. data/doc/rdoc/more/classes/TypeCast/Class.html +4 -4
  132. data/doc/rdoc/more/classes/TypeCast/Object.html +4 -4
  133. data/doc/rdoc/more/classes/Uninheritable.html +6 -6
  134. data/doc/rdoc/more/classes/X.html +117 -0
  135. data/doc/rdoc/more/classes/XOXO.html +11 -11
  136. data/doc/rdoc/more/classes/ZipUtils.html +88 -88
  137. data/doc/rdoc/more/classes/ZipUtils/DryRun.html +68 -68
  138. data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +68 -68
  139. data/doc/rdoc/more/classes/ZipUtils/Verbose.html +60 -60
  140. data/doc/rdoc/more/created.rid +1 -1
  141. data/doc/rdoc/more/files/README.html +7 -29
  142. data/doc/rdoc/more/files/lib/more/facets/association_rb.html +1 -1
  143. data/doc/rdoc/more/files/lib/more/facets/dictionary_rb.html +1 -1
  144. data/doc/rdoc/more/files/lib/more/facets/hook_rb.html +96 -0
  145. data/doc/rdoc/more/files/lib/more/facets/paramix_rb.html +1 -1
  146. data/doc/rdoc/more/files/lib/more/facets/xoxo_rb.html +2 -2
  147. data/doc/rdoc/more/fr_class_index.html +2 -0
  148. data/doc/rdoc/more/fr_file_index.html +1 -0
  149. data/doc/rdoc/more/fr_method_index.html +686 -681
  150. data/lib/core/facets/array/product.rb +6 -23
  151. data/lib/core/facets/enumerable/collect.rb +3 -53
  152. data/lib/core/facets/enumerable/compact_map.rb +35 -0
  153. data/lib/core/facets/enumerable/map_with_index.rb +23 -0
  154. data/lib/core/facets/enumerable/split.rb +3 -3
  155. data/lib/core/facets/hash/collate.rb +45 -14
  156. data/lib/core/facets/hash/group_by_value.rb +65 -0
  157. data/lib/core/facets/hash/new_with.rb +15 -0
  158. data/lib/core/facets/module/extend.rb +11 -0
  159. data/lib/core/facets/string/align.rb +19 -18
  160. data/lib/core/facets/string/file.rb +17 -0
  161. data/lib/core/facets/string/xor.rb +9 -3
  162. data/lib/core/facets/to_hash.rb +274 -17
  163. data/lib/core/facets/unboundmethod/name.rb +4 -2
  164. data/lib/lore/facets/ostruct.rb +3 -0
  165. data/lib/more/facets/association.rb +28 -12
  166. data/lib/more/facets/dictionary.rb +10 -4
  167. data/lib/more/facets/hook.rb +65 -0
  168. data/lib/more/facets/paramix.rb +5 -5
  169. data/meta/abstract +13 -0
  170. data/meta/authors +1 -0
  171. data/meta/contact +1 -0
  172. data/meta/contributors +48 -0
  173. data/meta/created +1 -0
  174. data/meta/homepage +1 -0
  175. data/meta/license +1 -0
  176. data/meta/loadpath +3 -0
  177. data/meta/releases +14 -0
  178. data/meta/slogan +1 -0
  179. data/meta/summary +1 -0
  180. data/task/test.rake +116 -18
  181. data/test/core/array/test_product.rb +0 -6
  182. data/test/core/binding/test_local_variables.rb +9 -3
  183. data/test/core/enumerable/test_split.rb +19 -0
  184. data/test/core/module/test_conflict.rb +8 -3
  185. data/test/core/test_to_hash.rb +152 -0
  186. data/test/core/unboundmethod/test_arguments.rb +1 -1
  187. data/test/core/unboundmethod/test_name.rb +2 -2
  188. metadata +39 -8
  189. data/doc/log/bstats/stats.html +0 -39
  190. data/doc/log/stats.html +0 -25
  191. data/test/more/test_to_hash.rb +0 -58
data/AUTHORS CHANGED
@@ -9,6 +9,7 @@
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
+ * Sandor Szücs Fixes for String#align_right and #align_left.
12
13
  * Tyler Rick Fixed bug in Time#hence and #ago.
13
14
  * Brian Candler Provided Enumerator::Filter.
14
15
  * Jeena Paradies Provided INI implementation.
@@ -16,7 +17,6 @@ They are held in the highest regard for their efforts.
16
17
  * Daniel Schierbeck Speed imporvements to odd? and even?
17
18
  * Ken Bloom For DictionaryMatcher class (class might be renamed in future).
18
19
  * Matthew Harris Incorporated very useful Duration class.
19
- * Noah Gibbs Completed port from Extensions project.
20
20
 
21
21
  == Recent Bug Reports
22
22
 
data/CHANGES CHANGED
@@ -1,50 +1,33 @@
1
- == 2.5.0 / 2008-11-23
1
+ == 2.5.1 / 2009-03-05
2
2
 
3
- * 4 Major Enhancements
3
+ * Additions
4
4
 
5
- * memoize.rb, bug had cache working at class-level, fixed to work at instance-level (#f5c3b659591b85ff55d0a82ec65316126b01e210)
6
- * finalized deprecation of buildable.rb, bytes.rb and times.rb (#e290ea855cceefd0033bb3b7fe2ff23fb6beb29a)
7
- * Added Brian Candler's Enumerator::Filter (#1f69ed9924af80b71328eec3509f7ccc280435c6)
8
- * deprecated uploadutils.rb & renamed cachedelegator to memoizer (#fce69653d3b40ad16738bbe366494a587b53cb28)
5
+ * added Hash#group_by_value (thanks to Erik Veenstra) (#131d6c81a5411fb21f005ae8d2051311b0e3e9c5)
6
+ * added String#file (#952399f7d437f26aee3c4e9747a61e76b7e89735)
7
+ * added to_h_auto (#d7d5b02a219f850bc4a3b396de67e63cf005df5c)
8
+ * overhauled to_hash.rb, now has multiple methods (#5ba2fb2bef735af8afec1b27cf381787baad3a8f)
9
+ * added Hash#new_with (Pit Capitan) (#2dca37952e9803e816efc62514e8027fc2e1bf12)
10
+ * added module/extend.rb, now can take a block. (#cd6fd7dea22a4ca57712773331ca495d1fb46b86)
11
+ * added hook.rb (#928f39446a01278e9587586fb6c684f3e1b1e36f)
9
12
 
10
- * 34 Other Enhancements
13
+ * Enhancements
11
14
 
12
- * switched to git as of 2.4.4 (#9677fbda269f205ff5ab07eabca70fe419b7b485)
13
- * aliased Comparable#cap to at_most and separated bound methods into files (#576e36a3e709c1512477084ceab962cde10aafba)
14
- * fixed outdent test and demo in instance_variables.rb (#d207eadbd9bc43936e63730a9d0a93e6c9c3c45b)
15
- * deactivated reap test services temporarily (#0495409de664c53293b64d50316b8a1ad59b803c)
16
- * updated AUTHORS and README (#d793ab0df2fbbe5b3947dadf2ab612a5f0b54253)
17
- * add string/outdent.rb file (#a4c7cf513d4a37f8230392917f57eb48c4560c45)
18
- * added lazyenum.rb to work/consider (#26ed9bd74574df80752f243610e77d5b2e19e278)
19
- * deprecated annotations.rb --use Anise project instead (#ffd083e355ac069aacb7bd6a18d9ab3609f0aec8)
20
- * updated all CREDIT: comments elminating any indent (#26e439aa7cd825443470071ad28fe3ae00d7041d)
21
- * binding/caller.rb, fixed require for callstack.rb (#3c8c51271854a308be35118e69f97c85767fade7)
22
- * fixed some credits (#46a2e5e0cd235b40b6c8dd7ac6f0c1a5d28b3bb3)
23
- * minor touch up to a few tests (#c15d569c5ff44770291490a06ec280765f0b23ae)
24
- * moved Hash#symolize_keys to core and removed tagiter.rb (#99a43a648411bb27a5473e2feb049476d2fe8158)
25
- * renamed DictionaryMatcher to just Matcher (#7170ecfdfd650d7477974c28ed3e7aeeafbe37e8)
26
- * improved docs for Hash#rekey (#6f8eb8ac265613ca25d1f91f17bb87eeeaa30f17)
27
- * removed tests of deprecated libraries (#c40eb89ac84eb6968bf3ca5b63255361e401dc3d)
28
- * removed more/chain.rb; it was expiremental (#21ee88ae808daf4e94c0f918776068f6b93ca00c)
29
- * fixed missing require in string/tabto and minor doc adjustments (#033bee47b8e77180018fffc9cf937e05f0ef15b0)
30
- * consoleutils.rb and ziputils.rb, added deprecation warning (#3393df26d085e43e5f23707e9a44744ad12c9a34)
31
- * removed some old work material (#fe44485a97e582f9d7fb269ed5215358f16bc870)
32
- * uploadutils.rb, added deprecation warning (#85b8796a2391ab1b3f4b7c24abea51f1d75407f0)
33
- * added test for filter.rb (#d1b683f891f9b6a536fdf8ee39ff28a1867d1171)
34
- * Fixed some bugs with Time#ago/Time#hence not changing years correctly when you changed months.
35
- (For example, Time.utc(2008, 1, 1).ago(12, :months) incorrectly returned 2009-01-01 instead of 2007-01-01.)
36
- Added a bunch of tests for Time#ago/Time#hence.
37
- Changed Time#ago/Time#hence to still work if passed negative number. (#6713f9ed3ac045ce7ab26f336b375167f09fbed1)
38
- * update authors (#805a1e7dd8be36063a7ad580279fd12525a48ae2)
39
- * Merge: 805a1e7... 6713f9e...
40
- Merge branch 'master' of gitosis@rubyforge.org:facets (#b6bd3fbeb09aa7c84d503b529ffaf14a2a57188f)
41
- * adjusted docs for eventhook.rb (#cddd022ba77c910aa6c8c3f4f258f6fbb429f67f)
42
- * collected notes into doc/guide/notes.rd (#063c61e560c44528b7d194d1dea68a0d1a58dbc0)
43
- * removed lingering .svn directories (#e22bb8ce1154a6a6c66ee4358a15fc29a62b6c06)
44
- * deprecated eventhook.rb (#95cab67716ed5132409c8dae0848abbf83036e0e)
45
- * updated reap service configs (#af975097d1da4029281b761b1d366e1df9616f5a)
46
- * moved reap service configs (#3f76241ad016088d46fdeee181a07563a6bab2c8)
47
- * added work/suggestions.txt (#e944f9fbeea538f6fd5492b89c8aadc6ed35cbd2)
48
- * added sparse_array.rb (was old harray.rb) (#52e277a14a4cf377e2c20a26597ffe62bd35e39d)
49
- * pathlist, minor spacing adjusment (#f033d39210ccb32bc00d7f321f5d7a9fa2b79ddd)
15
+ * corrected ostruct.rb to test for frozen state on updates (#1170dd9e1fdd552a98a01056547531ac6c9ee9f4)
16
+ * split enumerable/collect into map_with_index and compact_map (#a917218ab39cc15fbba6137a9b27911317dc64f2)
17
+ * fixed String#left_align (#743d17d08f81ff1b4eb69d640a993865a8292335)
18
+ * improved Array#to_h for 1.9 using flatten(1) (#a9e7f024b2a589c87b1313c4addc5d7e1f5df524)
19
+ * Dictionary#replace can take regular Hash too (#69d6d8cc132564979e6af774bc252e4320f27d4c)
20
+ * applied sander's patch to to_hash.rb (#af9283cf87dde154d11f1d6d2a5538c60686eae5)
21
+ * move test_to_hash.rb from more to core (#06d1fce988e2d3f6372fe68897ccb045450dac6d)
22
+ * Doc'd that UnboundMethod#name returns Symbol in 1.9, but String in 1.8 (#88efec19f49fa048d936e93d07ab01b38b94d2c6)
23
+ * fixed conflict between test_name.rb and test_arguments.rb (#5f33a45aff80f42f1644d46d9bd0746a2ae84b6b)
24
+ * fixed Enumreable#split when reciever is empty array (#11bb453a7e9cf98a8dc698e8a8a10cdb81f69050)
25
+ * association.rb stores reference when using #new (#4ca00a54bab0850436e769931b3d39e52d1fc9e6)
26
+ * fixed coruption of reciever by Hash#collate (thanks to Tilo Sloboda) (#de5fd8002d5c2452b5dd46051d02d27044506e9b)
27
+ * changed Array#product to make it compatible to ruby 19, deleted block parameter (#28170c739f5c033d5172835fa50b81db83fc1e88)
28
+ * ruby19 compatability: return symbols instead of strings (#b8fa8dddb9e4bcd5dedb9e9afcebff9f4cf93f43)
29
+ * fixed: Array#to_h, h={} was not initialized (#67deaed1b1dff94ccde641917861ec3b1b5ba643)
30
+ * fixed test of Module#conflict according ruby19 (#fa2229603f423925d10488bfa090a4c7fb138947)
31
+ * fixed doc on Array#product (#7c70691940766f6f05924dbbb249aff19154e4cc)
32
+ * fixed: Hash#dearray_singluar_values
50
33
 
data/MANIFEST CHANGED
@@ -1,8 +1,10 @@
1
1
  doc
2
2
  lib
3
+ meta
3
4
  task
4
5
  test
5
6
  Rakefile
7
+ MANIFEST
6
8
  CHANGES
7
9
  RELEASE
8
10
  README
@@ -107,6 +109,7 @@ doc/rdoc/core/classes/Array.html
107
109
  doc/rdoc/core/classes/FileTest.html
108
110
  doc/rdoc/core/classes/FalseClass.html
109
111
  doc/rdoc/core/classes/InstanceVariables.html
112
+ doc/rdoc/core/classes/Enumerator.html
110
113
  doc/rdoc/core/classes/Comparable.html
111
114
  doc/rdoc/core/classes/Integer.html
112
115
  doc/rdoc/core/classes/NilClass.html
@@ -129,12 +132,14 @@ doc/rdoc/core/classes/Indexable.html
129
132
  doc/rdoc/core/classes/Range.html
130
133
  doc/rdoc/core/classes/ObjectSpace.html
131
134
  doc/rdoc/core/classes/Regexp.html
135
+ doc/rdoc/core/classes/Enumerable
132
136
  doc/rdoc/core/classes/Module.html
133
137
  doc/rdoc/core/classes/Time.html
134
138
  doc/rdoc/core/classes/File.html
135
139
  doc/rdoc/core/classes/Lazy/Future.html
136
140
  doc/rdoc/core/classes/Lazy/PromiseSafe.html
137
141
  doc/rdoc/core/classes/Lazy/Promise.html
142
+ doc/rdoc/core/classes/Enumerable/Enumerator.html
138
143
  doc/rdoc/core/files/doc
139
144
  doc/rdoc/core/files/README.html
140
145
  doc/rdoc/core/files/lib
@@ -285,6 +290,7 @@ doc/rdoc/core/files/lib/core/facets/hash/join_rb.html
285
290
  doc/rdoc/core/files/lib/core/facets/hash/insert_rb.html
286
291
  doc/rdoc/core/files/lib/core/facets/hash/inverse_rb.html
287
292
  doc/rdoc/core/files/lib/core/facets/hash/op_and_rb.html
293
+ doc/rdoc/core/files/lib/core/facets/hash/group_by_value_rb.html
288
294
  doc/rdoc/core/files/lib/core/facets/hash/symbolize_keys_rb.html
289
295
  doc/rdoc/core/files/lib/core/facets/hash/diff_rb.html
290
296
  doc/rdoc/core/files/lib/core/facets/hash/op_mul_rb.html
@@ -293,6 +299,7 @@ doc/rdoc/core/files/lib/core/facets/hash/recursive_merge_rb.html
293
299
  doc/rdoc/core/files/lib/core/facets/hash/to_h_rb.html
294
300
  doc/rdoc/core/files/lib/core/facets/hash/at_rb.html
295
301
  doc/rdoc/core/files/lib/core/facets/hash/to_options_rb.html
302
+ doc/rdoc/core/files/lib/core/facets/hash/new_with_rb.html
296
303
  doc/rdoc/core/files/lib/core/facets/hash/swap_rb.html
297
304
  doc/rdoc/core/files/lib/core/facets/hash/to_struct_rb.html
298
305
  doc/rdoc/core/files/lib/core/facets/kernel/not_nil_rb.html
@@ -367,7 +374,9 @@ doc/rdoc/core/files/lib/core/facets/enumerable/occur_rb.html
367
374
  doc/rdoc/core/files/lib/core/facets/enumerable/cluster_by_rb.html
368
375
  doc/rdoc/core/files/lib/core/facets/enumerable/each_by_rb.html
369
376
  doc/rdoc/core/files/lib/core/facets/enumerable/modulate_rb.html
377
+ doc/rdoc/core/files/lib/core/facets/enumerable/compact_map_rb.html
370
378
  doc/rdoc/core/files/lib/core/facets/enumerable/count_rb.html
379
+ doc/rdoc/core/files/lib/core/facets/enumerable/map_with_index_rb.html
371
380
  doc/rdoc/core/files/lib/core/facets/enumerable/none_rb.html
372
381
  doc/rdoc/core/files/lib/core/facets/enumerable/one_rb.html
373
382
  doc/rdoc/core/files/lib/core/facets/enumerable/divide_rb.html
@@ -412,6 +421,7 @@ doc/rdoc/core/files/lib/core/facets/string/bracket_rb.html
412
421
  doc/rdoc/core/files/lib/core/facets/string/indent_rb.html
413
422
  doc/rdoc/core/files/lib/core/facets/string/each_char_rb.html
414
423
  doc/rdoc/core/files/lib/core/facets/string/outdent_rb.html
424
+ doc/rdoc/core/files/lib/core/facets/string/file_rb.html
415
425
  doc/rdoc/core/files/lib/core/facets/string/words_rb.html
416
426
  doc/rdoc/core/files/lib/core/facets/string/margin_rb.html
417
427
  doc/rdoc/core/files/lib/core/facets/string/splice_rb.html
@@ -430,6 +440,7 @@ doc/rdoc/core/files/lib/core/facets/module/class_rb.html
430
440
  doc/rdoc/core/files/lib/core/facets/module/abstract_rb.html
431
441
  doc/rdoc/core/files/lib/core/facets/module/alias_accessor_rb.html
432
442
  doc/rdoc/core/files/lib/core/facets/module/redefine_method_rb.html
443
+ doc/rdoc/core/files/lib/core/facets/module/extend_rb.html
433
444
  doc/rdoc/core/files/lib/core/facets/module/alias_module_function_rb.html
434
445
  doc/rdoc/core/files/lib/core/facets/module/spacename_rb.html
435
446
  doc/rdoc/core/files/lib/core/facets/module/methodize_rb.html
@@ -549,6 +560,7 @@ doc/rdoc/more/classes/Proc.html
549
560
  doc/rdoc/more/classes/Duration
550
561
  doc/rdoc/more/classes/TracePoint.html
551
562
  doc/rdoc/more/classes/ProgressBar.html
563
+ doc/rdoc/more/classes/X.html
552
564
  doc/rdoc/more/classes/SimpleStringIO.html
553
565
  doc/rdoc/more/classes/OpenHash.html
554
566
  doc/rdoc/more/classes/ANSICode.html
@@ -609,6 +621,7 @@ doc/rdoc/more/classes/Settings.html
609
621
  doc/rdoc/more/classes/HtmlFilter.html
610
622
  doc/rdoc/more/classes/Module.html
611
623
  doc/rdoc/more/classes/Archive
624
+ doc/rdoc/more/classes/Hook.html
612
625
  doc/rdoc/more/classes/Fileable.html
613
626
  doc/rdoc/more/classes/Interval.html
614
627
  doc/rdoc/more/classes/BaseX.html
@@ -723,6 +736,7 @@ doc/rdoc/more/files/lib/more/facets/memoize_rb.html
723
736
  doc/rdoc/more/files/lib/more/facets/openhash_rb.html
724
737
  doc/rdoc/more/files/lib/more/facets/semaphore_rb.html
725
738
  doc/rdoc/more/files/lib/more/facets/snapshot_rb.html
739
+ doc/rdoc/more/files/lib/more/facets/hook_rb.html
726
740
  doc/rdoc/more/files/lib/more/facets/random_rb.html
727
741
  doc/rdoc/more/files/lib/more/facets/net
728
742
  doc/rdoc/more/files/lib/more/facets/infinity_rb.html
@@ -797,6 +811,7 @@ doc/archive/CHANGELOG-0.10.30
797
811
  doc/archive/RELEASE-2.1.0
798
812
  doc/archive/RELEASE-2.2.1
799
813
  doc/archive/RELEASE-2.4.4
814
+ doc/archive/RELEASE-2.5.0
800
815
  doc/archive/RELEASE-2.1.1
801
816
  doc/archive/RELEASE-2.1.3
802
817
  doc/archive/RELEASE-2.4.5
@@ -804,11 +819,8 @@ doc/archive/RELEASE-2.4.1
804
819
  doc/log/basic_stats
805
820
  doc/log/changelog.html
806
821
  doc/log/changelog.txt
807
- doc/log/stats.html
808
- doc/log/bstats
809
822
  doc/log/testlog.txt
810
823
  doc/log/basic_stats/index.html
811
- doc/log/bstats/stats.html
812
824
  lib/lore
813
825
  lib/core
814
826
  lib/more
@@ -954,6 +966,7 @@ lib/core/facets/file/append.rb
954
966
  lib/core/facets/file/split_all.rb
955
967
  lib/core/facets/file/rewrite.rb
956
968
  lib/core/facets/file/read.rb
969
+ lib/core/facets/hash/new_with.rb
957
970
  lib/core/facets/hash/zipnew.rb
958
971
  lib/core/facets/hash/update_values.rb
959
972
  lib/core/facets/hash/alias.rb
@@ -986,6 +999,7 @@ lib/core/facets/hash/swap.rb
986
999
  lib/core/facets/hash/to_struct.rb
987
1000
  lib/core/facets/hash/symbolize_keys.rb
988
1001
  lib/core/facets/hash/join.rb
1002
+ lib/core/facets/hash/group_by_value.rb
989
1003
  lib/core/facets/hash/replace_each.rb
990
1004
  lib/core/facets/hash/slice.rb
991
1005
  lib/core/facets/hash/to_h.rb
@@ -1070,9 +1084,12 @@ lib/core/facets/enumerable/entropy.rb
1070
1084
  lib/core/facets/enumerable/split.rb
1071
1085
  lib/core/facets/enumerable/map_send.rb
1072
1086
  lib/core/facets/enumerable/probability.rb
1087
+ lib/core/facets/enumerable/map_with_index.rb
1073
1088
  lib/core/facets/enumerable/count.rb
1074
1089
  lib/core/facets/enumerable/each_by.rb
1090
+ lib/core/facets/enumerable/compact_map.rb
1075
1091
  lib/core/facets/string/shatter.rb
1092
+ lib/core/facets/string/file.rb
1076
1093
  lib/core/facets/string/to_re.rb
1077
1094
  lib/core/facets/string/fold.rb
1078
1095
  lib/core/facets/string/start_with.rb
@@ -1139,6 +1156,7 @@ lib/core/facets/module/rename_method.rb
1139
1156
  lib/core/facets/module/integrate.rb
1140
1157
  lib/core/facets/module/alias_method_chain.rb
1141
1158
  lib/core/facets/module/revise.rb
1159
+ lib/core/facets/module/extend.rb
1142
1160
  lib/core/facets/module/spacename.rb
1143
1161
  lib/core/facets/module/wrap_method.rb
1144
1162
  lib/core/facets/module/basename.rb
@@ -1261,6 +1279,7 @@ lib/more/facets/orderedhash.rb
1261
1279
  lib/more/facets/ioredirect.rb
1262
1280
  lib/more/facets/duplicable.rb
1263
1281
  lib/more/facets/pool.rb
1282
+ lib/more/facets/hook.rb
1264
1283
  lib/more/facets/blankslate.rb
1265
1284
  lib/more/facets/capsule.rb
1266
1285
  lib/more/facets/tuple.rb
@@ -1305,6 +1324,17 @@ lib/more/facets/net/smtp_tls.rb
1305
1324
  lib/more/facets/kernel/meta.rb
1306
1325
  lib/more/facets/string/words.rb
1307
1326
  lib/more/facets/string/mask.rb
1327
+ meta/created
1328
+ meta/homepage
1329
+ meta/summary
1330
+ meta/abstract
1331
+ meta/releases
1332
+ meta/contributors
1333
+ meta/license
1334
+ meta/authors
1335
+ meta/slogan
1336
+ meta/loadpath
1337
+ meta/contact
1308
1338
  task/methods
1309
1339
  task/test.rake
1310
1340
  task/conflicts
@@ -1337,6 +1367,7 @@ test/core/method
1337
1367
  test/core/enumerable
1338
1368
  test/core/string
1339
1369
  test/core/module
1370
+ test/core/test_to_hash.rb
1340
1371
  test/core/time
1341
1372
  test/core/dir
1342
1373
  test/core/filetest
@@ -1447,6 +1478,7 @@ test/core/enumerable/test_inject.rb
1447
1478
  test/core/enumerable/test_entropy.rb
1448
1479
  test/core/enumerable/test_modulate.rb
1449
1480
  test/core/enumerable/test_probability.rb
1481
+ test/core/enumerable/test_split.rb
1450
1482
  test/core/enumerable/test_cluster_by.rb
1451
1483
  test/core/enumerable/test_group_by.rb
1452
1484
  test/core/enumerable/test_commonality.rb
@@ -1597,7 +1629,6 @@ test/more/test_succ.rb
1597
1629
  test/more/test_coroutine.rb
1598
1630
  test/more/test_overload.rb
1599
1631
  test/more/test_elementor.rb
1600
- test/more/test_to_hash.rb
1601
1632
  test/more/test_enumerablepass.rb
1602
1633
  test/more/test_ansicode.rb
1603
1634
  test/more/test_dictionary.rb
data/README CHANGED
@@ -32,26 +32,17 @@ The easiest way to install is via RubyGems.
32
32
 
33
33
  $ gem install facets
34
34
 
35
- To install manually, download and unpack the .tar.gz package and use the included
36
- task/install script. Eg.
35
+ To install manually, your will need Ruby Setup (http::/setup.rubyforge.org). Then download and unpack the .tar.gz package and run:
37
36
 
38
37
  $ tar -xvzf facets-2.x.x.tar.gz
39
38
  $ cd facets-2.x.x
40
- $ sudo task/setup
41
-
42
- On Window the last step will be:
43
-
44
- C:\> ruby task/setup
45
-
46
- IMPORTANT! Note that setup.rb is no longer used b/c of Facets' new layout.
39
+ $ sudo setup.rb
47
40
 
48
41
 
49
42
  == Compatibility with 1.x series.
50
43
 
51
44
  Prior to 2.0, Facets was divided between CORE and MORE --standalone extensions vs. classes and modules, respectively. With 2.0, the notion of "CORE" has taken on a slightly different meaning. Instead CORE now consists of the libraries that are thought essential and as such are loaded automatically when using ++require "facets"++. While still primarily made up of extension methods modules and classes may now belong to core as well.
52
45
 
53
- The other significant change from 1.x to 2.0 is the removal of some libraries that were considered too extraneous for a general purpose library. Most of these were spun-off to their own projects. In particular, the web-related libs are now part of Blow (http://blow.rubyforge.org), inflection libraries are in English (http://english.rubyforge.org), units.rb along with constants.rb are in Stick (http://stick.rubyforge.org), and the persistance system in Opod (http://opod.rubyforge.org).
54
-
55
46
 
56
47
  == Mission
57
48
 
@@ -123,11 +114,9 @@ The Ruby license is a dual license that also provides for use of the GPL. Comple
123
114
  Acknowledgments and Copyrights for particular snippets of borrowed code are given in their respective source. All licenses are either compatible with the Ruby license (namely the GPL) or the original author has given permission for inclusion of their code under such license.
124
115
 
125
116
 
117
+ Ruby Facets, Copyright (c)2005,2006,2007,2008 Thomas Sawyer / Tiger Ops
126
118
 
127
119
  ALL YOUR BASE ARE BELONG TO RUBY!
128
120
 
129
-
130
- Ruby Facets, Copyright (c)2005,2006,2007,2008 Thomas Sawyer
131
-
132
121
  Do you Ruby? (http://ruby-lang.org)
133
122
 
data/RELEASE CHANGED
@@ -1,83 +1,49 @@
1
- Facets 2.5.0 is an important milestone in the development of Facets.
1
+ Facets 2.5.1 fixes a few bugs, makes some small but nice additions
2
+ and improves 1.9 compatibility.
2
3
 
3
- This release has been tested against Rails' ActiveSupport library.
4
- As long as Facets is loaded after ActiveSupport, everything
5
- should work fine. Of course, there's no counting for real world
6
- trials, but all ActiveSupport testcases pass under this scenario.
4
+ The most important addition to make note of is Object#extend, which has
5
+ been overridden to allow a block parameter. This is one of only two or three
6
+ actual "monkey patches" in all of Facets. The block, when provided,
7
+ is used to create an annonymous module which then extends the reciever.
8
+ This is a "good practice" way to extend objects, rather than using class_eval
9
+ on the singleton class.
7
10
 
8
- Secondly, this release is the first of two (or three) down-scaling
9
- releases intended to remove all the remaining "excess" from the
10
- library. This is being done for a variety of reasons. Some scripts
11
- are substantial enough to be one their own and have been spun-off
12
- into separate largely compatible projects. In this release:
13
-
14
- If you were using... Use this project instead...
15
-
16
- annotations.rb Anise
17
-
18
- bytes.rb RichUnits
19
- times.rb
20
-
21
- command.rb Clio
22
- consoleutils.rb
23
-
24
- A few others scripts have been deprecated, without an alternative
25
- recourse, simply because they were too weak, such as uploadutils.rb,
26
- or highly experimental, such as chain.rb and eventhook.rb.
27
-
28
- Although this release constitutes an over all slimming down of Facets,
29
- two excellent new libraries have been added.
30
-
31
- 1) *ini.rb* by Jeena Paradies. While YAML is frequently used by
32
- Rubyists for configuration files, a full-on serializer like YAML
33
- is often overkill. INI files provide a lightweight solution
34
- specifically geared for configuration.
35
-
36
- 2) *filter.rb* by Brian Candler offers lazy evaluation chains of
37
- Enumerable methods. This is an elegant way to optimize contiguous
38
- maps, selections, etc. --effective even on infinite enumerators.
39
- (Note, the name of this library may be changed in the next release.)
40
-
41
- While work remains to be done, I am happy to say, Facets is
42
- finally beginning to approach the level of solidity I set out to
43
- achieve just over a year ago. Thank the Maker!
44
-
45
- Special thanks to Brian Candler, Jeena Paradies and Tyler Rick.
11
+ Special thanks to Erik Veenstra, Pit Capitan and especially Sandor Szücs
12
+ for their contributions to this release.
46
13
 
47
14
  Enjoy!
48
15
 
49
16
 
50
- ### 2.5.0 / 2008-11-23
17
+ == 2.5.1 / 2009-03-05
51
18
 
52
- * 9 Major Changes
19
+ * 7 Additions
53
20
 
54
- * added Brian Candler's Enumerator::Filter
55
- * added sparse_array.rb (was old harray.rb)
56
- * added Jeena Paradies' ini.rb
57
- * renamed CacheDelegator to Memoizer
58
- * renamed DictionaryMatcher to just Matcher
59
- * deprecated bytes.rb and times.rb (use RichUnits instead)
60
- * deprecated uploadutils.rb; ziputils.rb will be (use Folio)
61
- * deprecated annotations.rb (use Anise instead)
62
- * deprecated command.rb and consoleutils.rb (use Clio instead)
21
+ * added Hash#group_by_value (thanks to Erik Veenstra) (#131d6c81a5411fb21f005ae8d2051311b0e3e9c5)
22
+ * added String#file (#952399f7d437f26aee3c4e9747a61e76b7e89735)
23
+ * added Hash#new_with (Pit Capitan) (#2dca37952e9803e816efc62514e8027fc2e1bf12)
24
+ * added module/extend.rb, now can take a block. (#cd6fd7dea22a4ca57712773331ca495d1fb46b86)
25
+ * added hook.rb (#928f39446a01278e9587586fb6c684f3e1b1e36f)
26
+ * added to_h_auto (#d7d5b02a219f850bc4a3b396de67e63cf005df5c)
27
+ * overhauled to_hash.rb, now has multiple methods (#5ba2fb2bef735af8afec1b27cf381787baad3a8f)
63
28
 
64
- * 5 Minor Changes
29
+ * 10 Bug Fixes
65
30
 
66
- * deprecated chain.rb (very expiremental)
67
- * deprecated eventhook.rb (moved to ToadCode project)
68
- * deprecated tagiter.rb (moved to ToadCode project)
69
- * moved Hash#symolize_keys and #stringify_keys to core lib
70
- (still recommend #rekey instead though)
71
- * switched to git as of 2.4.5
31
+ * corrected ostruct.rb to test for frozen state on updates (#1170dd9e1fdd552a98a01056547531ac6c9ee9f4)
32
+ * fixed String#left_align (#743d17d08f81ff1b4eb69d640a993865a8292335)
33
+ * fixed conflict between test_name.rb and test_arguments.rb (#5f33a45aff80f42f1644d46d9bd0746a2ae84b6b)
34
+ * fixed Enumreable#split when reciever is empty array (#11bb453a7e9cf98a8dc698e8a8a10cdb81f69050)
35
+ * fixed coruption of reciever by Hash#collate (thanks to Tilo Sloboda) (#de5fd8002d5c2452b5dd46051d02d27044506e9b)
36
+ * fixed Array#to_h, h={} was not initialized (#67deaed1b1dff94ccde641917861ec3b1b5ba643)
37
+ * fixed test of Module#conflict according ruby19 (#fa2229603f423925d10488bfa090a4c7fb138947)
38
+ * fixed Hash#dearray_singluar_values
39
+ * association.rb stores reference when using #new (#4ca00a54bab0850436e769931b3d39e52d1fc9e6)
40
+ * changed Array#product to make it compatible to ruby 19, deleted block parameter (#28170c739f5c033d5172835fa50b81db83fc1e88)
72
41
 
73
- * 4 Bug Fixes
42
+ * 5 Minor Enhancements
74
43
 
75
- * memoize.rb, cache was at class-level, now at instance-level
76
- * binding/caller.rb, fixed require for callstack.rb
77
- * fixed missing require in string/tabto.rb
78
- * Fixed some bugs with Time#ago/Time#hence not changing years
79
- correctly when you changed months.
80
- (For example, Time.utc(2008, 1, 1).ago(12, :months) incorrectly
81
- returned 2009-01-01 instead of 2007-01-01.)
82
- Changed Time#ago/Time#hence to still work if passed negative number.
44
+ * split enumerable/collect into map_with_index and compact_map (#a917218ab39cc15fbba6137a9b27911317dc64f2)
45
+ * improved Array#to_h for 1.9 using flatten(1) (#a9e7f024b2a589c87b1313c4addc5d7e1f5df524)
46
+ * Dictionary#replace can take regular Hash too (#69d6d8cc132564979e6af774bc252e4320f27d4c)
47
+ * move test_to_hash.rb from more to core (#06d1fce988e2d3f6372fe68897ccb045450dac6d)
48
+ * Doc'd that UnboundMethod#name returns Symbol in 1.9, but String in 1.8 (#88efec19f49fa048d936e93d07ab01b38b94d2c6)
83
49