ds_hash 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +71 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +43 -0
- data/Rakefile +50 -0
- data/VERSION +1 -0
- data/doc/DsHash.html +169 -0
- data/doc/Gemfile.html +111 -0
- data/doc/Gemfile_lock.html +170 -0
- data/doc/Hash.html +266 -0
- data/doc/LICENSE_txt.html +115 -0
- data/doc/README_rdoc.html +138 -0
- data/doc/Rakefile.html +151 -0
- data/doc/created.rid +15 -0
- data/doc/doc/created_rid.html +95 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +92 -0
- data/doc/js/darkfish.js +155 -0
- data/doc/js/jquery.js +18 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/rdoc.css +595 -0
- data/doc/table_of_contents.html +84 -0
- data/ds_hash.gemspec +106 -0
- data/ds_hash.rb +6 -0
- data/lib/ds_hash/hash_core_ext.rb +31 -0
- data/lib/ds_hash.rb +6 -0
- data/spec/ds_hash_spec.rb +28 -0
- data/spec/spec_helper.rb +14 -0
- metadata +170 -0
data/doc/Hash.html
ADDED
@@ -0,0 +1,266 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class Hash - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
<div id="file-metadata">
|
49
|
+
<nav id="file-list-section" class="section">
|
50
|
+
<h3 class="section-header">Defined In</h3>
|
51
|
+
<ul>
|
52
|
+
<li>lib/ds_hash/hash_core_ext.rb
|
53
|
+
</ul>
|
54
|
+
</nav>
|
55
|
+
|
56
|
+
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<div id="class-metadata">
|
60
|
+
|
61
|
+
<nav id="parent-class-section" class="section">
|
62
|
+
<h3 class="section-header">Parent</h3>
|
63
|
+
|
64
|
+
<p class="link">Object
|
65
|
+
|
66
|
+
</nav>
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
71
|
+
<nav id="method-list-section" class="section">
|
72
|
+
<h3 class="section-header">Methods</h3>
|
73
|
+
|
74
|
+
<ul class="link-list">
|
75
|
+
|
76
|
+
<li ><a href="#method-i-compact">#compact</a>
|
77
|
+
|
78
|
+
<li ><a href="#method-i-compact-21">#compact!</a>
|
79
|
+
|
80
|
+
<li ><a href="#method-i-deep_dup">#deep_dup</a>
|
81
|
+
|
82
|
+
</ul>
|
83
|
+
</nav>
|
84
|
+
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<div id="project-metadata">
|
88
|
+
<nav id="fileindex-section" class="section project-section">
|
89
|
+
<h3 class="section-header">Pages</h3>
|
90
|
+
|
91
|
+
<ul>
|
92
|
+
|
93
|
+
<li class="file"><a href="./Gemfile.html">Gemfile</a>
|
94
|
+
|
95
|
+
<li class="file"><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
96
|
+
|
97
|
+
<li class="file"><a href="./LICENSE_txt.html">LICENSE</a>
|
98
|
+
|
99
|
+
<li class="file"><a href="./README_rdoc.html">README</a>
|
100
|
+
|
101
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a>
|
102
|
+
|
103
|
+
<li class="file"><a href="./doc/created_rid.html">created.rid</a>
|
104
|
+
|
105
|
+
</ul>
|
106
|
+
</nav>
|
107
|
+
|
108
|
+
<nav id="classindex-section" class="section project-section">
|
109
|
+
<h3 class="section-header">Class and Module Index</h3>
|
110
|
+
|
111
|
+
<ul class="link-list">
|
112
|
+
|
113
|
+
<li><a href="./DsHash.html">DsHash</a>
|
114
|
+
|
115
|
+
<li><a href="./Hash.html">Hash</a>
|
116
|
+
|
117
|
+
</ul>
|
118
|
+
</nav>
|
119
|
+
|
120
|
+
</div>
|
121
|
+
</nav>
|
122
|
+
|
123
|
+
<div id="documentation">
|
124
|
+
<h1 class="class">class Hash</h1>
|
125
|
+
|
126
|
+
<div id="description" class="description">
|
127
|
+
|
128
|
+
</div><!-- description -->
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
<!-- Methods -->
|
143
|
+
|
144
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
145
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
146
|
+
|
147
|
+
|
148
|
+
<div id="method-i-compact" class="method-detail ">
|
149
|
+
|
150
|
+
<div class="method-heading">
|
151
|
+
<span class="method-name">compact</span><span
|
152
|
+
class="method-args">(compact_key=true)</span>
|
153
|
+
|
154
|
+
<span class="method-click-advice">click to toggle source</span>
|
155
|
+
|
156
|
+
</div>
|
157
|
+
|
158
|
+
|
159
|
+
<div class="method-description">
|
160
|
+
|
161
|
+
<p>remove all empty values and/or keys of hash</p>
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
<div class="method-source-code" id="compact-source">
|
167
|
+
<pre><span class="ruby-comment"># File lib/ds_hash/hash_core_ext.rb, line 26</span>
|
168
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">compact</span> <span class="ruby-identifier">compact_key</span>=<span class="ruby-keyword">true</span>
|
169
|
+
<span class="ruby-identifier">hsh</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">deep_dup</span>
|
170
|
+
<span class="ruby-identifier">hsh</span>.<span class="ruby-identifier">compact!</span> <span class="ruby-identifier">compact_key</span>
|
171
|
+
<span class="ruby-keyword">end</span></pre>
|
172
|
+
</div><!-- compact-source -->
|
173
|
+
|
174
|
+
</div>
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
</div><!-- compact-method -->
|
180
|
+
|
181
|
+
|
182
|
+
<div id="method-i-compact-21" class="method-detail ">
|
183
|
+
|
184
|
+
<div class="method-heading">
|
185
|
+
<span class="method-name">compact!</span><span
|
186
|
+
class="method-args">(compact_key=true)</span>
|
187
|
+
|
188
|
+
<span class="method-click-advice">click to toggle source</span>
|
189
|
+
|
190
|
+
</div>
|
191
|
+
|
192
|
+
|
193
|
+
<div class="method-description">
|
194
|
+
|
195
|
+
<p>self remove all empty values and/or keys</p>
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
<div class="method-source-code" id="compact-21-source">
|
201
|
+
<pre><span class="ruby-comment"># File lib/ds_hash/hash_core_ext.rb, line 19</span>
|
202
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">compact!</span> <span class="ruby-identifier">compact_key</span>=<span class="ruby-keyword">true</span>
|
203
|
+
<span class="ruby-identifier">deep_swap_proc</span> = <span class="ruby-constant">Proc</span>.<span class="ruby-identifier">new</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">delete_if</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">deep_swap_proc</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Hash</span>); <span class="ruby-identifier">v</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">||</span> (<span class="ruby-identifier">compact_key</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">empty?</span> ) }
|
204
|
+
<span class="ruby-identifier">delete_if</span> <span class="ruby-operator">&</span><span class="ruby-identifier">deep_swap_proc</span>
|
205
|
+
<span class="ruby-keyword">end</span></pre>
|
206
|
+
</div><!-- compact-21-source -->
|
207
|
+
|
208
|
+
</div>
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
</div><!-- compact-21-method -->
|
214
|
+
|
215
|
+
|
216
|
+
<div id="method-i-deep_dup" class="method-detail ">
|
217
|
+
|
218
|
+
<div class="method-heading">
|
219
|
+
<span class="method-name">deep_dup</span><span
|
220
|
+
class="method-args">()</span>
|
221
|
+
|
222
|
+
<span class="method-click-advice">click to toggle source</span>
|
223
|
+
|
224
|
+
</div>
|
225
|
+
|
226
|
+
|
227
|
+
<div class="method-description">
|
228
|
+
|
229
|
+
<p>Returns a deep copy of hash. like rails active support</p>
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
<div class="method-source-code" id="deep_dup-source">
|
235
|
+
<pre><span class="ruby-comment"># File lib/ds_hash/hash_core_ext.rb, line 8</span>
|
236
|
+
<span class="ruby-identifier">define_method</span> <span class="ruby-string">'deep_dup'</span> <span class="ruby-keyword">do</span>
|
237
|
+
<span class="ruby-identifier">duplicate</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">dup</span>
|
238
|
+
<span class="ruby-identifier">duplicate</span>.<span class="ruby-identifier">each_pair</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
239
|
+
<span class="ruby-identifier">tv</span> = <span class="ruby-identifier">duplicate</span>[<span class="ruby-identifier">k</span>]
|
240
|
+
<span class="ruby-identifier">duplicate</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-identifier">tv</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">tv</span>.<span class="ruby-identifier">deep_dup</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">v</span>
|
241
|
+
<span class="ruby-keyword">end</span>
|
242
|
+
<span class="ruby-identifier">duplicate</span>
|
243
|
+
<span class="ruby-keyword">end</span></pre>
|
244
|
+
</div><!-- deep_dup-source -->
|
245
|
+
|
246
|
+
</div>
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
</div><!-- deep_dup-method -->
|
252
|
+
|
253
|
+
|
254
|
+
</section><!-- public-instance-method-details -->
|
255
|
+
|
256
|
+
</section><!-- 5Buntitled-5D -->
|
257
|
+
|
258
|
+
</div><!-- documentation -->
|
259
|
+
|
260
|
+
|
261
|
+
<footer id="validator-badges">
|
262
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
263
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.1.
|
264
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
265
|
+
</footer>
|
266
|
+
|
@@ -0,0 +1,115 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>LICENSE - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body class="file">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
<div id="project-metadata">
|
49
|
+
<nav id="fileindex-section" class="section project-section">
|
50
|
+
<h3 class="section-header">Pages</h3>
|
51
|
+
|
52
|
+
<ul>
|
53
|
+
|
54
|
+
<li class="file"><a href="./Gemfile.html">Gemfile</a>
|
55
|
+
|
56
|
+
<li class="file"><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
57
|
+
|
58
|
+
<li class="file"><a href="./LICENSE_txt.html">LICENSE</a>
|
59
|
+
|
60
|
+
<li class="file"><a href="./README_rdoc.html">README</a>
|
61
|
+
|
62
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a>
|
63
|
+
|
64
|
+
<li class="file"><a href="./doc/created_rid.html">created.rid</a>
|
65
|
+
|
66
|
+
</ul>
|
67
|
+
</nav>
|
68
|
+
|
69
|
+
<nav id="classindex-section" class="section project-section">
|
70
|
+
<h3 class="section-header">Class and Module Index</h3>
|
71
|
+
|
72
|
+
<ul class="link-list">
|
73
|
+
|
74
|
+
<li><a href="./DsHash.html">DsHash</a>
|
75
|
+
|
76
|
+
<li><a href="./Hash.html">Hash</a>
|
77
|
+
|
78
|
+
</ul>
|
79
|
+
</nav>
|
80
|
+
|
81
|
+
</div>
|
82
|
+
</nav>
|
83
|
+
|
84
|
+
<div id="documentation" class="description">
|
85
|
+
|
86
|
+
<p>Copyright © 2013 Nardele Salomon</p>
|
87
|
+
|
88
|
+
<p>Permission is hereby granted, free of charge, to any person obtaining a
|
89
|
+
copy of this software and associated documentation files (the “Software”),
|
90
|
+
to deal in the Software without restriction, including without limitation
|
91
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
92
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
93
|
+
Software is furnished to do so, subject to the following conditions:</p>
|
94
|
+
|
95
|
+
<p>The above copyright notice and this permission notice shall be included in
|
96
|
+
all copies or substantial portions of the Software.</p>
|
97
|
+
|
98
|
+
<p>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
99
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
100
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
101
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
102
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
103
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
104
|
+
DEALINGS IN THE SOFTWARE.</p>
|
105
|
+
|
106
|
+
</div>
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<footer id="validator-badges">
|
111
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
112
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.1.
|
113
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
114
|
+
</footer>
|
115
|
+
|
@@ -0,0 +1,138 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>README - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body class="file">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
<div id="table-of-contents">
|
48
|
+
<nav class="section">
|
49
|
+
<h3 class="section-header">Table of Contents</h3>
|
50
|
+
<ul>
|
51
|
+
<li><a href="#label-ds_hash">ds_hash</a>
|
52
|
+
<li><a href="#label-Contributing+to+ds_hash">Contributing to ds_hash</a>
|
53
|
+
<li><a href="#label-Copyright">Copyright</a>
|
54
|
+
</ul>
|
55
|
+
</nav>
|
56
|
+
</div>
|
57
|
+
|
58
|
+
|
59
|
+
<div id="project-metadata">
|
60
|
+
<nav id="fileindex-section" class="section project-section">
|
61
|
+
<h3 class="section-header">Pages</h3>
|
62
|
+
|
63
|
+
<ul>
|
64
|
+
|
65
|
+
<li class="file"><a href="./Gemfile.html">Gemfile</a>
|
66
|
+
|
67
|
+
<li class="file"><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
68
|
+
|
69
|
+
<li class="file"><a href="./LICENSE_txt.html">LICENSE</a>
|
70
|
+
|
71
|
+
<li class="file"><a href="./README_rdoc.html">README</a>
|
72
|
+
|
73
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a>
|
74
|
+
|
75
|
+
<li class="file"><a href="./doc/created_rid.html">created.rid</a>
|
76
|
+
|
77
|
+
</ul>
|
78
|
+
</nav>
|
79
|
+
|
80
|
+
<nav id="classindex-section" class="section project-section">
|
81
|
+
<h3 class="section-header">Class and Module Index</h3>
|
82
|
+
|
83
|
+
<ul class="link-list">
|
84
|
+
|
85
|
+
<li><a href="./DsHash.html">DsHash</a>
|
86
|
+
|
87
|
+
<li><a href="./Hash.html">Hash</a>
|
88
|
+
|
89
|
+
</ul>
|
90
|
+
</nav>
|
91
|
+
|
92
|
+
</div>
|
93
|
+
</nav>
|
94
|
+
|
95
|
+
<div id="documentation" class="description">
|
96
|
+
|
97
|
+
<h1 id="label-ds_hash">ds_hash<span><a href="#label-ds_hash">¶</a> <a href="#documentation">↑</a></span></h1>
|
98
|
+
|
99
|
+
<p>Description goes here.</p>
|
100
|
+
|
101
|
+
<h2 id="label-Contributing+to+ds_hash">Contributing to ds_hash<span><a href="#label-Contributing+to+ds_hash">¶</a> <a href="#documentation">↑</a></span></h2>
|
102
|
+
<ul><li>
|
103
|
+
<p>Check out the latest master to make sure the feature hasn’t been
|
104
|
+
implemented or the bug hasn’t been fixed yet.</p>
|
105
|
+
</li><li>
|
106
|
+
<p>Check out the issue tracker to make sure someone already hasn’t requested
|
107
|
+
it and/or contributed it.</p>
|
108
|
+
</li><li>
|
109
|
+
<p>Fork the project.</p>
|
110
|
+
</li><li>
|
111
|
+
<p>Start a feature/bugfix branch.</p>
|
112
|
+
</li><li>
|
113
|
+
<p>Commit and push until you are happy with your contribution.</p>
|
114
|
+
</li><li>
|
115
|
+
<p>Make sure to add tests for it. This is important so I don’t break it in a
|
116
|
+
future version unintentionally.</p>
|
117
|
+
</li><li>
|
118
|
+
<p>Please try not to mess with the <a href="Rakefile.html">Rakefile</a>,
|
119
|
+
version, or history. If you want to have your own version, or is otherwise
|
120
|
+
necessary, that is fine, but please isolate to its own commit so I can
|
121
|
+
cherry-pick around it.</p>
|
122
|
+
</li></ul>
|
123
|
+
|
124
|
+
<h2 id="label-Copyright">Copyright<span><a href="#label-Copyright">¶</a> <a href="#documentation">↑</a></span></h2>
|
125
|
+
|
126
|
+
<p>Copyright © 2013 nardele salomon. See <a
|
127
|
+
href="LICENSE_txt.html">LICENSE.txt</a> for further details.</p>
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<footer id="validator-badges">
|
134
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
135
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.1.
|
136
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
137
|
+
</footer>
|
138
|
+
|
data/doc/Rakefile.html
ADDED
@@ -0,0 +1,151 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>Rakefile - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body class="file">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
<div id="project-metadata">
|
49
|
+
<nav id="fileindex-section" class="section project-section">
|
50
|
+
<h3 class="section-header">Pages</h3>
|
51
|
+
|
52
|
+
<ul>
|
53
|
+
|
54
|
+
<li class="file"><a href="./Gemfile.html">Gemfile</a>
|
55
|
+
|
56
|
+
<li class="file"><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
57
|
+
|
58
|
+
<li class="file"><a href="./LICENSE_txt.html">LICENSE</a>
|
59
|
+
|
60
|
+
<li class="file"><a href="./README_rdoc.html">README</a>
|
61
|
+
|
62
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a>
|
63
|
+
|
64
|
+
<li class="file"><a href="./doc/created_rid.html">created.rid</a>
|
65
|
+
|
66
|
+
</ul>
|
67
|
+
</nav>
|
68
|
+
|
69
|
+
<nav id="classindex-section" class="section project-section">
|
70
|
+
<h3 class="section-header">Class and Module Index</h3>
|
71
|
+
|
72
|
+
<ul class="link-list">
|
73
|
+
|
74
|
+
<li><a href="./DsHash.html">DsHash</a>
|
75
|
+
|
76
|
+
<li><a href="./Hash.html">Hash</a>
|
77
|
+
|
78
|
+
</ul>
|
79
|
+
</nav>
|
80
|
+
|
81
|
+
</div>
|
82
|
+
</nav>
|
83
|
+
|
84
|
+
<div id="documentation" class="description">
|
85
|
+
|
86
|
+
<p>require ‘rubygems’ require ‘bundler’ begin</p>
|
87
|
+
|
88
|
+
<pre>Bundler.setup(:default, :development)</pre>
|
89
|
+
|
90
|
+
<p>rescue Bundler::BundlerError => e</p>
|
91
|
+
|
92
|
+
<pre>$stderr.puts e.message
|
93
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
94
|
+
exit e.status_code</pre>
|
95
|
+
|
96
|
+
<p>end require ‘rake’</p>
|
97
|
+
|
98
|
+
<p>require ‘jeweler’ Jeweler::Tasks.new do |gem|</p>
|
99
|
+
|
100
|
+
<pre class="ruby"><span class="ruby-comment"># gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options</span>
|
101
|
+
<span class="ruby-identifier">gem</span>.<span class="ruby-identifier">name</span> = <span class="ruby-string">"ds_hash"</span>
|
102
|
+
<span class="ruby-identifier">gem</span>.<span class="ruby-identifier">homepage</span> = <span class="ruby-string">"http://github.com/del.soft.99@gmail.com/ds_hash"</span>
|
103
|
+
<span class="ruby-identifier">gem</span>.<span class="ruby-identifier">license</span> = <span class="ruby-string">"MIT"</span>
|
104
|
+
<span class="ruby-identifier">gem</span>.<span class="ruby-identifier">summary</span> = <span class="ruby-string">%Q{Hash class extensions}</span>
|
105
|
+
<span class="ruby-identifier">gem</span>.<span class="ruby-identifier">description</span> = <span class="ruby-string">%Q{Hash class extensions}</span>
|
106
|
+
<span class="ruby-identifier">gem</span>.<span class="ruby-identifier">email</span> = <span class="ruby-string">"noliveira@telelistas.net"</span>
|
107
|
+
<span class="ruby-identifier">gem</span>.<span class="ruby-identifier">author</span> = <span class="ruby-string">"nardele salomon"</span>
|
108
|
+
<span class="ruby-comment"># dependencies defined in Gemfile</span>
|
109
|
+
</pre>
|
110
|
+
|
111
|
+
<p>end</p>
|
112
|
+
|
113
|
+
<p>Jeweler::RubygemsDotOrgTasks.new</p>
|
114
|
+
|
115
|
+
<p>require ‘rspec/core’ require ‘rspec/core/rake_task’
|
116
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|</p>
|
117
|
+
|
118
|
+
<pre>spec.pattern = FileList['spec _spec.rb']</pre>
|
119
|
+
|
120
|
+
<p>end</p>
|
121
|
+
|
122
|
+
<p>RSpec::Core::RakeTask.new(:rcov) do |spec|</p>
|
123
|
+
|
124
|
+
<pre>spec.pattern = 'spec/ *_spec.rb'
|
125
|
+
spec.rcov = true</pre>
|
126
|
+
|
127
|
+
<p>end</p>
|
128
|
+
|
129
|
+
<p>task :default => :spec</p>
|
130
|
+
|
131
|
+
<p>require ‘rdoc/task’ Rake::RDocTask.new do |rdoc|</p>
|
132
|
+
|
133
|
+
<pre>version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
134
|
+
|
135
|
+
rdoc.rdoc_dir = 'rdoc'
|
136
|
+
rdoc.title = "ds_hash version"
|
137
|
+
rdoc.rdoc_files.include('README*')
|
138
|
+
rdoc.rdoc_files.include('lib/ *.rb')</pre>
|
139
|
+
|
140
|
+
<p>end</p>
|
141
|
+
|
142
|
+
</div>
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
<footer id="validator-badges">
|
147
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
148
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.1.
|
149
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
150
|
+
</footer>
|
151
|
+
|