lazier 4.2.0 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -8
- data/.rubocop.yml +48 -3
- data/.travis.yml +5 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +9 -8
- data/README.md +0 -1
- data/Rakefile +20 -4
- data/doc/Lazier.html +214 -3
- data/doc/Lazier/Boolean.html +2 -2
- data/doc/Lazier/Configuration.html +3 -3
- data/doc/Lazier/DateTime.html +16 -16
- data/doc/Lazier/DateTime/ClassMethods.html +6 -6
- data/doc/Lazier/Exceptions.html +2 -2
- data/doc/Lazier/Exceptions/Debug.html +2 -2
- data/doc/Lazier/Exceptions/MissingTranslation.html +2 -2
- data/doc/Lazier/Exceptions/TranslationExceptionHandler.html +2 -2
- data/doc/Lazier/Hash.html +3 -3
- data/doc/Lazier/I18n.html +11 -11
- data/doc/Lazier/Math.html +2 -2
- data/doc/Lazier/Math/ClassMethods.html +2 -2
- data/doc/Lazier/Object.html +16 -22
- data/doc/Lazier/Pathname.html +2 -2
- data/doc/Lazier/Settings.html +2 -2
- data/doc/Lazier/String.html +2 -2
- data/doc/Lazier/TimeZone.html +42 -42
- data/doc/Lazier/TimeZone/ClassMethods.html +2 -2
- data/doc/Lazier/Version.html +3 -3
- data/doc/_index.html +6 -6
- data/doc/file.README.html +3 -4
- data/doc/index.html +3 -4
- data/doc/method_list.html +106 -88
- data/doc/top-level-namespace.html +2 -2
- data/lazier.gemspec +2 -2
- data/lib/lazier.rb +0 -2
- data/lib/lazier/configuration.rb +1 -1
- data/lib/lazier/datetime.rb +10 -5
- data/lib/lazier/hash.rb +1 -1
- data/lib/lazier/i18n.rb +2 -2
- data/lib/lazier/object.rb +18 -10
- data/lib/lazier/timezone.rb +8 -8
- data/lib/lazier/version.rb +1 -1
- data/spec/spec_helper.rb +17 -0
- metadata +6 -8
- data/spec/coverage_helper.rb +0 -19
data/doc/Lazier/Boolean.html
CHANGED
@@ -288,9 +288,9 @@
|
|
288
288
|
</div>
|
289
289
|
|
290
290
|
<div id="footer">
|
291
|
-
Generated on
|
291
|
+
Generated on Tue Mar 29 11:11:36 2016 by
|
292
292
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
293
|
-
0.8.7.6 (ruby-2.
|
293
|
+
0.8.7.6 (ruby-2.3.0).
|
294
294
|
</div>
|
295
295
|
|
296
296
|
</body>
|
@@ -363,7 +363,7 @@
|
|
363
363
|
|
364
364
|
</span>
|
365
365
|
|
366
|
-
— <div class='inline'><p>
|
366
|
+
— <div class='inline'><p>Set the value as required for this property, this will raise an error if the value is unset when creating or editing.</p>
|
367
367
|
</div>
|
368
368
|
|
369
369
|
</li>
|
@@ -422,9 +422,9 @@
|
|
422
422
|
</div>
|
423
423
|
|
424
424
|
<div id="footer">
|
425
|
-
Generated on
|
425
|
+
Generated on Tue Mar 29 11:11:37 2016 by
|
426
426
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
427
|
-
0.8.7.6 (ruby-2.
|
427
|
+
0.8.7.6 (ruby-2.3.0).
|
428
428
|
</div>
|
429
429
|
|
430
430
|
</body>
|
data/doc/Lazier/DateTime.html
CHANGED
@@ -302,14 +302,14 @@
|
|
302
302
|
<pre class="lines">
|
303
303
|
|
304
304
|
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
305
|
+
171
|
306
|
+
172
|
307
|
+
173
|
308
|
+
174
|
309
|
+
175</pre>
|
310
310
|
</td>
|
311
311
|
<td>
|
312
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line
|
312
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 171</span>
|
313
313
|
|
314
314
|
<span class='kw'>def</span> <span class='id identifier rubyid_format'>format</span><span class='lparen'>(</span><span class='id identifier rubyid_format'>format</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>custom:</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='label'>change_time_zone:</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
315
315
|
<span class='id identifier rubyid_target'>target</span> <span class='op'>=</span> <span class='id identifier rubyid_change_time_zone'>change_time_zone</span> <span class='op'>&&</span> <span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:in_time_zone</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_in_time_zone'>in_time_zone</span> <span class='op'>:</span> <span class='kw'>self</span>
|
@@ -390,12 +390,12 @@
|
|
390
390
|
<pre class="lines">
|
391
391
|
|
392
392
|
|
393
|
-
|
394
|
-
|
395
|
-
|
393
|
+
153
|
394
|
+
154
|
395
|
+
155</pre>
|
396
396
|
</td>
|
397
397
|
<td>
|
398
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line
|
398
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 153</span>
|
399
399
|
|
400
400
|
<span class='kw'>def</span> <span class='id identifier rubyid_months_since_year'>months_since_year</span><span class='lparen'>(</span><span class='id identifier rubyid_base'>base</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
401
401
|
<span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span> <span class='op'>-</span> <span class='lparen'>(</span><span class='id identifier rubyid_base'>base</span> <span class='op'>||</span> <span class='op'>::</span><span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_today'>today</span><span class='period'>.</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='op'>*</span> <span class='int'>12</span> <span class='op'>+</span> <span class='id identifier rubyid_month'>month</span>
|
@@ -447,12 +447,12 @@
|
|
447
447
|
<pre class="lines">
|
448
448
|
|
449
449
|
|
450
|
-
|
451
|
-
|
452
|
-
|
450
|
+
160
|
451
|
+
161
|
452
|
+
162</pre>
|
453
453
|
</td>
|
454
454
|
<td>
|
455
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line
|
455
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 160</span>
|
456
456
|
|
457
457
|
<span class='kw'>def</span> <span class='id identifier rubyid_padded_month'>padded_month</span>
|
458
458
|
<span class='id identifier rubyid_month'>month</span><span class='period'>.</span><span class='id identifier rubyid_indexize'>indexize</span>
|
@@ -467,9 +467,9 @@
|
|
467
467
|
</div>
|
468
468
|
|
469
469
|
<div id="footer">
|
470
|
-
Generated on
|
470
|
+
Generated on Tue Mar 29 11:11:36 2016 by
|
471
471
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
472
|
-
0.8.7.6 (ruby-2.
|
472
|
+
0.8.7.6 (ruby-2.3.0).
|
473
473
|
</div>
|
474
474
|
|
475
475
|
</body>
|
@@ -419,9 +419,9 @@
|
|
419
419
|
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 18</span>
|
420
420
|
|
421
421
|
<span class='kw'>def</span> <span class='id identifier rubyid_days'>days</span><span class='lparen'>(</span><span class='id identifier rubyid_short'>short</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
422
|
-
<span class='op'>::</span><span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_settings'>settings</span><span class='period'>.</span><span class='id identifier rubyid_date_names'>date_names</span><span class='lbracket'>[</span><span class='id identifier rubyid_short'>short</span> <span class='op'>?</span> <span class='symbol'>:short_days</span> <span class='op'>:</span> <span class='symbol'>:long_days</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='period'>.</span><span class='id identifier rubyid_with_index'>with_index</span> <span class='
|
422
|
+
<span class='op'>::</span><span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_settings'>settings</span><span class='period'>.</span><span class='id identifier rubyid_date_names'>date_names</span><span class='lbracket'>[</span><span class='id identifier rubyid_short'>short</span> <span class='op'>?</span> <span class='symbol'>:short_days</span> <span class='op'>:</span> <span class='symbol'>:long_days</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='period'>.</span><span class='id identifier rubyid_with_index'>with_index</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='id identifier rubyid_index'>index</span><span class='op'>|</span>
|
423
423
|
<span class='lbrace'>{</span><span class='label'>value:</span> <span class='lparen'>(</span><span class='id identifier rubyid_index'>index</span> <span class='op'>+</span> <span class='int'>1</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='comma'>,</span> <span class='label'>label:</span> <span class='id identifier rubyid_label'>label</span><span class='rbrace'>}</span>
|
424
|
-
<span class='
|
424
|
+
<span class='kw'>end</span>
|
425
425
|
<span class='kw'>end</span></pre>
|
426
426
|
</td>
|
427
427
|
</tr>
|
@@ -611,9 +611,9 @@
|
|
611
611
|
<pre class="code"><span class="info file"># File 'lib/lazier/datetime.rb', line 29</span>
|
612
612
|
|
613
613
|
<span class='kw'>def</span> <span class='id identifier rubyid_months'>months</span><span class='lparen'>(</span><span class='id identifier rubyid_short'>short</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
614
|
-
<span class='op'>::</span><span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_settings'>settings</span><span class='period'>.</span><span class='id identifier rubyid_date_names'>date_names</span><span class='lbracket'>[</span><span class='id identifier rubyid_short'>short</span> <span class='op'>?</span> <span class='symbol'>:short_months</span> <span class='op'>:</span> <span class='symbol'>:long_months</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='period'>.</span><span class='id identifier rubyid_with_index'>with_index</span> <span class='
|
614
|
+
<span class='op'>::</span><span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_settings'>settings</span><span class='period'>.</span><span class='id identifier rubyid_date_names'>date_names</span><span class='lbracket'>[</span><span class='id identifier rubyid_short'>short</span> <span class='op'>?</span> <span class='symbol'>:short_months</span> <span class='op'>:</span> <span class='symbol'>:long_months</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='period'>.</span><span class='id identifier rubyid_with_index'>with_index</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='id identifier rubyid_index'>index</span><span class='op'>|</span>
|
615
615
|
<span class='lbrace'>{</span><span class='label'>value:</span> <span class='lparen'>(</span><span class='id identifier rubyid_index'>index</span> <span class='op'>+</span> <span class='int'>1</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_rjust'>rjust</span><span class='lparen'>(</span><span class='int'>2</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='label'>label:</span> <span class='id identifier rubyid_label'>label</span><span class='rbrace'>}</span>
|
616
|
-
<span class='
|
616
|
+
<span class='kw'>end</span>
|
617
617
|
<span class='kw'>end</span></pre>
|
618
618
|
</td>
|
619
619
|
</tr>
|
@@ -864,9 +864,9 @@ Date.years(1, true, 2010, true)
|
|
864
864
|
</div>
|
865
865
|
|
866
866
|
<div id="footer">
|
867
|
-
Generated on
|
867
|
+
Generated on Tue Mar 29 11:11:37 2016 by
|
868
868
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
869
|
-
0.8.7.6 (ruby-2.
|
869
|
+
0.8.7.6 (ruby-2.3.0).
|
870
870
|
</div>
|
871
871
|
|
872
872
|
</body>
|
data/doc/Lazier/Exceptions.html
CHANGED
@@ -116,9 +116,9 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Tue Mar 29 11:11:37 2016 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
|
-
0.8.7.6 (ruby-2.
|
121
|
+
0.8.7.6 (ruby-2.3.0).
|
122
122
|
</div>
|
123
123
|
|
124
124
|
</body>
|
@@ -124,9 +124,9 @@
|
|
124
124
|
</div>
|
125
125
|
|
126
126
|
<div id="footer">
|
127
|
-
Generated on
|
127
|
+
Generated on Tue Mar 29 11:11:37 2016 by
|
128
128
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
129
|
-
0.8.7.6 (ruby-2.
|
129
|
+
0.8.7.6 (ruby-2.3.0).
|
130
130
|
</div>
|
131
131
|
|
132
132
|
</body>
|
@@ -242,9 +242,9 @@
|
|
242
242
|
</div>
|
243
243
|
|
244
244
|
<div id="footer">
|
245
|
-
Generated on
|
245
|
+
Generated on Tue Mar 29 11:11:37 2016 by
|
246
246
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
247
|
-
0.8.7.6 (ruby-2.
|
247
|
+
0.8.7.6 (ruby-2.3.0).
|
248
248
|
</div>
|
249
249
|
|
250
250
|
</body>
|
@@ -268,9 +268,9 @@
|
|
268
268
|
</div>
|
269
269
|
|
270
270
|
<div id="footer">
|
271
|
-
Generated on
|
271
|
+
Generated on Tue Mar 29 11:11:37 2016 by
|
272
272
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
273
|
-
0.8.7.6 (ruby-2.
|
273
|
+
0.8.7.6 (ruby-2.3.0).
|
274
274
|
</div>
|
275
275
|
|
276
276
|
</body>
|
data/doc/Lazier/Hash.html
CHANGED
@@ -121,7 +121,7 @@
|
|
121
121
|
<span class='label'>symbols:</span> <span class='symbol'>:symbolize_keys</span><span class='comma'>,</span>
|
122
122
|
<span class='label'>indifferent:</span> <span class='symbol'>:with_indifferent_access</span><span class='comma'>,</span>
|
123
123
|
<span class='label'>dotted:</span> <span class='symbol'>:enable_dotted_access</span>
|
124
|
-
<span class='rbrace'>}</span></pre></dd>
|
124
|
+
<span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
125
125
|
|
126
126
|
</dl>
|
127
127
|
|
@@ -552,9 +552,9 @@
|
|
552
552
|
</div>
|
553
553
|
|
554
554
|
<div id="footer">
|
555
|
-
Generated on
|
555
|
+
Generated on Tue Mar 29 11:11:36 2016 by
|
556
556
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
557
|
-
0.8.7.6 (ruby-2.
|
557
|
+
0.8.7.6 (ruby-2.3.0).
|
558
558
|
</div>
|
559
559
|
|
560
560
|
</body>
|
data/doc/Lazier/I18n.html
CHANGED
@@ -828,7 +828,7 @@
|
|
828
828
|
</span> <span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_root'>root</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_message'>message</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_message'>message</span> <span class='op'>!~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^(\.|::)</span><span class='regexp_end'>/</span></span>
|
829
829
|
|
830
830
|
<span class='kw'>begin</span>
|
831
|
-
<span class='op'>::</span><span class='const'>I18n</span><span class='period'>.</span><span class='id identifier rubyid_translate'>translate</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='op'>**</span><span class='
|
831
|
+
<span class='op'>::</span><span class='const'>I18n</span><span class='period'>.</span><span class='id identifier rubyid_translate'>translate</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='label'>raise:</span> <span class='kw'>true</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
832
832
|
<span class='kw'>rescue</span> <span class='op'>::</span><span class='const'>I18n</span><span class='op'>::</span><span class='const'>MissingTranslationData</span>
|
833
833
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Exceptions</span><span class='op'>::</span><span class='const'>MissingTranslation</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='id identifier rubyid_locale'>locale</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rbracket'>]</span>
|
834
834
|
<span class='kw'>end</span>
|
@@ -863,7 +863,7 @@
|
|
863
863
|
<span class='id identifier rubyid_private'>private</span>
|
864
864
|
|
865
865
|
<span class='comment'># :nodoc:
|
866
|
-
</span> <span class='const'>OSX_DETECTION</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>defaults read .GlobalPreferences AppleLanguages | awk 'NR==2{gsub(/[ ,]/, \"\");print}'</span><span class='tstring_end'>"</span></span>
|
866
|
+
</span> <span class='const'>OSX_DETECTION</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>defaults read .GlobalPreferences AppleLanguages | awk 'NR==2{gsub(/[ ,]/, \"\");print}'</span><span class='tstring_end'>"</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
867
867
|
|
868
868
|
<span class='comment'># :nodoc:
|
869
869
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_system_locale'>system_locale</span>
|
@@ -1177,7 +1177,7 @@
|
|
1177
1177
|
</span> <span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_root'>root</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_message'>message</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_message'>message</span> <span class='op'>!~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^(\.|::)</span><span class='regexp_end'>/</span></span>
|
1178
1178
|
|
1179
1179
|
<span class='kw'>begin</span>
|
1180
|
-
<span class='op'>::</span><span class='const'>I18n</span><span class='period'>.</span><span class='id identifier rubyid_translate'>translate</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='op'>**</span><span class='
|
1180
|
+
<span class='op'>::</span><span class='const'>I18n</span><span class='period'>.</span><span class='id identifier rubyid_translate'>translate</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='label'>raise:</span> <span class='kw'>true</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
1181
1181
|
<span class='kw'>rescue</span> <span class='op'>::</span><span class='const'>I18n</span><span class='op'>::</span><span class='const'>MissingTranslationData</span>
|
1182
1182
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Exceptions</span><span class='op'>::</span><span class='const'>MissingTranslation</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='id identifier rubyid_locale'>locale</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rbracket'>]</span>
|
1183
1183
|
<span class='kw'>end</span>
|
@@ -1212,7 +1212,7 @@
|
|
1212
1212
|
<span class='id identifier rubyid_private'>private</span>
|
1213
1213
|
|
1214
1214
|
<span class='comment'># :nodoc:
|
1215
|
-
</span> <span class='const'>OSX_DETECTION</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>defaults read .GlobalPreferences AppleLanguages | awk 'NR==2{gsub(/[ ,]/, \"\");print}'</span><span class='tstring_end'>"</span></span>
|
1215
|
+
</span> <span class='const'>OSX_DETECTION</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>defaults read .GlobalPreferences AppleLanguages | awk 'NR==2{gsub(/[ ,]/, \"\");print}'</span><span class='tstring_end'>"</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
1216
1216
|
|
1217
1217
|
<span class='comment'># :nodoc:
|
1218
1218
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_system_locale'>system_locale</span>
|
@@ -1526,7 +1526,7 @@
|
|
1526
1526
|
</span> <span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_root'>root</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_message'>message</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_message'>message</span> <span class='op'>!~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^(\.|::)</span><span class='regexp_end'>/</span></span>
|
1527
1527
|
|
1528
1528
|
<span class='kw'>begin</span>
|
1529
|
-
<span class='op'>::</span><span class='const'>I18n</span><span class='period'>.</span><span class='id identifier rubyid_translate'>translate</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='op'>**</span><span class='
|
1529
|
+
<span class='op'>::</span><span class='const'>I18n</span><span class='period'>.</span><span class='id identifier rubyid_translate'>translate</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='label'>raise:</span> <span class='kw'>true</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
1530
1530
|
<span class='kw'>rescue</span> <span class='op'>::</span><span class='const'>I18n</span><span class='op'>::</span><span class='const'>MissingTranslationData</span>
|
1531
1531
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Exceptions</span><span class='op'>::</span><span class='const'>MissingTranslation</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='id identifier rubyid_locale'>locale</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rbracket'>]</span>
|
1532
1532
|
<span class='kw'>end</span>
|
@@ -1561,7 +1561,7 @@
|
|
1561
1561
|
<span class='id identifier rubyid_private'>private</span>
|
1562
1562
|
|
1563
1563
|
<span class='comment'># :nodoc:
|
1564
|
-
</span> <span class='const'>OSX_DETECTION</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>defaults read .GlobalPreferences AppleLanguages | awk 'NR==2{gsub(/[ ,]/, \"\");print}'</span><span class='tstring_end'>"</span></span>
|
1564
|
+
</span> <span class='const'>OSX_DETECTION</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>defaults read .GlobalPreferences AppleLanguages | awk 'NR==2{gsub(/[ ,]/, \"\");print}'</span><span class='tstring_end'>"</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
1565
1565
|
|
1566
1566
|
<span class='comment'># :nodoc:
|
1567
1567
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_system_locale'>system_locale</span>
|
@@ -1875,7 +1875,7 @@
|
|
1875
1875
|
</span> <span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_root'>root</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_message'>message</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_message'>message</span> <span class='op'>!~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^(\.|::)</span><span class='regexp_end'>/</span></span>
|
1876
1876
|
|
1877
1877
|
<span class='kw'>begin</span>
|
1878
|
-
<span class='op'>::</span><span class='const'>I18n</span><span class='period'>.</span><span class='id identifier rubyid_translate'>translate</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='op'>**</span><span class='
|
1878
|
+
<span class='op'>::</span><span class='const'>I18n</span><span class='period'>.</span><span class='id identifier rubyid_translate'>translate</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='label'>raise:</span> <span class='kw'>true</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
1879
1879
|
<span class='kw'>rescue</span> <span class='op'>::</span><span class='const'>I18n</span><span class='op'>::</span><span class='const'>MissingTranslationData</span>
|
1880
1880
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Exceptions</span><span class='op'>::</span><span class='const'>MissingTranslation</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='id identifier rubyid_locale'>locale</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rbracket'>]</span>
|
1881
1881
|
<span class='kw'>end</span>
|
@@ -1910,7 +1910,7 @@
|
|
1910
1910
|
<span class='id identifier rubyid_private'>private</span>
|
1911
1911
|
|
1912
1912
|
<span class='comment'># :nodoc:
|
1913
|
-
</span> <span class='const'>OSX_DETECTION</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>defaults read .GlobalPreferences AppleLanguages | awk 'NR==2{gsub(/[ ,]/, \"\");print}'</span><span class='tstring_end'>"</span></span>
|
1913
|
+
</span> <span class='const'>OSX_DETECTION</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>defaults read .GlobalPreferences AppleLanguages | awk 'NR==2{gsub(/[ ,]/, \"\");print}'</span><span class='tstring_end'>"</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
1914
1914
|
|
1915
1915
|
<span class='comment'># :nodoc:
|
1916
1916
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_system_locale'>system_locale</span>
|
@@ -2289,7 +2289,7 @@
|
|
2289
2289
|
</span> <span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_root'>root</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_message'>message</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_message'>message</span> <span class='op'>!~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^(\.|::)</span><span class='regexp_end'>/</span></span>
|
2290
2290
|
|
2291
2291
|
<span class='kw'>begin</span>
|
2292
|
-
<span class='op'>::</span><span class='const'>I18n</span><span class='period'>.</span><span class='id identifier rubyid_translate'>translate</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='op'>**</span><span class='
|
2292
|
+
<span class='op'>::</span><span class='const'>I18n</span><span class='period'>.</span><span class='id identifier rubyid_translate'>translate</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='label'>raise:</span> <span class='kw'>true</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
2293
2293
|
<span class='kw'>rescue</span> <span class='op'>::</span><span class='const'>I18n</span><span class='op'>::</span><span class='const'>MissingTranslationData</span>
|
2294
2294
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Exceptions</span><span class='op'>::</span><span class='const'>MissingTranslation</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='id identifier rubyid_locale'>locale</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rbracket'>]</span>
|
2295
2295
|
<span class='kw'>end</span>
|
@@ -2567,9 +2567,9 @@
|
|
2567
2567
|
</div>
|
2568
2568
|
|
2569
2569
|
<div id="footer">
|
2570
|
-
Generated on
|
2570
|
+
Generated on Tue Mar 29 11:11:37 2016 by
|
2571
2571
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2572
|
-
0.8.7.6 (ruby-2.
|
2572
|
+
0.8.7.6 (ruby-2.3.0).
|
2573
2573
|
</div>
|
2574
2574
|
|
2575
2575
|
</body>
|
data/doc/Lazier/Math.html
CHANGED
@@ -121,9 +121,9 @@
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on
|
124
|
+
Generated on Tue Mar 29 11:11:36 2016 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
|
-
0.8.7.6 (ruby-2.
|
126
|
+
0.8.7.6 (ruby-2.3.0).
|
127
127
|
</div>
|
128
128
|
|
129
129
|
</body>
|
@@ -321,9 +321,9 @@
|
|
321
321
|
</div>
|
322
322
|
|
323
323
|
<div id="footer">
|
324
|
-
Generated on
|
324
|
+
Generated on Tue Mar 29 11:11:36 2016 by
|
325
325
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
326
|
-
0.8.7.6 (ruby-2.
|
326
|
+
0.8.7.6 (ruby-2.3.0).
|
327
327
|
</div>
|
328
328
|
|
329
329
|
</body>
|
data/doc/Lazier/Object.html
CHANGED
@@ -1325,13 +1325,13 @@ Passing <code>nil</code> is equal to pass an empty Hash.</p>
|
|
1325
1325
|
<pre class="lines">
|
1326
1326
|
|
1327
1327
|
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1328
|
+
209
|
1329
|
+
210
|
1330
|
+
211
|
1331
|
+
212</pre>
|
1332
1332
|
</td>
|
1333
1333
|
<td>
|
1334
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line
|
1334
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 209</span>
|
1335
1335
|
|
1336
1336
|
<span class='kw'>def</span> <span class='id identifier rubyid_format_boolean'>format_boolean</span><span class='lparen'>(</span><span class='label'>true_name:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>false_name:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1337
1337
|
<span class='id identifier rubyid_settings'>settings</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>Lazier</span><span class='period'>.</span><span class='id identifier rubyid_settings'>settings</span><span class='period'>.</span><span class='id identifier rubyid_boolean_names'>boolean_names</span>
|
@@ -1464,25 +1464,19 @@ Passing <code>nil</code> is equal to pass an empty Hash.</p>
|
|
1464
1464
|
198
|
1465
1465
|
199
|
1466
1466
|
200
|
1467
|
-
201
|
1468
|
-
202
|
1469
|
-
203
|
1470
|
-
204</pre>
|
1467
|
+
201</pre>
|
1471
1468
|
</td>
|
1472
1469
|
<td>
|
1473
1470
|
<pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 192</span>
|
1474
1471
|
|
1475
1472
|
<span class='kw'>def</span> <span class='id identifier rubyid_format_number'>format_number</span><span class='lparen'>(</span><span class='label'>precision:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>decimal_separator:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>add_string:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>k_separator:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1476
1473
|
<span class='kw'>if</span> <span class='id identifier rubyid_number?'>number?</span>
|
1477
|
-
<span class='id identifier
|
1478
|
-
<span class='id identifier rubyid_add_string'>add_string</span> <span class='op'>||=</span> <span class='id identifier rubyid_settings'>settings</span><span class='lbracket'>[</span><span class='symbol'>:add_string</span><span class='rbracket'>]</span>
|
1474
|
+
<span class='id identifier rubyid_precision'>precision</span><span class='comma'>,</span> <span class='id identifier rubyid_decimal_separator'>decimal_separator</span><span class='comma'>,</span> <span class='id identifier rubyid_add_string'>add_string</span><span class='comma'>,</span> <span class='id identifier rubyid_k_separator'>k_separator</span> <span class='op'>=</span> <span class='id identifier rubyid_format_number_sanitize'>format_number_sanitize</span><span class='lparen'>(</span><span class='id identifier rubyid_precision'>precision</span><span class='comma'>,</span> <span class='id identifier rubyid_decimal_separator'>decimal_separator</span><span class='comma'>,</span> <span class='id identifier rubyid_add_string'>add_string</span><span class='comma'>,</span> <span class='id identifier rubyid_k_separator'>k_separator</span><span class='rparen'>)</span>
|
1479
1475
|
|
1480
|
-
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_format'>format</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%0.</span><span class='embexpr_beg'>#{</span><span class='
|
1481
|
-
<span class='id identifier rubyid_rv'>rv</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_gsub!'>gsub!</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>(\d)(?=(\d{3})+(?!\d))</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\1</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_k_separator'>k_separator</span
|
1482
|
-
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='id identifier rubyid_decimal_separator'>decimal_separator</span
|
1476
|
+
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_format'>format</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%0.</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_precision'>precision</span><span class='embexpr_end'>}</span><span class='tstring_content'>f</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_to_float'>to_float</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1477
|
+
<span class='id identifier rubyid_rv'>rv</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_gsub!'>gsub!</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>(\d)(?=(\d{3})+(?!\d))</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\1</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_k_separator'>k_separator</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1478
|
+
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='id identifier rubyid_decimal_separator'>decimal_separator</span><span class='rparen'>)</span>
|
1483
1479
|
<span class='id identifier rubyid_add_string'>add_string</span> <span class='op'>?</span> <span class='id identifier rubyid_rv'>rv</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_add_string'>add_string</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='op'>:</span> <span class='id identifier rubyid_rv'>rv</span>
|
1484
|
-
<span class='kw'>else</span>
|
1485
|
-
<span class='kw'>nil</span>
|
1486
1480
|
<span class='kw'>end</span>
|
1487
1481
|
<span class='kw'>end</span></pre>
|
1488
1482
|
</td>
|
@@ -1584,12 +1578,12 @@ Passing <code>nil</code> is equal to pass an empty Hash.</p>
|
|
1584
1578
|
<pre class="lines">
|
1585
1579
|
|
1586
1580
|
|
1587
|
-
|
1588
|
-
|
1589
|
-
|
1581
|
+
222
|
1582
|
+
223
|
1583
|
+
224</pre>
|
1590
1584
|
</td>
|
1591
1585
|
<td>
|
1592
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line
|
1586
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 222</span>
|
1593
1587
|
|
1594
1588
|
<span class='kw'>def</span> <span class='id identifier rubyid_indexize'>indexize</span><span class='lparen'>(</span><span class='label'>length:</span> <span class='int'>2</span><span class='comma'>,</span> <span class='label'>filler:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>formatter:</span> <span class='symbol'>:rjust</span><span class='rparen'>)</span>
|
1595
1589
|
<span class='id identifier rubyid_ensure_string'>ensure_string</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_formatter'>formatter</span><span class='comma'>,</span> <span class='id identifier rubyid_length'>length</span><span class='comma'>,</span> <span class='id identifier rubyid_filler'>filler</span><span class='rparen'>)</span>
|
@@ -2334,9 +2328,9 @@ Passing <code>nil</code> is equal to pass an empty Hash.</p>
|
|
2334
2328
|
</div>
|
2335
2329
|
|
2336
2330
|
<div id="footer">
|
2337
|
-
Generated on
|
2331
|
+
Generated on Tue Mar 29 11:11:36 2016 by
|
2338
2332
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2339
|
-
0.8.7.6 (ruby-2.
|
2333
|
+
0.8.7.6 (ruby-2.3.0).
|
2340
2334
|
</div>
|
2341
2335
|
|
2342
2336
|
</body>
|
data/doc/Lazier/Pathname.html
CHANGED
@@ -212,9 +212,9 @@
|
|
212
212
|
</div>
|
213
213
|
|
214
214
|
<div id="footer">
|
215
|
-
Generated on
|
215
|
+
Generated on Tue Mar 29 11:11:36 2016 by
|
216
216
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
217
|
-
0.8.7.6 (ruby-2.
|
217
|
+
0.8.7.6 (ruby-2.3.0).
|
218
218
|
</div>
|
219
219
|
|
220
220
|
</body>
|
data/doc/Lazier/Settings.html
CHANGED
@@ -2413,9 +2413,9 @@
|
|
2413
2413
|
</div>
|
2414
2414
|
|
2415
2415
|
<div id="footer">
|
2416
|
-
Generated on
|
2416
|
+
Generated on Tue Mar 29 11:11:37 2016 by
|
2417
2417
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2418
|
-
0.8.7.6 (ruby-2.
|
2418
|
+
0.8.7.6 (ruby-2.3.0).
|
2419
2419
|
</div>
|
2420
2420
|
|
2421
2421
|
</body>
|
data/doc/Lazier/String.html
CHANGED
@@ -664,9 +664,9 @@
|
|
664
664
|
</div>
|
665
665
|
|
666
666
|
<div id="footer">
|
667
|
-
Generated on
|
667
|
+
Generated on Tue Mar 29 11:11:36 2016 by
|
668
668
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
669
|
-
0.8.7.6 (ruby-2.
|
669
|
+
0.8.7.6 (ruby-2.3.0).
|
670
670
|
</div>
|
671
671
|
|
672
672
|
</body>
|
data/doc/Lazier/TimeZone.html
CHANGED
@@ -448,13 +448,13 @@
|
|
448
448
|
<pre class="lines">
|
449
449
|
|
450
450
|
|
451
|
-
152
|
452
|
-
153
|
453
451
|
154
|
454
|
-
155
|
452
|
+
155
|
453
|
+
156
|
454
|
+
157</pre>
|
455
455
|
</td>
|
456
456
|
<td>
|
457
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
457
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 154</span>
|
458
458
|
|
459
459
|
<span class='kw'>def</span> <span class='id identifier rubyid_aliases'>aliases</span>
|
460
460
|
<span class='id identifier rubyid_reference'>reference</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='op'>::</span><span class='const'>MAPPING</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>_</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
@@ -507,17 +507,17 @@
|
|
507
507
|
<pre class="lines">
|
508
508
|
|
509
509
|
|
510
|
-
170
|
511
|
-
171
|
512
510
|
172
|
513
511
|
173
|
514
512
|
174
|
515
513
|
175
|
516
514
|
176
|
517
|
-
177
|
515
|
+
177
|
516
|
+
178
|
517
|
+
179</pre>
|
518
518
|
</td>
|
519
519
|
<td>
|
520
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
520
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 172</span>
|
521
521
|
|
522
522
|
<span class='kw'>def</span> <span class='id identifier rubyid_current_alias'>current_alias</span>
|
523
523
|
<span class='kw'>if</span> <span class='ivar'>@current_alias</span>
|
@@ -576,12 +576,12 @@
|
|
576
576
|
<pre class="lines">
|
577
577
|
|
578
578
|
|
579
|
-
|
580
|
-
|
581
|
-
|
579
|
+
184
|
580
|
+
185
|
581
|
+
186</pre>
|
582
582
|
</td>
|
583
583
|
<td>
|
584
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
584
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 184</span>
|
585
585
|
|
586
586
|
<span class='kw'>def</span> <span class='id identifier rubyid_current_alias='>current_alias=</span><span class='lparen'>(</span><span class='id identifier rubyid_new_alias'>new_alias</span><span class='rparen'>)</span>
|
587
587
|
<span class='ivar'>@current_alias</span> <span class='op'>=</span> <span class='id identifier rubyid_new_alias'>new_alias</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span>
|
@@ -684,15 +684,15 @@
|
|
684
684
|
<pre class="lines">
|
685
685
|
|
686
686
|
|
687
|
-
192
|
688
|
-
193
|
689
687
|
194
|
690
688
|
195
|
691
689
|
196
|
692
|
-
197
|
690
|
+
197
|
691
|
+
198
|
692
|
+
199</pre>
|
693
693
|
</td>
|
694
694
|
<td>
|
695
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
695
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 194</span>
|
696
696
|
|
697
697
|
<span class='kw'>def</span> <span class='id identifier rubyid_current_name'>current_name</span><span class='lparen'>(</span><span class='id identifier rubyid_dst'>dst</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='label'>dst_label:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> (DST)</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>year:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
698
698
|
<span class='id identifier rubyid_year'>year</span> <span class='op'>||=</span> <span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span><span class='period'>.</span><span class='id identifier rubyid_year'>year</span>
|
@@ -785,13 +785,13 @@
|
|
785
785
|
<pre class="lines">
|
786
786
|
|
787
787
|
|
788
|
-
162
|
789
|
-
163
|
790
788
|
164
|
791
|
-
165
|
789
|
+
165
|
790
|
+
166
|
791
|
+
167</pre>
|
792
792
|
</td>
|
793
793
|
<td>
|
794
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
794
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 164</span>
|
795
795
|
|
796
796
|
<span class='kw'>def</span> <span class='id identifier rubyid_current_offset'>current_offset</span><span class='lparen'>(</span><span class='id identifier rubyid_rational'>rational</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_date'>date</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
797
797
|
<span class='id identifier rubyid_date'>date</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_date'>date</span> <span class='op'>||</span> <span class='op'>::</span><span class='const'>DateTime</span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_in_time_zone'>in_time_zone</span>
|
@@ -882,13 +882,13 @@
|
|
882
882
|
<pre class="lines">
|
883
883
|
|
884
884
|
|
885
|
-
248
|
886
|
-
249
|
887
885
|
250
|
888
|
-
251
|
886
|
+
251
|
887
|
+
252
|
888
|
+
253</pre>
|
889
889
|
</td>
|
890
890
|
<td>
|
891
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
891
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 250</span>
|
892
892
|
|
893
893
|
<span class='kw'>def</span> <span class='id identifier rubyid_dst_correction'>dst_correction</span><span class='lparen'>(</span><span class='id identifier rubyid_rational'>rational</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
894
894
|
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_dst_offset'>dst_offset</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='comma'>,</span> <span class='symbol'>:std_offset</span><span class='rparen'>)</span>
|
@@ -962,18 +962,18 @@
|
|
962
962
|
<pre class="lines">
|
963
963
|
|
964
964
|
|
965
|
-
233
|
966
|
-
234
|
967
965
|
235
|
968
966
|
236
|
969
967
|
237
|
970
968
|
238
|
971
969
|
239
|
972
970
|
240
|
973
|
-
241
|
971
|
+
241
|
972
|
+
242
|
973
|
+
243</pre>
|
974
974
|
</td>
|
975
975
|
<td>
|
976
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
976
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 235</span>
|
977
977
|
|
978
978
|
<span class='kw'>def</span> <span class='id identifier rubyid_dst_period'>dst_period</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
979
979
|
<span class='id identifier rubyid_year'>year</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span><span class='period'>.</span><span class='id identifier rubyid_year'>year</span>
|
@@ -1080,8 +1080,6 @@
|
|
1080
1080
|
<pre class="lines">
|
1081
1081
|
|
1082
1082
|
|
1083
|
-
205
|
1084
|
-
206
|
1085
1083
|
207
|
1086
1084
|
208
|
1087
1085
|
209
|
@@ -1090,10 +1088,12 @@
|
|
1090
1088
|
212
|
1091
1089
|
213
|
1092
1090
|
214
|
1093
|
-
215
|
1091
|
+
215
|
1092
|
+
216
|
1093
|
+
217</pre>
|
1094
1094
|
</td>
|
1095
1095
|
<td>
|
1096
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
1096
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 207</span>
|
1097
1097
|
|
1098
1098
|
<span class='kw'>def</span> <span class='id identifier rubyid_offset'>offset</span><span class='lparen'>(</span><span class='label'>rational:</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='label'>dst:</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='label'>year:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1099
1099
|
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span>
|
@@ -1296,8 +1296,6 @@
|
|
1296
1296
|
<pre class="lines">
|
1297
1297
|
|
1298
1298
|
|
1299
|
-
266
|
1300
|
-
267
|
1301
1299
|
268
|
1302
1300
|
269
|
1303
1301
|
270
|
@@ -1306,10 +1304,12 @@
|
|
1306
1304
|
273
|
1307
1305
|
274
|
1308
1306
|
275
|
1309
|
-
276
|
1307
|
+
276
|
1308
|
+
277
|
1309
|
+
278</pre>
|
1310
1310
|
</td>
|
1311
1311
|
<td>
|
1312
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
1312
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 268</span>
|
1313
1313
|
|
1314
1314
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_str'>to_str</span><span class='lparen'>(</span><span class='id identifier rubyid_dst'>dst</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
1315
1315
|
<span class='comment'># PI: Ignore reek on this.
|
@@ -1390,16 +1390,16 @@
|
|
1390
1390
|
<pre class="lines">
|
1391
1391
|
|
1392
1392
|
|
1393
|
-
221
|
1394
|
-
222
|
1395
1393
|
223
|
1396
1394
|
224
|
1397
1395
|
225
|
1398
1396
|
226
|
1399
|
-
227
|
1397
|
+
227
|
1398
|
+
228
|
1399
|
+
229</pre>
|
1400
1400
|
</td>
|
1401
1401
|
<td>
|
1402
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
1402
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 223</span>
|
1403
1403
|
|
1404
1404
|
<span class='kw'>def</span> <span class='id identifier rubyid_uses_dst?'>uses_dst?</span><span class='lparen'>(</span><span class='id identifier rubyid_reference'>reference</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1405
1405
|
<span class='kw'>if</span> <span class='id identifier rubyid_reference'>reference</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Date</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_reference'>reference</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>DateTime</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_reference'>reference</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Time</span><span class='rparen'>)</span>
|
@@ -1418,9 +1418,9 @@
|
|
1418
1418
|
</div>
|
1419
1419
|
|
1420
1420
|
<div id="footer">
|
1421
|
-
Generated on
|
1421
|
+
Generated on Tue Mar 29 11:11:37 2016 by
|
1422
1422
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1423
|
-
0.8.7.6 (ruby-2.
|
1423
|
+
0.8.7.6 (ruby-2.3.0).
|
1424
1424
|
</div>
|
1425
1425
|
|
1426
1426
|
</body>
|