facets 2.6.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.rdoc +331 -35
- data/MANIFEST +685 -826
- data/{doc/guide/notes.rd → NOTES} +0 -0
- data/README.rdoc +73 -25
- data/Rakefile +245 -2
- data/TODO +5 -0
- data/demo/hook.rd +47 -0
- data/demo/scenario_require.rd +9 -0
- data/doc/README.more +24 -6
- data/doc/manual/about.rb +47 -0
- data/doc/manual/annotations.rdoc +60 -0
- data/doc/manual/associations.rdoc +55 -0
- data/doc/manual/blockups.rdoc +101 -0
- data/doc/manual/capsule.rdoc +34 -0
- data/doc/manual/command.rdoc +177 -0
- data/doc/manual/core.rdoc +37 -0
- data/doc/manual/faq.rdoc +32 -0
- data/doc/manual/typecast.html +112 -0
- data/lib/core/facets.rb +359 -11
- data/lib/core/facets/array/combination.rb +3 -3
- data/lib/core/facets/array/index.rb +4 -1
- data/lib/core/facets/array/permutation.rb +2 -2
- data/lib/core/facets/array/product.rb +1 -1
- data/lib/core/facets/binding/eval.rb +1 -1
- data/lib/core/facets/denumerable.rb +76 -0
- data/lib/core/facets/duplicable.rb +34 -0
- data/lib/core/facets/enumerable/count.rb +10 -4
- data/lib/core/facets/enumerable/defer.rb +77 -0
- data/lib/core/facets/enumerable/each_by.rb +1 -1
- data/lib/core/facets/enumerable/every.rb +35 -0
- data/lib/{more/facets/elementwise.rb → core/facets/enumerable/ewise.rb} +0 -0
- data/lib/core/facets/enumerable/filter.rb +25 -0
- data/lib/core/facets/enumerable/group_by.rb +1 -1
- data/lib/core/facets/enumerable/none.rb +3 -2
- data/lib/core/facets/enumerable/one.rb +3 -2
- data/lib/core/facets/enumerable/per.rb +61 -0
- data/lib/core/facets/exception/raised.rb +14 -0
- data/lib/core/facets/integer/odd.rb +5 -1
- data/lib/core/facets/kernel/__dir__.rb +13 -3
- data/lib/core/facets/kernel/__here__.rb +14 -0
- data/lib/core/facets/kernel/__method__.rb +9 -3
- data/lib/core/facets/kernel/ask.rb +1 -0
- data/lib/core/facets/kernel/equate.rb +13 -0
- data/lib/core/facets/kernel/extension.rb +9 -0
- data/lib/core/facets/kernel/identical.rb +4 -0
- data/lib/core/facets/kernel/instance_exec.rb +2 -1
- data/lib/core/facets/kernel/method.rb +49 -0
- data/lib/core/facets/kernel/object_send.rb +2 -2
- data/lib/core/facets/kernel/{state.rb → object_state.rb} +23 -12
- data/lib/core/facets/kernel/require_all.rb +6 -1
- data/lib/core/facets/kernel/require_local.rb +8 -1
- data/lib/core/facets/kernel/require_relative.rb +52 -0
- data/lib/core/facets/kernel/source_location.rb +13 -0
- data/lib/core/facets/kernel/tap.rb +13 -6
- data/lib/core/facets/module/attr_setter.rb +57 -0
- data/lib/core/facets/module/instance_method.rb +24 -0
- data/lib/core/facets/module/module_load.rb +60 -44
- data/lib/core/facets/module/module_require.rb +1 -0
- data/lib/core/facets/nilclass/to_f.rb +1 -1
- data/lib/core/facets/objectspace/op_fetch.rb +3 -0
- data/lib/core/facets/proc/curry.rb +4 -3
- data/lib/core/facets/string/bytes.rb +10 -4
- data/lib/core/facets/string/camelcase.rb +6 -5
- data/lib/core/facets/string/chars.rb +5 -1
- data/lib/core/facets/string/each_char.rb +1 -1
- data/lib/core/facets/string/each_word.rb +1 -1
- data/lib/core/facets/string/lines.rb +11 -4
- data/lib/core/facets/string/start_with.rb +9 -2
- data/lib/core/facets/string/unfold.rb +27 -0
- data/lib/core/facets/symbol/succ.rb +3 -3
- data/lib/core/facets/symbol/thrown.rb +20 -0
- data/lib/core/facets/symbol/to_proc.rb +3 -2
- data/lib/core/facets/time/to_time.rb +1 -1
- data/lib/core/facets/to_hash.rb +41 -100
- data/lib/core/facets/unboundmethod/name.rb +20 -23
- data/lib/more/facets/ansicode.rb +1 -10
- data/lib/more/facets/autoarray.rb +3 -31
- data/lib/more/facets/basicobject.rb +73 -0
- data/lib/more/facets/blankslate.rb +2 -66
- data/lib/{lore → more}/facets/cgi.rb +0 -0
- data/lib/more/facets/class_extend.rb +1 -0
- data/lib/{lore → more}/facets/continuation.rb +0 -0
- data/lib/{lore → more}/facets/date.rb +3 -3
- data/lib/more/facets/enumargs.rb +192 -0
- data/lib/more/facets/enumerablepass.rb +2 -216
- data/lib/more/facets/enumerator.rb +62 -0
- data/lib/more/facets/{equatable.rb → equitable.rb} +11 -11
- data/lib/more/facets/expirable.rb +13 -41
- data/lib/{lore → more}/facets/fileutils.rb +0 -0
- data/lib/{lore → more}/facets/fileutils/head.rb +0 -0
- data/lib/{lore → more}/facets/fileutils/safe_ln.rb +0 -0
- data/lib/{lore → more}/facets/fileutils/slice.rb +0 -0
- data/lib/{lore → more}/facets/fileutils/tail.rb +0 -0
- data/lib/{lore → more}/facets/fileutils/wc.rb +0 -0
- data/lib/{lore → more}/facets/fileutils/whereis.rb +0 -0
- data/lib/{lore → more}/facets/fileutils/which.rb +0 -0
- data/lib/{lore → more}/facets/getoptlong.rb +0 -0
- data/lib/more/facets/hook.rb +2 -29
- data/lib/more/facets/inheritor.rb +2 -2
- data/lib/more/facets/instance_eval.rb +50 -0
- data/lib/more/facets/instance_function.rb +78 -0
- data/lib/more/facets/main.rb +20 -15
- data/lib/more/facets/memoize.rb +1 -113
- data/lib/more/facets/module/attr.rb +83 -0
- data/lib/more/facets/module/attr_tester.rb +44 -0
- data/lib/more/facets/module/attr_toggler.rb +59 -0
- data/lib/more/facets/module/attr_validator.rb +34 -0
- data/lib/more/facets/{class_extension.rb → module/class_extend.rb} +21 -13
- data/lib/more/facets/once.rb +59 -0
- data/lib/more/facets/openmodule.rb +1 -0
- data/lib/more/facets/orderedhash.rb +1 -33
- data/lib/{lore → more}/facets/ostruct.rb +0 -0
- data/lib/more/facets/ostructable.rb +1 -4
- data/lib/more/facets/partial.rb +18 -16
- data/lib/{lore → more}/facets/pathname.rb +0 -0
- data/lib/more/facets/preinitialize.rb +157 -0
- data/lib/{lore → more}/facets/rbconfig.rb +0 -0
- data/lib/more/facets/recorder.rb +1 -2
- data/lib/{lore → more}/facets/set.rb +0 -0
- data/lib/{lore → more}/facets/shellwords.rb +0 -0
- data/lib/{lore → more}/facets/uri.rb +0 -0
- data/lib/{lore → more}/facets/yaml.rb +0 -0
- data/lib/{lore → more}/facets/zlib.rb +0 -0
- data/meta/loadpath +0 -1
- data/meta/sitemap +4 -0
- data/meta/version +1 -1
- data/test/core/enumerable/test_count.rb +1 -1
- data/test/{more/test_filter.rb → core/enumerable/test_defer.rb} +24 -22
- data/test/{more/test_elementor.rb → core/enumerable/test_every.rb} +2 -15
- data/test/core/enumerable/test_ewise.rb +23 -0
- data/test/core/enumerable/test_per.rb +18 -0
- data/test/core/enumerable/test_take.rb +13 -0
- data/test/core/kernel/test_deepcopy.rb +1 -1
- data/test/{more/test_1stclassmethod.rb → core/kernel/test_method.rb} +2 -7
- data/test/core/kernel/test_tap.rb +1 -1
- data/test/core/proc/test_curry.rb +11 -0
- data/test/core/string/test_bytes.rb +1 -1
- data/test/core/string/test_camelcase.rb +23 -6
- data/test/core/string/test_lines.rb +1 -1
- data/test/core/string/test_unfold.rb +14 -0
- data/test/{more → core}/test_blank.rb +0 -0
- data/test/{more → core}/test_boolean.rb +0 -0
- data/test/{more → core}/test_functor.rb +0 -0
- data/test/{lore → more}/test_basicobject.rb +0 -0
- data/test/more/{test_class_extension.rb → test_class_extend.rb} +6 -6
- data/test/{lore → more}/test_continuation.rb +0 -0
- data/test/{lore → more}/test_date.rb +0 -0
- data/test/more/{test_enumerablepass.rb → test_enumargs.rb} +2 -4
- data/test/more/{test_equatable.rb → test_equitable.rb} +2 -2
- data/test/more/{test_instantise.rb → test_instance_function.rb} +3 -2
- data/test/more/test_memoize.rb +1 -1
- data/test/{lore → more}/test_ostruct.rb +0 -0
- metadata +865 -1016
- data/RELEASE +0 -38
- data/doc/README.lore +0 -51
- data/doc/log/basic_stats/index.html +0 -39
- data/doc/log/changelog.html +0 -648
- data/doc/log/changelog.txt +0 -217
- data/doc/log/stats/index.html +0 -39
- data/doc/log/testlog.txt +0 -278
- data/doc/notes/CHANGES +0 -2529
- data/doc/rdoc/lore/classes/Array.html +0 -176
- data/doc/rdoc/lore/classes/CGI.html +0 -191
- data/doc/rdoc/lore/classes/Config.html +0 -135
- data/doc/rdoc/lore/classes/Continuation.html +0 -113
- data/doc/rdoc/lore/classes/Date.html +0 -631
- data/doc/rdoc/lore/classes/DateTime.html +0 -583
- data/doc/rdoc/lore/classes/Enumerable.html +0 -89
- data/doc/rdoc/lore/classes/Enumerable/Enumerator.html +0 -147
- data/doc/rdoc/lore/classes/File.html +0 -128
- data/doc/rdoc/lore/classes/FileUtils.html +0 -434
- data/doc/rdoc/lore/classes/GetoptLong.html +0 -118
- data/doc/rdoc/lore/classes/GetoptLong/DSL.html +0 -208
- data/doc/rdoc/lore/classes/Kernel.html +0 -135
- data/doc/rdoc/lore/classes/Logger.html +0 -229
- data/doc/rdoc/lore/classes/Logger/Ansicolor.html +0 -277
- data/doc/rdoc/lore/classes/Logger/LogDevice.html +0 -121
- data/doc/rdoc/lore/classes/NilClass.html +0 -119
- data/doc/rdoc/lore/classes/OpenStruct.html +0 -432
- data/doc/rdoc/lore/classes/Pathname.html +0 -353
- data/doc/rdoc/lore/classes/Set.html +0 -117
- data/doc/rdoc/lore/classes/Shellwords.html +0 -111
- data/doc/rdoc/lore/classes/String.html +0 -140
- data/doc/rdoc/lore/classes/Time.html +0 -154
- data/doc/rdoc/lore/classes/URI.html +0 -454
- data/doc/rdoc/lore/classes/URI/Hash.html +0 -105
- data/doc/rdoc/lore/classes/URI/Kernel.html +0 -122
- data/doc/rdoc/lore/classes/Zlib.html +0 -188
- data/doc/rdoc/lore/created.rid +0 -1
- data/doc/rdoc/lore/files/README.html +0 -286
- data/doc/rdoc/lore/files/doc/README_lore.html +0 -155
- data/doc/rdoc/lore/files/lib/lore/facets/basicobject_rb.html +0 -118
- data/doc/rdoc/lore/files/lib/lore/facets/cgi_rb.html +0 -111
- data/doc/rdoc/lore/files/lib/lore/facets/continuation_rb.html +0 -147
- data/doc/rdoc/lore/files/lib/lore/facets/date_rb.html +0 -97
- data/doc/rdoc/lore/files/lib/lore/facets/enumerator_rb.html +0 -111
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/head_rb.html +0 -96
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/safe_ln_rb.html +0 -96
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/slice_rb.html +0 -96
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/tail_rb.html +0 -96
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/wc_rb.html +0 -96
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/whereis_rb.html +0 -96
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils/which_rb.html +0 -96
- data/doc/rdoc/lore/files/lib/lore/facets/fileutils_rb.html +0 -131
- data/doc/rdoc/lore/files/lib/lore/facets/getoptlong_rb.html +0 -135
- data/doc/rdoc/lore/files/lib/lore/facets/logger_rb.html +0 -142
- data/doc/rdoc/lore/files/lib/lore/facets/ostruct_rb.html +0 -135
- data/doc/rdoc/lore/files/lib/lore/facets/pathname_rb.html +0 -145
- data/doc/rdoc/lore/files/lib/lore/facets/rbconfig_rb.html +0 -124
- data/doc/rdoc/lore/files/lib/lore/facets/set_rb.html +0 -96
- data/doc/rdoc/lore/files/lib/lore/facets/shellwords_rb.html +0 -124
- data/doc/rdoc/lore/files/lib/lore/facets/uri_rb.html +0 -125
- data/doc/rdoc/lore/files/lib/lore/facets/yaml_rb.html +0 -146
- data/doc/rdoc/lore/files/lib/lore/facets/zlib_rb.html +0 -97
- data/doc/rdoc/lore/fr_class_index.html +0 -73
- data/doc/rdoc/lore/fr_file_index.html +0 -71
- data/doc/rdoc/lore/fr_method_index.html +0 -177
- data/doc/rdoc/lore/index.html +0 -26
- data/doc/rdoc/lore/rdoc-style.css +0 -177
- data/doc/release-notes/RELEASE-2.0.5 +0 -8
- data/doc/release-notes/RELEASE-2.1.0 +0 -9
- data/doc/release-notes/RELEASE-2.1.1 +0 -5
- data/doc/release-notes/RELEASE-2.1.2 +0 -6
- data/doc/release-notes/RELEASE-2.1.3 +0 -5
- data/doc/release-notes/RELEASE-2.2.0 +0 -14
- data/doc/release-notes/RELEASE-2.2.1 +0 -4
- data/doc/release-notes/RELEASE-2.3.0 +0 -6
- data/doc/release-notes/RELEASE-2.4.0 +0 -70
- data/doc/release-notes/RELEASE-2.4.1 +0 -8
- data/doc/release-notes/RELEASE-2.4.2 +0 -4
- data/doc/release-notes/RELEASE-2.4.3 +0 -78
- data/doc/release-notes/RELEASE-2.4.4 +0 -38
- data/doc/release-notes/RELEASE-2.4.5 +0 -37
- data/doc/release-notes/RELEASE-2.5.0 +0 -83
- data/lib/core/facets/kernel/instance.rb +0 -19
- data/lib/lore/facets/basicobject.rb +0 -14
- data/lib/lore/facets/enumerator.rb +0 -67
- data/lib/lore/facets/logger.rb +0 -291
- data/lib/more/facets/1stclassmethod.rb +0 -140
- data/lib/more/facets/advisable.rb +0 -162
- data/lib/more/facets/association.rb +0 -210
- data/lib/more/facets/attr.rb +0 -209
- data/lib/more/facets/basex.rb +0 -37
- data/lib/more/facets/bbcode.rb +0 -397
- data/lib/more/facets/bicrypt.rb +0 -265
- data/lib/more/facets/binreadable.rb +0 -221
- data/lib/more/facets/censor.rb +0 -97
- data/lib/more/facets/classmethods.rb +0 -199
- data/lib/more/facets/consoleutils.rb +0 -99
- data/lib/more/facets/crypt.rb +0 -166
- data/lib/more/facets/dependency.rb +0 -151
- data/lib/more/facets/downloader.rb +0 -281
- data/lib/more/facets/duplicable.rb +0 -43
- data/lib/more/facets/elementor.rb +0 -133
- data/lib/more/facets/filter.rb +0 -121
- data/lib/more/facets/heap.rb +0 -22
- data/lib/more/facets/infinity.rb +0 -193
- data/lib/more/facets/ini.rb +0 -264
- data/lib/more/facets/instantise.rb +0 -1
- data/lib/more/facets/instantize.rb +0 -95
- data/lib/more/facets/interval.rb +0 -282
- data/lib/more/facets/iteration.rb +0 -65
- data/lib/more/facets/linkedlist.rb +0 -222
- data/lib/more/facets/lrucache.rb +0 -157
- data/lib/more/facets/matcher.rb +0 -140
- data/lib/more/facets/memoizer.rb +0 -74
- data/lib/more/facets/minitar.rb +0 -1063
- data/lib/more/facets/nackclass.rb +0 -41
- data/lib/more/facets/net/smtp_tls.rb +0 -131
- data/lib/more/facets/nilstatus.rb +0 -48
- data/lib/more/facets/overload.rb +0 -94
- data/lib/more/facets/paramix.rb +0 -202
- data/lib/more/facets/pool.rb +0 -91
- data/lib/more/facets/pqueue.rb +0 -449
- data/lib/more/facets/pry.rb +0 -32
- data/lib/more/facets/reflection.rb +0 -145
- data/lib/more/facets/semaphore.rb +0 -92
- data/lib/more/facets/settings.rb +0 -248
- data/lib/more/facets/snapshot.rb +0 -209
- data/lib/more/facets/sparse_array.rb +0 -809
- data/lib/more/facets/string/mask.rb +0 -278
- data/lib/more/facets/string/obfuscate.rb +0 -65
- data/lib/more/facets/string/stylize.rb +0 -169
- data/lib/more/facets/string/words.rb +0 -167
- data/lib/more/facets/syncarray.rb +0 -114
- data/lib/more/facets/synchash.rb +0 -157
- data/lib/more/facets/typecast.rb +0 -261
- data/lib/more/facets/uninheritable.rb +0 -50
- data/lib/more/facets/xmlhash.rb +0 -112
- data/lib/more/facets/xoxo.rb +0 -259
- data/lib/more/facets/ziputils.rb +0 -490
- data/task/conflicts +0 -63
- data/task/coverage.rake +0 -37
- data/task/methods +0 -49
- data/task/rdoc.rake +0 -17
- data/task/setup.rake +0 -38
- data/task/test.rake +0 -145
- data/test/more/test_advisable.rb +0 -71
- data/test/more/test_association.rb +0 -38
- data/test/more/test_bbcode.rb +0 -21
- data/test/more/test_binreadable.rb +0 -50
- data/test/more/test_buildable.rb +0 -73
- data/test/more/test_classmethods.rb +0 -56
- data/test/more/test_crypt.rb +0 -32
- data/test/more/test_dependency.rb +0 -69
- data/test/more/test_elementwise.rb +0 -25
- data/test/more/test_infinity.rb +0 -40
- data/test/more/test_interval.rb +0 -151
- data/test/more/test_linkedlist.rb +0 -41
- data/test/more/test_lrucache.rb +0 -14
- data/test/more/test_overload.rb +0 -160
- data/test/more/test_paramix.rb +0 -170
- data/test/more/test_prototype.rb +0 -35
- data/test/more/test_snapshot.rb +0 -21
- data/test/more/test_sparsearray.rb +0 -279
- data/test/more/test_syncarray.rb +0 -15
- data/test/more/test_synchash.rb +0 -16
- data/test/more/test_typecast.rb +0 -54
- data/test/more/test_uninheritable.rb +0 -31
- data/test/more/test_xoxo.rb +0 -274
- data/test/test_facets.rb +0 -9
@@ -1,105 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Module: URI::Hash</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "+"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "-"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Module</span><br />URI::Hash</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../../files/lib/lore/facets/uri_rb.html">lib/lore/facets/uri.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
</table>
|
64
|
-
</td>
|
65
|
-
</tr>
|
66
|
-
</table>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
<div id="content">
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
<div class="sectiontitle">Methods</div>
|
76
|
-
<span style="padding-right: 5px;"><a href="#M000112">to_uri</a></span>
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
<div class="sectiontitle">Public Instance methods</div>
|
84
|
-
<div class="method">
|
85
|
-
<div class="title">
|
86
|
-
<a name="M000112"></a><b>to_uri</b>()
|
87
|
-
</div>
|
88
|
-
<div class="sourcecode">
|
89
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000112_source')" id="l_M000112_source">+</a> ]</p>
|
90
|
-
<div id="M000112_source" class="dyn-source">
|
91
|
-
<pre>
|
92
|
-
<span class="ruby-comment cmt"># File lib/lore/facets/uri.rb, line 235</span>
|
93
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_uri</span>
|
94
|
-
<span class="ruby-constant">URI</span>.<span class="ruby-identifier">hash_to_query</span>(<span class="ruby-keyword kw">self</span>)
|
95
|
-
<span class="ruby-keyword kw">end</span>
|
96
|
-
</pre>
|
97
|
-
</div>
|
98
|
-
</div>
|
99
|
-
</div>
|
100
|
-
</div>
|
101
|
-
|
102
|
-
</div>
|
103
|
-
|
104
|
-
</body>
|
105
|
-
</html>
|
@@ -1,122 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Module: URI::Kernel</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "+"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "-"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Module</span><br />URI::Kernel</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../../files/lib/lore/facets/uri_rb.html">lib/lore/facets/uri.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
</table>
|
64
|
-
</td>
|
65
|
-
</tr>
|
66
|
-
</table>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
<div id="content">
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
<div class="sectiontitle">Methods</div>
|
76
|
-
<span style="padding-right: 5px;"><a href="#M000114">unuri</a></span>
|
77
|
-
<span style="padding-right: 5px;"><a href="#M000113">uri</a></span>
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
<div class="sectiontitle">Public Instance methods</div>
|
85
|
-
<div class="method">
|
86
|
-
<div class="title">
|
87
|
-
<a name="M000114"></a><b>unuri</b>(s)
|
88
|
-
</div>
|
89
|
-
<div class="sourcecode">
|
90
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000114_source')" id="l_M000114_source">+</a> ]</p>
|
91
|
-
<div id="M000114_source" class="dyn-source">
|
92
|
-
<pre>
|
93
|
-
<span class="ruby-comment cmt"># File lib/lore/facets/uri.rb, line 228</span>
|
94
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unuri</span>(<span class="ruby-identifier">s</span>)
|
95
|
-
<span class="ruby-constant">URI</span>.<span class="ruby-identifier">unescape</span>(<span class="ruby-identifier">s</span>)
|
96
|
-
<span class="ruby-keyword kw">end</span>
|
97
|
-
</pre>
|
98
|
-
</div>
|
99
|
-
</div>
|
100
|
-
</div>
|
101
|
-
<div class="method">
|
102
|
-
<div class="title">
|
103
|
-
<a name="M000113"></a><b>uri</b>(s, w=%r{[^a-zA-Z_0-9./-]})
|
104
|
-
</div>
|
105
|
-
<div class="sourcecode">
|
106
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000113_source')" id="l_M000113_source">+</a> ]</p>
|
107
|
-
<div id="M000113_source" class="dyn-source">
|
108
|
-
<pre>
|
109
|
-
<span class="ruby-comment cmt"># File lib/lore/facets/uri.rb, line 223</span>
|
110
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">uri</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">w</span>=<span class="ruby-regexp re">%r{[^a-zA-Z_0-9./-]}</span>)
|
111
|
-
<span class="ruby-constant">URI</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">w</span>)
|
112
|
-
<span class="ruby-keyword kw">end</span>
|
113
|
-
</pre>
|
114
|
-
</div>
|
115
|
-
</div>
|
116
|
-
</div>
|
117
|
-
</div>
|
118
|
-
|
119
|
-
</div>
|
120
|
-
|
121
|
-
</body>
|
122
|
-
</html>
|
@@ -1,188 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Module: Zlib</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "+"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "-"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Module</span><br />Zlib</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../files/lib/lore/facets/zlib_rb.html">lib/lore/facets/zlib.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
</table>
|
64
|
-
</td>
|
65
|
-
</tr>
|
66
|
-
</table>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
<div id="content">
|
71
|
-
|
72
|
-
<div class="description"><p>
|
73
|
-
A convenient wrapper for the zlib standard library that allows
|
74
|
-
compression/decompression of strings with gzip.
|
75
|
-
</p>
|
76
|
-
</div>
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
<div class="sectiontitle">Methods</div>
|
81
|
-
<span style="padding-right: 5px;"><a href="#M000126">compress</a></span>
|
82
|
-
<span style="padding-right: 5px;"><a href="#M000125">decompress</a></span>
|
83
|
-
<span style="padding-right: 5px;"><a href="#M000128">deflate</a></span>
|
84
|
-
<span style="padding-right: 5px;"><a href="#M000127">inflate</a></span>
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
<div class="sectiontitle">Public Class methods</div>
|
92
|
-
<div class="method">
|
93
|
-
<div class="title">
|
94
|
-
<a name="M000126"></a><b>compress</b>(source)
|
95
|
-
</div>
|
96
|
-
<div class="description">
|
97
|
-
<p>
|
98
|
-
Compresses a string using gzip.
|
99
|
-
</p>
|
100
|
-
</div>
|
101
|
-
<div class="sourcecode">
|
102
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000126_source')" id="l_M000126_source">+</a> ]</p>
|
103
|
-
<div id="M000126_source" class="dyn-source">
|
104
|
-
<pre>
|
105
|
-
<span class="ruby-comment cmt"># File lib/lore/facets/zlib.rb, line 16</span>
|
106
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">compress</span>(<span class="ruby-identifier">source</span>)
|
107
|
-
<span class="ruby-identifier">output</span> = <span class="ruby-constant">StringIO</span>.<span class="ruby-identifier">new</span>
|
108
|
-
<span class="ruby-keyword kw">class</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">output</span>
|
109
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>; <span class="ruby-identifier">rewind</span>; <span class="ruby-keyword kw">end</span>
|
110
|
-
<span class="ruby-keyword kw">end</span>
|
111
|
-
<span class="ruby-identifier">gz</span> = <span class="ruby-constant">GzipWriter</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">output</span>)
|
112
|
-
<span class="ruby-identifier">gz</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">source</span>)
|
113
|
-
<span class="ruby-identifier">gz</span>.<span class="ruby-identifier">close</span>
|
114
|
-
<span class="ruby-identifier">output</span>.<span class="ruby-identifier">string</span>
|
115
|
-
<span class="ruby-keyword kw">end</span>
|
116
|
-
</pre>
|
117
|
-
</div>
|
118
|
-
</div>
|
119
|
-
</div>
|
120
|
-
<div class="method">
|
121
|
-
<div class="title">
|
122
|
-
<a name="M000125"></a><b>decompress</b>(source)
|
123
|
-
</div>
|
124
|
-
<div class="description">
|
125
|
-
<p>
|
126
|
-
Decompresses a gzipped string.
|
127
|
-
</p>
|
128
|
-
</div>
|
129
|
-
<div class="sourcecode">
|
130
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000125_source')" id="l_M000125_source">+</a> ]</p>
|
131
|
-
<div id="M000125_source" class="dyn-source">
|
132
|
-
<pre>
|
133
|
-
<span class="ruby-comment cmt"># File lib/lore/facets/zlib.rb, line 11</span>
|
134
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">decompress</span>(<span class="ruby-identifier">source</span>)
|
135
|
-
<span class="ruby-constant">GzipReader</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">StringIO</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">source</span>)).<span class="ruby-identifier">read</span>
|
136
|
-
<span class="ruby-keyword kw">end</span>
|
137
|
-
</pre>
|
138
|
-
</div>
|
139
|
-
</div>
|
140
|
-
</div>
|
141
|
-
<div class="method">
|
142
|
-
<div class="title">
|
143
|
-
<a name="M000128"></a><b>deflate</b>(string, level=DEFAULT_COMPRESSION)
|
144
|
-
</div>
|
145
|
-
<div class="description">
|
146
|
-
<p>
|
147
|
-
Deflate a string.
|
148
|
-
</p>
|
149
|
-
</div>
|
150
|
-
<div class="sourcecode">
|
151
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000128_source')" id="l_M000128_source">+</a> ]</p>
|
152
|
-
<div id="M000128_source" class="dyn-source">
|
153
|
-
<pre>
|
154
|
-
<span class="ruby-comment cmt"># File lib/lore/facets/zlib.rb, line 33</span>
|
155
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">deflate</span>(<span class="ruby-identifier">string</span>, <span class="ruby-identifier">level</span>=<span class="ruby-constant">DEFAULT_COMPRESSION</span>)
|
156
|
-
<span class="ruby-constant">Deflate</span>.<span class="ruby-identifier">deflate</span>(<span class="ruby-identifier">string</span>, <span class="ruby-identifier">level</span>)
|
157
|
-
<span class="ruby-keyword kw">end</span>
|
158
|
-
</pre>
|
159
|
-
</div>
|
160
|
-
</div>
|
161
|
-
</div>
|
162
|
-
<div class="method">
|
163
|
-
<div class="title">
|
164
|
-
<a name="M000127"></a><b>inflate</b>(string)
|
165
|
-
</div>
|
166
|
-
<div class="description">
|
167
|
-
<p>
|
168
|
-
Inflate a deflated sting.
|
169
|
-
</p>
|
170
|
-
</div>
|
171
|
-
<div class="sourcecode">
|
172
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000127_source')" id="l_M000127_source">+</a> ]</p>
|
173
|
-
<div id="M000127_source" class="dyn-source">
|
174
|
-
<pre>
|
175
|
-
<span class="ruby-comment cmt"># File lib/lore/facets/zlib.rb, line 28</span>
|
176
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">inflate</span>(<span class="ruby-identifier">string</span>)
|
177
|
-
<span class="ruby-constant">Inflate</span>.<span class="ruby-identifier">inflate</span>(<span class="ruby-identifier">string</span>)
|
178
|
-
<span class="ruby-keyword kw">end</span>
|
179
|
-
</pre>
|
180
|
-
</div>
|
181
|
-
</div>
|
182
|
-
</div>
|
183
|
-
</div>
|
184
|
-
|
185
|
-
</div>
|
186
|
-
|
187
|
-
</body>
|
188
|
-
</html>
|
data/doc/rdoc/lore/created.rid
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Thu, 05 Mar 2009 17:45:06 -0500
|
@@ -1,286 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>File: README</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "+"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "-"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
|
54
|
-
<tr><td>
|
55
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
|
56
|
-
<td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />README</td>
|
57
|
-
<td align="right">
|
58
|
-
<table border='0' cellspacing="0" cellpadding="2">
|
59
|
-
<tr>
|
60
|
-
<td>Path:</td>
|
61
|
-
<td>README
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
<tr>
|
65
|
-
<td>Modified:</td>
|
66
|
-
<td>Thu Nov 27 07:44:01 -0500 2008</td>
|
67
|
-
</tr>
|
68
|
-
</table>
|
69
|
-
</td></tr>
|
70
|
-
</table>
|
71
|
-
</td></tr>
|
72
|
-
</table><br />
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
<div id="content">
|
77
|
-
|
78
|
-
<div class="description"><h1>Ruby Facets</h1>
|
79
|
-
<pre>
|
80
|
-
http://facets.rubyforge.com
|
81
|
-
|
82
|
-
"ALL YOUR BASE ARE BELONG TO RUBY"
|
83
|
-
</pre>
|
84
|
-
<h2>Introduction</h2>
|
85
|
-
<p>
|
86
|
-
Ruby Facets is the single largest collection of general purpose method
|
87
|
-
extensions and system additions for the Ruby programming language.
|
88
|
-
</p>
|
89
|
-
<p>
|
90
|
-
The core extensions is a large collection of methods which extend the core
|
91
|
-
capabilities of Ruby‘s built-in classes and modules. This collection
|
92
|
-
of extension methods are unique by virtue of their atomicity. The methods
|
93
|
-
are stored in relatively small groups of tightly coupled methods so that
|
94
|
-
each can be required independently. This gives developers the potential for
|
95
|
-
much finer control over which extra methods to bring into their code.
|
96
|
-
</p>
|
97
|
-
<p>
|
98
|
-
The "more" additions are a collection of classes, modules and
|
99
|
-
light meta-systems which constitutes an ever improving source of reusable
|
100
|
-
components. Some very nice additions are provided, from the simple Functor
|
101
|
-
class to a full-blown annotations system.
|
102
|
-
</p>
|
103
|
-
<h2>Documentation</h2>
|
104
|
-
<p>
|
105
|
-
Facets has special documentation needs due to it‘s extensive bredth.
|
106
|
-
The RDocs generated when installing via RubyGems, are unweildly because it
|
107
|
-
combines all of Facets in one set of docs. Hopefully we can remedy this in
|
108
|
-
the future. In the mean time the gem package includes better documentation
|
109
|
-
—divided into three sections, in the doc/rdoc directory.
|
110
|
-
</p>
|
111
|
-
<p>
|
112
|
-
Online documentaiton is available at <a
|
113
|
-
href="http://facets.rubyforge.org/learn.html">facets.rubyforge.org/learn.html</a>.
|
114
|
-
There is a "Quick Doc" feature that can be a bit more convenient
|
115
|
-
then the usual RDocs. Prior to 2.3.1 off-line docs had to be downloaded via
|
116
|
-
a separate package, but this is no longer the case. I‘ve seen past
|
117
|
-
the stigma of not including documentation along with the package itself
|
118
|
-
(the extra 500K isn‘t even a floppy disk folks!), so you will find
|
119
|
-
them in the doc/ directory of whatever package you have choosen to install.
|
120
|
-
In fact, a good package installer should give you the option to install
|
121
|
-
those in the appropriate place in your system (eg. in
|
122
|
-
/usr/share/doc/facets/).
|
123
|
-
</p>
|
124
|
-
<h2>Release Notes</h2>
|
125
|
-
<p>
|
126
|
-
Please see the RELEASE file.
|
127
|
-
</p>
|
128
|
-
<h2>Installation</h2>
|
129
|
-
<p>
|
130
|
-
The easiest way to install is via RubyGems.
|
131
|
-
</p>
|
132
|
-
<pre>
|
133
|
-
$ gem install facets
|
134
|
-
</pre>
|
135
|
-
<p>
|
136
|
-
To install manually, your will need Ruby Setup (<a
|
137
|
-
href="http::/setup.rubyforge.org">:/setup.rubyforge.org</a>). Then download
|
138
|
-
and unpack the .tar.gz package and run:
|
139
|
-
</p>
|
140
|
-
<pre>
|
141
|
-
$ tar -xvzf facets-2.x.x.tar.gz
|
142
|
-
$ cd facets-2.x.x
|
143
|
-
$ sudo setup.rb
|
144
|
-
</pre>
|
145
|
-
<h2>Compatibility with 1.x series.</h2>
|
146
|
-
<p>
|
147
|
-
Prior to 2.0, Facets was divided between CORE and MORE —standalone
|
148
|
-
extensions vs. classes and modules, respectively. With 2.0, the notion of
|
149
|
-
"CORE" has taken on a slightly different meaning. Instead CORE
|
150
|
-
now consists of the libraries that are thought essential and as such are
|
151
|
-
loaded automatically when using ++require "facets"++. While still
|
152
|
-
primarily made up of extension methods modules and classes may now belong
|
153
|
-
to core as well.
|
154
|
-
</p>
|
155
|
-
<h2>Mission</h2>
|
156
|
-
<p>
|
157
|
-
Facets holds to the notion that the more we can reasonably integrate into a
|
158
|
-
common foundation directed toward general needs, the better that foundation
|
159
|
-
will be able to serve everyone. There are a number of advantages here:
|
160
|
-
</p>
|
161
|
-
<pre>
|
162
|
-
* Better Code-reuse
|
163
|
-
* Collaborative Improvements
|
164
|
-
* Greater Name Consistency
|
165
|
-
* One-stop Shop and Installation
|
166
|
-
</pre>
|
167
|
-
<h2>Usage</h2>
|
168
|
-
<p>
|
169
|
-
For information in usage, please see the special README for the specific
|
170
|
-
set of libraries:
|
171
|
-
</p>
|
172
|
-
<pre>
|
173
|
-
README.core Core extensions
|
174
|
-
README.lore Standard extensions
|
175
|
-
README.more Additions
|
176
|
-
</pre>
|
177
|
-
<p>
|
178
|
-
General usage of the CORE library is provided via:
|
179
|
-
</p>
|
180
|
-
<pre>
|
181
|
-
require 'facets'
|
182
|
-
</pre>
|
183
|
-
<p>
|
184
|
-
This is the recommended usage. However, you can also "cherry
|
185
|
-
pick" core methods. While there are exceptions the rule of thumb for
|
186
|
-
loading a core method is:
|
187
|
-
</p>
|
188
|
-
<pre>
|
189
|
-
require 'facets/{class|module}/{method}'
|
190
|
-
</pre>
|
191
|
-
<p>
|
192
|
-
See README.core for more information.
|
193
|
-
</p>
|
194
|
-
<p>
|
195
|
-
Using the Facets/MORE library of modules, classes or microframeworks is
|
196
|
-
essentially the same. For example:
|
197
|
-
</p>
|
198
|
-
<pre>
|
199
|
-
require 'facets/basicobject'
|
200
|
-
</pre>
|
201
|
-
<p>
|
202
|
-
Again, for details pertaining to the functionality of each feature, please
|
203
|
-
see the API Docs.
|
204
|
-
</p>
|
205
|
-
<h2>Contribute</h2>
|
206
|
-
<p>
|
207
|
-
This project thrives on contribution.
|
208
|
-
</p>
|
209
|
-
<p>
|
210
|
-
If you have any extension methods, classes, modules or small frameworks
|
211
|
-
that you think have general applicability and would like to see them
|
212
|
-
included in this project, don‘t hesitiate to submit. Also, if you
|
213
|
-
have better versions of any thing already included or simply have a patch,
|
214
|
-
they are more than welcome. We want Ruby Facets to be of the highest
|
215
|
-
quality.
|
216
|
-
</p>
|
217
|
-
<h2>Authors</h2>
|
218
|
-
<p>
|
219
|
-
This collection was put together by, and largely written by Thomas Sawyer
|
220
|
-
(aka Trans). He can be reached via email at transfire at gmail.com.
|
221
|
-
</p>
|
222
|
-
<p>
|
223
|
-
Some parts of this collection were written and/or inspired by other
|
224
|
-
persons. Fortunately nearly all were copyrighted under the same open
|
225
|
-
license, the Ruby License. In the few exceptions I have included the
|
226
|
-
copyright notice with the source code.
|
227
|
-
</p>
|
228
|
-
<p>
|
229
|
-
Any code file not specifically labeled shall fall under the Ruby License.
|
230
|
-
</p>
|
231
|
-
<p>
|
232
|
-
In all cases, I have made every effort to give credit where credit is due.
|
233
|
-
You will find these copyrights, thanks and acknowledgments embedded in the
|
234
|
-
source code. You can see them in "CREDIT:" lines or as file-base
|
235
|
-
"Author(s)" sections given in the RDocs.
|
236
|
-
</p>
|
237
|
-
<p>
|
238
|
-
Also see the AUTHORS file for a list of all contributing Rubyists. If
|
239
|
-
anyone is missing from the list, please let me know and I will correct
|
240
|
-
right away. Thanks.
|
241
|
-
</p>
|
242
|
-
<h2>License</h2>
|
243
|
-
<p>
|
244
|
-
The collection PER COLLECTION is licensed as follows:
|
245
|
-
</p>
|
246
|
-
<pre>
|
247
|
-
Ruby Facets
|
248
|
-
Copyright (c) 2004-2006 Thomas Sawyer
|
249
|
-
|
250
|
-
Distributed under the terms of the Ruby license.
|
251
|
-
</pre>
|
252
|
-
<p>
|
253
|
-
The Ruby license is a dual license that also provides for use of the GPL.
|
254
|
-
Complete texts of both licenses accompany this document (see LICENSE).
|
255
|
-
</p>
|
256
|
-
<p>
|
257
|
-
Acknowledgments and Copyrights for particular snippets of borrowed code are
|
258
|
-
given in their respective source. All licenses are either compatible with
|
259
|
-
the Ruby license (namely the GPL) or the original author has given
|
260
|
-
permission for inclusion of their code under such license.
|
261
|
-
</p>
|
262
|
-
<p>
|
263
|
-
Ruby Facets, Copyright (c)2005,2006,2007,2008 Thomas Sawyer / Tiger Ops
|
264
|
-
</p>
|
265
|
-
<p>
|
266
|
-
ALL YOUR BASE ARE BELONG TO RUBY!
|
267
|
-
</p>
|
268
|
-
<p>
|
269
|
-
Do you Ruby? (<a href="http://ruby-lang.org">ruby-lang.org</a>)
|
270
|
-
</p>
|
271
|
-
</div>
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
</div>
|
282
|
-
|
283
|
-
</div>
|
284
|
-
|
285
|
-
</body>
|
286
|
-
</html>
|