facets 2.8.1 → 2.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/HISTORY.rdoc +121 -91
  2. data/NOTES +13 -1
  3. data/demo/scenario_require.rdoc +0 -5
  4. data/lib/core/facets.rb +6 -382
  5. data/lib/core/facets/array.rb +4 -3
  6. data/lib/core/facets/array/product.rb +0 -9
  7. data/lib/core/facets/array/uniq_by.rb +18 -0
  8. data/lib/core/facets/binding/caller.rb +14 -18
  9. data/lib/core/facets/boolean.rb +75 -78
  10. data/lib/core/facets/denumerable.rb +3 -3
  11. data/lib/core/facets/dir/ascend.rb +2 -1
  12. data/lib/core/facets/enumerable/collapse.rb +12 -0
  13. data/lib/core/facets/enumerable/compact_map.rb +8 -4
  14. data/lib/core/facets/enumerable/defer.rb +3 -2
  15. data/lib/core/facets/enumerable/each_with_object.rb +38 -0
  16. data/lib/core/facets/enumerable/every.rb +4 -4
  17. data/lib/core/facets/enumerable/ewise.rb +22 -16
  18. data/lib/core/facets/enumerable/exclude.rb +13 -0
  19. data/lib/core/facets/enumerable/filter.rb +18 -8
  20. data/lib/core/facets/enumerable/find_yield.rb +37 -0
  21. data/lib/core/facets/enumerable/map_detect.rb +1 -28
  22. data/lib/core/facets/enumerable/map_with_index.rb +2 -2
  23. data/lib/core/facets/enumerable/per.rb +2 -2
  24. data/lib/core/facets/enumerable/purge.rb +43 -0
  25. data/lib/core/facets/enumerator.rb +70 -0
  26. data/lib/core/facets/enumerator/fx.rb +20 -0
  27. data/lib/core/facets/integer/multiple.rb +6 -2
  28. data/lib/core/facets/kernel/false.rb +2 -0
  29. data/lib/core/facets/kernel/true.rb +26 -0
  30. data/lib/core/facets/numeric/length.rb +2 -2
  31. data/lib/core/facets/numeric/spacing.rb +20 -0
  32. data/lib/core/facets/proc/bind_to.rb +9 -0
  33. data/lib/core/facets/string/exclude.rb +10 -0
  34. data/lib/core/facets/string/expand_tab.rb +6 -6
  35. data/lib/core/facets/time/future.rb +14 -0
  36. data/lib/core/facets/time/past.rb +1 -0
  37. data/lib/core/facets/unboundmethod/name.rb +22 -18
  38. data/lib/more/facets/date.rb +38 -3
  39. data/lib/more/facets/fileutils/cp_rx.rb +42 -0
  40. data/lib/more/facets/pathname.rb +1 -1
  41. data/meta/homepage +1 -1
  42. data/meta/released +1 -1
  43. data/meta/version +1 -1
  44. data/test/core/array/test_product.rb +0 -5
  45. data/test/core/enumerable/test_find_yield.rb +75 -0
  46. data/test/core/numeric/test_spacing.rb +12 -0
  47. data/test/core/unboundmethod/test_name.rb +3 -3
  48. metadata +36 -23
  49. data/MANIFEST +0 -756
  50. data/lib/core/facets/enumerable/collect.rb +0 -4
  51. data/lib/core/facets/enumerable/inject.rb +0 -30
  52. data/lib/core/facets/numeric/size.rb +0 -10
  53. data/lib/more/facets/enumerator.rb +0 -62
  54. data/lib/more/facets/tracepoint.rb +0 -209
  55. data/test/core/enumerable/test_map_detect.rb +0 -75
@@ -1,9 +1,63 @@
1
1
  = Facets Release History
2
2
 
3
+ == 2.8.2 / 2009-02-22
4
+
5
+ This release fixes a bug by removing Numeric#size. Turns out that was a
6
+ core method already. It includes an "auditing" of the core enumerable
7
+ method which has led to a few modifications most noteable amoung them
8
+ renaming #map_detect to #find_yield and #compact_map to #purge.
9
+
10
+ Changes:
11
+
12
+ * 7 New Core Extensions
13
+
14
+ * Add Enumerable#each_with_object.
15
+ * Add #collapse which is a shortcut for flatten.compact.
16
+ * Add Numeric#spacing (Mr. Groff)
17
+ * Add Array#uniq_by! to complement Enumerable#uniq_by.
18
+ * Add String#exclude? as opposite of #include?
19
+ * Add Enumerable#exclude? as opposite of #include?
20
+ * Add Proc#bind_to
21
+
22
+ * 2 Extensions Renamed
23
+
24
+ * Rename Enumerable#compact_map to #purge.
25
+ * Rename Enumerable#map_detect to #find_yield.
26
+
27
+ * 4 Deprecations
28
+
29
+ * Deprecate #inject!/#injecting in favor of #filter.
30
+ * Deprecate Array#** as alias of #product.
31
+ * Remove Numeric#size, as it was already used by core.
32
+ * Spun tracepoint.rb off as a seprate library.
33
+
34
+ * 3 Other Changes
35
+
36
+ * Integer#multiple? handles zero as an argument.
37
+ * facets.rb is now dynamically loaded instead of code generated.
38
+ * General imporvements to date.rb.
39
+
40
+
41
+ == 2.8.1 / 2009-12-25
42
+
43
+ This release simply fixes a few minor issues.
44
+
45
+ Changes:
46
+
47
+ * 1 New Standard Extension
48
+
49
+ * Added Pathname#glob_relative to pathanme.rb.
50
+
51
+ * 3 Adjustments
52
+
53
+ * Loading string/tab.rb no longer loads margin.rb or expand_tab.rb.
54
+ * Fixed FileList method delegations.
55
+ * Numeric#length and #size return +self+, not +to_s.length+.
56
+
3
57
 
4
58
  == 2.8.0 / 2009-11-05
5
59
 
6
- acets 2.8 effectively completes the MORE library clean-up which peaked
60
+ Facets 2.8 effectively completes the MORE library clean-up which peaked
7
61
  with the previous 2.7 release. Another eight libraries have been deprecated,
8
62
  a few of them spun-off to a separate project. However, this verison also
9
63
  reverts a few of the deprecations made in the last version. These libs
@@ -812,40 +866,41 @@ Changes:
812
866
 
813
867
  == 2.2.1 / 2007-12-22
814
868
 
815
- (2.2.1) This release get rid of the underlying methods subdir.
816
- All method redirects are now in core, to ensure
817
- there are no more name clashes.
869
+ This release get rid of the underlying methods subdir.
870
+ All method redirects are now in core, to ensure there
871
+ are no more name clashes.
818
872
 
819
873
  Changes:
820
874
 
821
- * Got rid of methods subdir. All method redirects are in core/.
875
+ * Method Renames
822
876
 
823
- * Moved doc/wiki to apiwiki b/c of Rubyforge's wiki.
824
- * Removed doc/api dir.
825
- * Added wiki.
826
- * Prepare for 2.2.1 release.
827
- * Update per-module/class files.
828
- * Moved binding/cflow.rb to caller.rb.
829
- * Fixed up binding extensions.
830
- * Update tests and prepare for next version.
831
- * Ditto.
832
- * Renamed a couple test tasks.
877
+ * Moved string/format.rb to string/wrap.rb.
878
+ * Updated String#brief.
879
+ * Moved binding/cflow.rb to caller.rb.
880
+ * Moved core hash/keyize to more.
833
881
 
834
- * Moved methods and groups task to trash.
835
- * Moved core hash/keyize to more.
836
- * Added test class/remove_descendents.rb.
837
- * Added all remaining per-method require libs from methods/ --will need to wrok through these over time.
838
- * Added trash work directory.
882
+ * Other Enhancements
883
+
884
+ * Fixed up binding extensions.
839
885
 
840
- * Adjust text according to per-method file changes.
841
- * All hash method, but the conversion methods, are now rpresented in core/facets/hash.
842
- * Added a few more Hash per-method files.
843
- * Add per-method libs for hash.
844
- * Updated facets/string.rb.
845
- * Moved string/format.rb to string/wrap.rb.
846
- * Updated String#brief.
886
+ * Administrative Adjustments
847
887
 
848
- * Renamed ROLLRC to facets.roll.
888
+ * Got rid of methods subdir. All method redirects are in core/.
889
+ * Moved doc/wiki to apiwiki b/c of Rubyforge's wiki.
890
+ * Removed doc/api dir.
891
+ * Added wiki.
892
+ * Renamed a couple test tasks.
893
+ * Update per-module/class files.
894
+ * Moved methods and groups task to trash.
895
+ * Added test class/remove_descendents.rb.
896
+ * Added all remaining per-method require libs from methods/ (will need to wrok through these over time).
897
+ * Added trash work directory.
898
+ * Adjust text according to per-method file changes.
899
+ * All hash method, but the conversion methods, are now represented in core/facets/hash.
900
+ * Added a few more Hash per-method files.
901
+ * Add per-method libs for hash.
902
+ * Updated facets/string.rb.
903
+ * Renamed ROLLRC to facets.roll.
849
904
 
850
905
 
851
906
  == 2.2.0 / 2007-12-13
@@ -855,31 +910,53 @@ It also adds Matthew Harris' duration.rb library. Bug thanks to Matthew!
855
910
 
856
911
  Changes:
857
912
 
858
- * A lot of rdoc updates to core extensions --as promised ;)
859
- * Just about every method now has at least a brief explinaiton and an example.
860
- * integer/bitmask.rb has changed a bit --pun intended ;) Deprecated some methods and now use "~" instead of "-" to clear bits.
913
+ * Additions
914
+
915
+ * Added Matthew Harris' Duration class.
916
+ * Added Hash#slice and Hash#except (didn't we have this before?)
917
+ * Added registerable.rb, updated history.
918
+ * Added #include_as to facets/namespace.rb.
919
+ * Added op.rb to string.rb.
920
+ * Added String/op.rb with String#- method.
921
+
922
+ * Method Renames and Reorganizations
923
+
861
924
  * The name Array#unzip didn't makes sense, it was renamed to #modulate (though #collate seems better?)
862
925
  * Renamed Enumerable#collate to #mash (Map hASH); #collate and #graph remain aliases for the time being.
926
+ * Renamed accessor #attributes to #instance_attributes.
927
+ * Renamed Enumerable #collate to #mash. (old name, along with graph, will be an alias for time being)
928
+ * Divided enumerable/collect into split.rb and each.rb as well.
929
+ * Moved mapsend.rb to thread.rb.
930
+ * Updated mapsend.rb to focus on threads.
931
+ * Moved continuation extensions to more lib.
932
+
933
+ * Deprecations
934
+
863
935
  * Deprecated Module#include_and_extend. Just use both silly.
864
936
  * More lib pp_s.rb has been removed. Use #pretty_inspect instead.
937
+ * Removed continuation from core.
938
+ * Removed pp_s.rb (use pretty_inspect) add continuation.rb.
939
+ * Remove kernel/require_esc.rb.
940
+
941
+ * Other Enhancements
942
+
943
+ * integer/bitmask.rb has changed a bit --pun intended ;) Deprecated some methods and now use "~" instead of "-" to clear bits.
865
944
  * Split binding extensions up a bit more finely --eval.rb sprouted here.rb, self.rb and defined.rb.
866
945
  * Move Time#stamp out of conversion.rb and into time/ dir, and remove to_s alias.
867
946
  * Preliminary addition of Matthew Harris' excellent duration.rb lib (will integrate with times.rb better in future).
947
+ * Minor edit to basicobject.rb in light of 1.9.
948
+ * Minor adjustments to lazy.rb to fix warnings by Ruby 1.9.
868
949
  * Added if clauses to handle upcoming Ruby 1.9 gracefully. Facets should now be just about ready for use with 1.9.
869
950
 
870
- * Fixed project.yaml summary.
871
- * Update AUTHORS list.
872
- * Update release notes.
873
- * Update CHANGES for 2.2.0.
874
- * VERSION 2.2.0
875
- * Added some missing tests dur to recent separations.
876
- * Minor update to test/general.
877
- * Updated tests to reflect recent changes.
878
- * Fixed test for continuation and removed test for pp_s.rb.
879
- * Move task/docpkg to task/doc/zip.
951
+ * Documentation Enhancements
952
+
953
+ * A lot of rdoc updates to core extensions --as promised ;)
954
+ * Just about every method now has at least a brief explinaiton and an example.
955
+
956
+ * Administrative Adjustments
957
+
880
958
  * Moved task/config.yaml to meta/ per new Ratch.
881
959
  * Moved task/special to task/doc.
882
- * Minor updates to test and install tasks.
883
960
  * Updated todo list (in dev/).
884
961
  * Copied log/history.rd to CHANGES.
885
962
  * Removed log/history.rd and log/todo.rd
@@ -890,59 +967,12 @@ Changes:
890
967
  * Divided binding up into a few more pieces.
891
968
  * Fixed kernel/instance to play nice with 1.9.
892
969
  * Added test for string/op.rb.
893
-
894
- * Renamed accessor #attributes to #instance_attributes.
895
-
896
- * Removed continuation from core.
897
- * Removed pp_s.rb (use pretty_inspect) add continuation.rb.
898
- * Documentaiton improvements and moved continuation extension to more lib.
970
+ * Added test_collect.rb split-offs and test_mash inplace of test_collate.
971
+ * Cleanup test headers.
899
972
  * Added 1.9 check in continuation/create.rb.
900
- * Added op.rb to string.rb.
901
- * Added String/op.rb with String#- method.
902
-
903
- * Minor edit to basicobject.rb in light of 1.9.
904
- * Minor adjustments to lazy.rb to fix warnings by Ruby 1.9.
905
- * Added Matthew Harris' Duration class.
906
-
907
- * Added Hash#slice and Hash#except (didn't we have this before?)
908
-
909
- * Minor adjust to website.
910
- * Improved on tests in relation to doc work.
911
- * Handled some minor bugs found while documenting.
912
- * Mode doc improvements.
913
-
914
973
  * Add a couple new task for rdoc gen.
915
974
  * Added nbsp to quickopts task.
916
- * Website updates.
917
975
  * Work on website using siteparts.
918
- * Added registerable.rb, updated history.
919
- * Added #include_as to facets/namespace.rb.
920
- * Cleanup test hearders.
921
- * Rdoc improvements.
922
-
923
- * Removed test for kernel/require_esc.rb
924
- * Remove kernel/require_esc.rb.
925
- * Updated integer docs.
926
- * Updates to kernel test headers.
927
- * Documentation updates to kernel extensions.
928
-
929
- * Update docs continued.
930
- * Update hash test headers.
931
- * Updated hash extension docs.
932
- * Updated docs.
933
- * Added some missing tests.
934
- * Continued docs update.
935
- * Update docs.
936
- * Added test_collect.rb split-offs and test_mash inplace of test_collate.
937
- * Updated lots of test headers.
938
- * Renamed Enumerable #collate to #mash. (old name, along with graph, will be an alias for time being)
939
- * Lots of doc updates.
940
- * Updated documentation for array extensions.
941
-
942
- * Updated AUTHORS.
943
- * Divided enumerable/collect into split.rb and each.rb as well.
944
- * Moved mapsend.rb to thread.rb.
945
- * Updated mapsend.rb to focus on threads.
946
976
 
947
977
 
948
978
  == 2.1.3 / 2007-11-28
data/NOTES CHANGED
@@ -5,11 +5,23 @@ Facets. It is not in any way all that important. Its' simply here
5
5
  to give some historical context to development and to provide and
6
6
  cues for recollection.
7
7
 
8
+ == Testing Rails with Facets Loaded
9
+
10
+ Add this to Rails' Rakefile:
11
+
12
+ task 'test:facets' do
13
+ require 'activesupport'
14
+ require 'facets'
15
+ Rake::Task['test'].invoke
16
+ end
17
+
18
+ Run 'rake test:facets'.
19
+
8
20
  == On the Name "Ruby Facets"
9
21
 
10
22
  A lot of mental anguish went into finding this good project name Ruby Facets. Of course, in the end only one name can take the honor. Other good names which were considered: Calibre, Florida and California, Warchest w/ Atomix, Downs & Ace, Trix & Atomx and even Pillbox & Pills (a _why suggestion). Then the names that almost won out and were used for a good while: Nano Methods and Mega Modules --great names but a little too "fad". Finally let's not forget even older "working" titles that were used along the way: Raspberry, ABC, Succ and the very original Tomslib.
11
23
 
12
- == Feature that May Return
24
+ == Features that May Return
13
25
 
14
26
  [EXTACTED FROM README]
15
27
 
@@ -5,8 +5,3 @@ by simply:
5
5
 
6
6
  require 'facets'
7
7
 
8
- QED.
9
-
10
- ---
11
- require 'ae/should'
12
-
@@ -1,382 +1,6 @@
1
- # Generated @ Fri Dec 25 11:47:16 -0500 2009 #:till: ^@ <%= Time.now %>
2
- #:till+380: <%= Dir['facets/**/*.rb'].map{ |f| %[require "#{f}"] }.sort.join("\n") %>
3
- require "facets/array.rb"
4
- require "facets/array/combination.rb"
5
- require "facets/array/conjoin.rb"
6
- require "facets/array/delete.rb"
7
- require "facets/array/delete_unless.rb"
8
- require "facets/array/delete_values.rb"
9
- require "facets/array/index.rb"
10
- require "facets/array/indexable.rb"
11
- require "facets/array/merge.rb"
12
- require "facets/array/not_empty.rb"
13
- require "facets/array/only.rb"
14
- require "facets/array/pad.rb"
15
- require "facets/array/permutation.rb"
16
- require "facets/array/product.rb"
17
- require "facets/array/recursively.rb"
18
- require "facets/array/rotate.rb"
19
- require "facets/array/select.rb"
20
- require "facets/array/splice.rb"
21
- require "facets/array/stackable.rb"
22
- require "facets/array/traverse.rb"
23
- require "facets/binding.rb"
24
- require "facets/binding/caller.rb"
25
- require "facets/binding/callstack.rb"
26
- require "facets/binding/defined.rb"
27
- require "facets/binding/eval.rb"
28
- require "facets/binding/local_variables.rb"
29
- require "facets/binding/opvars.rb"
30
- require "facets/binding/self.rb"
31
- require "facets/bitmask.rb"
32
- require "facets/blank.rb"
33
- require "facets/boolean.rb"
34
- require "facets/cattr.rb"
35
- require "facets/class.rb"
36
- require "facets/class/cattr.rb"
37
- require "facets/class/cattr_accessor.rb"
38
- require "facets/class/cattr_reader.rb"
39
- require "facets/class/cattr_writer.rb"
40
- require "facets/class/descendants.rb"
41
- require "facets/class/descendents.rb"
42
- require "facets/class/methodize.rb"
43
- require "facets/class/pathize.rb"
44
- require "facets/class/prepend.rb"
45
- require "facets/class/subclasses.rb"
46
- require "facets/class/to_proc.rb"
47
- require "facets/comparable.rb"
48
- require "facets/comparable/at_least.rb"
49
- require "facets/comparable/at_most.rb"
50
- require "facets/comparable/bound.rb"
51
- require "facets/comparable/cap.rb"
52
- require "facets/comparable/clip.rb"
53
- require "facets/comparable/cmp.rb"
54
- require "facets/comparable/comparable.rb"
55
- require "facets/denumerable.rb"
56
- require "facets/dir.rb"
57
- require "facets/dir/ascend.rb"
58
- require "facets/dir/descend.rb"
59
- require "facets/dir/multiglob.rb"
60
- require "facets/dir/parent.rb"
61
- require "facets/dir/recurse.rb"
62
- require "facets/duplicable.rb"
63
- require "facets/enumerable.rb"
64
- require "facets/enumerable/accumulate.rb"
65
- require "facets/enumerable/cluster_by.rb"
66
- require "facets/enumerable/collect.rb"
67
- require "facets/enumerable/collect_with_index.rb"
68
- require "facets/enumerable/commonality.rb"
69
- require "facets/enumerable/compact_map.rb"
70
- require "facets/enumerable/count.rb"
71
- require "facets/enumerable/defer.rb"
72
- require "facets/enumerable/divide.rb"
73
- require "facets/enumerable/duplicates.rb"
74
- require "facets/enumerable/each_by.rb"
75
- require "facets/enumerable/entropy.rb"
76
- require "facets/enumerable/every.rb"
77
- require "facets/enumerable/ewise.rb"
78
- require "facets/enumerable/filter.rb"
79
- require "facets/enumerable/frequency.rb"
80
- require "facets/enumerable/graph.rb"
81
- require "facets/enumerable/group_by.rb"
82
- require "facets/enumerable/inject.rb"
83
- require "facets/enumerable/map_detect.rb"
84
- require "facets/enumerable/map_send.rb"
85
- require "facets/enumerable/map_with_index.rb"
86
- require "facets/enumerable/mash.rb"
87
- require "facets/enumerable/mode.rb"
88
- require "facets/enumerable/modulate.rb"
89
- require "facets/enumerable/none.rb"
90
- require "facets/enumerable/occur.rb"
91
- require "facets/enumerable/one.rb"
92
- require "facets/enumerable/per.rb"
93
- require "facets/enumerable/probability.rb"
94
- require "facets/enumerable/split.rb"
95
- require "facets/enumerable/sum.rb"
96
- require "facets/enumerable/take.rb"
97
- require "facets/enumerable/uniq_by.rb"
98
- require "facets/exception.rb"
99
- require "facets/exception/detail.rb"
100
- require "facets/exception/raised.rb"
101
- require "facets/exception/suppress.rb"
102
- require "facets/file.rb"
103
- require "facets/file/append.rb"
104
- require "facets/file/create.rb"
105
- require "facets/file/null.rb"
106
- require "facets/file/read.rb"
107
- require "facets/file/rewrite.rb"
108
- require "facets/file/rootname.rb"
109
- require "facets/file/split_all.rb"
110
- require "facets/file/split_root.rb"
111
- require "facets/file/write.rb"
112
- require "facets/file/writelines.rb"
113
- require "facets/filetest.rb"
114
- require "facets/filetest/root.rb"
115
- require "facets/float.rb"
116
- require "facets/float/round.rb"
117
- require "facets/functor.rb"
118
- require "facets/hash.rb"
119
- require "facets/hash/alias.rb"
120
- require "facets/hash/argumentize.rb"
121
- require "facets/hash/at.rb"
122
- require "facets/hash/autonew.rb"
123
- require "facets/hash/collate.rb"
124
- require "facets/hash/count.rb"
125
- require "facets/hash/data.rb"
126
- require "facets/hash/dearray_values.rb"
127
- require "facets/hash/delete.rb"
128
- require "facets/hash/diff.rb"
129
- require "facets/hash/except.rb"
130
- require "facets/hash/group_by_value.rb"
131
- require "facets/hash/insert.rb"
132
- require "facets/hash/inverse.rb"
133
- require "facets/hash/join.rb"
134
- require "facets/hash/keys.rb"
135
- require "facets/hash/mash.rb"
136
- require "facets/hash/merge.rb"
137
- require "facets/hash/new_with.rb"
138
- require "facets/hash/op.rb"
139
- require "facets/hash/op_add.rb"
140
- require "facets/hash/op_and.rb"
141
- require "facets/hash/op_mul.rb"
142
- require "facets/hash/op_or.rb"
143
- require "facets/hash/op_push.rb"
144
- require "facets/hash/op_sub.rb"
145
- require "facets/hash/recursive_merge.rb"
146
- require "facets/hash/recursively.rb"
147
- require "facets/hash/rekey.rb"
148
- require "facets/hash/replace_each.rb"
149
- require "facets/hash/select.rb"
150
- require "facets/hash/slice.rb"
151
- require "facets/hash/stringify_keys.rb"
152
- require "facets/hash/swap.rb"
153
- require "facets/hash/symbolize_keys.rb"
154
- require "facets/hash/to_h.rb"
155
- require "facets/hash/to_options.rb"
156
- require "facets/hash/to_proc.rb"
157
- require "facets/hash/to_struct.rb"
158
- require "facets/hash/traverse.rb"
159
- require "facets/hash/update.rb"
160
- require "facets/hash/update_each.rb"
161
- require "facets/hash/update_keys.rb"
162
- require "facets/hash/update_values.rb"
163
- require "facets/hash/weave.rb"
164
- require "facets/hash/zipnew.rb"
165
- require "facets/indexable.rb"
166
- require "facets/integer.rb"
167
- require "facets/integer/even.rb"
168
- require "facets/integer/factorial.rb"
169
- require "facets/integer/multiple.rb"
170
- require "facets/integer/odd.rb"
171
- require "facets/integer/of.rb"
172
- require "facets/integer/ordinal.rb"
173
- require "facets/kernel.rb"
174
- require "facets/kernel/__callee__.rb"
175
- require "facets/kernel/__class__.rb"
176
- require "facets/kernel/__dir__.rb"
177
- require "facets/kernel/__get__.rb"
178
- require "facets/kernel/__here__.rb"
179
- require "facets/kernel/__method__.rb"
180
- require "facets/kernel/__set__.rb"
181
- require "facets/kernel/as.rb"
182
- require "facets/kernel/ask.rb"
183
- require "facets/kernel/attr_singleton.rb"
184
- require "facets/kernel/callstack.rb"
185
- require "facets/kernel/complete.rb"
186
- require "facets/kernel/constant.rb"
187
- require "facets/kernel/d.rb"
188
- require "facets/kernel/deep_copy.rb"
189
- require "facets/kernel/demo.rb"
190
- require "facets/kernel/eigenclass.rb"
191
- require "facets/kernel/equate.rb"
192
- require "facets/kernel/ergo.rb"
193
- require "facets/kernel/extend.rb"
194
- require "facets/kernel/extension.rb"
195
- require "facets/kernel/here.rb"
196
- require "facets/kernel/identical.rb"
197
- require "facets/kernel/in.rb"
198
- require "facets/kernel/instance_assign.rb"
199
- require "facets/kernel/instance_class.rb"
200
- require "facets/kernel/instance_exec.rb"
201
- require "facets/kernel/instance_send.rb"
202
- require "facets/kernel/instance_variables.rb"
203
- require "facets/kernel/maybe.rb"
204
- require "facets/kernel/meta_alias.rb"
205
- require "facets/kernel/meta_class.rb"
206
- require "facets/kernel/meta_def.rb"
207
- require "facets/kernel/meta_eval.rb"
208
- require "facets/kernel/method.rb"
209
- require "facets/kernel/not_nil.rb"
210
- require "facets/kernel/object_class.rb"
211
- require "facets/kernel/object_hexid.rb"
212
- require "facets/kernel/object_send.rb"
213
- require "facets/kernel/object_state.rb"
214
- require "facets/kernel/p.rb"
215
- require "facets/kernel/populate.rb"
216
- require "facets/kernel/qua_class.rb"
217
- require "facets/kernel/require_all.rb"
218
- require "facets/kernel/require_local.rb"
219
- require "facets/kernel/require_relative.rb"
220
- require "facets/kernel/resc.rb"
221
- require "facets/kernel/respond.rb"
222
- require "facets/kernel/returning.rb"
223
- require "facets/kernel/silence.rb"
224
- require "facets/kernel/singleton_class.rb"
225
- require "facets/kernel/source_location.rb"
226
- require "facets/kernel/tap.rb"
227
- require "facets/kernel/try.rb"
228
- require "facets/kernel/val.rb"
229
- require "facets/kernel/with.rb"
230
- require "facets/lazy.rb"
231
- require "facets/matchdata.rb"
232
- require "facets/matchdata/match.rb"
233
- require "facets/matchdata/matchset.rb"
234
- require "facets/metaid.rb"
235
- require "facets/module.rb"
236
- require "facets/module/abstract.rb"
237
- require "facets/module/alias_accessor.rb"
238
- require "facets/module/alias_method_chain.rb"
239
- require "facets/module/alias_module_function.rb"
240
- require "facets/module/ancestor.rb"
241
- require "facets/module/attr_setter.rb"
242
- require "facets/module/basename.rb"
243
- require "facets/module/can.rb"
244
- require "facets/module/class.rb"
245
- require "facets/module/class_def.rb"
246
- require "facets/module/conflict.rb"
247
- require "facets/module/extend.rb"
248
- require "facets/module/include_function_module.rb"
249
- require "facets/module/instance_method.rb"
250
- require "facets/module/instance_methods.rb"
251
- require "facets/module/integrate.rb"
252
- require "facets/module/is.rb"
253
- require "facets/module/methodize.rb"
254
- require "facets/module/modspace.rb"
255
- require "facets/module/module_def.rb"
256
- require "facets/module/module_load.rb"
257
- require "facets/module/module_require.rb"
258
- require "facets/module/nesting.rb"
259
- require "facets/module/op.rb"
260
- require "facets/module/pathize.rb"
261
- require "facets/module/prepend.rb"
262
- require "facets/module/redefine_method.rb"
263
- require "facets/module/redirect_method.rb"
264
- require "facets/module/rename_method.rb"
265
- require "facets/module/revise.rb"
266
- require "facets/module/spacename.rb"
267
- require "facets/module/wrap_method.rb"
268
- require "facets/nilclass.rb"
269
- require "facets/nilclass/ergo.rb"
270
- require "facets/nilclass/to_f.rb"
271
- require "facets/numeric.rb"
272
- require "facets/numeric/approx.rb"
273
- require "facets/numeric/distance.rb"
274
- require "facets/numeric/length.rb"
275
- require "facets/numeric/round.rb"
276
- require "facets/numeric/size.rb"
277
- require "facets/objectspace.rb"
278
- require "facets/objectspace/classes.rb"
279
- require "facets/objectspace/op_fetch.rb"
280
- require "facets/proc.rb"
281
- require "facets/proc/bind.rb"
282
- require "facets/proc/compose.rb"
283
- require "facets/proc/curry.rb"
284
- require "facets/proc/to_method.rb"
285
- require "facets/proc/update.rb"
286
- require "facets/range.rb"
287
- require "facets/range/combine.rb"
288
- require "facets/range/overlap.rb"
289
- require "facets/range/to_r.rb"
290
- require "facets/range/umbrella.rb"
291
- require "facets/range/within.rb"
292
- require "facets/regexp.rb"
293
- require "facets/regexp/arity.rb"
294
- require "facets/regexp/to_re.rb"
295
- require "facets/stackable.rb"
296
- require "facets/string.rb"
297
- require "facets/string/align.rb"
298
- require "facets/string/bracket.rb"
299
- require "facets/string/bytes.rb"
300
- require "facets/string/camelcase.rb"
301
- require "facets/string/capitalized.rb"
302
- require "facets/string/chars.rb"
303
- require "facets/string/chomp.rb"
304
- require "facets/string/cleanlines.rb"
305
- require "facets/string/cleave.rb"
306
- require "facets/string/compress_lines.rb"
307
- require "facets/string/contains.rb"
308
- require "facets/string/divide.rb"
309
- require "facets/string/each_char.rb"
310
- require "facets/string/each_word.rb"
311
- require "facets/string/edit_distance.rb"
312
- require "facets/string/end_with.rb"
313
- require "facets/string/expand_tab.rb"
314
- require "facets/string/file.rb"
315
- require "facets/string/fold.rb"
316
- require "facets/string/indent.rb"
317
- require "facets/string/index_all.rb"
318
- require "facets/string/interpolate.rb"
319
- require "facets/string/line_wrap.rb"
320
- require "facets/string/lines.rb"
321
- require "facets/string/lowercase.rb"
322
- require "facets/string/margin.rb"
323
- require "facets/string/methodize.rb"
324
- require "facets/string/modulize.rb"
325
- require "facets/string/mscan.rb"
326
- require "facets/string/natcmp.rb"
327
- require "facets/string/nchar.rb"
328
- require "facets/string/newlines.rb"
329
- require "facets/string/op_div.rb"
330
- require "facets/string/op_sub.rb"
331
- require "facets/string/outdent.rb"
332
- require "facets/string/pathize.rb"
333
- require "facets/string/range.rb"
334
- require "facets/string/range_all.rb"
335
- require "facets/string/range_of_line.rb"
336
- require "facets/string/rewrite.rb"
337
- require "facets/string/shatter.rb"
338
- require "facets/string/similarity.rb"
339
- require "facets/string/snakecase.rb"
340
- require "facets/string/splice.rb"
341
- require "facets/string/start_with.rb"
342
- require "facets/string/subtract.rb"
343
- require "facets/string/tab.rb"
344
- require "facets/string/tabto.rb"
345
- require "facets/string/titlecase.rb"
346
- require "facets/string/to_re.rb"
347
- require "facets/string/underscore.rb"
348
- require "facets/string/unfold.rb"
349
- require "facets/string/uppercase.rb"
350
- require "facets/string/variablize.rb"
351
- require "facets/string/word_wrap.rb"
352
- require "facets/string/words.rb"
353
- require "facets/string/xor.rb"
354
- require "facets/struct.rb"
355
- require "facets/struct/attributes.rb"
356
- require "facets/symbol.rb"
357
- require "facets/symbol/chomp.rb"
358
- require "facets/symbol/generate.rb"
359
- require "facets/symbol/not.rb"
360
- require "facets/symbol/plain.rb"
361
- require "facets/symbol/query.rb"
362
- require "facets/symbol/re_s.rb"
363
- require "facets/symbol/setter.rb"
364
- require "facets/symbol/succ.rb"
365
- require "facets/symbol/thrown.rb"
366
- require "facets/symbol/to_proc.rb"
367
- require "facets/symbol/variablize.rb"
368
- require "facets/time.rb"
369
- require "facets/time/advance.rb"
370
- require "facets/time/ago.rb"
371
- require "facets/time/change.rb"
372
- require "facets/time/elapse.rb"
373
- require "facets/time/hence.rb"
374
- require "facets/time/round.rb"
375
- require "facets/time/set.rb"
376
- require "facets/time/stamp.rb"
377
- require "facets/time/to_time.rb"
378
- require "facets/time/trunc.rb"
379
- require "facets/to_hash.rb"
380
- require "facets/unboundmethod.rb"
381
- require "facets/unboundmethod/arguments.rb"
382
- require "facets/unboundmethod/name.rb"
1
+ dir = File.dirname(__FILE__) + '/facets/'
2
+ Dir.new(dir).each do |path|
3
+ next unless File.extname(path) == '.rb'
4
+ require('facets/' + path) #require(dir + path)
5
+ end
6
+