cowtech-extensions 2.1.3 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. data/.gitignore +1 -0
  2. data/.yardopts +1 -0
  3. data/README.md +10 -0
  4. data/Rakefile +6 -3
  5. data/cowtech-extensions.gemspec +9 -5
  6. data/doc/Cowtech.html +128 -0
  7. data/doc/Cowtech/Extensions.html +546 -0
  8. data/doc/Cowtech/Extensions/Boolean.html +297 -0
  9. data/doc/Cowtech/Extensions/DateTime.html +787 -0
  10. data/doc/Cowtech/Extensions/DateTime/ClassMethods.html +1592 -0
  11. data/doc/Cowtech/Extensions/Exceptions.html +125 -0
  12. data/doc/Cowtech/Extensions/Exceptions/Dump.html +133 -0
  13. data/doc/Cowtech/Extensions/Hash.html +393 -0
  14. data/doc/Cowtech/Extensions/Math.html +130 -0
  15. data/doc/Cowtech/Extensions/Math/ClassMethods.html +362 -0
  16. data/doc/Cowtech/Extensions/Object.html +1565 -0
  17. data/doc/Cowtech/Extensions/Pathname.html +225 -0
  18. data/doc/Cowtech/Extensions/Settings.html +1249 -0
  19. data/doc/Cowtech/Extensions/String.html +471 -0
  20. data/doc/Cowtech/Extensions/TimeZone.html +1210 -0
  21. data/doc/Cowtech/Extensions/TimeZone/ClassMethods.html +925 -0
  22. data/doc/Cowtech/Extensions/Version.html +189 -0
  23. data/doc/_index.html +305 -0
  24. data/doc/class_list.html +53 -0
  25. data/doc/css/common.css +1 -0
  26. data/doc/css/full_list.css +57 -0
  27. data/doc/css/style.css +328 -0
  28. data/doc/file.README.html +103 -0
  29. data/doc/file_list.html +55 -0
  30. data/doc/frames.html +28 -0
  31. data/doc/index.html +103 -0
  32. data/doc/js/app.js +214 -0
  33. data/doc/js/full_list.js +173 -0
  34. data/doc/js/jquery.js +4 -0
  35. data/doc/method_list.html +620 -0
  36. data/doc/top-level-namespace.html +112 -0
  37. data/lib/cowtech-extensions.rb +47 -16
  38. data/lib/cowtech-extensions/boolean.rb +8 -1
  39. data/lib/cowtech-extensions/datetime.rb +377 -71
  40. data/lib/cowtech-extensions/exceptions.rb +16 -0
  41. data/lib/cowtech-extensions/hash.rb +20 -9
  42. data/lib/cowtech-extensions/math.rb +15 -8
  43. data/lib/cowtech-extensions/object.rb +84 -27
  44. data/lib/cowtech-extensions/pathname.rb +10 -1
  45. data/lib/cowtech-extensions/settings.rb +120 -0
  46. data/lib/cowtech-extensions/string.rb +30 -3
  47. data/lib/cowtech-extensions/version.rb +11 -2
  48. data/spec/coverage_helper.rb +19 -0
  49. data/spec/cowtech-extensions/boolean_spec.rb +4 -0
  50. data/spec/cowtech-extensions/datetime_spec.rb +238 -79
  51. data/spec/cowtech-extensions/hash_spec.rb +5 -2
  52. data/spec/cowtech-extensions/math_spec.rb +14 -4
  53. data/spec/cowtech-extensions/object_spec.rb +19 -1
  54. data/spec/cowtech-extensions/pathname_spec.rb +5 -1
  55. data/spec/cowtech-extensions/settings_spec.rb +101 -0
  56. data/spec/cowtech-extensions/string_spec.rb +13 -0
  57. data/spec/cowtech-extensions_spec.rb +33 -13
  58. data/spec/spec_helper.rb +2 -5
  59. metadata +182 -97
  60. data/lib/cowtech-extensions/utils.rb +0 -74
@@ -0,0 +1,189 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Module: Cowtech::Extensions::Version
8
+
9
+ &mdash; Documentation by YARD 0.8.2.1
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../../';
20
+ framesUrl = "../../frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../../_index.html">Index (V)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../../Cowtech.html" title="Cowtech (module)">Cowtech</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Extensions.html" title="Cowtech::Extensions (module)">Extensions</a></span></span>
36
+ &raquo;
37
+ <span class="title">Version</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Module: Cowtech::Extensions::Version
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+ <dt class="r1 last">Defined in:</dt>
82
+ <dd class="r1 last">lib/cowtech-extensions/version.rb</dd>
83
+
84
+ </dl>
85
+ <div class="clear"></div>
86
+
87
+ <h2>Overview</h2><div class="docstring">
88
+ <div class="discussion">
89
+ <p>The current version of cowtech-extensions, according semantic versioning.</p>
90
+
91
+
92
+ </div>
93
+ </div>
94
+ <div class="tags">
95
+
96
+
97
+ <p class="tag_title">See Also:</p>
98
+ <ul class="see">
99
+
100
+ <li><a href="http://semver.org" target="_parent" title="http://semver.org">http://semver.org</a></li>
101
+
102
+ </ul>
103
+
104
+ </div>
105
+ <h2>Constant Summary</h2>
106
+
107
+ <dl class="constants">
108
+
109
+ <dt id="MAJOR-constant" class="">MAJOR =
110
+ <div class="docstring">
111
+ <div class="discussion">
112
+ <p>The major version.</p>
113
+
114
+
115
+ </div>
116
+ </div>
117
+ <div class="tags">
118
+
119
+
120
+ </div>
121
+ </dt>
122
+ <dd><pre class="code"><span class='int'>2</span></pre></dd>
123
+
124
+ <dt id="MINOR-constant" class="">MINOR =
125
+ <div class="docstring">
126
+ <div class="discussion">
127
+ <p>The minor version.</p>
128
+
129
+
130
+ </div>
131
+ </div>
132
+ <div class="tags">
133
+
134
+
135
+ </div>
136
+ </dt>
137
+ <dd><pre class="code"><span class='int'>5</span></pre></dd>
138
+
139
+ <dt id="PATCH-constant" class="">PATCH =
140
+ <div class="docstring">
141
+ <div class="discussion">
142
+ <p>The patch version.</p>
143
+
144
+
145
+ </div>
146
+ </div>
147
+ <div class="tags">
148
+
149
+
150
+ </div>
151
+ </dt>
152
+ <dd><pre class="code"><span class='int'>0</span></pre></dd>
153
+
154
+ <dt id="STRING-constant" class="">STRING =
155
+ <div class="docstring">
156
+ <div class="discussion">
157
+ <p>The current version of cowtech-extensions.</p>
158
+
159
+
160
+ </div>
161
+ </div>
162
+ <div class="tags">
163
+
164
+
165
+ </div>
166
+ </dt>
167
+ <dd><pre class="code"><span class='lbracket'>[</span><span class='const'>MAJOR</span><span class='comma'>,</span> <span class='const'>MINOR</span><span class='comma'>,</span> <span class='const'>PATCH</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span></pre></dd>
168
+
169
+ </dl>
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+ </div>
181
+
182
+ <div id="footer">
183
+ Generated on Thu Jul 19 17:17:50 2012 by
184
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
185
+ 0.8.2.1 (ruby-1.9.2).
186
+ </div>
187
+
188
+ </body>
189
+ </html>
data/doc/_index.html ADDED
@@ -0,0 +1,305 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Documentation by YARD 0.8.2.1
8
+
9
+ </title>
10
+
11
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
12
+
13
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <script type="text/javascript" charset="utf-8">
16
+ hasFrames = window.top.frames.main ? true : false;
17
+ relpath = '';
18
+ framesUrl = "frames.html#!" + escape(window.location.href);
19
+ </script>
20
+
21
+
22
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <div id="header">
30
+ <div id="menu">
31
+
32
+
33
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
34
+ </div>
35
+
36
+ <div id="search">
37
+
38
+ <a class="full_list_link" id="class_list_link"
39
+ href="class_list.html">
40
+ Class List
41
+ </a>
42
+
43
+ <a class="full_list_link" id="method_list_link"
44
+ href="method_list.html">
45
+ Method List
46
+ </a>
47
+
48
+ <a class="full_list_link" id="file_list_link"
49
+ href="file_list.html">
50
+ File List
51
+ </a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1 class="noborder title">Documentation by YARD 0.8.2.1</h1>
60
+ <div id="listing">
61
+ <h1 class="alphaindex">Alphabetic Index</h1>
62
+
63
+ <h2>File Listing</h2>
64
+ <ul id="files" class="index_inline_list">
65
+
66
+
67
+ <li class="r1"><a href="index.html" title="README">README</a></li>
68
+
69
+
70
+ </ul>
71
+
72
+ <div class="clear"></div>
73
+ <h2>Namespace Listing A-Z</h2>
74
+
75
+
76
+
77
+
78
+ <table>
79
+ <tr>
80
+ <td valign='top' width="33%">
81
+
82
+
83
+ <ul id="alpha_B" class="alpha">
84
+ <li class="letter">B</li>
85
+ <ul>
86
+
87
+ <li>
88
+ <span class='object_link'><a href="Cowtech/Extensions/Boolean.html" title="Cowtech::Extensions::Boolean (module)">Boolean</a></span>
89
+
90
+ <small>(Cowtech::Extensions)</small>
91
+
92
+ </li>
93
+
94
+ </ul>
95
+ </ul>
96
+
97
+
98
+ <ul id="alpha_C" class="alpha">
99
+ <li class="letter">C</li>
100
+ <ul>
101
+
102
+ <li>
103
+ <span class='object_link'><a href="Cowtech/Extensions/DateTime/ClassMethods.html" title="Cowtech::Extensions::DateTime::ClassMethods (module)">ClassMethods</a></span>
104
+
105
+ <small>(Cowtech::Extensions::DateTime)</small>
106
+
107
+ </li>
108
+
109
+ <li>
110
+ <span class='object_link'><a href="Cowtech/Extensions/TimeZone/ClassMethods.html" title="Cowtech::Extensions::TimeZone::ClassMethods (module)">ClassMethods</a></span>
111
+
112
+ <small>(Cowtech::Extensions::TimeZone)</small>
113
+
114
+ </li>
115
+
116
+ <li>
117
+ <span class='object_link'><a href="Cowtech/Extensions/Math/ClassMethods.html" title="Cowtech::Extensions::Math::ClassMethods (module)">ClassMethods</a></span>
118
+
119
+ <small>(Cowtech::Extensions::Math)</small>
120
+
121
+ </li>
122
+
123
+ <li>
124
+ <span class='object_link'><a href="Cowtech.html" title="Cowtech (module)">Cowtech</a></span>
125
+
126
+ </li>
127
+
128
+ </ul>
129
+ </ul>
130
+
131
+
132
+ <ul id="alpha_D" class="alpha">
133
+ <li class="letter">D</li>
134
+ <ul>
135
+
136
+ <li>
137
+ <span class='object_link'><a href="Cowtech/Extensions/DateTime.html" title="Cowtech::Extensions::DateTime (module)">DateTime</a></span>
138
+
139
+ <small>(Cowtech::Extensions)</small>
140
+
141
+ </li>
142
+
143
+ <li>
144
+ <span class='object_link'><a href="Cowtech/Extensions/Exceptions/Dump.html" title="Cowtech::Extensions::Exceptions::Dump (class)">Dump</a></span>
145
+
146
+ <small>(Cowtech::Extensions::Exceptions)</small>
147
+
148
+ </li>
149
+
150
+ </ul>
151
+ </ul>
152
+
153
+
154
+ <ul id="alpha_E" class="alpha">
155
+ <li class="letter">E</li>
156
+ <ul>
157
+
158
+ <li>
159
+ <span class='object_link'><a href="Cowtech/Extensions/Exceptions.html" title="Cowtech::Extensions::Exceptions (module)">Exceptions</a></span>
160
+
161
+ <small>(Cowtech::Extensions)</small>
162
+
163
+ </li>
164
+
165
+ <li>
166
+ <span class='object_link'><a href="Cowtech/Extensions.html" title="Cowtech::Extensions (module)">Extensions</a></span>
167
+
168
+ <small>(Cowtech)</small>
169
+
170
+ </li>
171
+
172
+ </ul>
173
+ </ul>
174
+
175
+
176
+ <ul id="alpha_H" class="alpha">
177
+ <li class="letter">H</li>
178
+ <ul>
179
+
180
+ <li>
181
+ <span class='object_link'><a href="Cowtech/Extensions/Hash.html" title="Cowtech::Extensions::Hash (module)">Hash</a></span>
182
+
183
+ <small>(Cowtech::Extensions)</small>
184
+
185
+ </li>
186
+
187
+ </ul>
188
+ </ul>
189
+
190
+
191
+ <ul id="alpha_M" class="alpha">
192
+ <li class="letter">M</li>
193
+ <ul>
194
+
195
+ <li>
196
+ <span class='object_link'><a href="Cowtech/Extensions/Math.html" title="Cowtech::Extensions::Math (module)">Math</a></span>
197
+
198
+ <small>(Cowtech::Extensions)</small>
199
+
200
+ </li>
201
+
202
+ </ul>
203
+ </ul>
204
+
205
+
206
+ <ul id="alpha_O" class="alpha">
207
+ <li class="letter">O</li>
208
+ <ul>
209
+
210
+ <li>
211
+ <span class='object_link'><a href="Cowtech/Extensions/Object.html" title="Cowtech::Extensions::Object (module)">Object</a></span>
212
+
213
+ <small>(Cowtech::Extensions)</small>
214
+
215
+ </li>
216
+
217
+ </ul>
218
+ </ul>
219
+
220
+
221
+ </td><td valign='top' width="33%">
222
+
223
+
224
+ <ul id="alpha_P" class="alpha">
225
+ <li class="letter">P</li>
226
+ <ul>
227
+
228
+ <li>
229
+ <span class='object_link'><a href="Cowtech/Extensions/Pathname.html" title="Cowtech::Extensions::Pathname (module)">Pathname</a></span>
230
+
231
+ <small>(Cowtech::Extensions)</small>
232
+
233
+ </li>
234
+
235
+ </ul>
236
+ </ul>
237
+
238
+
239
+ <ul id="alpha_S" class="alpha">
240
+ <li class="letter">S</li>
241
+ <ul>
242
+
243
+ <li>
244
+ <span class='object_link'><a href="Cowtech/Extensions/Settings.html" title="Cowtech::Extensions::Settings (class)">Settings</a></span>
245
+
246
+ <small>(Cowtech::Extensions)</small>
247
+
248
+ </li>
249
+
250
+ <li>
251
+ <span class='object_link'><a href="Cowtech/Extensions/String.html" title="Cowtech::Extensions::String (module)">String</a></span>
252
+
253
+ <small>(Cowtech::Extensions)</small>
254
+
255
+ </li>
256
+
257
+ </ul>
258
+ </ul>
259
+
260
+
261
+ <ul id="alpha_T" class="alpha">
262
+ <li class="letter">T</li>
263
+ <ul>
264
+
265
+ <li>
266
+ <span class='object_link'><a href="Cowtech/Extensions/TimeZone.html" title="Cowtech::Extensions::TimeZone (module)">TimeZone</a></span>
267
+
268
+ <small>(Cowtech::Extensions)</small>
269
+
270
+ </li>
271
+
272
+ </ul>
273
+ </ul>
274
+
275
+
276
+ <ul id="alpha_V" class="alpha">
277
+ <li class="letter">V</li>
278
+ <ul>
279
+
280
+ <li>
281
+ <span class='object_link'><a href="Cowtech/Extensions/Version.html" title="Cowtech::Extensions::Version (module)">Version</a></span>
282
+
283
+ <small>(Cowtech::Extensions)</small>
284
+
285
+ </li>
286
+
287
+ </ul>
288
+ </ul>
289
+
290
+ </td>
291
+ </tr>
292
+ </table>
293
+
294
+ </div>
295
+
296
+ </div>
297
+
298
+ <div id="footer">
299
+ Generated on Thu Jul 19 17:17:50 2012 by
300
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
301
+ 0.8.2.1 (ruby-1.9.2).
302
+ </div>
303
+
304
+ </body>
305
+ </html>