facets 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +1 -1
- data/CHANGES +25 -5
- data/MANIFEST +67 -34
- data/METADATA +2 -2
- data/NEWS +54 -46
- data/doc/news/NEWS-2.4.0 +52 -0
- data/doc/rdoc/core/classes/Array.html +198 -198
- data/doc/rdoc/core/classes/Binding.html +86 -192
- data/doc/rdoc/core/classes/Class.html +136 -136
- data/doc/rdoc/core/classes/Comparable.html +45 -45
- data/doc/rdoc/core/classes/Dir.html +64 -64
- data/doc/rdoc/core/classes/Enumerable.html +287 -281
- data/doc/rdoc/core/classes/Exception.html +16 -16
- data/doc/rdoc/core/classes/FalseClass.html +8 -8
- data/doc/rdoc/core/classes/File.html +100 -100
- data/doc/rdoc/core/classes/FileTest.html +8 -8
- data/doc/rdoc/core/classes/Float.html +32 -32
- data/doc/rdoc/core/classes/Friend.html +8 -8
- data/doc/rdoc/core/classes/Functor.html +12 -12
- data/doc/rdoc/core/classes/Hash.html +439 -847
- data/doc/rdoc/{more → core}/classes/Indexable.html +115 -115
- data/doc/rdoc/core/classes/InstanceVariables.html +88 -88
- data/doc/rdoc/core/classes/Integer.html +142 -142
- data/doc/rdoc/core/classes/Kernel.html +602 -600
- data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
- data/doc/rdoc/core/classes/MatchData.html +30 -30
- data/doc/rdoc/core/classes/Module.html +379 -327
- data/doc/rdoc/core/classes/NilClass.html +32 -32
- data/doc/rdoc/core/classes/Numeric.html +46 -46
- data/doc/rdoc/core/classes/Object.html +4 -4
- data/doc/rdoc/core/classes/Proc.html +46 -134
- data/doc/rdoc/core/classes/Range.html +60 -60
- data/doc/rdoc/core/classes/Regexp.html +28 -28
- data/doc/rdoc/{more → core}/classes/Stackable.html +38 -38
- data/doc/rdoc/core/classes/String.html +844 -504
- data/doc/rdoc/core/classes/Symbol.html +62 -62
- data/doc/rdoc/core/classes/Time.html +112 -112
- data/doc/rdoc/core/classes/TrueClass.html +8 -8
- data/doc/rdoc/core/classes/UnboundMethod.html +22 -22
- data/doc/rdoc/core/created.rid +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array_rb.html +4 -1
- data/doc/rdoc/core/files/lib/core/facets/binding_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/boolean_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/class/methodize_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/class/pathize_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/class_rb.html +5 -1
- data/doc/rdoc/core/files/lib/core/facets/dir_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/{class/to_methodname_rb.html → enumerable/commonality_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/enumerable/entropy_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/{class/to_pathname_rb.html → enumerable/frequency_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/enumerable/probability_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable_rb.html +6 -2
- data/doc/rdoc/core/files/lib/core/facets/file_rb.html +2 -1
- data/doc/rdoc/core/files/lib/core/facets/hash_rb.html +7 -1
- data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/indexable_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/require_all_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/require_local_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel_rb.html +15 -2
- data/doc/rdoc/core/files/lib/core/facets/module/integrate_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/module/methodize_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/module/module_load_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/pathize_rb.html +5 -1
- data/doc/rdoc/core/files/lib/core/facets/module/redefine_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/redirect_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/rename_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/revise_rb.html +8 -1
- data/doc/rdoc/core/files/lib/core/facets/module/wrap_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module_rb.html +8 -5
- data/doc/rdoc/core/files/lib/core/facets/numeric_rb.html +2 -1
- data/doc/rdoc/core/files/lib/core/facets/proc_rb.html +3 -5
- data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/stackable_rb.html +3 -4
- data/doc/rdoc/core/files/lib/core/facets/string/each_word_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/{module/clone_rb.html → string/methodize_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/{kernel/load_rb.html → string/pathize_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/string/word_wrap_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/words_rb.html +1 -5
- data/doc/rdoc/core/files/lib/core/facets/string_rb.html +8 -3
- data/doc/rdoc/core/files/lib/core/facets/symbol_rb.html +2 -1
- data/doc/rdoc/core/fr_class_index.html +2 -3
- data/doc/rdoc/core/fr_file_index.html +36 -16
- data/doc/rdoc/core/fr_method_index.html +778 -784
- data/doc/rdoc/lore/created.rid +1 -1
- data/doc/rdoc/more/classes/ANSICode.html +66 -66
- data/doc/rdoc/more/classes/Advisable.html +37 -37
- data/doc/rdoc/more/classes/Advisable/Method.html +20 -20
- data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +27 -27
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +28 -28
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +19 -19
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +31 -31
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +33 -33
- data/doc/rdoc/more/classes/Association.html +28 -28
- data/doc/rdoc/more/classes/Association/Kernel.html +8 -8
- data/doc/rdoc/more/classes/Autoarray.html +12 -12
- data/doc/rdoc/more/classes/BBCode.html +34 -34
- data/doc/rdoc/more/classes/BaseX.html +16 -16
- data/doc/rdoc/more/classes/BiCrypt.html +67 -67
- data/doc/rdoc/more/classes/BigDuration.html +30 -30
- data/doc/rdoc/more/classes/BinReadable.html +85 -85
- data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +25 -25
- data/doc/rdoc/more/classes/Binding.html +201 -0
- data/doc/rdoc/more/classes/Buildable.html +4 -4
- data/doc/rdoc/more/classes/BuildingBlock.html +32 -32
- data/doc/rdoc/more/classes/CLI.html +108 -0
- data/doc/rdoc/more/classes/CLI/Arguments.html +76 -76
- data/doc/rdoc/more/classes/CLI/Command.html +22 -22
- data/doc/rdoc/more/classes/CLI/NoCommandError.html +4 -4
- data/doc/rdoc/more/classes/CLI/NoOptionError.html +4 -4
- data/doc/rdoc/more/classes/CacheDecorator.html +21 -21
- data/doc/rdoc/more/classes/Capsule.html +41 -41
- data/doc/rdoc/more/classes/Chain.html +17 -17
- data/doc/rdoc/more/classes/Cloneable.html +4 -4
- data/doc/rdoc/more/classes/ConsoleUtils.html +18 -18
- data/doc/rdoc/more/classes/Coroutine.html +28 -28
- data/doc/rdoc/more/classes/Crypt.html +16 -16
- data/doc/rdoc/more/classes/CssFilter.html +45 -45
- data/doc/rdoc/more/classes/CssTree.html +8 -8
- data/doc/rdoc/more/classes/Dictionary.html +228 -228
- data/doc/rdoc/more/classes/DictionaryMatcher.html +38 -38
- data/doc/rdoc/more/classes/DictionaryMatcher/MatchData.html +4 -4
- data/doc/rdoc/more/classes/Downloader.html +56 -56
- data/doc/rdoc/more/classes/Duration.html +68 -68
- data/doc/rdoc/more/classes/Enumerable.html +44 -44
- data/doc/rdoc/more/classes/Enumerable/Elementor.html +16 -16
- data/doc/rdoc/more/classes/Enumerable/Enumerator.html +4 -4
- data/doc/rdoc/more/classes/EnumerablePass.html +15 -15
- data/doc/rdoc/more/classes/Equatable.html +16 -16
- data/doc/rdoc/more/classes/EventHook.html +8 -8
- data/doc/rdoc/more/classes/Expirable.html +17 -17
- data/doc/rdoc/more/classes/FileList.html +125 -125
- data/doc/rdoc/more/classes/FileShell.html +147 -147
- data/doc/rdoc/more/classes/Fileable.html +14 -14
- data/doc/rdoc/more/classes/Fileable/DSL.html +41 -41
- data/doc/rdoc/more/classes/Hash.html +306 -14
- data/doc/rdoc/more/classes/Hash2Xml.html +4 -4
- data/doc/rdoc/more/classes/HtmlFilter.html +9 -9
- data/doc/rdoc/more/classes/IORedirect.html +19 -19
- data/doc/rdoc/more/classes/InfinityClass.html +36 -36
- data/doc/rdoc/more/classes/InfinityClass/Numeric.html +23 -23
- data/doc/rdoc/more/classes/Ini.html +37 -37
- data/doc/rdoc/more/classes/Instantiable.html +9 -9
- data/doc/rdoc/more/classes/Instantise.html +8 -8
- data/doc/rdoc/more/classes/Interval.html +187 -187
- data/doc/rdoc/more/classes/It.html +12 -12
- data/doc/rdoc/more/classes/Kernel.html +77 -77
- data/doc/rdoc/more/classes/LRUCache.html +38 -38
- data/doc/rdoc/more/classes/LinkedList.html +68 -68
- data/doc/rdoc/more/classes/LinkedList/Node.html +4 -4
- data/doc/rdoc/{core → more}/classes/MissingArgument.html +1 -2
- data/doc/rdoc/more/classes/Module.html +171 -171
- data/doc/rdoc/more/classes/Multiton.html +12 -12
- data/doc/rdoc/more/classes/Multiton/MetaMethods.html +28 -28
- data/doc/rdoc/more/classes/Net/SMTP.html +19 -19
- data/doc/rdoc/more/classes/NullClass.html +24 -24
- data/doc/rdoc/more/classes/ObjectReflection.html +12 -12
- data/doc/rdoc/more/classes/OpEsc.html +5 -5
- data/doc/rdoc/more/classes/OpenCascade.html +4 -4
- data/doc/rdoc/more/classes/OpenCollection.html +8 -8
- data/doc/rdoc/more/classes/OpenHash.html +9 -9
- data/doc/rdoc/more/classes/OpenObject.html +95 -95
- data/doc/rdoc/more/classes/PQueue.html +84 -84
- data/doc/rdoc/more/classes/Paramix.html +11 -11
- data/doc/rdoc/more/classes/Paramix/Delegator.html +16 -16
- data/doc/rdoc/more/classes/PathList.html +8 -8
- data/doc/rdoc/more/classes/PathList/Finder.html +8 -8
- data/doc/rdoc/more/classes/Platform.html +46 -46
- data/doc/rdoc/more/classes/Pool.html +18 -18
- data/doc/rdoc/more/classes/Proc.html +48 -4
- data/doc/rdoc/more/classes/ProgressBar.html +52 -52
- data/doc/rdoc/more/classes/Prototype.html +28 -28
- data/doc/rdoc/more/classes/RWDelegator.html +16 -16
- data/doc/rdoc/more/classes/Random.html +9 -9
- data/doc/rdoc/more/classes/Random/Array.html +37 -37
- data/doc/rdoc/more/classes/Random/Hash.html +52 -52
- data/doc/rdoc/more/classes/Random/Object.html +4 -4
- data/doc/rdoc/more/classes/Random/String.html +34 -34
- data/doc/rdoc/more/classes/Random/String/Self.html +9 -9
- data/doc/rdoc/more/classes/Recorder.html +16 -16
- data/doc/rdoc/more/classes/Reference.html +19 -19
- data/doc/rdoc/more/classes/Registerable.html +13 -13
- data/doc/rdoc/more/classes/Semaphore.html +36 -36
- data/doc/rdoc/more/classes/Settings.html +28 -28
- data/doc/rdoc/more/classes/Settings/Setting.html +13 -13
- data/doc/rdoc/more/classes/Settings/SettingCollection.html +4 -4
- data/doc/rdoc/more/classes/SimpleStringIO.html +8 -8
- data/doc/rdoc/more/classes/Snapshot.html +16 -16
- data/doc/rdoc/more/classes/Snapshot/ValueHolder.html +12 -12
- data/doc/rdoc/more/classes/String/Style.html +113 -113
- data/doc/rdoc/{core → more}/classes/String/Words.html +78 -78
- data/doc/rdoc/more/classes/Struct.html +8 -8
- data/doc/rdoc/more/classes/SyncArray.html +4 -4
- data/doc/rdoc/more/classes/SyncHash.html +4 -4
- data/doc/rdoc/more/classes/SyncHash/Delegator.html +28 -28
- data/doc/rdoc/more/classes/SyncHash/Inheritor.html +28 -28
- data/doc/rdoc/more/classes/System.html +253 -253
- data/doc/rdoc/more/classes/Timer.html +48 -48
- data/doc/rdoc/more/classes/Timer/Dummy.html +9 -9
- data/doc/rdoc/more/classes/TracePoint.html +64 -62
- data/doc/rdoc/more/classes/Tuple.html +170 -170
- data/doc/rdoc/more/classes/TypeCast/Class.html +4 -4
- data/doc/rdoc/more/classes/TypeCast/Object.html +4 -4
- data/doc/rdoc/more/classes/Uninheritable.html +6 -6
- data/doc/rdoc/more/classes/UploadUtils.html +49 -49
- data/doc/rdoc/more/classes/VersionNumber.html +53 -53
- data/doc/rdoc/more/classes/Weekdays.html +28 -28
- data/doc/rdoc/more/classes/XOXO.html +9 -9
- data/doc/rdoc/more/classes/ZipUtils.html +58 -58
- data/doc/rdoc/more/classes/ZipUtils/DryRun.html +28 -28
- data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +28 -28
- data/doc/rdoc/more/classes/ZipUtils/Verbose.html +28 -28
- data/doc/rdoc/more/created.rid +1 -1
- data/doc/rdoc/more/files/lib/more/facets/ansicode_rb.html +1 -1
- data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/binding/opvars_rb.html +2 -2
- data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/hash/stringify_keys_rb.html +2 -2
- data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/hash/symbolize_keys_rb.html +2 -2
- data/doc/rdoc/{core/files/lib/core/facets/proc → more/files/lib/more/facets}/partial_rb.html +8 -7
- data/doc/rdoc/more/files/lib/more/facets/snapshot_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/string/words_rb.html +96 -0
- data/doc/rdoc/more/files/lib/more/facets/tracepoint_rb.html +13 -8
- data/doc/rdoc/more/fr_class_index.html +4 -2
- data/doc/rdoc/more/fr_file_index.html +9 -2
- data/doc/rdoc/more/fr_method_index.html +1013 -1009
- data/doc/ri/CLI/cdesc-CLI.yaml +7 -2
- data/doc/ri/Enumerable/probability-i.yaml +1 -1
- data/doc/ri/Module/append_features-i.yaml +4 -3
- data/doc/ri/Module/cdesc-Module.yaml +4 -3
- data/doc/ri/Module/methodize-i.yaml +14 -0
- data/doc/ri/Module/redefine_method-i.yaml +1 -1
- data/doc/ri/Module/redirect_method-i.yaml +3 -1
- data/doc/ri/Module/rename_method-i.yaml +1 -1
- data/doc/ri/created.rid +1 -1
- data/lib/core/facets/array.rb +3 -0
- data/lib/core/facets/binding.rb +0 -1
- data/lib/core/facets/class.rb +4 -4
- data/lib/core/facets/class/{to_methodname.rb → methodize.rb} +5 -2
- data/lib/core/facets/class/pathize.rb +14 -0
- data/lib/core/facets/enumerable.rb +5 -2
- data/lib/core/facets/enumerable/commonality.rb +33 -0
- data/lib/core/facets/enumerable/entropy.rb +37 -0
- data/lib/core/facets/enumerable/frequency.rb +18 -0
- data/lib/core/facets/enumerable/probability.rb +1 -98
- data/lib/core/facets/file.rb +1 -1
- data/lib/core/facets/hash.rb +6 -0
- data/lib/{more → core}/facets/indexable.rb +0 -0
- data/lib/core/facets/kernel.rb +15 -1
- data/lib/core/facets/kernel/require_all.rb +21 -0
- data/lib/core/facets/kernel/{load.rb → require_local.rb} +6 -23
- data/lib/core/facets/module.rb +7 -3
- data/lib/core/facets/module/integrate.rb +2 -0
- data/lib/core/facets/module/methodize.rb +14 -0
- data/lib/core/facets/module/pathize.rb +10 -7
- data/lib/core/facets/module/redefine_method.rb +35 -0
- data/lib/core/facets/module/redirect_method.rb +45 -0
- data/lib/core/facets/module/rename_method.rb +20 -0
- data/lib/core/facets/module/revise.rb +7 -113
- data/lib/core/facets/module/wrap_method.rb +28 -0
- data/lib/core/facets/numeric.rb +1 -1
- data/lib/core/facets/proc.rb +2 -3
- data/lib/{more → core}/facets/stackable.rb +0 -0
- data/lib/core/facets/string.rb +8 -6
- data/lib/core/facets/string/each_word.rb +13 -0
- data/lib/core/facets/string/methodize.rb +12 -0
- data/lib/core/facets/string/pathize.rb +12 -0
- data/lib/core/facets/string/word_wrap.rb +34 -0
- data/lib/core/facets/string/words.rb +6 -167
- data/lib/core/facets/symbol.rb +1 -0
- data/lib/more/facets/ansicode.rb +4 -4
- data/lib/{core → more}/facets/binding/opvars.rb +0 -0
- data/lib/{core → more}/facets/hash/stringify_keys.rb +0 -0
- data/lib/{core → more}/facets/hash/symbolize_keys.rb +5 -6
- data/lib/{core/facets/proc → more/facets}/partial.rb +0 -0
- data/lib/more/facets/string/words.rb +173 -0
- data/test/core/dir/test_multiglob.rb +1 -0
- data/test/core/dir/test_recurse.rb +1 -0
- data/test/core/enumerable/test_commonality.rb +15 -0
- data/test/core/enumerable/test_entropy.rb +15 -0
- data/test/core/enumerable/test_frequency.rb +11 -0
- data/test/core/enumerable/test_probability.rb +1 -34
- data/test/core/string/test_each_word.rb +14 -0
- data/test/core/string/test_fold.rb +1 -1
- data/test/core/string/test_word_wrap.rb +35 -0
- data/test/core/string/test_words.rb +12 -61
- data/test/more/test_command.rb +7 -9
- data/test/more/test_paramix.rb +4 -1
- data/test/{core/proc → more}/test_partial.rb +1 -1
- metadata +75 -38
- data/doc/rdoc/core/classes/Module/CloneExtensions.html +0 -287
- data/doc/ri/Module/CloneExtensions/cdesc-CloneExtensions.yaml +0 -20
- data/doc/ri/Module/CloneExtensions/clone_removing-i.yaml +0 -14
- data/doc/ri/Module/CloneExtensions/clone_renaming-i.yaml +0 -14
- data/doc/ri/Module/CloneExtensions/clone_using-i.yaml +0 -14
- data/lib/core/facets/class/to_pathname.rb +0 -12
- data/lib/core/facets/module/clone.rb +0 -57
- data/test/core/module/test_clone.rb +0 -45
@@ -80,15 +80,15 @@ Object
|
|
80
80
|
|
81
81
|
<div class="sectiontitle">Methods</div>
|
82
82
|
<ul>
|
83
|
-
<li><a href="#
|
84
|
-
<li><a href="#
|
85
|
-
<li><a href="#
|
86
|
-
<li><a href="#
|
87
|
-
<li><a href="#
|
88
|
-
<li><a href="#
|
89
|
-
<li><a href="#
|
90
|
-
<li><a href="#
|
91
|
-
<li><a href="#
|
83
|
+
<li><a href="#M000237"><<</a></li>
|
84
|
+
<li><a href="#M000242">===</a></li>
|
85
|
+
<li><a href="#M000239">=~</a></li>
|
86
|
+
<li><a href="#M000236">add</a></li>
|
87
|
+
<li><a href="#M000238">include?</a></li>
|
88
|
+
<li><a href="#M000234">inspect</a></li>
|
89
|
+
<li><a href="#M000240">match</a></li>
|
90
|
+
<li><a href="#M000235">new</a></li>
|
91
|
+
<li><a href="#M000241">scan</a></li>
|
92
92
|
</ul>
|
93
93
|
|
94
94
|
|
@@ -112,7 +112,7 @@ Object
|
|
112
112
|
<div class="sectiontitle">Public Class methods</div>
|
113
113
|
<div class="method">
|
114
114
|
<div class="title">
|
115
|
-
<a name="
|
115
|
+
<a name="M000235"></a><b>new</b>()
|
116
116
|
</div>
|
117
117
|
<div class="description">
|
118
118
|
<p>
|
@@ -121,8 +121,8 @@ words in it
|
|
121
121
|
</p>
|
122
122
|
</div>
|
123
123
|
<div class="sourcecode">
|
124
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
125
|
-
<div id="
|
124
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000235_source')" id="l_M000235_source">show source</a> ]</p>
|
125
|
+
<div id="M000235_source" class="dyn-source">
|
126
126
|
<pre>
|
127
127
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionarymatcher.rb, line 16</span>
|
128
128
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
@@ -136,17 +136,17 @@ words in it
|
|
136
136
|
<div class="sectiontitle">Public Instance methods</div>
|
137
137
|
<div class="method">
|
138
138
|
<div class="title">
|
139
|
-
<a name="
|
139
|
+
<a name="M000237"></a><b><<</b>(word)
|
140
140
|
</div>
|
141
141
|
<div class="description">
|
142
142
|
<p>
|
143
|
-
Alias for <a href="DictionaryMatcher.html#
|
143
|
+
Alias for <a href="DictionaryMatcher.html#M000236">add</a>
|
144
144
|
</p>
|
145
145
|
</div>
|
146
146
|
</div>
|
147
147
|
<div class="method">
|
148
148
|
<div class="title">
|
149
|
-
<a name="
|
149
|
+
<a name="M000242"></a><b>===</b>(text)
|
150
150
|
</div>
|
151
151
|
<div class="description">
|
152
152
|
<p>
|
@@ -156,24 +156,24 @@ Alias for #=~
|
|
156
156
|
</div>
|
157
157
|
<div class="method">
|
158
158
|
<div class="title">
|
159
|
-
<a name="
|
159
|
+
<a name="M000239"></a><b>=~</b>(text)
|
160
160
|
</div>
|
161
161
|
<div class="description">
|
162
162
|
<p>
|
163
163
|
Determines whether one of the words in the <a
|
164
164
|
href="DictionaryMatcher.html">DictionaryMatcher</a> is a substring of
|
165
165
|
<tt>string</tt>. Returns the index of the <a
|
166
|
-
href="DictionaryMatcher.html#
|
166
|
+
href="DictionaryMatcher.html#M000240">match</a> if found, <tt>nil</tt> if
|
167
167
|
not found.
|
168
168
|
</p>
|
169
169
|
</div>
|
170
170
|
<div class="aka">
|
171
171
|
This method is also aliased as
|
172
|
-
<a href="DictionaryMatcher.html#
|
172
|
+
<a href="DictionaryMatcher.html#M000242">===</a>
|
173
173
|
</div>
|
174
174
|
<div class="sourcecode">
|
175
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
176
|
-
<div id="
|
175
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000239_source')" id="l_M000239_source">show source</a> ]</p>
|
176
|
+
<div id="M000239_source" class="dyn-source">
|
177
177
|
<pre>
|
178
178
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionarymatcher.rb, line 79</span>
|
179
179
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">text</span>
|
@@ -186,7 +186,7 @@ not found.
|
|
186
186
|
</div>
|
187
187
|
<div class="method">
|
188
188
|
<div class="title">
|
189
|
-
<a name="
|
189
|
+
<a name="M000236"></a><b>add</b>(word)
|
190
190
|
</div>
|
191
191
|
<div class="description">
|
192
192
|
<p>
|
@@ -195,11 +195,11 @@ Add a word to the <a href="DictionaryMatcher.html">DictionaryMatcher</a>
|
|
195
195
|
</div>
|
196
196
|
<div class="aka">
|
197
197
|
This method is also aliased as
|
198
|
-
<a href="DictionaryMatcher.html#
|
198
|
+
<a href="DictionaryMatcher.html#M000237"><<</a>
|
199
199
|
</div>
|
200
200
|
<div class="sourcecode">
|
201
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
202
|
-
<div id="
|
201
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000236_source')" id="l_M000236_source">show source</a> ]</p>
|
202
|
+
<div id="M000236_source" class="dyn-source">
|
203
203
|
<pre>
|
204
204
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionarymatcher.rb, line 22</span>
|
205
205
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">word</span>)
|
@@ -234,17 +234,17 @@ Add a word to the <a href="DictionaryMatcher.html">DictionaryMatcher</a>
|
|
234
234
|
</div>
|
235
235
|
<div class="method">
|
236
236
|
<div class="title">
|
237
|
-
<a name="
|
237
|
+
<a name="M000238"></a><b>include?</b>(word)
|
238
238
|
</div>
|
239
239
|
<div class="description">
|
240
240
|
<p>
|
241
241
|
Determine whether <tt>string</tt> was previously <tt><a
|
242
|
-
href="DictionaryMatcher.html#
|
242
|
+
href="DictionaryMatcher.html#M000236">add</a></tt>ed to the Trie.
|
243
243
|
</p>
|
244
244
|
</div>
|
245
245
|
<div class="sourcecode">
|
246
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
247
|
-
<div id="
|
246
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000238_source')" id="l_M000238_source">show source</a> ]</p>
|
247
|
+
<div id="M000238_source" class="dyn-source">
|
248
248
|
<pre>
|
249
249
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionarymatcher.rb, line 66</span>
|
250
250
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">include?</span>(<span class="ruby-identifier">word</span>)
|
@@ -261,11 +261,11 @@ href="DictionaryMatcher.html#M000235">add</a></tt>ed to the Trie.
|
|
261
261
|
</div>
|
262
262
|
<div class="method">
|
263
263
|
<div class="title">
|
264
|
-
<a name="
|
264
|
+
<a name="M000234"></a><b>inspect</b>()
|
265
265
|
</div>
|
266
266
|
<div class="sourcecode">
|
267
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
268
|
-
<div id="
|
267
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000234_source')" id="l_M000234_source">show source</a> ]</p>
|
268
|
+
<div id="M000234_source" class="dyn-source">
|
269
269
|
<pre>
|
270
270
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionarymatcher.rb, line 11</span>
|
271
271
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
@@ -277,7 +277,7 @@ href="DictionaryMatcher.html#M000235">add</a></tt>ed to the Trie.
|
|
277
277
|
</div>
|
278
278
|
<div class="method">
|
279
279
|
<div class="title">
|
280
|
-
<a name="
|
280
|
+
<a name="M000240"></a><b>match</b>(text)
|
281
281
|
</div>
|
282
282
|
<div class="description">
|
283
283
|
<p>
|
@@ -289,8 +289,8 @@ object if found, <tt>nil</tt> if not found.
|
|
289
289
|
</p>
|
290
290
|
</div>
|
291
291
|
<div class="sourcecode">
|
292
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
293
|
-
<div id="
|
292
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000240_source')" id="l_M000240_source">show source</a> ]</p>
|
293
|
+
<div id="M000240_source" class="dyn-source">
|
294
294
|
<pre>
|
295
295
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionarymatcher.rb, line 88</span>
|
296
296
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">match</span> <span class="ruby-identifier">text</span>
|
@@ -303,7 +303,7 @@ object if found, <tt>nil</tt> if not found.
|
|
303
303
|
</div>
|
304
304
|
<div class="method">
|
305
305
|
<div class="title">
|
306
|
-
<a name="
|
306
|
+
<a name="M000241"></a><b>scan</b>(text, &block)
|
307
307
|
</div>
|
308
308
|
<div class="description">
|
309
309
|
<p>
|
@@ -312,13 +312,13 @@ href="DictionaryMatcher.html">DictionaryMatcher</a>. Overlapping matches
|
|
312
312
|
are skipped (only the first one is yielded), and when some strings in the
|
313
313
|
<a href="DictionaryMatcher.html">DictionaryMatcher</a> are substrings of
|
314
314
|
others, only the shortest <a
|
315
|
-
href="DictionaryMatcher.html#
|
315
|
+
href="DictionaryMatcher.html#M000240">match</a> at a given position is
|
316
316
|
found.
|
317
317
|
</p>
|
318
318
|
</div>
|
319
319
|
<div class="sourcecode">
|
320
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
321
|
-
<div id="
|
320
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000241_source')" id="l_M000241_source">show source</a> ]</p>
|
321
|
+
<div id="M000241_source" class="dyn-source">
|
322
322
|
<pre>
|
323
323
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionarymatcher.rb, line 126</span>
|
324
324
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scan</span>(<span class="ruby-identifier">text</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -84,7 +84,7 @@ Contains the index matched, and the word matched
|
|
84
84
|
|
85
85
|
<div class="sectiontitle">Methods</div>
|
86
86
|
<ul>
|
87
|
-
<li><a href="#
|
87
|
+
<li><a href="#M000243">inspect</a></li>
|
88
88
|
</ul>
|
89
89
|
|
90
90
|
|
@@ -95,11 +95,11 @@ Contains the index matched, and the word matched
|
|
95
95
|
<div class="sectiontitle">Public Instance methods</div>
|
96
96
|
<div class="method">
|
97
97
|
<div class="title">
|
98
|
-
<a name="
|
98
|
+
<a name="M000243"></a><b>inspect</b>()
|
99
99
|
</div>
|
100
100
|
<div class="sourcecode">
|
101
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
102
|
-
<div id="
|
101
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000243_source')" id="l_M000243_source">show source</a> ]</p>
|
102
|
+
<div id="M000243_source" class="dyn-source">
|
103
103
|
<pre>
|
104
104
|
<span class="ruby-comment cmt"># File lib/more/facets/dictionarymatcher.rb, line 6</span>
|
105
105
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
@@ -79,7 +79,7 @@ Object
|
|
79
79
|
<p>
|
80
80
|
Tool module for downloading files and extracting archive files. Currently
|
81
81
|
this is console-based but in the future will have SOC for any <a
|
82
|
-
href="Downloader.html#
|
82
|
+
href="Downloader.html#M000091">interface</a>.
|
83
83
|
</p>
|
84
84
|
</div>
|
85
85
|
|
@@ -87,18 +87,18 @@ href="Downloader.html#M000090">interface</a>.
|
|
87
87
|
|
88
88
|
<div class="sectiontitle">Methods</div>
|
89
89
|
<ul>
|
90
|
-
<li><a href="#
|
91
|
-
<li><a href="#
|
92
|
-
<li><a href="#
|
93
|
-
<li><a href="#
|
94
|
-
<li><a href="#
|
95
|
-
<li><a href="#
|
96
|
-
<li><a href="#
|
97
|
-
<li><a href="#
|
98
|
-
<li><a href="#
|
99
|
-
<li><a href="#
|
100
|
-
<li><a href="#
|
101
|
-
<li><a href="#
|
90
|
+
<li><a href="#M000094">add_mirror</a></li>
|
91
|
+
<li><a href="#M000095">add_mirrors</a></li>
|
92
|
+
<li><a href="#M000101">compute_checksum</a></li>
|
93
|
+
<li><a href="#M000100">download</a></li>
|
94
|
+
<li><a href="#M000102">extract</a></li>
|
95
|
+
<li><a href="#M000097">fetch</a></li>
|
96
|
+
<li><a href="#M000091">interface</a></li>
|
97
|
+
<li><a href="#M000092">interface=</a></li>
|
98
|
+
<li><a href="#M000096">mirrors</a></li>
|
99
|
+
<li><a href="#M000098">monitored_download</a></li>
|
100
|
+
<li><a href="#M000093">new</a></li>
|
101
|
+
<li><a href="#M000099">prioritize_urls</a></li>
|
102
102
|
</ul>
|
103
103
|
|
104
104
|
|
@@ -126,11 +126,11 @@ href="Downloader.html#M000090">interface</a>.
|
|
126
126
|
<div class="sectiontitle">Public Class methods</div>
|
127
127
|
<div class="method">
|
128
128
|
<div class="title">
|
129
|
-
<a name="
|
129
|
+
<a name="M000093"></a><b>new</b>( destination, mirrors=nil, region=nil, &config )
|
130
130
|
</div>
|
131
131
|
<div class="sourcecode">
|
132
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
133
|
-
<div id="
|
132
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000093_source')" id="l_M000093_source">show source</a> ]</p>
|
133
|
+
<div id="M000093_source" class="dyn-source">
|
134
134
|
<pre>
|
135
135
|
<span class="ruby-comment cmt"># File lib/more/facets/downloader.rb, line 66</span>
|
136
136
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>( <span class="ruby-identifier">destination</span>, <span class="ruby-identifier">mirrors</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">region</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">config</span> )
|
@@ -147,11 +147,11 @@ href="Downloader.html#M000090">interface</a>.
|
|
147
147
|
<div class="sectiontitle">Public Instance methods</div>
|
148
148
|
<div class="method">
|
149
149
|
<div class="title">
|
150
|
-
<a name="
|
150
|
+
<a name="M000094"></a><b>add_mirror</b>( url, region=nil )
|
151
151
|
</div>
|
152
152
|
<div class="sourcecode">
|
153
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
154
|
-
<div id="
|
153
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000094_source')" id="l_M000094_source">show source</a> ]</p>
|
154
|
+
<div id="M000094_source" class="dyn-source">
|
155
155
|
<pre>
|
156
156
|
<span class="ruby-comment cmt"># File lib/more/facets/downloader.rb, line 76</span>
|
157
157
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_mirror</span>( <span class="ruby-identifier">url</span>, <span class="ruby-identifier">region</span>=<span class="ruby-keyword kw">nil</span> )
|
@@ -163,11 +163,11 @@ href="Downloader.html#M000090">interface</a>.
|
|
163
163
|
</div>
|
164
164
|
<div class="method">
|
165
165
|
<div class="title">
|
166
|
-
<a name="
|
166
|
+
<a name="M000095"></a><b>add_mirrors</b>( mirrors )
|
167
167
|
</div>
|
168
168
|
<div class="sourcecode">
|
169
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
170
|
-
<div id="
|
169
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000095_source')" id="l_M000095_source">show source</a> ]</p>
|
170
|
+
<div id="M000095_source" class="dyn-source">
|
171
171
|
<pre>
|
172
172
|
<span class="ruby-comment cmt"># File lib/more/facets/downloader.rb, line 80</span>
|
173
173
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_mirrors</span>( <span class="ruby-identifier">mirrors</span> )
|
@@ -193,16 +193,16 @@ href="Downloader.html#M000090">interface</a>.
|
|
193
193
|
</div>
|
194
194
|
<div class="method">
|
195
195
|
<div class="title">
|
196
|
-
<a name="
|
196
|
+
<a name="M000101"></a><b>compute_checksum</b>( local_path )
|
197
197
|
</div>
|
198
198
|
<div class="description">
|
199
199
|
<p>
|
200
|
-
<a href="Downloader.html#
|
200
|
+
<a href="Downloader.html#M000101">compute_checksum</a>
|
201
201
|
</p>
|
202
202
|
</div>
|
203
203
|
<div class="sourcecode">
|
204
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
205
|
-
<div id="
|
204
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000101_source')" id="l_M000101_source">show source</a> ]</p>
|
205
|
+
<div id="M000101_source" class="dyn-source">
|
206
206
|
<pre>
|
207
207
|
<span class="ruby-comment cmt"># File lib/more/facets/downloader.rb, line 240</span>
|
208
208
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">compute_checksum</span>( <span class="ruby-identifier">local_path</span> )
|
@@ -218,11 +218,11 @@ href="Downloader.html#M000090">interface</a>.
|
|
218
218
|
</div>
|
219
219
|
<div class="method">
|
220
220
|
<div class="title">
|
221
|
-
<a name="
|
221
|
+
<a name="M000100"></a><b>download</b>( url, filepath, checksum='', est_size=nil )
|
222
222
|
</div>
|
223
223
|
<div class="description">
|
224
224
|
<p>
|
225
|
-
currently can only <a href="Downloader.html#
|
225
|
+
currently can only <a href="Downloader.html#M000100">download</a> a single
|
226
226
|
compressed file does not handle downloading an uncompressed directory tree
|
227
227
|
(should it? doubt it)
|
228
228
|
</p>
|
@@ -234,8 +234,8 @@ chain messaging but matz said no :(
|
|
234
234
|
</p>
|
235
235
|
</div>
|
236
236
|
<div class="sourcecode">
|
237
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
238
|
-
<div id="
|
237
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000100_source')" id="l_M000100_source">show source</a> ]</p>
|
238
|
+
<div id="M000100_source" class="dyn-source">
|
239
239
|
<pre>
|
240
240
|
<span class="ruby-comment cmt"># File lib/more/facets/downloader.rb, line 179</span>
|
241
241
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">download</span>( <span class="ruby-identifier">url</span>, <span class="ruby-identifier">filepath</span>, <span class="ruby-identifier">checksum</span>=<span class="ruby-value str">''</span>, <span class="ruby-identifier">est_size</span>=<span class="ruby-keyword kw">nil</span> )
|
@@ -302,16 +302,16 @@ chain messaging but matz said no :(
|
|
302
302
|
</div>
|
303
303
|
<div class="method">
|
304
304
|
<div class="title">
|
305
|
-
<a name="
|
305
|
+
<a name="M000102"></a><b>extract</b>( local_path )
|
306
306
|
</div>
|
307
307
|
<div class="description">
|
308
308
|
<p>
|
309
|
-
<a href="Downloader.html#
|
309
|
+
<a href="Downloader.html#M000102">extract</a>
|
310
310
|
</p>
|
311
311
|
</div>
|
312
312
|
<div class="sourcecode">
|
313
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
314
|
-
<div id="
|
313
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000102_source')" id="l_M000102_source">show source</a> ]</p>
|
314
|
+
<div id="M000102_source" class="dyn-source">
|
315
315
|
<pre>
|
316
316
|
<span class="ruby-comment cmt"># File lib/more/facets/downloader.rb, line 250</span>
|
317
317
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">extract</span>( <span class="ruby-identifier">local_path</span> )
|
@@ -349,16 +349,16 @@ chain messaging but matz said no :(
|
|
349
349
|
</div>
|
350
350
|
<div class="method">
|
351
351
|
<div class="title">
|
352
|
-
<a name="
|
352
|
+
<a name="M000097"></a><b>fetch</b>( file, checksum=0, est_size=0, force=false )
|
353
353
|
</div>
|
354
354
|
<div class="description">
|
355
355
|
<p>
|
356
|
-
<a href="Downloader.html#
|
356
|
+
<a href="Downloader.html#M000097">fetch</a>
|
357
357
|
</p>
|
358
358
|
</div>
|
359
359
|
<div class="sourcecode">
|
360
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
361
|
-
<div id="
|
360
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000097_source')" id="l_M000097_source">show source</a> ]</p>
|
361
|
+
<div id="M000097_source" class="dyn-source">
|
362
362
|
<pre>
|
363
363
|
<span class="ruby-comment cmt"># File lib/more/facets/downloader.rb, line 104</span>
|
364
364
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fetch</span>( <span class="ruby-identifier">file</span>, <span class="ruby-identifier">checksum</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">est_size</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">force</span>=<span class="ruby-keyword kw">false</span> )
|
@@ -373,17 +373,17 @@ chain messaging but matz said no :(
|
|
373
373
|
</div>
|
374
374
|
<div class="method">
|
375
375
|
<div class="title">
|
376
|
-
<a name="
|
376
|
+
<a name="M000091"></a><b>interface</b>()
|
377
377
|
</div>
|
378
378
|
<div class="description">
|
379
379
|
<p>
|
380
|
-
delegate to an <a href="Downloader.html#
|
380
|
+
delegate to an <a href="Downloader.html#M000091">interface</a> (under
|
381
381
|
development)
|
382
382
|
</p>
|
383
383
|
</div>
|
384
384
|
<div class="sourcecode">
|
385
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
386
|
-
<div id="
|
385
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000091_source')" id="l_M000091_source">show source</a> ]</p>
|
386
|
+
<div id="M000091_source" class="dyn-source">
|
387
387
|
<pre>
|
388
388
|
<span class="ruby-comment cmt"># File lib/more/facets/downloader.rb, line 61</span>
|
389
389
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">interface</span> ; <span class="ruby-ivar">@interface</span>; <span class="ruby-keyword kw">end</span>
|
@@ -393,11 +393,11 @@ development)
|
|
393
393
|
</div>
|
394
394
|
<div class="method">
|
395
395
|
<div class="title">
|
396
|
-
<a name="
|
396
|
+
<a name="M000092"></a><b>interface=</b>(iface)
|
397
397
|
</div>
|
398
398
|
<div class="sourcecode">
|
399
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
400
|
-
<div id="
|
399
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000092_source')" id="l_M000092_source">show source</a> ]</p>
|
400
|
+
<div id="M000092_source" class="dyn-source">
|
401
401
|
<pre>
|
402
402
|
<span class="ruby-comment cmt"># File lib/more/facets/downloader.rb, line 62</span>
|
403
403
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">interface=</span>(<span class="ruby-identifier">iface</span>)
|
@@ -409,11 +409,11 @@ development)
|
|
409
409
|
</div>
|
410
410
|
<div class="method">
|
411
411
|
<div class="title">
|
412
|
-
<a name="
|
412
|
+
<a name="M000096"></a><b>mirrors</b>()
|
413
413
|
</div>
|
414
414
|
<div class="sourcecode">
|
415
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
416
|
-
<div id="
|
415
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000096_source')" id="l_M000096_source">show source</a> ]</p>
|
416
|
+
<div id="M000096_source" class="dyn-source">
|
417
417
|
<pre>
|
418
418
|
<span class="ruby-comment cmt"># File lib/more/facets/downloader.rb, line 98</span>
|
419
419
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mirrors</span>
|
@@ -425,20 +425,20 @@ development)
|
|
425
425
|
</div>
|
426
426
|
<div class="method">
|
427
427
|
<div class="title">
|
428
|
-
<a name="
|
428
|
+
<a name="M000098"></a><b>monitored_download</b>( urls, filepath, checksum, est_size=0, force=false )
|
429
429
|
</div>
|
430
430
|
<div class="description">
|
431
431
|
<p>
|
432
432
|
regional_urls - array of arrays of [ url, region, md5, expected_size ]
|
433
433
|
local_region - region of the user‘s system to_dir - where to store
|
434
434
|
downloaded file (full path) force - <a
|
435
|
-
href="Downloader.html#
|
435
|
+
href="Downloader.html#M000100">download</a> even if file already exists
|
436
436
|
locally
|
437
437
|
</p>
|
438
438
|
</div>
|
439
439
|
<div class="sourcecode">
|
440
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
441
|
-
<div id="
|
440
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000098_source')" id="l_M000098_source">show source</a> ]</p>
|
441
|
+
<div id="M000098_source" class="dyn-source">
|
442
442
|
<pre>
|
443
443
|
<span class="ruby-comment cmt"># File lib/more/facets/downloader.rb, line 125</span>
|
444
444
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">monitored_download</span>( <span class="ruby-identifier">urls</span>, <span class="ruby-identifier">filepath</span>, <span class="ruby-identifier">checksum</span>, <span class="ruby-identifier">est_size</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">force</span>=<span class="ruby-keyword kw">false</span> )
|
@@ -482,17 +482,17 @@ locally
|
|
482
482
|
</div>
|
483
483
|
<div class="method">
|
484
484
|
<div class="title">
|
485
|
-
<a name="
|
485
|
+
<a name="M000099"></a><b>prioritize_urls</b>( urls )
|
486
486
|
</div>
|
487
487
|
<div class="description">
|
488
488
|
<p>
|
489
489
|
In the future we may test each connection for fastest <a
|
490
|
-
href="Downloader.html#
|
490
|
+
href="Downloader.html#M000100">download</a>
|
491
491
|
</p>
|
492
492
|
</div>
|
493
493
|
<div class="sourcecode">
|
494
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
495
|
-
<div id="
|
494
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000099_source')" id="l_M000099_source">show source</a> ]</p>
|
495
|
+
<div id="M000099_source" class="dyn-source">
|
496
496
|
<pre>
|
497
497
|
<span class="ruby-comment cmt"># File lib/more/facets/downloader.rb, line 163</span>
|
498
498
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">prioritize_urls</span>( <span class="ruby-identifier">urls</span> )
|