lazier 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/doc/Lazier.html +1 -1
- data/doc/Lazier/Boolean.html +1 -1
- data/doc/Lazier/DateTime.html +1 -1
- data/doc/Lazier/DateTime/ClassMethods.html +1 -1
- data/doc/Lazier/Exceptions.html +1 -1
- data/doc/Lazier/Exceptions/Dump.html +1 -1
- data/doc/Lazier/Exceptions/MissingTranslation.html +115 -1
- data/doc/Lazier/Hash.html +1 -1
- data/doc/Lazier/I18n.html +1 -1
- data/doc/Lazier/Math.html +1 -1
- data/doc/Lazier/Math/ClassMethods.html +1 -1
- data/doc/Lazier/Object.html +1 -1
- data/doc/Lazier/Pathname.html +1 -1
- data/doc/Lazier/Settings.html +1 -1
- data/doc/Lazier/String.html +1 -1
- data/doc/Lazier/TimeZone.html +1 -1
- data/doc/Lazier/TimeZone/ClassMethods.html +1 -1
- data/doc/Lazier/Version.html +2 -2
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +72 -64
- data/doc/top-level-namespace.html +1 -1
- data/lib/lazier/exceptions.rb +7 -0
- data/lib/lazier/i18n.rb +8 -7
- data/lib/lazier/version.rb +1 -1
- data/spec/lazier/boolean_spec.rb +0 -1
- data/spec/lazier/datetime_spec.rb +0 -2
- data/spec/lazier/hash_spec.rb +0 -1
- data/spec/lazier/i18n_spec.rb +4 -8
- data/spec/lazier/math_spec.rb +0 -1
- data/spec/lazier/object_spec.rb +0 -1
- data/spec/lazier/pathname_spec.rb +0 -1
- data/spec/lazier/settings_spec.rb +0 -1
- data/spec/lazier/string_spec.rb +0 -1
- metadata +1 -1
data/doc/Lazier.html
CHANGED
|
@@ -838,7 +838,7 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
|
838
838
|
</div>
|
|
839
839
|
|
|
840
840
|
<div id="footer">
|
|
841
|
-
Generated on
|
|
841
|
+
Generated on Mon Feb 4 15:02:16 2013 by
|
|
842
842
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
843
843
|
0.8.3 (ruby-1.9.3).
|
|
844
844
|
</div>
|
data/doc/Lazier/Boolean.html
CHANGED
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
</div>
|
|
289
289
|
|
|
290
290
|
<div id="footer">
|
|
291
|
-
Generated on
|
|
291
|
+
Generated on Mon Feb 4 15:02:16 2013 by
|
|
292
292
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
293
293
|
0.8.3 (ruby-1.9.3).
|
|
294
294
|
</div>
|
data/doc/Lazier/DateTime.html
CHANGED
|
@@ -724,7 +724,7 @@
|
|
|
724
724
|
</div>
|
|
725
725
|
|
|
726
726
|
<div id="footer">
|
|
727
|
-
Generated on
|
|
727
|
+
Generated on Mon Feb 4 15:02:16 2013 by
|
|
728
728
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
729
729
|
0.8.3 (ruby-1.9.3).
|
|
730
730
|
</div>
|
|
@@ -1565,7 +1565,7 @@
|
|
|
1565
1565
|
</div>
|
|
1566
1566
|
|
|
1567
1567
|
<div id="footer">
|
|
1568
|
-
Generated on
|
|
1568
|
+
Generated on Mon Feb 4 15:02:17 2013 by
|
|
1569
1569
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1570
1570
|
0.8.3 (ruby-1.9.3).
|
|
1571
1571
|
</div>
|
data/doc/Lazier/Exceptions.html
CHANGED
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
</div>
|
|
117
117
|
|
|
118
118
|
<div id="footer">
|
|
119
|
-
Generated on
|
|
119
|
+
Generated on Mon Feb 4 15:02:17 2013 by
|
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
121
121
|
0.8.3 (ruby-1.9.3).
|
|
122
122
|
</div>
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
</div>
|
|
125
125
|
|
|
126
126
|
<div id="footer">
|
|
127
|
-
Generated on
|
|
127
|
+
Generated on Mon Feb 4 15:02:17 2013 by
|
|
128
128
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
129
129
|
0.8.3 (ruby-1.9.3).
|
|
130
130
|
</div>
|
|
@@ -118,13 +118,127 @@
|
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
|
|
121
|
+
|
|
122
|
+
<h2>
|
|
123
|
+
Instance Method Summary
|
|
124
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
125
|
+
</h2>
|
|
126
|
+
|
|
127
|
+
<ul class="summary">
|
|
128
|
+
|
|
129
|
+
<li class="public ">
|
|
130
|
+
<span class="summary_signature">
|
|
131
|
+
|
|
132
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (MissingTranslation) <strong>initialize</strong>(locales, path) </a>
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
</span>
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
<span class="note title constructor">constructor</span>
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
<span class="summary_desc"><div class='inline'><p>Creates a new missing translation exception.</p>
|
|
149
|
+
</div></span>
|
|
150
|
+
|
|
151
|
+
</li>
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
</ul>
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
<div id="constructor_details" class="method_details_list">
|
|
159
|
+
<h2>Constructor Details</h2>
|
|
160
|
+
|
|
161
|
+
<div class="method_details first">
|
|
162
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
163
|
+
|
|
164
|
+
- (<tt><span class='object_link'><a href="" title="Lazier::Exceptions::MissingTranslation (class)">MissingTranslation</a></span></tt>) <strong>initialize</strong>(locales, path)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
</h3><div class="docstring">
|
|
171
|
+
<div class="discussion">
|
|
172
|
+
<p>Creates a new missing translation exception.</p>
|
|
121
173
|
|
|
174
|
+
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
<div class="tags">
|
|
178
|
+
<p class="tag_title">Parameters:</p>
|
|
179
|
+
<ul class="param">
|
|
180
|
+
|
|
181
|
+
<li>
|
|
182
|
+
|
|
183
|
+
<span class='name'>locales</span>
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
—
|
|
191
|
+
<div class='inline'><p>The locales that was requested to load.</p>
|
|
192
|
+
</div>
|
|
193
|
+
|
|
194
|
+
</li>
|
|
122
195
|
|
|
196
|
+
<li>
|
|
197
|
+
|
|
198
|
+
<span class='name'>path</span>
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
<span class='type'>(<tt><span class='object_link'><a href="../String.html" title="Lazier::String (module)">String</a></span></tt>)</span>
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
—
|
|
206
|
+
<div class='inline'><p>The path where was request to search for translations.</p>
|
|
207
|
+
</div>
|
|
208
|
+
|
|
209
|
+
</li>
|
|
210
|
+
|
|
211
|
+
</ul>
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
</div><table class="source_code">
|
|
215
|
+
<tr>
|
|
216
|
+
<td>
|
|
217
|
+
<pre class="lines">
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
20
|
|
221
|
+
21
|
|
222
|
+
22</pre>
|
|
223
|
+
</td>
|
|
224
|
+
<td>
|
|
225
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/exceptions.rb', line 20</span>
|
|
226
|
+
|
|
227
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_locales'>locales</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
|
228
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unable to load any of the following translation in </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path'>path</span><span class='rbrace'>}</span><span class='tstring_content'>: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_locales'>locales</span><span class='period'>.</span><span class='id identifier rubyid_to_json'>to_json</span><span class='rbrace'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
229
|
+
<span class='kw'>end</span></pre>
|
|
230
|
+
</td>
|
|
231
|
+
</tr>
|
|
232
|
+
</table>
|
|
233
|
+
</div>
|
|
234
|
+
|
|
235
|
+
</div>
|
|
236
|
+
|
|
123
237
|
|
|
124
238
|
</div>
|
|
125
239
|
|
|
126
240
|
<div id="footer">
|
|
127
|
-
Generated on
|
|
241
|
+
Generated on Mon Feb 4 15:02:17 2013 by
|
|
128
242
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
129
243
|
0.8.3 (ruby-1.9.3).
|
|
130
244
|
</div>
|
data/doc/Lazier/Hash.html
CHANGED
|
@@ -384,7 +384,7 @@
|
|
|
384
384
|
</div>
|
|
385
385
|
|
|
386
386
|
<div id="footer">
|
|
387
|
-
Generated on
|
|
387
|
+
Generated on Mon Feb 4 15:02:16 2013 by
|
|
388
388
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
389
389
|
0.8.3 (ruby-1.9.3).
|
|
390
390
|
</div>
|
data/doc/Lazier/I18n.html
CHANGED
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
</div>
|
|
406
406
|
|
|
407
407
|
<div id="footer">
|
|
408
|
-
Generated on
|
|
408
|
+
Generated on Mon Feb 4 15:02:16 2013 by
|
|
409
409
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
410
410
|
0.8.3 (ruby-1.9.3).
|
|
411
411
|
</div>
|
data/doc/Lazier/Math.html
CHANGED
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
</div>
|
|
122
122
|
|
|
123
123
|
<div id="footer">
|
|
124
|
-
Generated on
|
|
124
|
+
Generated on Mon Feb 4 15:02:16 2013 by
|
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
126
126
|
0.8.3 (ruby-1.9.3).
|
|
127
127
|
</div>
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
</div>
|
|
322
322
|
|
|
323
323
|
<div id="footer">
|
|
324
|
-
Generated on
|
|
324
|
+
Generated on Mon Feb 4 15:02:16 2013 by
|
|
325
325
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
326
326
|
0.8.3 (ruby-1.9.3).
|
|
327
327
|
</div>
|
data/doc/Lazier/Object.html
CHANGED
|
@@ -1586,7 +1586,7 @@
|
|
|
1586
1586
|
</div>
|
|
1587
1587
|
|
|
1588
1588
|
<div id="footer">
|
|
1589
|
-
Generated on
|
|
1589
|
+
Generated on Mon Feb 4 15:02:16 2013 by
|
|
1590
1590
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1591
1591
|
0.8.3 (ruby-1.9.3).
|
|
1592
1592
|
</div>
|
data/doc/Lazier/Pathname.html
CHANGED
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
</div>
|
|
217
217
|
|
|
218
218
|
<div id="footer">
|
|
219
|
-
Generated on
|
|
219
|
+
Generated on Mon Feb 4 15:02:16 2013 by
|
|
220
220
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
221
221
|
0.8.3 (ruby-1.9.3).
|
|
222
222
|
</div>
|
data/doc/Lazier/Settings.html
CHANGED
|
@@ -2496,7 +2496,7 @@
|
|
|
2496
2496
|
</div>
|
|
2497
2497
|
|
|
2498
2498
|
<div id="footer">
|
|
2499
|
-
Generated on
|
|
2499
|
+
Generated on Mon Feb 4 15:02:17 2013 by
|
|
2500
2500
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
2501
2501
|
0.8.3 (ruby-1.9.3).
|
|
2502
2502
|
</div>
|
data/doc/Lazier/String.html
CHANGED
|
@@ -462,7 +462,7 @@
|
|
|
462
462
|
</div>
|
|
463
463
|
|
|
464
464
|
<div id="footer">
|
|
465
|
-
Generated on
|
|
465
|
+
Generated on Mon Feb 4 15:02:16 2013 by
|
|
466
466
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
467
467
|
0.8.3 (ruby-1.9.3).
|
|
468
468
|
</div>
|
data/doc/Lazier/TimeZone.html
CHANGED
|
@@ -1697,7 +1697,7 @@
|
|
|
1697
1697
|
</div>
|
|
1698
1698
|
|
|
1699
1699
|
<div id="footer">
|
|
1700
|
-
Generated on
|
|
1700
|
+
Generated on Mon Feb 4 15:02:17 2013 by
|
|
1701
1701
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1702
1702
|
0.8.3 (ruby-1.9.3).
|
|
1703
1703
|
</div>
|
|
@@ -1022,7 +1022,7 @@
|
|
|
1022
1022
|
</div>
|
|
1023
1023
|
|
|
1024
1024
|
<div id="footer">
|
|
1025
|
-
Generated on
|
|
1025
|
+
Generated on Mon Feb 4 15:02:17 2013 by
|
|
1026
1026
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1027
1027
|
0.8.3 (ruby-1.9.3).
|
|
1028
1028
|
</div>
|
data/doc/Lazier/Version.html
CHANGED
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
|
|
150
150
|
</div>
|
|
151
151
|
</dt>
|
|
152
|
-
<dd><pre class="code"><span class='int'>
|
|
152
|
+
<dd><pre class="code"><span class='int'>1</span></pre></dd>
|
|
153
153
|
|
|
154
154
|
<dt id="STRING-constant" class="">STRING =
|
|
155
155
|
<div class="docstring">
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
</div>
|
|
181
181
|
|
|
182
182
|
<div id="footer">
|
|
183
|
-
Generated on
|
|
183
|
+
Generated on Mon Feb 4 15:02:16 2013 by
|
|
184
184
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
185
185
|
0.8.3 (ruby-1.9.3).
|
|
186
186
|
</div>
|
data/doc/_index.html
CHANGED
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
</div>
|
|
320
320
|
|
|
321
321
|
<div id="footer">
|
|
322
|
-
Generated on
|
|
322
|
+
Generated on Mon Feb 4 15:02:16 2013 by
|
|
323
323
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
324
324
|
0.8.3 (ruby-1.9.3).
|
|
325
325
|
</div>
|
data/doc/file.README.html
CHANGED
|
@@ -102,7 +102,7 @@ See documentation for more informations.</p>
|
|
|
102
102
|
</div></div>
|
|
103
103
|
|
|
104
104
|
<div id="footer">
|
|
105
|
-
Generated on
|
|
105
|
+
Generated on Mon Feb 4 15:02:16 2013 by
|
|
106
106
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
107
107
|
0.8.3 (ruby-1.9.3).
|
|
108
108
|
</div>
|
data/doc/index.html
CHANGED
|
@@ -102,7 +102,7 @@ See documentation for more informations.</p>
|
|
|
102
102
|
</div></div>
|
|
103
103
|
|
|
104
104
|
<div id="footer">
|
|
105
|
-
Generated on
|
|
105
|
+
Generated on Mon Feb 4 15:02:16 2013 by
|
|
106
106
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
107
107
|
0.8.3 (ruby-1.9.3).
|
|
108
108
|
</div>
|
data/doc/method_list.html
CHANGED
|
@@ -215,17 +215,17 @@
|
|
|
215
215
|
|
|
216
216
|
|
|
217
217
|
<li class="r2 ">
|
|
218
|
-
<span class='object_link'><a href="Lazier/
|
|
218
|
+
<span class='object_link'><a href="Lazier/Settings.html#format_number-instance_method" title="Lazier::Settings#format_number (method)">#format_number</a></span>
|
|
219
219
|
|
|
220
|
-
<small>Lazier::
|
|
220
|
+
<small>Lazier::Settings</small>
|
|
221
221
|
|
|
222
222
|
</li>
|
|
223
223
|
|
|
224
224
|
|
|
225
225
|
<li class="r1 ">
|
|
226
|
-
<span class='object_link'><a href="Lazier/
|
|
226
|
+
<span class='object_link'><a href="Lazier/Object.html#format_number-instance_method" title="Lazier::Object#format_number (method)">#format_number</a></span>
|
|
227
227
|
|
|
228
|
-
<small>Lazier::
|
|
228
|
+
<small>Lazier::Object</small>
|
|
229
229
|
|
|
230
230
|
</li>
|
|
231
231
|
|
|
@@ -287,6 +287,14 @@
|
|
|
287
287
|
|
|
288
288
|
|
|
289
289
|
<li class="r1 ">
|
|
290
|
+
<span class='object_link'><a href="Lazier/Exceptions/MissingTranslation.html#initialize-instance_method" title="Lazier::Exceptions::MissingTranslation#initialize (method)">#initialize</a></span>
|
|
291
|
+
|
|
292
|
+
<small>Lazier::Exceptions::MissingTranslation</small>
|
|
293
|
+
|
|
294
|
+
</li>
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
<li class="r2 ">
|
|
290
298
|
<span class='object_link'><a href="Lazier/Settings.html#instance-class_method" title="Lazier::Settings.instance (method)">instance</a></span>
|
|
291
299
|
|
|
292
300
|
<small>Lazier::Settings</small>
|
|
@@ -294,7 +302,7 @@
|
|
|
294
302
|
</li>
|
|
295
303
|
|
|
296
304
|
|
|
297
|
-
<li class="
|
|
305
|
+
<li class="r1 ">
|
|
298
306
|
<span class='object_link'><a href="Lazier/Object.html#is_boolean%3F-instance_method" title="Lazier::Object#is_boolean? (method)">#is_boolean?</a></span>
|
|
299
307
|
|
|
300
308
|
<small>Lazier::Object</small>
|
|
@@ -302,7 +310,7 @@
|
|
|
302
310
|
</li>
|
|
303
311
|
|
|
304
312
|
|
|
305
|
-
<li class="
|
|
313
|
+
<li class="r2 ">
|
|
306
314
|
<span class='object_link'><a href="Lazier/Object.html#is_float%3F-instance_method" title="Lazier::Object#is_float? (method)">#is_float?</a></span>
|
|
307
315
|
|
|
308
316
|
<small>Lazier::Object</small>
|
|
@@ -310,7 +318,7 @@
|
|
|
310
318
|
</li>
|
|
311
319
|
|
|
312
320
|
|
|
313
|
-
<li class="
|
|
321
|
+
<li class="r1 ">
|
|
314
322
|
<span class='object_link'><a href="Lazier/Object.html#is_integer%3F-instance_method" title="Lazier::Object#is_integer? (method)">#is_integer?</a></span>
|
|
315
323
|
|
|
316
324
|
<small>Lazier::Object</small>
|
|
@@ -318,7 +326,7 @@
|
|
|
318
326
|
</li>
|
|
319
327
|
|
|
320
328
|
|
|
321
|
-
<li class="
|
|
329
|
+
<li class="r2 ">
|
|
322
330
|
<span class='object_link'><a href="Lazier/Object.html#is_number%3F-instance_method" title="Lazier::Object#is_number? (method)">#is_number?</a></span>
|
|
323
331
|
|
|
324
332
|
<small>Lazier::Object</small>
|
|
@@ -326,7 +334,7 @@
|
|
|
326
334
|
</li>
|
|
327
335
|
|
|
328
336
|
|
|
329
|
-
<li class="
|
|
337
|
+
<li class="r1 ">
|
|
330
338
|
<span class='object_link'><a href="Lazier/DateTime/ClassMethods.html#is_valid%3F-instance_method" title="Lazier::DateTime::ClassMethods#is_valid? (method)">#is_valid?</a></span>
|
|
331
339
|
|
|
332
340
|
<small>Lazier::DateTime::ClassMethods</small>
|
|
@@ -334,7 +342,7 @@
|
|
|
334
342
|
</li>
|
|
335
343
|
|
|
336
344
|
|
|
337
|
-
<li class="
|
|
345
|
+
<li class="r2 ">
|
|
338
346
|
<span class='object_link'><a href="Lazier/TimeZone/ClassMethods.html#list_all-instance_method" title="Lazier::TimeZone::ClassMethods#list_all (method)">#list_all</a></span>
|
|
339
347
|
|
|
340
348
|
<small>Lazier::TimeZone::ClassMethods</small>
|
|
@@ -342,7 +350,7 @@
|
|
|
342
350
|
</li>
|
|
343
351
|
|
|
344
352
|
|
|
345
|
-
<li class="
|
|
353
|
+
<li class="r1 ">
|
|
346
354
|
<span class='object_link'><a href="Lazier/DateTime/ClassMethods.html#list_timezones-instance_method" title="Lazier::DateTime::ClassMethods#list_timezones (method)">#list_timezones</a></span>
|
|
347
355
|
|
|
348
356
|
<small>Lazier::DateTime::ClassMethods</small>
|
|
@@ -350,7 +358,7 @@
|
|
|
350
358
|
</li>
|
|
351
359
|
|
|
352
360
|
|
|
353
|
-
<li class="
|
|
361
|
+
<li class="r2 ">
|
|
354
362
|
<span class='object_link'><a href="Lazier.html#load%21-class_method" title="Lazier.load! (method)">load!</a></span>
|
|
355
363
|
|
|
356
364
|
<small>Lazier</small>
|
|
@@ -358,7 +366,7 @@
|
|
|
358
366
|
</li>
|
|
359
367
|
|
|
360
368
|
|
|
361
|
-
<li class="
|
|
369
|
+
<li class="r1 ">
|
|
362
370
|
<span class='object_link'><a href="Lazier.html#load_boolean-class_method" title="Lazier.load_boolean (method)">load_boolean</a></span>
|
|
363
371
|
|
|
364
372
|
<small>Lazier</small>
|
|
@@ -366,7 +374,7 @@
|
|
|
366
374
|
</li>
|
|
367
375
|
|
|
368
376
|
|
|
369
|
-
<li class="
|
|
377
|
+
<li class="r2 ">
|
|
370
378
|
<span class='object_link'><a href="Lazier.html#load_datetime-class_method" title="Lazier.load_datetime (method)">load_datetime</a></span>
|
|
371
379
|
|
|
372
380
|
<small>Lazier</small>
|
|
@@ -374,7 +382,7 @@
|
|
|
374
382
|
</li>
|
|
375
383
|
|
|
376
384
|
|
|
377
|
-
<li class="
|
|
385
|
+
<li class="r1 ">
|
|
378
386
|
<span class='object_link'><a href="Lazier.html#load_hash-class_method" title="Lazier.load_hash (method)">load_hash</a></span>
|
|
379
387
|
|
|
380
388
|
<small>Lazier</small>
|
|
@@ -382,7 +390,7 @@
|
|
|
382
390
|
</li>
|
|
383
391
|
|
|
384
392
|
|
|
385
|
-
<li class="
|
|
393
|
+
<li class="r2 ">
|
|
386
394
|
<span class='object_link'><a href="Lazier.html#load_math-class_method" title="Lazier.load_math (method)">load_math</a></span>
|
|
387
395
|
|
|
388
396
|
<small>Lazier</small>
|
|
@@ -390,7 +398,7 @@
|
|
|
390
398
|
</li>
|
|
391
399
|
|
|
392
400
|
|
|
393
|
-
<li class="
|
|
401
|
+
<li class="r1 ">
|
|
394
402
|
<span class='object_link'><a href="Lazier.html#load_object-class_method" title="Lazier.load_object (method)">load_object</a></span>
|
|
395
403
|
|
|
396
404
|
<small>Lazier</small>
|
|
@@ -398,7 +406,7 @@
|
|
|
398
406
|
</li>
|
|
399
407
|
|
|
400
408
|
|
|
401
|
-
<li class="
|
|
409
|
+
<li class="r2 ">
|
|
402
410
|
<span class='object_link'><a href="Lazier.html#load_pathname-class_method" title="Lazier.load_pathname (method)">load_pathname</a></span>
|
|
403
411
|
|
|
404
412
|
<small>Lazier</small>
|
|
@@ -406,7 +414,7 @@
|
|
|
406
414
|
</li>
|
|
407
415
|
|
|
408
416
|
|
|
409
|
-
<li class="
|
|
417
|
+
<li class="r1 ">
|
|
410
418
|
<span class='object_link'><a href="Lazier.html#load_string-class_method" title="Lazier.load_string (method)">load_string</a></span>
|
|
411
419
|
|
|
412
420
|
<small>Lazier</small>
|
|
@@ -414,7 +422,7 @@
|
|
|
414
422
|
</li>
|
|
415
423
|
|
|
416
424
|
|
|
417
|
-
<li class="
|
|
425
|
+
<li class="r2 ">
|
|
418
426
|
<span class='object_link'><a href="Lazier/DateTime.html#local_lstrftime-instance_method" title="Lazier::DateTime#local_lstrftime (method)">#local_lstrftime</a></span>
|
|
419
427
|
|
|
420
428
|
<small>Lazier::DateTime</small>
|
|
@@ -422,7 +430,7 @@
|
|
|
422
430
|
</li>
|
|
423
431
|
|
|
424
432
|
|
|
425
|
-
<li class="
|
|
433
|
+
<li class="r1 ">
|
|
426
434
|
<span class='object_link'><a href="Lazier/DateTime.html#local_strftime-instance_method" title="Lazier::DateTime#local_strftime (method)">#local_strftime</a></span>
|
|
427
435
|
|
|
428
436
|
<small>Lazier::DateTime</small>
|
|
@@ -430,7 +438,7 @@
|
|
|
430
438
|
</li>
|
|
431
439
|
|
|
432
440
|
|
|
433
|
-
<li class="
|
|
441
|
+
<li class="r2 ">
|
|
434
442
|
<span class='object_link'><a href="Lazier/DateTime.html#lstrftime-instance_method" title="Lazier::DateTime#lstrftime (method)">#lstrftime</a></span>
|
|
435
443
|
|
|
436
444
|
<small>Lazier::DateTime</small>
|
|
@@ -438,7 +446,7 @@
|
|
|
438
446
|
</li>
|
|
439
447
|
|
|
440
448
|
|
|
441
|
-
<li class="
|
|
449
|
+
<li class="r1 ">
|
|
442
450
|
<span class='object_link'><a href="Lazier/Math/ClassMethods.html#max-instance_method" title="Lazier::Math::ClassMethods#max (method)">#max</a></span>
|
|
443
451
|
|
|
444
452
|
<small>Lazier::Math::ClassMethods</small>
|
|
@@ -446,7 +454,7 @@
|
|
|
446
454
|
</li>
|
|
447
455
|
|
|
448
456
|
|
|
449
|
-
<li class="
|
|
457
|
+
<li class="r2 ">
|
|
450
458
|
<span class='object_link'><a href="Lazier/Hash.html#method_missing-instance_method" title="Lazier::Hash#method_missing (method)">#method_missing</a></span>
|
|
451
459
|
|
|
452
460
|
<small>Lazier::Hash</small>
|
|
@@ -454,7 +462,7 @@
|
|
|
454
462
|
</li>
|
|
455
463
|
|
|
456
464
|
|
|
457
|
-
<li class="
|
|
465
|
+
<li class="r1 ">
|
|
458
466
|
<span class='object_link'><a href="Lazier/Math/ClassMethods.html#min-instance_method" title="Lazier::Math::ClassMethods#min (method)">#min</a></span>
|
|
459
467
|
|
|
460
468
|
<small>Lazier::Math::ClassMethods</small>
|
|
@@ -462,7 +470,7 @@
|
|
|
462
470
|
</li>
|
|
463
471
|
|
|
464
472
|
|
|
465
|
-
<li class="
|
|
473
|
+
<li class="r2 ">
|
|
466
474
|
<span class='object_link'><a href="Lazier/DateTime/ClassMethods.html#months-instance_method" title="Lazier::DateTime::ClassMethods#months (method)">#months</a></span>
|
|
467
475
|
|
|
468
476
|
<small>Lazier::DateTime::ClassMethods</small>
|
|
@@ -470,7 +478,7 @@
|
|
|
470
478
|
</li>
|
|
471
479
|
|
|
472
480
|
|
|
473
|
-
<li class="
|
|
481
|
+
<li class="r1 ">
|
|
474
482
|
<span class='object_link'><a href="Lazier/Object.html#normalize_number-instance_method" title="Lazier::Object#normalize_number (method)">#normalize_number</a></span>
|
|
475
483
|
|
|
476
484
|
<small>Lazier::Object</small>
|
|
@@ -478,7 +486,7 @@
|
|
|
478
486
|
</li>
|
|
479
487
|
|
|
480
488
|
|
|
481
|
-
<li class="
|
|
489
|
+
<li class="r2 ">
|
|
482
490
|
<span class='object_link'><a href="Lazier/TimeZone.html#offset-instance_method" title="Lazier::TimeZone#offset (method)">#offset</a></span>
|
|
483
491
|
|
|
484
492
|
<small>Lazier::TimeZone</small>
|
|
@@ -486,7 +494,7 @@
|
|
|
486
494
|
</li>
|
|
487
495
|
|
|
488
496
|
|
|
489
|
-
<li class="
|
|
497
|
+
<li class="r1 ">
|
|
490
498
|
<span class='object_link'><a href="Lazier/DateTime.html#padded_month-instance_method" title="Lazier::DateTime#padded_month (method)">#padded_month</a></span>
|
|
491
499
|
|
|
492
500
|
<small>Lazier::DateTime</small>
|
|
@@ -494,7 +502,7 @@
|
|
|
494
502
|
</li>
|
|
495
503
|
|
|
496
504
|
|
|
497
|
-
<li class="
|
|
505
|
+
<li class="r2 ">
|
|
498
506
|
<span class='object_link'><a href="Lazier/TimeZone/ClassMethods.html#parameterize_zone-instance_method" title="Lazier::TimeZone::ClassMethods#parameterize_zone (method)">#parameterize_zone</a></span>
|
|
499
507
|
|
|
500
508
|
<small>Lazier::TimeZone::ClassMethods</small>
|
|
@@ -502,7 +510,7 @@
|
|
|
502
510
|
</li>
|
|
503
511
|
|
|
504
512
|
|
|
505
|
-
<li class="
|
|
513
|
+
<li class="r1 ">
|
|
506
514
|
<span class='object_link'><a href="Lazier/DateTime/ClassMethods.html#parameterize_zone-instance_method" title="Lazier::DateTime::ClassMethods#parameterize_zone (method)">#parameterize_zone</a></span>
|
|
507
515
|
|
|
508
516
|
<small>Lazier::DateTime::ClassMethods</small>
|
|
@@ -510,23 +518,23 @@
|
|
|
510
518
|
</li>
|
|
511
519
|
|
|
512
520
|
|
|
513
|
-
<li class="
|
|
514
|
-
<span class='object_link'><a href="Lazier/
|
|
521
|
+
<li class="r2 ">
|
|
522
|
+
<span class='object_link'><a href="Lazier/DateTime/ClassMethods.html#rationalize_offset-instance_method" title="Lazier::DateTime::ClassMethods#rationalize_offset (method)">#rationalize_offset</a></span>
|
|
515
523
|
|
|
516
|
-
<small>Lazier::
|
|
524
|
+
<small>Lazier::DateTime::ClassMethods</small>
|
|
517
525
|
|
|
518
526
|
</li>
|
|
519
527
|
|
|
520
528
|
|
|
521
|
-
<li class="
|
|
522
|
-
<span class='object_link'><a href="Lazier/
|
|
529
|
+
<li class="r1 ">
|
|
530
|
+
<span class='object_link'><a href="Lazier/TimeZone/ClassMethods.html#rationalize_offset-instance_method" title="Lazier::TimeZone::ClassMethods#rationalize_offset (method)">#rationalize_offset</a></span>
|
|
523
531
|
|
|
524
|
-
<small>Lazier::
|
|
532
|
+
<small>Lazier::TimeZone::ClassMethods</small>
|
|
525
533
|
|
|
526
534
|
</li>
|
|
527
535
|
|
|
528
536
|
|
|
529
|
-
<li class="
|
|
537
|
+
<li class="r2 ">
|
|
530
538
|
<span class='object_link'><a href="Lazier/String.html#remove_accents-instance_method" title="Lazier::String#remove_accents (method)">#remove_accents</a></span>
|
|
531
539
|
|
|
532
540
|
<small>Lazier::String</small>
|
|
@@ -534,7 +542,7 @@
|
|
|
534
542
|
</li>
|
|
535
543
|
|
|
536
544
|
|
|
537
|
-
<li class="
|
|
545
|
+
<li class="r1 ">
|
|
538
546
|
<span class='object_link'><a href="Lazier/String.html#replace_ampersands-instance_method" title="Lazier::String#replace_ampersands (method)">#replace_ampersands</a></span>
|
|
539
547
|
|
|
540
548
|
<small>Lazier::String</small>
|
|
@@ -542,7 +550,7 @@
|
|
|
542
550
|
</li>
|
|
543
551
|
|
|
544
552
|
|
|
545
|
-
<li class="
|
|
553
|
+
<li class="r2 ">
|
|
546
554
|
<span class='object_link'><a href="Lazier/Hash.html#respond_to%3F-instance_method" title="Lazier::Hash#respond_to? (method)">#respond_to?</a></span>
|
|
547
555
|
|
|
548
556
|
<small>Lazier::Hash</small>
|
|
@@ -550,7 +558,7 @@
|
|
|
550
558
|
</li>
|
|
551
559
|
|
|
552
560
|
|
|
553
|
-
<li class="
|
|
561
|
+
<li class="r1 ">
|
|
554
562
|
<span class='object_link'><a href="Lazier/Object.html#round_to_precision-instance_method" title="Lazier::Object#round_to_precision (method)">#round_to_precision</a></span>
|
|
555
563
|
|
|
556
564
|
<small>Lazier::Object</small>
|
|
@@ -558,7 +566,7 @@
|
|
|
558
566
|
</li>
|
|
559
567
|
|
|
560
568
|
|
|
561
|
-
<li class="
|
|
569
|
+
<li class="r2 ">
|
|
562
570
|
<span class='object_link'><a href="Lazier.html#settings-class_method" title="Lazier.settings (method)">settings</a></span>
|
|
563
571
|
|
|
564
572
|
<small>Lazier</small>
|
|
@@ -566,7 +574,7 @@
|
|
|
566
574
|
</li>
|
|
567
575
|
|
|
568
576
|
|
|
569
|
-
<li class="
|
|
577
|
+
<li class="r1 ">
|
|
570
578
|
<span class='object_link'><a href="Lazier/Settings.html#setup-instance_method" title="Lazier::Settings#setup (method)">#setup</a></span>
|
|
571
579
|
|
|
572
580
|
<small>Lazier::Settings</small>
|
|
@@ -574,7 +582,7 @@
|
|
|
574
582
|
</li>
|
|
575
583
|
|
|
576
584
|
|
|
577
|
-
<li class="
|
|
585
|
+
<li class="r2 ">
|
|
578
586
|
<span class='object_link'><a href="Lazier/Settings.html#setup_boolean_names-instance_method" title="Lazier::Settings#setup_boolean_names (method)">#setup_boolean_names</a></span>
|
|
579
587
|
|
|
580
588
|
<small>Lazier::Settings</small>
|
|
@@ -582,7 +590,7 @@
|
|
|
582
590
|
</li>
|
|
583
591
|
|
|
584
592
|
|
|
585
|
-
<li class="
|
|
593
|
+
<li class="r1 ">
|
|
586
594
|
<span class='object_link'><a href="Lazier/Settings.html#setup_date_formats-instance_method" title="Lazier::Settings#setup_date_formats (method)">#setup_date_formats</a></span>
|
|
587
595
|
|
|
588
596
|
<small>Lazier::Settings</small>
|
|
@@ -590,7 +598,7 @@
|
|
|
590
598
|
</li>
|
|
591
599
|
|
|
592
600
|
|
|
593
|
-
<li class="
|
|
601
|
+
<li class="r2 ">
|
|
594
602
|
<span class='object_link'><a href="Lazier/Settings.html#setup_date_names-instance_method" title="Lazier::Settings#setup_date_names (method)">#setup_date_names</a></span>
|
|
595
603
|
|
|
596
604
|
<small>Lazier::Settings</small>
|
|
@@ -598,7 +606,7 @@
|
|
|
598
606
|
</li>
|
|
599
607
|
|
|
600
608
|
|
|
601
|
-
<li class="
|
|
609
|
+
<li class="r1 ">
|
|
602
610
|
<span class='object_link'><a href="Lazier/Settings.html#setup_format_number-instance_method" title="Lazier::Settings#setup_format_number (method)">#setup_format_number</a></span>
|
|
603
611
|
|
|
604
612
|
<small>Lazier::Settings</small>
|
|
@@ -606,7 +614,7 @@
|
|
|
606
614
|
</li>
|
|
607
615
|
|
|
608
616
|
|
|
609
|
-
<li class="
|
|
617
|
+
<li class="r2 ">
|
|
610
618
|
<span class='object_link'><a href="Lazier/DateTime/ClassMethods.html#timezones-instance_method" title="Lazier::DateTime::ClassMethods#timezones (method)">#timezones</a></span>
|
|
611
619
|
|
|
612
620
|
<small>Lazier::DateTime::ClassMethods</small>
|
|
@@ -614,7 +622,7 @@
|
|
|
614
622
|
</li>
|
|
615
623
|
|
|
616
624
|
|
|
617
|
-
<li class="
|
|
625
|
+
<li class="r1 ">
|
|
618
626
|
<span class='object_link'><a href="Lazier/Object.html#to_boolean-instance_method" title="Lazier::Object#to_boolean (method)">#to_boolean</a></span>
|
|
619
627
|
|
|
620
628
|
<small>Lazier::Object</small>
|
|
@@ -622,7 +630,7 @@
|
|
|
622
630
|
</li>
|
|
623
631
|
|
|
624
632
|
|
|
625
|
-
<li class="
|
|
633
|
+
<li class="r2 ">
|
|
626
634
|
<span class='object_link'><a href="Lazier/Object.html#to_float-instance_method" title="Lazier::Object#to_float (method)">#to_float</a></span>
|
|
627
635
|
|
|
628
636
|
<small>Lazier::Object</small>
|
|
@@ -630,7 +638,7 @@
|
|
|
630
638
|
</li>
|
|
631
639
|
|
|
632
640
|
|
|
633
|
-
<li class="
|
|
641
|
+
<li class="r1 ">
|
|
634
642
|
<span class='object_link'><a href="Lazier/Boolean.html#to_i-instance_method" title="Lazier::Boolean#to_i (method)">#to_i</a></span>
|
|
635
643
|
|
|
636
644
|
<small>Lazier::Boolean</small>
|
|
@@ -638,7 +646,7 @@
|
|
|
638
646
|
</li>
|
|
639
647
|
|
|
640
648
|
|
|
641
|
-
<li class="
|
|
649
|
+
<li class="r2 ">
|
|
642
650
|
<span class='object_link'><a href="Lazier/Object.html#to_integer-instance_method" title="Lazier::Object#to_integer (method)">#to_integer</a></span>
|
|
643
651
|
|
|
644
652
|
<small>Lazier::Object</small>
|
|
@@ -646,7 +654,7 @@
|
|
|
646
654
|
</li>
|
|
647
655
|
|
|
648
656
|
|
|
649
|
-
<li class="
|
|
657
|
+
<li class="r1 ">
|
|
650
658
|
<span class='object_link'><a href="Lazier/TimeZone.html#to_str-instance_method" title="Lazier::TimeZone#to_str (method)">#to_str</a></span>
|
|
651
659
|
|
|
652
660
|
<small>Lazier::TimeZone</small>
|
|
@@ -654,7 +662,7 @@
|
|
|
654
662
|
</li>
|
|
655
663
|
|
|
656
664
|
|
|
657
|
-
<li class="
|
|
665
|
+
<li class="r2 ">
|
|
658
666
|
<span class='object_link'><a href="Lazier/TimeZone.html#to_str_parameterized-instance_method" title="Lazier::TimeZone#to_str_parameterized (method)">#to_str_parameterized</a></span>
|
|
659
667
|
|
|
660
668
|
<small>Lazier::TimeZone</small>
|
|
@@ -662,7 +670,7 @@
|
|
|
662
670
|
</li>
|
|
663
671
|
|
|
664
672
|
|
|
665
|
-
<li class="
|
|
673
|
+
<li class="r1 ">
|
|
666
674
|
<span class='object_link'><a href="Lazier/TimeZone.html#to_str_with_dst-instance_method" title="Lazier::TimeZone#to_str_with_dst (method)">#to_str_with_dst</a></span>
|
|
667
675
|
|
|
668
676
|
<small>Lazier::TimeZone</small>
|
|
@@ -670,7 +678,7 @@
|
|
|
670
678
|
</li>
|
|
671
679
|
|
|
672
680
|
|
|
673
|
-
<li class="
|
|
681
|
+
<li class="r2 ">
|
|
674
682
|
<span class='object_link'><a href="Lazier/TimeZone.html#to_str_with_dst_parameterized-instance_method" title="Lazier::TimeZone#to_str_with_dst_parameterized (method)">#to_str_with_dst_parameterized</a></span>
|
|
675
683
|
|
|
676
684
|
<small>Lazier::TimeZone</small>
|
|
@@ -678,7 +686,7 @@
|
|
|
678
686
|
</li>
|
|
679
687
|
|
|
680
688
|
|
|
681
|
-
<li class="
|
|
689
|
+
<li class="r1 ">
|
|
682
690
|
<span class='object_link'><a href="Lazier/DateTime/ClassMethods.html#unparameterize_zone-instance_method" title="Lazier::DateTime::ClassMethods#unparameterize_zone (method)">#unparameterize_zone</a></span>
|
|
683
691
|
|
|
684
692
|
<small>Lazier::DateTime::ClassMethods</small>
|
|
@@ -686,7 +694,7 @@
|
|
|
686
694
|
</li>
|
|
687
695
|
|
|
688
696
|
|
|
689
|
-
<li class="
|
|
697
|
+
<li class="r2 ">
|
|
690
698
|
<span class='object_link'><a href="Lazier/TimeZone/ClassMethods.html#unparameterize_zone-instance_method" title="Lazier::TimeZone::ClassMethods#unparameterize_zone (method)">#unparameterize_zone</a></span>
|
|
691
699
|
|
|
692
700
|
<small>Lazier::TimeZone::ClassMethods</small>
|
|
@@ -694,7 +702,7 @@
|
|
|
694
702
|
</li>
|
|
695
703
|
|
|
696
704
|
|
|
697
|
-
<li class="
|
|
705
|
+
<li class="r1 ">
|
|
698
706
|
<span class='object_link'><a href="Lazier/String.html#untitleize-instance_method" title="Lazier::String#untitleize (method)">#untitleize</a></span>
|
|
699
707
|
|
|
700
708
|
<small>Lazier::String</small>
|
|
@@ -702,7 +710,7 @@
|
|
|
702
710
|
</li>
|
|
703
711
|
|
|
704
712
|
|
|
705
|
-
<li class="
|
|
713
|
+
<li class="r2 ">
|
|
706
714
|
<span class='object_link'><a href="Lazier/TimeZone.html#uses_dst%3F-instance_method" title="Lazier::TimeZone#uses_dst? (method)">#uses_dst?</a></span>
|
|
707
715
|
|
|
708
716
|
<small>Lazier::TimeZone</small>
|
|
@@ -710,7 +718,7 @@
|
|
|
710
718
|
</li>
|
|
711
719
|
|
|
712
720
|
|
|
713
|
-
<li class="
|
|
721
|
+
<li class="r1 ">
|
|
714
722
|
<span class='object_link'><a href="Lazier/DateTime.html#utc_time-instance_method" title="Lazier::DateTime#utc_time (method)">#utc_time</a></span>
|
|
715
723
|
|
|
716
724
|
<small>Lazier::DateTime</small>
|
|
@@ -718,7 +726,7 @@
|
|
|
718
726
|
</li>
|
|
719
727
|
|
|
720
728
|
|
|
721
|
-
<li class="
|
|
729
|
+
<li class="r2 ">
|
|
722
730
|
<span class='object_link'><a href="Lazier/String.html#value-instance_method" title="Lazier::String#value (method)">#value</a></span>
|
|
723
731
|
|
|
724
732
|
<small>Lazier::String</small>
|
|
@@ -726,7 +734,7 @@
|
|
|
726
734
|
</li>
|
|
727
735
|
|
|
728
736
|
|
|
729
|
-
<li class="
|
|
737
|
+
<li class="r1 ">
|
|
730
738
|
<span class='object_link'><a href="Lazier/Boolean.html#value-instance_method" title="Lazier::Boolean#value (method)">#value</a></span>
|
|
731
739
|
|
|
732
740
|
<small>Lazier::Boolean</small>
|
|
@@ -734,7 +742,7 @@
|
|
|
734
742
|
</li>
|
|
735
743
|
|
|
736
744
|
|
|
737
|
-
<li class="
|
|
745
|
+
<li class="r2 ">
|
|
738
746
|
<span class='object_link'><a href="Lazier/DateTime/ClassMethods.html#years-instance_method" title="Lazier::DateTime::ClassMethods#years (method)">#years</a></span>
|
|
739
747
|
|
|
740
748
|
<small>Lazier::DateTime::ClassMethods</small>
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
</div>
|
|
104
104
|
|
|
105
105
|
<div id="footer">
|
|
106
|
-
Generated on
|
|
106
|
+
Generated on Mon Feb 4 15:02:16 2013 by
|
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
108
108
|
0.8.3 (ruby-1.9.3).
|
|
109
109
|
</div>
|
data/lib/lazier/exceptions.rb
CHANGED
|
@@ -13,6 +13,13 @@ module Lazier
|
|
|
13
13
|
|
|
14
14
|
# This exception is raised from {I18n I18n} if no valid translation are found in the specified path.
|
|
15
15
|
class MissingTranslation < Exception
|
|
16
|
+
# Creates a new missing translation exception.
|
|
17
|
+
#
|
|
18
|
+
# @param locales [Array] The locales that was requested to load.
|
|
19
|
+
# @param path [String] The path where was request to search for translations.
|
|
20
|
+
def initialize(locales, path)
|
|
21
|
+
super("Unable to load any of the following translation in #{path}: #{locales.to_json}.")
|
|
22
|
+
end
|
|
16
23
|
end
|
|
17
24
|
end
|
|
18
25
|
end
|
data/lib/lazier/i18n.rb
CHANGED
|
@@ -38,15 +38,16 @@ module Lazier
|
|
|
38
38
|
# @return [R18n::Translation] The new translation object.
|
|
39
39
|
def i18n_load_locale(locale)
|
|
40
40
|
path = (@i18n_locales_path || "").to_s
|
|
41
|
-
locales = [locale, ENV["LANG"], R18n::I18n.system_locale].collect { |l| find_locale_in_path(l.to_s, path)}
|
|
41
|
+
locales = [locale, ENV["LANG"], R18n::I18n.system_locale].collect { |l| find_locale_in_path(l.to_s, path)}
|
|
42
|
+
locales << "en" # Add English as a fallback
|
|
43
|
+
locales = locales.uniq.compact
|
|
42
44
|
|
|
43
45
|
begin
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
raise e
|
|
46
|
+
translation = R18n::I18n.new(locales, path).t.send((@i18n_root || "").to_s)
|
|
47
|
+
raise ArgumentError if translation.is_a?(R18n::Untranslated)
|
|
48
|
+
translation
|
|
49
|
+
rescue
|
|
50
|
+
raise Lazier::Exceptions::MissingTranslation.new(locales, path)
|
|
50
51
|
end
|
|
51
52
|
end
|
|
52
53
|
|
data/lib/lazier/version.rb
CHANGED
data/spec/lazier/boolean_spec.rb
CHANGED
|
@@ -13,7 +13,6 @@ describe Lazier::DateTime do
|
|
|
13
13
|
let(:zone_without_dst) { ::ActiveSupport::TimeZone["International Date Line West"] }
|
|
14
14
|
|
|
15
15
|
before(:all) do
|
|
16
|
-
ENV["LANG"] = "en"
|
|
17
16
|
Lazier.load!
|
|
18
17
|
::Lazier::Settings.instance.i18n = :en
|
|
19
18
|
end
|
|
@@ -206,7 +205,6 @@ describe Lazier::TimeZone do
|
|
|
206
205
|
let(:zone_without_dst) { ::ActiveSupport::TimeZone["International Date Line West"] }
|
|
207
206
|
|
|
208
207
|
before(:all) do
|
|
209
|
-
ENV["LANG"] = "en"
|
|
210
208
|
::Lazier::Settings.instance(true)
|
|
211
209
|
::Lazier::Settings.instance.i18n = :en
|
|
212
210
|
::Lazier.load!
|
data/spec/lazier/hash_spec.rb
CHANGED
data/spec/lazier/i18n_spec.rb
CHANGED
|
@@ -14,10 +14,6 @@ describe Lazier::I18n do
|
|
|
14
14
|
let(:object) { Container.new }
|
|
15
15
|
let(:root_path) { ::File.absolute_path(::Pathname.new(::File.dirname(__FILE__)).to_s + "/../../locales/") }
|
|
16
16
|
|
|
17
|
-
before(:each) do
|
|
18
|
-
ENV["LANG"] = "en"
|
|
19
|
-
end
|
|
20
|
-
|
|
21
17
|
describe "#i18n_setup" do
|
|
22
18
|
it "should set the root and the path" do
|
|
23
19
|
object.i18n_setup("ROOT", root_path)
|
|
@@ -45,13 +41,13 @@ describe Lazier::I18n do
|
|
|
45
41
|
|
|
46
42
|
describe "#i18n_load_locale" do
|
|
47
43
|
it "should set using system locale if called without arguments" do
|
|
48
|
-
object.i18n_setup("
|
|
44
|
+
object.i18n_setup("lazier", root_path)
|
|
49
45
|
R18n::I18n.should_receive(:new).with([ENV["LANG"], R18n::I18n.system_locale].compact.uniq, root_path).and_call_original
|
|
50
46
|
object.i18n = nil
|
|
51
47
|
end
|
|
52
48
|
|
|
53
49
|
it "should set the requested locale" do
|
|
54
|
-
object.i18n_setup("
|
|
50
|
+
object.i18n_setup("lazier", root_path)
|
|
55
51
|
R18n::I18n.should_receive(:new).with(["it", ENV["LANG"], R18n::I18n.system_locale].compact.uniq, root_path).and_call_original
|
|
56
52
|
object.i18n = :it
|
|
57
53
|
end
|
|
@@ -66,7 +62,7 @@ describe Lazier::I18n do
|
|
|
66
62
|
end
|
|
67
63
|
|
|
68
64
|
it "should only pass valid translations" do
|
|
69
|
-
object.i18n_setup("
|
|
65
|
+
object.i18n_setup("lazier", root_path)
|
|
70
66
|
R18n::I18n.should_receive(:new).with([ENV["LANG"], R18n::I18n.system_locale].compact.uniq, root_path).and_call_original
|
|
71
67
|
object.i18n = "INVALID"
|
|
72
68
|
end
|
|
@@ -74,7 +70,7 @@ describe Lazier::I18n do
|
|
|
74
70
|
it "should raise an exception if no valid translation are found" do
|
|
75
71
|
ENV["LANG"] = "INVALID"
|
|
76
72
|
R18n::I18n.stub(:system_locale).and_return("INVALID")
|
|
77
|
-
object.i18n_setup("ROOT",
|
|
73
|
+
object.i18n_setup("ROOT", "/dev/")
|
|
78
74
|
expect { object.i18n = "INVALID" }.to raise_error(Lazier::Exceptions::MissingTranslation)
|
|
79
75
|
end
|
|
80
76
|
end
|
data/spec/lazier/math_spec.rb
CHANGED
data/spec/lazier/object_spec.rb
CHANGED
data/spec/lazier/string_spec.rb
CHANGED