facets 2.7.0 → 2.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.rdoc +135 -294
- data/MANIFEST +40 -91
- data/NOTES +1 -1
- data/README.rdoc +10 -8
- data/Rakefile +11 -34
- data/demo/{hook.rd → hook.rdoc} +2 -0
- data/demo/{scenario_require.rd → scenario_require.rdoc} +3 -0
- data/lib/core/facets-live.rb +7 -5
- data/lib/core/facets.rb +379 -359
- data/lib/core/facets/array/conjoin.rb +2 -2
- data/lib/core/facets/array/pad.rb +1 -1
- data/lib/core/facets/array/recursively.rb +2 -2
- data/lib/core/facets/array/splice.rb +1 -1
- data/lib/core/facets/binding/caller.rb +2 -4
- data/lib/core/facets/comparable/comparable.rb +2 -2
- data/lib/core/facets/dir/ascend.rb +3 -0
- data/lib/core/facets/dir/recurse.rb +4 -0
- data/lib/core/facets/duplicable.rb +6 -8
- data/lib/core/facets/enumerable/count.rb +22 -13
- data/lib/core/facets/enumerable/map_detect.rb +28 -0
- data/lib/core/facets/enumerable/mash.rb +13 -5
- data/lib/core/facets/enumerable/per.rb +3 -1
- data/lib/core/facets/hash/count.rb +14 -0
- data/lib/core/facets/hash/data.rb +14 -0
- data/lib/core/facets/kernel/__method__.rb +1 -1
- data/lib/core/facets/kernel/d.rb +9 -8
- data/lib/core/facets/kernel/eigenclass.rb +20 -0
- data/lib/core/facets/kernel/extend.rb +10 -0
- data/lib/core/facets/kernel/instance_class.rb +1 -0
- data/lib/core/facets/kernel/instance_variables.rb +6 -6
- data/lib/core/facets/kernel/meta_alias.rb +18 -0
- data/lib/core/facets/kernel/meta_class.rb +17 -0
- data/lib/core/facets/kernel/meta_def.rb +18 -0
- data/lib/core/facets/kernel/meta_eval.rb +18 -0
- data/lib/core/facets/kernel/object_hexid.rb +21 -6
- data/lib/core/facets/kernel/object_state.rb +4 -2
- data/lib/core/facets/kernel/populate.rb +3 -1
- data/lib/core/facets/kernel/with.rb +1 -1
- data/lib/core/facets/metaid.rb +6 -93
- data/lib/core/facets/module/class_def.rb +2 -0
- data/lib/core/facets/module/extend.rb +10 -11
- data/lib/core/facets/module/is.rb +5 -5
- data/lib/core/facets/module/module_def.rb +31 -0
- data/lib/core/facets/string/camelcase.rb +14 -12
- data/lib/core/facets/string/cleanlines.rb +35 -0
- data/lib/core/facets/string/edit_distance.rb +62 -0
- data/lib/core/facets/string/indent.rb +86 -4
- data/lib/core/facets/string/index_all.rb +24 -0
- data/lib/core/facets/string/lines.rb +3 -6
- data/lib/core/facets/string/margin.rb +2 -1
- data/lib/core/facets/string/newlines.rb +35 -0
- data/lib/core/facets/string/op_div.rb +14 -0
- data/lib/core/facets/string/range.rb +2 -22
- data/lib/core/facets/string/range_all.rb +1 -0
- data/lib/core/facets/string/range_of_line.rb +1 -0
- data/lib/core/facets/string/similarity.rb +92 -0
- data/lib/core/facets/string/start_with.rb +6 -6
- data/lib/core/facets/string/titlecase.rb +1 -1
- data/lib/more/facets/basicobject.rb +16 -15
- data/lib/more/facets/blankslate.rb +8 -0
- data/lib/more/facets/class_extend.rb +126 -1
- data/lib/more/facets/continuation.rb +53 -54
- data/lib/more/facets/dictionary.rb +9 -63
- data/lib/more/facets/erb.rb +63 -0
- data/lib/more/facets/filelist.rb +5 -5
- data/lib/more/facets/hashbuilder.rb +101 -0
- data/lib/more/facets/inheritor.rb +36 -45
- data/lib/more/facets/ini.rb +267 -0
- data/lib/more/facets/instance_eval.rb +4 -4
- data/lib/more/facets/ioredirect.rb +7 -60
- data/lib/more/facets/linkedlist.rb +195 -0
- data/lib/more/facets/matcher.rb +140 -0
- data/lib/more/facets/memoizer.rb +64 -0
- data/lib/more/facets/methodspace.rb +9 -4
- data/lib/more/facets/module/class_extend.rb +2 -121
- data/lib/more/facets/ostruct.rb +9 -9
- data/lib/more/facets/pathlist.rb +1 -9
- data/lib/more/facets/pathname.rb +11 -4
- data/lib/more/facets/plugin_manager.rb +50 -0
- data/lib/more/facets/random.rb +25 -3
- data/lib/more/facets/roman.rb +174 -0
- data/lib/more/facets/semaphore.rb +92 -0
- data/lib/more/facets/shellwords.rb +21 -48
- data/lib/more/facets/succ.rb +1 -1
- data/meta/{modified → released} +0 -0
- data/meta/repository +1 -0
- data/meta/suite +1 -0
- data/meta/version +1 -1
- data/script/conflicts +63 -0
- data/script/methods +49 -0
- data/test/core/binding/test_caller.rb +11 -4
- data/test/core/enumerable/test_count.rb +19 -10
- data/test/core/enumerable/test_map_detect.rb +75 -0
- data/test/core/enumerable/test_take.rb +1 -1
- data/test/core/kernel/test_object_hexid.rb +2 -1
- data/test/core/proc/test_to_method.rb +1 -1
- data/test/core/string/test_cleanlines.rb +11 -0
- data/test/core/string/test_indent.rb +66 -4
- data/test/core/string/test_lines.rb +2 -1
- data/test/core/string/test_newlines.rb +13 -0
- data/test/core/time/test_change.rb +1 -1
- data/test/core/time/test_stamp.rb +4 -7
- data/test/core/unboundmethod/test_name.rb +1 -1
- data/test/more/test_basicobject.rb +1 -20
- data/test/more/test_class_extend.rb +7 -0
- data/test/more/test_continuation.rb +8 -6
- data/test/more/test_inheritor.rb +12 -6
- data/test/more/test_random.rb +19 -10
- data/test/more/test_shellwords.rb +33 -0
- metadata +60 -31
- data/TODO +0 -5
- data/doc/README.core +0 -102
- data/doc/README.more +0 -61
- data/doc/manual/about.rb +0 -47
- data/doc/manual/annotations.rdoc +0 -60
- data/doc/manual/associations.rdoc +0 -55
- data/doc/manual/blockups.rdoc +0 -101
- data/doc/manual/capsule.rdoc +0 -34
- data/doc/manual/command.rdoc +0 -177
- data/doc/manual/core.rdoc +0 -37
- data/doc/manual/faq.rdoc +0 -32
- data/doc/manual/typecast.html +0 -112
- data/lib/more/facets/capsule.rb +0 -258
- data/lib/more/facets/coroutine.rb +0 -159
- data/lib/more/facets/enumerablepass.rb +0 -3
- data/lib/more/facets/fileable.rb +0 -162
- data/lib/more/facets/progressbar.rb +0 -253
- data/lib/more/facets/recorder.rb +0 -108
- data/meta/releases +0 -14
- data/test/more/test_coroutine.rb +0 -46
data/NOTES
CHANGED
@@ -57,7 +57,7 @@ Understand that on the off chance that another library has the same name as one
|
|
57
57
|
class String
|
58
58
|
|
59
59
|
# Essentially makes #to_a an alias for split,
|
60
|
-
# with the
|
60
|
+
# with the exception that if no divider is given
|
61
61
|
# then the array is split on charaters, and
|
62
62
|
# NOT on the global input record divider ($/).
|
63
63
|
#
|
data/README.rdoc
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
= Ruby Facets
|
2
2
|
|
3
|
-
|
3
|
+
* home: http://facets.rubyforge.com
|
4
|
+
* source: http://github.com/rubyworks/facets
|
5
|
+
* forum: http://groups.google.com/group/facets-universal
|
4
6
|
|
5
|
-
|
7
|
+
"ALL YOUR BASE ARE BELONG TO RUBY"
|
6
8
|
|
7
9
|
|
8
10
|
== Introduction
|
@@ -60,9 +62,9 @@ Then download and unpack the .tar.gz package and run:
|
|
60
62
|
$ sudo setup.rb
|
61
63
|
|
62
64
|
|
63
|
-
== Compatibility
|
65
|
+
== Compatibility w/ 1.x
|
64
66
|
|
65
|
-
Prior to 2.0, Facets was divided between CORE and MORE --
|
67
|
+
Prior to 2.0, Facets was divided between CORE and MORE --core extensions
|
66
68
|
vs. classes and modules, respectively. With 2.0, the notion of "CORE" has taken
|
67
69
|
on a slightly different meaning. Instead CORE now consists of the libraries that
|
68
70
|
are thought "essential" and as such are loaded automatically when using
|
@@ -76,10 +78,10 @@ Facets holds to the notion that the more we can reasonably integrate into
|
|
76
78
|
a common foundation, directed toward general needs, the better that foundation
|
77
79
|
will be able to serve the community. There are a number of advantages here:
|
78
80
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
81
|
+
* Better Code-reuse
|
82
|
+
* Collaborative Improvements
|
83
|
+
* Greater Name Consistency
|
84
|
+
* One-stop Shop and Installation
|
83
85
|
|
84
86
|
|
85
87
|
== Usage
|
data/Rakefile
CHANGED
@@ -55,7 +55,6 @@ task "rdoc" do
|
|
55
55
|
FileUtils.rm_r(APIOUT)
|
56
56
|
|
57
57
|
system "rdoc -a -S -t'Facets Core API' -T #{TEMPLATE} -m README --op '#{APIOUT}/core' README lib/facets/core"
|
58
|
-
#system "rdoc -a -S -t'Facets Lore API' -T #{TEMPLATE} -m README --op '#{APIOUT}/lore' README lib/facets/lore"
|
59
58
|
system "rdoc -a -S -t'Facets More API' -T #{TEMPLATE} -m README --op '#{APIOUT}/more' README lib/facets/more"
|
60
59
|
end
|
61
60
|
|
@@ -63,6 +62,10 @@ end
|
|
63
62
|
# RUN TESTS
|
64
63
|
# ----------------------------------------------------------------------------
|
65
64
|
|
65
|
+
task 'default' do
|
66
|
+
prepare_tests_all
|
67
|
+
end
|
68
|
+
|
66
69
|
task 'test' do
|
67
70
|
prepare_tests_all
|
68
71
|
end
|
@@ -77,11 +80,6 @@ task 'test:core' do
|
|
77
80
|
prepare_tests_core
|
78
81
|
end
|
79
82
|
|
80
|
-
#desc "run lore unit tests"
|
81
|
-
#task 'test:lore' do
|
82
|
-
# prepare_tests_lore
|
83
|
-
#end
|
84
|
-
|
85
83
|
desc "run more unit tests"
|
86
84
|
task 'test:more' do
|
87
85
|
prepare_tests_more
|
@@ -93,9 +91,6 @@ task 'test:all:activesupport' => [:include_activesupport, 'test:all']
|
|
93
91
|
desc "run core unit tests with ActiveSupport loaded"
|
94
92
|
task 'test:core:activesupport' => [:include_activesupport, 'test:core']
|
95
93
|
|
96
|
-
#desc "run lore unit tests with ActiveSupport loaded"
|
97
|
-
#task 'test:lore:activesupport' => [:include_activesupport, 'test:lore']
|
98
|
-
|
99
94
|
desc "run more unit tests with ActiveSupport loaded"
|
100
95
|
task 'test:more:activesupport' => [:include_activesupport, 'test:more']
|
101
96
|
|
@@ -108,7 +103,6 @@ def add_loadpath(*paths)
|
|
108
103
|
|
109
104
|
unless live
|
110
105
|
# $LOAD_PATH.unshift(File.expand_path('lib/core'))
|
111
|
-
# $LOAD_PATH.unshift(File.expand_path('lib/lore'))
|
112
106
|
# $LOAD_PATH.unshift(File.expand_path('lib/more'))
|
113
107
|
paths.each do |path|
|
114
108
|
$LOAD_PATH.unshift(File.expand_path(path))
|
@@ -116,22 +110,12 @@ def add_loadpath(*paths)
|
|
116
110
|
end
|
117
111
|
|
118
112
|
puts "RUBY VERSION: #{RUBY_VERSION}"
|
119
|
-
puts "LOAD PATH:\n" + $LOAD_PATH.join("\n")
|
113
|
+
puts "LOAD PATH:\n" + $LOAD_PATH.join("\n") if $DEBUG
|
120
114
|
end
|
121
115
|
|
122
|
-
def get_tests(
|
123
|
-
|
124
|
-
|
125
|
-
#find = File.join(find, '**', 'test_*.rb')
|
126
|
-
find = ['test/test_*.rb']
|
127
|
-
find << File.join(find, which, '**', 'test_*.rb')
|
128
|
-
end
|
129
|
-
else
|
130
|
-
#find = 'test/**/test_*.rb'
|
131
|
-
find = ['test/test_*.rb']
|
132
|
-
find << "test/#{which}/**/test_*.rb"
|
133
|
-
end
|
134
|
-
|
116
|
+
def get_tests(find=nil)
|
117
|
+
find = find && File.directory?(find) ? File.join(find, '**/test_*.rb') : find
|
118
|
+
find = find || ENV['TESTS'] || 'test/**/test_*.rb'
|
135
119
|
Dir.glob(find)
|
136
120
|
end
|
137
121
|
|
@@ -148,26 +132,20 @@ def run_tests(files)
|
|
148
132
|
end
|
149
133
|
|
150
134
|
def prepare_tests_all
|
151
|
-
add_loadpath('lib/core','lib/
|
135
|
+
add_loadpath('lib/core','lib/more')
|
152
136
|
files = get_tests
|
153
137
|
run_tests(files)
|
154
138
|
end
|
155
139
|
|
156
140
|
def prepare_tests_core
|
157
141
|
add_loadpath('lib/core')
|
158
|
-
files = get_tests('core')
|
159
|
-
run_tests(files)
|
160
|
-
end
|
161
|
-
|
162
|
-
def prepare_tests_lore
|
163
|
-
add_loadpath('lib/lore')
|
164
|
-
files = get_tests('lore')
|
142
|
+
files = get_tests('test/core')
|
165
143
|
run_tests(files)
|
166
144
|
end
|
167
145
|
|
168
146
|
def prepare_tests_more
|
169
147
|
add_loadpath('lib/more')
|
170
|
-
files = get_tests('more')
|
148
|
+
files = get_tests('test/more')
|
171
149
|
run_tests(files)
|
172
150
|
end
|
173
151
|
|
@@ -176,7 +154,6 @@ end
|
|
176
154
|
#
|
177
155
|
# unless live
|
178
156
|
# $LOAD_PATH.unshift(File.expand_path('lib/core'))
|
179
|
-
# $LOAD_PATH.unshift(File.expand_path('lib/lore'))
|
180
157
|
# $LOAD_PATH.unshift(File.expand_path('lib/more'))
|
181
158
|
# end
|
182
159
|
#
|
data/demo/{hook.rd → hook.rdoc}
RENAMED
data/lib/core/facets-live.rb
CHANGED
@@ -1,13 +1,15 @@
|
|
1
|
+
require 'facets/opesc'
|
2
|
+
|
1
3
|
class Object
|
2
4
|
|
5
|
+
# This will automatically load (most) core methods
|
6
|
+
# if they are not present when called.
|
7
|
+
|
3
8
|
def method_missing(methodname, *a, &b)
|
4
|
-
|
9
|
+
methodname = OpEsc.escape(methodname)
|
5
10
|
begin
|
6
11
|
require "facets/#{class}/#{methodname}"
|
7
|
-
|
8
|
-
if respond_to?(methodname)
|
9
|
-
send(methodname, *a, &b)
|
10
|
-
end
|
12
|
+
__send__(methodname, *a, &b)
|
11
13
|
rescue LoadError
|
12
14
|
super
|
13
15
|
end
|
data/lib/core/facets.rb
CHANGED
@@ -1,359 +1,379 @@
|
|
1
|
-
# Generated
|
2
|
-
|
3
|
-
require
|
4
|
-
require
|
5
|
-
require
|
6
|
-
require
|
7
|
-
require
|
8
|
-
require
|
9
|
-
require
|
10
|
-
require
|
11
|
-
require
|
12
|
-
require
|
13
|
-
require
|
14
|
-
require
|
15
|
-
require
|
16
|
-
require
|
17
|
-
require
|
18
|
-
require
|
19
|
-
require
|
20
|
-
require
|
21
|
-
require
|
22
|
-
require
|
23
|
-
require
|
24
|
-
require
|
25
|
-
require
|
26
|
-
require
|
27
|
-
require
|
28
|
-
require
|
29
|
-
require
|
30
|
-
require
|
31
|
-
require
|
32
|
-
require
|
33
|
-
require
|
34
|
-
require
|
35
|
-
require
|
36
|
-
require
|
37
|
-
require
|
38
|
-
require
|
39
|
-
require
|
40
|
-
require
|
41
|
-
require
|
42
|
-
require
|
43
|
-
require
|
44
|
-
require
|
45
|
-
require
|
46
|
-
require
|
47
|
-
require
|
48
|
-
require
|
49
|
-
require
|
50
|
-
require
|
51
|
-
require
|
52
|
-
require
|
53
|
-
require
|
54
|
-
require
|
55
|
-
require
|
56
|
-
require
|
57
|
-
require
|
58
|
-
require
|
59
|
-
require
|
60
|
-
require
|
61
|
-
require
|
62
|
-
require
|
63
|
-
require
|
64
|
-
require
|
65
|
-
require
|
66
|
-
require
|
67
|
-
require
|
68
|
-
require
|
69
|
-
require
|
70
|
-
require
|
71
|
-
require
|
72
|
-
require
|
73
|
-
require
|
74
|
-
require
|
75
|
-
require
|
76
|
-
require
|
77
|
-
require
|
78
|
-
require
|
79
|
-
require
|
80
|
-
require
|
81
|
-
require
|
82
|
-
require
|
83
|
-
require
|
84
|
-
require
|
85
|
-
require
|
86
|
-
require
|
87
|
-
require
|
88
|
-
require
|
89
|
-
require
|
90
|
-
require
|
91
|
-
require
|
92
|
-
require
|
93
|
-
require
|
94
|
-
require
|
95
|
-
require
|
96
|
-
require
|
97
|
-
require
|
98
|
-
require
|
99
|
-
require
|
100
|
-
require
|
101
|
-
require
|
102
|
-
require
|
103
|
-
require
|
104
|
-
require
|
105
|
-
require
|
106
|
-
require
|
107
|
-
require
|
108
|
-
require
|
109
|
-
require
|
110
|
-
require
|
111
|
-
require
|
112
|
-
require
|
113
|
-
require
|
114
|
-
require
|
115
|
-
require
|
116
|
-
require
|
117
|
-
require
|
118
|
-
require
|
119
|
-
require
|
120
|
-
require
|
121
|
-
require
|
122
|
-
require
|
123
|
-
require
|
124
|
-
require
|
125
|
-
require
|
126
|
-
require
|
127
|
-
require
|
128
|
-
require
|
129
|
-
require
|
130
|
-
require
|
131
|
-
require
|
132
|
-
require
|
133
|
-
require
|
134
|
-
require
|
135
|
-
require
|
136
|
-
require
|
137
|
-
require
|
138
|
-
require
|
139
|
-
require
|
140
|
-
require
|
141
|
-
require
|
142
|
-
require
|
143
|
-
require
|
144
|
-
require
|
145
|
-
require
|
146
|
-
require
|
147
|
-
require
|
148
|
-
require
|
149
|
-
require
|
150
|
-
require
|
151
|
-
require
|
152
|
-
require
|
153
|
-
require
|
154
|
-
require
|
155
|
-
require
|
156
|
-
require
|
157
|
-
require
|
158
|
-
require
|
159
|
-
require
|
160
|
-
require
|
161
|
-
require
|
162
|
-
require
|
163
|
-
require
|
164
|
-
require
|
165
|
-
require
|
166
|
-
require
|
167
|
-
require
|
168
|
-
require
|
169
|
-
require
|
170
|
-
require
|
171
|
-
require
|
172
|
-
require
|
173
|
-
require
|
174
|
-
require
|
175
|
-
require
|
176
|
-
require
|
177
|
-
require
|
178
|
-
require
|
179
|
-
require
|
180
|
-
require
|
181
|
-
require
|
182
|
-
require
|
183
|
-
require
|
184
|
-
require
|
185
|
-
require
|
186
|
-
require
|
187
|
-
require
|
188
|
-
require
|
189
|
-
require
|
190
|
-
require
|
191
|
-
require
|
192
|
-
require
|
193
|
-
require
|
194
|
-
require
|
195
|
-
require
|
196
|
-
require
|
197
|
-
require
|
198
|
-
require
|
199
|
-
require
|
200
|
-
require
|
201
|
-
require
|
202
|
-
require
|
203
|
-
require
|
204
|
-
require
|
205
|
-
require
|
206
|
-
require
|
207
|
-
require
|
208
|
-
require
|
209
|
-
require
|
210
|
-
require
|
211
|
-
require
|
212
|
-
require
|
213
|
-
require
|
214
|
-
require
|
215
|
-
require
|
216
|
-
require
|
217
|
-
require
|
218
|
-
require
|
219
|
-
require
|
220
|
-
require
|
221
|
-
require
|
222
|
-
require
|
223
|
-
require
|
224
|
-
require
|
225
|
-
require
|
226
|
-
require
|
227
|
-
require
|
228
|
-
require
|
229
|
-
require
|
230
|
-
require
|
231
|
-
require
|
232
|
-
require
|
233
|
-
require
|
234
|
-
require
|
235
|
-
require
|
236
|
-
require
|
237
|
-
require
|
238
|
-
require
|
239
|
-
require
|
240
|
-
require
|
241
|
-
require
|
242
|
-
require
|
243
|
-
require
|
244
|
-
require
|
245
|
-
require
|
246
|
-
require
|
247
|
-
require
|
248
|
-
require
|
249
|
-
require
|
250
|
-
require
|
251
|
-
require
|
252
|
-
require
|
253
|
-
require
|
254
|
-
require
|
255
|
-
require
|
256
|
-
require
|
257
|
-
require
|
258
|
-
require
|
259
|
-
require
|
260
|
-
require
|
261
|
-
require
|
262
|
-
require
|
263
|
-
require
|
264
|
-
require
|
265
|
-
require
|
266
|
-
require
|
267
|
-
require
|
268
|
-
require
|
269
|
-
require
|
270
|
-
require
|
271
|
-
require
|
272
|
-
require
|
273
|
-
require
|
274
|
-
require
|
275
|
-
require
|
276
|
-
require
|
277
|
-
require
|
278
|
-
require
|
279
|
-
require
|
280
|
-
require
|
281
|
-
require
|
282
|
-
require
|
283
|
-
require
|
284
|
-
require
|
285
|
-
require
|
286
|
-
require
|
287
|
-
require
|
288
|
-
require
|
289
|
-
require
|
290
|
-
require
|
291
|
-
require
|
292
|
-
require
|
293
|
-
require
|
294
|
-
require
|
295
|
-
require
|
296
|
-
require
|
297
|
-
require
|
298
|
-
require
|
299
|
-
require
|
300
|
-
require
|
301
|
-
require
|
302
|
-
require
|
303
|
-
require
|
304
|
-
require
|
305
|
-
require
|
306
|
-
require
|
307
|
-
require
|
308
|
-
require
|
309
|
-
require
|
310
|
-
require
|
311
|
-
require
|
312
|
-
require
|
313
|
-
require
|
314
|
-
require
|
315
|
-
require
|
316
|
-
require
|
317
|
-
require
|
318
|
-
require
|
319
|
-
require
|
320
|
-
require
|
321
|
-
require
|
322
|
-
require
|
323
|
-
require
|
324
|
-
require
|
325
|
-
require
|
326
|
-
require
|
327
|
-
require
|
328
|
-
require
|
329
|
-
require
|
330
|
-
require
|
331
|
-
require
|
332
|
-
require
|
333
|
-
require
|
334
|
-
require
|
335
|
-
require
|
336
|
-
require
|
337
|
-
require
|
338
|
-
require
|
339
|
-
require
|
340
|
-
require
|
341
|
-
require
|
342
|
-
require
|
343
|
-
require
|
344
|
-
require
|
345
|
-
require
|
346
|
-
require
|
347
|
-
require
|
348
|
-
require
|
349
|
-
require
|
350
|
-
require
|
351
|
-
require
|
352
|
-
require
|
353
|
-
require
|
354
|
-
require
|
355
|
-
require
|
356
|
-
require
|
357
|
-
require
|
358
|
-
require
|
359
|
-
require
|
1
|
+
# Generated @ Wed Nov 11 12:32:01 -0500 2009 #:till: ^@ <%= Time.now %>
|
2
|
+
#:till+377: <%= 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/descendents.rb"
|
41
|
+
require "facets/class/methodize.rb"
|
42
|
+
require "facets/class/pathize.rb"
|
43
|
+
require "facets/class/prepend.rb"
|
44
|
+
require "facets/class/subclasses.rb"
|
45
|
+
require "facets/class/to_proc.rb"
|
46
|
+
require "facets/comparable.rb"
|
47
|
+
require "facets/comparable/at_least.rb"
|
48
|
+
require "facets/comparable/at_most.rb"
|
49
|
+
require "facets/comparable/bound.rb"
|
50
|
+
require "facets/comparable/cap.rb"
|
51
|
+
require "facets/comparable/clip.rb"
|
52
|
+
require "facets/comparable/cmp.rb"
|
53
|
+
require "facets/comparable/comparable.rb"
|
54
|
+
require "facets/denumerable.rb"
|
55
|
+
require "facets/dir.rb"
|
56
|
+
require "facets/dir/ascend.rb"
|
57
|
+
require "facets/dir/descend.rb"
|
58
|
+
require "facets/dir/multiglob.rb"
|
59
|
+
require "facets/dir/parent.rb"
|
60
|
+
require "facets/dir/recurse.rb"
|
61
|
+
require "facets/duplicable.rb"
|
62
|
+
require "facets/enumerable.rb"
|
63
|
+
require "facets/enumerable/accumulate.rb"
|
64
|
+
require "facets/enumerable/cluster_by.rb"
|
65
|
+
require "facets/enumerable/collect.rb"
|
66
|
+
require "facets/enumerable/commonality.rb"
|
67
|
+
require "facets/enumerable/compact_map.rb"
|
68
|
+
require "facets/enumerable/count.rb"
|
69
|
+
require "facets/enumerable/defer.rb"
|
70
|
+
require "facets/enumerable/divide.rb"
|
71
|
+
require "facets/enumerable/duplicates.rb"
|
72
|
+
require "facets/enumerable/each_by.rb"
|
73
|
+
require "facets/enumerable/entropy.rb"
|
74
|
+
require "facets/enumerable/every.rb"
|
75
|
+
require "facets/enumerable/ewise.rb"
|
76
|
+
require "facets/enumerable/filter.rb"
|
77
|
+
require "facets/enumerable/frequency.rb"
|
78
|
+
require "facets/enumerable/graph.rb"
|
79
|
+
require "facets/enumerable/group_by.rb"
|
80
|
+
require "facets/enumerable/inject.rb"
|
81
|
+
require "facets/enumerable/map_detect.rb"
|
82
|
+
require "facets/enumerable/map_send.rb"
|
83
|
+
require "facets/enumerable/map_with_index.rb"
|
84
|
+
require "facets/enumerable/mash.rb"
|
85
|
+
require "facets/enumerable/mode.rb"
|
86
|
+
require "facets/enumerable/modulate.rb"
|
87
|
+
require "facets/enumerable/none.rb"
|
88
|
+
require "facets/enumerable/occur.rb"
|
89
|
+
require "facets/enumerable/one.rb"
|
90
|
+
require "facets/enumerable/per.rb"
|
91
|
+
require "facets/enumerable/probability.rb"
|
92
|
+
require "facets/enumerable/split.rb"
|
93
|
+
require "facets/enumerable/sum.rb"
|
94
|
+
require "facets/enumerable/take.rb"
|
95
|
+
require "facets/enumerable/uniq_by.rb"
|
96
|
+
require "facets/exception.rb"
|
97
|
+
require "facets/exception/detail.rb"
|
98
|
+
require "facets/exception/raised.rb"
|
99
|
+
require "facets/exception/suppress.rb"
|
100
|
+
require "facets/file.rb"
|
101
|
+
require "facets/file/append.rb"
|
102
|
+
require "facets/file/create.rb"
|
103
|
+
require "facets/file/null.rb"
|
104
|
+
require "facets/file/read.rb"
|
105
|
+
require "facets/file/rewrite.rb"
|
106
|
+
require "facets/file/rootname.rb"
|
107
|
+
require "facets/file/split_all.rb"
|
108
|
+
require "facets/file/split_root.rb"
|
109
|
+
require "facets/file/write.rb"
|
110
|
+
require "facets/file/writelines.rb"
|
111
|
+
require "facets/filetest.rb"
|
112
|
+
require "facets/filetest/root.rb"
|
113
|
+
require "facets/float.rb"
|
114
|
+
require "facets/float/round.rb"
|
115
|
+
require "facets/functor.rb"
|
116
|
+
require "facets/hash.rb"
|
117
|
+
require "facets/hash/alias.rb"
|
118
|
+
require "facets/hash/argumentize.rb"
|
119
|
+
require "facets/hash/at.rb"
|
120
|
+
require "facets/hash/autonew.rb"
|
121
|
+
require "facets/hash/collate.rb"
|
122
|
+
require "facets/hash/count.rb"
|
123
|
+
require "facets/hash/data.rb"
|
124
|
+
require "facets/hash/dearray_values.rb"
|
125
|
+
require "facets/hash/delete.rb"
|
126
|
+
require "facets/hash/diff.rb"
|
127
|
+
require "facets/hash/except.rb"
|
128
|
+
require "facets/hash/group_by_value.rb"
|
129
|
+
require "facets/hash/insert.rb"
|
130
|
+
require "facets/hash/inverse.rb"
|
131
|
+
require "facets/hash/join.rb"
|
132
|
+
require "facets/hash/keys.rb"
|
133
|
+
require "facets/hash/mash.rb"
|
134
|
+
require "facets/hash/merge.rb"
|
135
|
+
require "facets/hash/new_with.rb"
|
136
|
+
require "facets/hash/op.rb"
|
137
|
+
require "facets/hash/op_add.rb"
|
138
|
+
require "facets/hash/op_and.rb"
|
139
|
+
require "facets/hash/op_mul.rb"
|
140
|
+
require "facets/hash/op_or.rb"
|
141
|
+
require "facets/hash/op_push.rb"
|
142
|
+
require "facets/hash/op_sub.rb"
|
143
|
+
require "facets/hash/recursive_merge.rb"
|
144
|
+
require "facets/hash/recursively.rb"
|
145
|
+
require "facets/hash/rekey.rb"
|
146
|
+
require "facets/hash/replace_each.rb"
|
147
|
+
require "facets/hash/select.rb"
|
148
|
+
require "facets/hash/slice.rb"
|
149
|
+
require "facets/hash/stringify_keys.rb"
|
150
|
+
require "facets/hash/swap.rb"
|
151
|
+
require "facets/hash/symbolize_keys.rb"
|
152
|
+
require "facets/hash/to_h.rb"
|
153
|
+
require "facets/hash/to_options.rb"
|
154
|
+
require "facets/hash/to_proc.rb"
|
155
|
+
require "facets/hash/to_struct.rb"
|
156
|
+
require "facets/hash/traverse.rb"
|
157
|
+
require "facets/hash/update.rb"
|
158
|
+
require "facets/hash/update_each.rb"
|
159
|
+
require "facets/hash/update_keys.rb"
|
160
|
+
require "facets/hash/update_values.rb"
|
161
|
+
require "facets/hash/weave.rb"
|
162
|
+
require "facets/hash/zipnew.rb"
|
163
|
+
require "facets/indexable.rb"
|
164
|
+
require "facets/integer.rb"
|
165
|
+
require "facets/integer/even.rb"
|
166
|
+
require "facets/integer/factorial.rb"
|
167
|
+
require "facets/integer/length.rb"
|
168
|
+
require "facets/integer/multiple.rb"
|
169
|
+
require "facets/integer/odd.rb"
|
170
|
+
require "facets/integer/of.rb"
|
171
|
+
require "facets/integer/ordinal.rb"
|
172
|
+
require "facets/kernel.rb"
|
173
|
+
require "facets/kernel/__callee__.rb"
|
174
|
+
require "facets/kernel/__class__.rb"
|
175
|
+
require "facets/kernel/__dir__.rb"
|
176
|
+
require "facets/kernel/__get__.rb"
|
177
|
+
require "facets/kernel/__here__.rb"
|
178
|
+
require "facets/kernel/__method__.rb"
|
179
|
+
require "facets/kernel/__set__.rb"
|
180
|
+
require "facets/kernel/as.rb"
|
181
|
+
require "facets/kernel/ask.rb"
|
182
|
+
require "facets/kernel/attr_singleton.rb"
|
183
|
+
require "facets/kernel/callstack.rb"
|
184
|
+
require "facets/kernel/complete.rb"
|
185
|
+
require "facets/kernel/constant.rb"
|
186
|
+
require "facets/kernel/d.rb"
|
187
|
+
require "facets/kernel/deep_copy.rb"
|
188
|
+
require "facets/kernel/demo.rb"
|
189
|
+
require "facets/kernel/eigenclass.rb"
|
190
|
+
require "facets/kernel/equate.rb"
|
191
|
+
require "facets/kernel/ergo.rb"
|
192
|
+
require "facets/kernel/extend.rb"
|
193
|
+
require "facets/kernel/extension.rb"
|
194
|
+
require "facets/kernel/here.rb"
|
195
|
+
require "facets/kernel/identical.rb"
|
196
|
+
require "facets/kernel/in.rb"
|
197
|
+
require "facets/kernel/instance_assign.rb"
|
198
|
+
require "facets/kernel/instance_class.rb"
|
199
|
+
require "facets/kernel/instance_exec.rb"
|
200
|
+
require "facets/kernel/instance_send.rb"
|
201
|
+
require "facets/kernel/instance_variables.rb"
|
202
|
+
require "facets/kernel/maybe.rb"
|
203
|
+
require "facets/kernel/meta_alias.rb"
|
204
|
+
require "facets/kernel/meta_class.rb"
|
205
|
+
require "facets/kernel/meta_def.rb"
|
206
|
+
require "facets/kernel/meta_eval.rb"
|
207
|
+
require "facets/kernel/method.rb"
|
208
|
+
require "facets/kernel/not_nil.rb"
|
209
|
+
require "facets/kernel/object_class.rb"
|
210
|
+
require "facets/kernel/object_hexid.rb"
|
211
|
+
require "facets/kernel/object_send.rb"
|
212
|
+
require "facets/kernel/object_state.rb"
|
213
|
+
require "facets/kernel/p.rb"
|
214
|
+
require "facets/kernel/populate.rb"
|
215
|
+
require "facets/kernel/qua_class.rb"
|
216
|
+
require "facets/kernel/require_all.rb"
|
217
|
+
require "facets/kernel/require_local.rb"
|
218
|
+
require "facets/kernel/require_relative.rb"
|
219
|
+
require "facets/kernel/resc.rb"
|
220
|
+
require "facets/kernel/respond.rb"
|
221
|
+
require "facets/kernel/returning.rb"
|
222
|
+
require "facets/kernel/silence.rb"
|
223
|
+
require "facets/kernel/singleton_class.rb"
|
224
|
+
require "facets/kernel/source_location.rb"
|
225
|
+
require "facets/kernel/tap.rb"
|
226
|
+
require "facets/kernel/try.rb"
|
227
|
+
require "facets/kernel/val.rb"
|
228
|
+
require "facets/kernel/with.rb"
|
229
|
+
require "facets/lazy.rb"
|
230
|
+
require "facets/matchdata.rb"
|
231
|
+
require "facets/matchdata/match.rb"
|
232
|
+
require "facets/matchdata/matchset.rb"
|
233
|
+
require "facets/metaid.rb"
|
234
|
+
require "facets/module.rb"
|
235
|
+
require "facets/module/abstract.rb"
|
236
|
+
require "facets/module/alias_accessor.rb"
|
237
|
+
require "facets/module/alias_method_chain.rb"
|
238
|
+
require "facets/module/alias_module_function.rb"
|
239
|
+
require "facets/module/ancestor.rb"
|
240
|
+
require "facets/module/attr_setter.rb"
|
241
|
+
require "facets/module/basename.rb"
|
242
|
+
require "facets/module/can.rb"
|
243
|
+
require "facets/module/class.rb"
|
244
|
+
require "facets/module/class_def.rb"
|
245
|
+
require "facets/module/conflict.rb"
|
246
|
+
require "facets/module/extend.rb"
|
247
|
+
require "facets/module/include_function_module.rb"
|
248
|
+
require "facets/module/instance_method.rb"
|
249
|
+
require "facets/module/instance_methods.rb"
|
250
|
+
require "facets/module/integrate.rb"
|
251
|
+
require "facets/module/is.rb"
|
252
|
+
require "facets/module/methodize.rb"
|
253
|
+
require "facets/module/modspace.rb"
|
254
|
+
require "facets/module/module_def.rb"
|
255
|
+
require "facets/module/module_load.rb"
|
256
|
+
require "facets/module/module_require.rb"
|
257
|
+
require "facets/module/nesting.rb"
|
258
|
+
require "facets/module/op.rb"
|
259
|
+
require "facets/module/pathize.rb"
|
260
|
+
require "facets/module/prepend.rb"
|
261
|
+
require "facets/module/redefine_method.rb"
|
262
|
+
require "facets/module/redirect_method.rb"
|
263
|
+
require "facets/module/rename_method.rb"
|
264
|
+
require "facets/module/revise.rb"
|
265
|
+
require "facets/module/spacename.rb"
|
266
|
+
require "facets/module/wrap_method.rb"
|
267
|
+
require "facets/nilclass.rb"
|
268
|
+
require "facets/nilclass/ergo.rb"
|
269
|
+
require "facets/nilclass/to_f.rb"
|
270
|
+
require "facets/numeric.rb"
|
271
|
+
require "facets/numeric/approx.rb"
|
272
|
+
require "facets/numeric/distance.rb"
|
273
|
+
require "facets/numeric/round.rb"
|
274
|
+
require "facets/objectspace.rb"
|
275
|
+
require "facets/objectspace/classes.rb"
|
276
|
+
require "facets/objectspace/op_fetch.rb"
|
277
|
+
require "facets/proc.rb"
|
278
|
+
require "facets/proc/bind.rb"
|
279
|
+
require "facets/proc/compose.rb"
|
280
|
+
require "facets/proc/curry.rb"
|
281
|
+
require "facets/proc/to_method.rb"
|
282
|
+
require "facets/proc/update.rb"
|
283
|
+
require "facets/range.rb"
|
284
|
+
require "facets/range/combine.rb"
|
285
|
+
require "facets/range/overlap.rb"
|
286
|
+
require "facets/range/to_r.rb"
|
287
|
+
require "facets/range/umbrella.rb"
|
288
|
+
require "facets/range/within.rb"
|
289
|
+
require "facets/regexp.rb"
|
290
|
+
require "facets/regexp/arity.rb"
|
291
|
+
require "facets/regexp/to_re.rb"
|
292
|
+
require "facets/stackable.rb"
|
293
|
+
require "facets/string.rb"
|
294
|
+
require "facets/string/align.rb"
|
295
|
+
require "facets/string/bracket.rb"
|
296
|
+
require "facets/string/bytes.rb"
|
297
|
+
require "facets/string/camelcase.rb"
|
298
|
+
require "facets/string/capitalized.rb"
|
299
|
+
require "facets/string/chars.rb"
|
300
|
+
require "facets/string/chomp.rb"
|
301
|
+
require "facets/string/cleanlines.rb"
|
302
|
+
require "facets/string/cleave.rb"
|
303
|
+
require "facets/string/compress_lines.rb"
|
304
|
+
require "facets/string/contains.rb"
|
305
|
+
require "facets/string/divide.rb"
|
306
|
+
require "facets/string/each_char.rb"
|
307
|
+
require "facets/string/each_word.rb"
|
308
|
+
require "facets/string/edit_distance.rb"
|
309
|
+
require "facets/string/end_with.rb"
|
310
|
+
require "facets/string/expand_tab.rb"
|
311
|
+
require "facets/string/file.rb"
|
312
|
+
require "facets/string/fold.rb"
|
313
|
+
require "facets/string/indent.rb"
|
314
|
+
require "facets/string/index_all.rb"
|
315
|
+
require "facets/string/interpolate.rb"
|
316
|
+
require "facets/string/line_wrap.rb"
|
317
|
+
require "facets/string/lines.rb"
|
318
|
+
require "facets/string/lowercase.rb"
|
319
|
+
require "facets/string/margin.rb"
|
320
|
+
require "facets/string/methodize.rb"
|
321
|
+
require "facets/string/modulize.rb"
|
322
|
+
require "facets/string/mscan.rb"
|
323
|
+
require "facets/string/natcmp.rb"
|
324
|
+
require "facets/string/nchar.rb"
|
325
|
+
require "facets/string/newlines.rb"
|
326
|
+
require "facets/string/op_div.rb"
|
327
|
+
require "facets/string/op_sub.rb"
|
328
|
+
require "facets/string/outdent.rb"
|
329
|
+
require "facets/string/pathize.rb"
|
330
|
+
require "facets/string/range.rb"
|
331
|
+
require "facets/string/range_all.rb"
|
332
|
+
require "facets/string/range_of_line.rb"
|
333
|
+
require "facets/string/rewrite.rb"
|
334
|
+
require "facets/string/shatter.rb"
|
335
|
+
require "facets/string/similarity.rb"
|
336
|
+
require "facets/string/snakecase.rb"
|
337
|
+
require "facets/string/splice.rb"
|
338
|
+
require "facets/string/start_with.rb"
|
339
|
+
require "facets/string/subtract.rb"
|
340
|
+
require "facets/string/tab.rb"
|
341
|
+
require "facets/string/tabto.rb"
|
342
|
+
require "facets/string/titlecase.rb"
|
343
|
+
require "facets/string/to_re.rb"
|
344
|
+
require "facets/string/underscore.rb"
|
345
|
+
require "facets/string/unfold.rb"
|
346
|
+
require "facets/string/uppercase.rb"
|
347
|
+
require "facets/string/variablize.rb"
|
348
|
+
require "facets/string/word_wrap.rb"
|
349
|
+
require "facets/string/words.rb"
|
350
|
+
require "facets/string/xor.rb"
|
351
|
+
require "facets/struct.rb"
|
352
|
+
require "facets/struct/attributes.rb"
|
353
|
+
require "facets/symbol.rb"
|
354
|
+
require "facets/symbol/chomp.rb"
|
355
|
+
require "facets/symbol/generate.rb"
|
356
|
+
require "facets/symbol/not.rb"
|
357
|
+
require "facets/symbol/plain.rb"
|
358
|
+
require "facets/symbol/query.rb"
|
359
|
+
require "facets/symbol/re_s.rb"
|
360
|
+
require "facets/symbol/setter.rb"
|
361
|
+
require "facets/symbol/succ.rb"
|
362
|
+
require "facets/symbol/thrown.rb"
|
363
|
+
require "facets/symbol/to_proc.rb"
|
364
|
+
require "facets/symbol/variablize.rb"
|
365
|
+
require "facets/time.rb"
|
366
|
+
require "facets/time/advance.rb"
|
367
|
+
require "facets/time/ago.rb"
|
368
|
+
require "facets/time/change.rb"
|
369
|
+
require "facets/time/elapse.rb"
|
370
|
+
require "facets/time/hence.rb"
|
371
|
+
require "facets/time/round.rb"
|
372
|
+
require "facets/time/set.rb"
|
373
|
+
require "facets/time/stamp.rb"
|
374
|
+
require "facets/time/to_time.rb"
|
375
|
+
require "facets/time/trunc.rb"
|
376
|
+
require "facets/to_hash.rb"
|
377
|
+
require "facets/unboundmethod.rb"
|
378
|
+
require "facets/unboundmethod/arguments.rb"
|
379
|
+
require "facets/unboundmethod/name.rb"
|