lazier 4.0.3 → 4.0.4
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/doc/Lazier.html +1 -1
- data/doc/Lazier/Boolean.html +1 -1
- data/doc/Lazier/Configuration.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/Debug.html +1 -1
- data/doc/Lazier/Exceptions/MissingTranslation.html +1 -1
- data/doc/Lazier/Exceptions/TranslationExceptionHandler.html +1 -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 +153 -63
- 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 +101 -95
- data/doc/top-level-namespace.html +1 -1
- data/lib/lazier/timezone.rb +17 -6
- data/lib/lazier/version.rb +1 -1
- data/spec/lazier/timezone_spec.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 954c7498c5f0d852f53cac8cade168108dec8732
|
|
4
|
+
data.tar.gz: 6415c463f7d00dacb0a49e3f0c21d219d4d4559e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2313d6c616e84243d6fa7e3b28bc0fbcd9bd6739451f43b0a0771ee73b0fc5777a198be6e3f212bd3bb064d3a16358d7e1a48d413cf783b5357038503fa78c18
|
|
7
|
+
data.tar.gz: 224ce9dace6e52c04163d287a4d72c8795a59d35a23e5165596da5b8d916dada6ea2b1049cb2093a7dfd9e79184f87df4c4f35048b7edbaf92810e8e62123345
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
### 4.0.4 / 2014-06-19
|
|
2
|
+
|
|
3
|
+
* Added `Lazier::Timezone#current_alias=`.
|
|
4
|
+
|
|
1
5
|
### 4.0.3 / 2014-06-06
|
|
2
6
|
|
|
3
7
|
* System locale detection fix.
|
|
@@ -75,6 +79,10 @@
|
|
|
75
79
|
* Merged `Lazier::Timezone.to_str`, `Lazier::Timezone.to_str_with_dst`, `Lazier::Timezone.to_str_parameterized` and
|
|
76
80
|
`Lazier::Timezone.to_str_with_dst_parameterized` in `Lazier::Timezone.to_str`.
|
|
77
81
|
|
|
82
|
+
### 3.5.6 / 2014-06-19
|
|
83
|
+
|
|
84
|
+
* Added `Lazier::Timezone#current_alias=`.
|
|
85
|
+
|
|
78
86
|
### 3.5.5 / 2014-04-11
|
|
79
87
|
|
|
80
88
|
* Bugfix for `Lazier.find_class`.
|
data/doc/Lazier.html
CHANGED
|
@@ -1230,7 +1230,7 @@ Otherwise the class of the object will returned.</p>
|
|
|
1230
1230
|
</div>
|
|
1231
1231
|
|
|
1232
1232
|
<div id="footer">
|
|
1233
|
-
Generated on
|
|
1233
|
+
Generated on Thu Jun 19 11:38:16 2014 by
|
|
1234
1234
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1235
1235
|
0.8.7.4 (ruby-2.1.2).
|
|
1236
1236
|
</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 Thu Jun 19 11:38:16 2014 by
|
|
292
292
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
293
293
|
0.8.7.4 (ruby-2.1.2).
|
|
294
294
|
</div>
|
|
@@ -360,7 +360,7 @@ Options are as follows:</p>
|
|
|
360
360
|
</div>
|
|
361
361
|
|
|
362
362
|
<div id="footer">
|
|
363
|
-
Generated on
|
|
363
|
+
Generated on Thu Jun 19 11:38:17 2014 by
|
|
364
364
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
365
365
|
0.8.7.4 (ruby-2.1.2).
|
|
366
366
|
</div>
|
data/doc/Lazier/DateTime.html
CHANGED
|
@@ -466,7 +466,7 @@ DateTime.civil(2013, 6, 1).in_months(2011)
|
|
|
466
466
|
</div>
|
|
467
467
|
|
|
468
468
|
<div id="footer">
|
|
469
|
-
Generated on
|
|
469
|
+
Generated on Thu Jun 19 11:38:16 2014 by
|
|
470
470
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
471
471
|
0.8.7.4 (ruby-2.1.2).
|
|
472
472
|
</div>
|
|
@@ -864,7 +864,7 @@ Date.years(1, true, 2010, true)
|
|
|
864
864
|
</div>
|
|
865
865
|
|
|
866
866
|
<div id="footer">
|
|
867
|
-
Generated on
|
|
867
|
+
Generated on Thu Jun 19 11:38:16 2014 by
|
|
868
868
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
869
869
|
0.8.7.4 (ruby-2.1.2).
|
|
870
870
|
</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 Thu Jun 19 11:38:16 2014 by
|
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
121
121
|
0.8.7.4 (ruby-2.1.2).
|
|
122
122
|
</div>
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
</div>
|
|
125
125
|
|
|
126
126
|
<div id="footer">
|
|
127
|
-
Generated on
|
|
127
|
+
Generated on Thu Jun 19 11:38:17 2014 by
|
|
128
128
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
129
129
|
0.8.7.4 (ruby-2.1.2).
|
|
130
130
|
</div>
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
</div>
|
|
243
243
|
|
|
244
244
|
<div id="footer">
|
|
245
|
-
Generated on
|
|
245
|
+
Generated on Thu Jun 19 11:38:17 2014 by
|
|
246
246
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
247
247
|
0.8.7.4 (ruby-2.1.2).
|
|
248
248
|
</div>
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
</div>
|
|
205
205
|
|
|
206
206
|
<div id="footer">
|
|
207
|
-
Generated on
|
|
207
|
+
Generated on Thu Jun 19 11:38:17 2014 by
|
|
208
208
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
209
209
|
0.8.7.4 (ruby-2.1.2).
|
|
210
210
|
</div>
|
data/doc/Lazier/Hash.html
CHANGED
|
@@ -552,7 +552,7 @@
|
|
|
552
552
|
</div>
|
|
553
553
|
|
|
554
554
|
<div id="footer">
|
|
555
|
-
Generated on
|
|
555
|
+
Generated on Thu Jun 19 11:38:16 2014 by
|
|
556
556
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
557
557
|
0.8.7.4 (ruby-2.1.2).
|
|
558
558
|
</div>
|
data/doc/Lazier/I18n.html
CHANGED
|
@@ -2567,7 +2567,7 @@
|
|
|
2567
2567
|
</div>
|
|
2568
2568
|
|
|
2569
2569
|
<div id="footer">
|
|
2570
|
-
Generated on
|
|
2570
|
+
Generated on Thu Jun 19 11:38:16 2014 by
|
|
2571
2571
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
2572
2572
|
0.8.7.4 (ruby-2.1.2).
|
|
2573
2573
|
</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 Thu Jun 19 11:38:16 2014 by
|
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
126
126
|
0.8.7.4 (ruby-2.1.2).
|
|
127
127
|
</div>
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
</div>
|
|
322
322
|
|
|
323
323
|
<div id="footer">
|
|
324
|
-
Generated on
|
|
324
|
+
Generated on Thu Jun 19 11:38:16 2014 by
|
|
325
325
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
326
326
|
0.8.7.4 (ruby-2.1.2).
|
|
327
327
|
</div>
|
data/doc/Lazier/Object.html
CHANGED
|
@@ -2331,7 +2331,7 @@ Passing <code>nil</code> is equal to pass an empty Hash.</p>
|
|
|
2331
2331
|
</div>
|
|
2332
2332
|
|
|
2333
2333
|
<div id="footer">
|
|
2334
|
-
Generated on
|
|
2334
|
+
Generated on Thu Jun 19 11:38:16 2014 by
|
|
2335
2335
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
2336
2336
|
0.8.7.4 (ruby-2.1.2).
|
|
2337
2337
|
</div>
|
data/doc/Lazier/Pathname.html
CHANGED
|
@@ -213,7 +213,7 @@ Pathname.new("/usr/bin/ruby").components
|
|
|
213
213
|
</div>
|
|
214
214
|
|
|
215
215
|
<div id="footer">
|
|
216
|
-
Generated on
|
|
216
|
+
Generated on Thu Jun 19 11:38:16 2014 by
|
|
217
217
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
218
218
|
0.8.7.4 (ruby-2.1.2).
|
|
219
219
|
</div>
|
data/doc/Lazier/Settings.html
CHANGED
|
@@ -2413,7 +2413,7 @@
|
|
|
2413
2413
|
</div>
|
|
2414
2414
|
|
|
2415
2415
|
<div id="footer">
|
|
2416
|
-
Generated on
|
|
2416
|
+
Generated on Thu Jun 19 11:38:17 2014 by
|
|
2417
2417
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
2418
2418
|
0.8.7.4 (ruby-2.1.2).
|
|
2419
2419
|
</div>
|
data/doc/Lazier/String.html
CHANGED
|
@@ -563,7 +563,7 @@
|
|
|
563
563
|
</div>
|
|
564
564
|
|
|
565
565
|
<div id="footer">
|
|
566
|
-
Generated on
|
|
566
|
+
Generated on Thu Jun 19 11:38:16 2014 by
|
|
567
567
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
568
568
|
0.8.7.4 (ruby-2.1.2).
|
|
569
569
|
</div>
|
data/doc/Lazier/TimeZone.html
CHANGED
|
@@ -210,6 +210,29 @@
|
|
|
210
210
|
<span class="summary_desc"><div class='inline'><p>Returns the current alias for this timezone.</p>
|
|
211
211
|
</div></span>
|
|
212
212
|
|
|
213
|
+
</li>
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
<li class="public ">
|
|
217
|
+
<span class="summary_signature">
|
|
218
|
+
|
|
219
|
+
<a href="#current_alias%3D-instance_method" title="#current_alias= (instance method)">- (Object) <strong>current_alias=</strong>(new_alias) </a>
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
</span>
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
<span class="summary_desc"><div class='inline'><p>Sets the current alias.</p>
|
|
234
|
+
</div></span>
|
|
235
|
+
|
|
213
236
|
</li>
|
|
214
237
|
|
|
215
238
|
|
|
@@ -495,25 +518,92 @@
|
|
|
495
518
|
178
|
|
496
519
|
179
|
|
497
520
|
180
|
|
498
|
-
181
|
|
521
|
+
181
|
|
522
|
+
182
|
|
523
|
+
183
|
|
524
|
+
184
|
|
525
|
+
185</pre>
|
|
499
526
|
</td>
|
|
500
527
|
<td>
|
|
501
528
|
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 171</span>
|
|
502
529
|
|
|
503
530
|
<span class='kw'>def</span> <span class='id identifier rubyid_current_alias'>current_alias</span>
|
|
504
|
-
<span class='
|
|
531
|
+
<span class='kw'>if</span> <span class='ivar'>@current_alias</span>
|
|
532
|
+
<span class='ivar'>@current_alias</span>
|
|
533
|
+
<span class='kw'>else</span>
|
|
534
|
+
<span class='id identifier rubyid_identifier'>identifier</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span>
|
|
505
535
|
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
536
|
+
<span class='id identifier rubyid_catch'>catch</span><span class='lparen'>(</span><span class='symbol'>:alias</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
|
537
|
+
<span class='id identifier rubyid_aliases'>aliases</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_a'>a</span><span class='op'>|</span>
|
|
538
|
+
<span class='id identifier rubyid_throw'>throw</span><span class='lparen'>(</span><span class='symbol'>:alias</span><span class='comma'>,</span> <span class='id identifier rubyid_a'>a</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_a'>a</span> <span class='op'>==</span> <span class='id identifier rubyid_identifier'>identifier</span>
|
|
539
|
+
<span class='kw'>end</span>
|
|
510
540
|
|
|
511
|
-
|
|
541
|
+
<span class='id identifier rubyid_aliases'>aliases</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
|
|
542
|
+
<span class='kw'>end</span>
|
|
512
543
|
<span class='kw'>end</span>
|
|
513
544
|
<span class='kw'>end</span></pre>
|
|
514
545
|
</td>
|
|
515
546
|
</tr>
|
|
516
547
|
</table>
|
|
548
|
+
</div>
|
|
549
|
+
|
|
550
|
+
<div class="method_details ">
|
|
551
|
+
<h3 class="signature " id="current_alias=-instance_method">
|
|
552
|
+
|
|
553
|
+
- (<tt><span class='object_link'><a href="Object.html" title="Lazier::Object (module)">Object</a></span></tt>) <strong>current_alias=</strong>(new_alias)
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
</h3><div class="docstring">
|
|
560
|
+
<div class="discussion">
|
|
561
|
+
<p>Sets the current alias.</p>
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
</div>
|
|
565
|
+
</div>
|
|
566
|
+
<div class="tags">
|
|
567
|
+
<p class="tag_title">Parameters:</p>
|
|
568
|
+
<ul class="param">
|
|
569
|
+
|
|
570
|
+
<li>
|
|
571
|
+
|
|
572
|
+
<span class='name'>new_alias</span>
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
<span class='type'>(<tt><span class='object_link'><a href="String.html" title="Lazier::String (module)">String</a></span></tt>)</span>
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
—
|
|
580
|
+
<div class='inline'><p>The new current alias.</p>
|
|
581
|
+
</div>
|
|
582
|
+
|
|
583
|
+
</li>
|
|
584
|
+
|
|
585
|
+
</ul>
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
</div><table class="source_code">
|
|
589
|
+
<tr>
|
|
590
|
+
<td>
|
|
591
|
+
<pre class="lines">
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
190
|
|
595
|
+
191
|
|
596
|
+
192</pre>
|
|
597
|
+
</td>
|
|
598
|
+
<td>
|
|
599
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 190</span>
|
|
600
|
+
|
|
601
|
+
<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>
|
|
602
|
+
<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>
|
|
603
|
+
<span class='kw'>end</span></pre>
|
|
604
|
+
</td>
|
|
605
|
+
</tr>
|
|
606
|
+
</table>
|
|
517
607
|
</div>
|
|
518
608
|
|
|
519
609
|
<div class="method_details ">
|
|
@@ -609,15 +699,15 @@
|
|
|
609
699
|
<pre class="lines">
|
|
610
700
|
|
|
611
701
|
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
702
|
+
200
|
|
703
|
+
201
|
|
704
|
+
202
|
|
705
|
+
203
|
|
706
|
+
204
|
|
707
|
+
205</pre>
|
|
618
708
|
</td>
|
|
619
709
|
<td>
|
|
620
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
|
710
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 200</span>
|
|
621
711
|
|
|
622
712
|
<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>
|
|
623
713
|
<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>
|
|
@@ -807,13 +897,13 @@
|
|
|
807
897
|
<pre class="lines">
|
|
808
898
|
|
|
809
899
|
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
900
|
+
256
|
|
901
|
+
257
|
|
902
|
+
258
|
|
903
|
+
259</pre>
|
|
814
904
|
</td>
|
|
815
905
|
<td>
|
|
816
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
|
906
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 256</span>
|
|
817
907
|
|
|
818
908
|
<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>
|
|
819
909
|
<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>
|
|
@@ -887,18 +977,18 @@
|
|
|
887
977
|
<pre class="lines">
|
|
888
978
|
|
|
889
979
|
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
980
|
+
241
|
|
981
|
+
242
|
|
982
|
+
243
|
|
983
|
+
244
|
|
984
|
+
245
|
|
985
|
+
246
|
|
986
|
+
247
|
|
987
|
+
248
|
|
988
|
+
249</pre>
|
|
899
989
|
</td>
|
|
900
990
|
<td>
|
|
901
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
|
991
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 241</span>
|
|
902
992
|
|
|
903
993
|
<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>
|
|
904
994
|
<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>
|
|
@@ -1005,20 +1095,20 @@
|
|
|
1005
1095
|
<pre class="lines">
|
|
1006
1096
|
|
|
1007
1097
|
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1098
|
+
213
|
|
1099
|
+
214
|
|
1100
|
+
215
|
|
1101
|
+
216
|
|
1102
|
+
217
|
|
1103
|
+
218
|
|
1104
|
+
219
|
|
1105
|
+
220
|
|
1106
|
+
221
|
|
1107
|
+
222
|
|
1108
|
+
223</pre>
|
|
1019
1109
|
</td>
|
|
1020
1110
|
<td>
|
|
1021
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
|
1111
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 213</span>
|
|
1022
1112
|
|
|
1023
1113
|
<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>
|
|
1024
1114
|
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span>
|
|
@@ -1125,22 +1215,22 @@
|
|
|
1125
1215
|
<pre class="lines">
|
|
1126
1216
|
|
|
1127
1217
|
|
|
1128
|
-
265
|
|
1129
|
-
266
|
|
1130
|
-
267
|
|
1131
|
-
268
|
|
1132
|
-
269
|
|
1133
|
-
270
|
|
1134
|
-
271
|
|
1135
|
-
272
|
|
1136
|
-
273
|
|
1137
|
-
274
|
|
1138
|
-
275
|
|
1139
1218
|
276
|
|
1140
|
-
277
|
|
1219
|
+
277
|
|
1220
|
+
278
|
|
1221
|
+
279
|
|
1222
|
+
280
|
|
1223
|
+
281
|
|
1224
|
+
282
|
|
1225
|
+
283
|
|
1226
|
+
284
|
|
1227
|
+
285
|
|
1228
|
+
286
|
|
1229
|
+
287
|
|
1230
|
+
288</pre>
|
|
1141
1231
|
</td>
|
|
1142
1232
|
<td>
|
|
1143
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
|
1233
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 276</span>
|
|
1144
1234
|
|
|
1145
1235
|
<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>
|
|
1146
1236
|
<span class='comment'># PI: Ignore reek on this.
|
|
@@ -1223,16 +1313,16 @@
|
|
|
1223
1313
|
<pre class="lines">
|
|
1224
1314
|
|
|
1225
1315
|
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1316
|
+
229
|
|
1317
|
+
230
|
|
1318
|
+
231
|
|
1319
|
+
232
|
|
1320
|
+
233
|
|
1321
|
+
234
|
|
1322
|
+
235</pre>
|
|
1233
1323
|
</td>
|
|
1234
1324
|
<td>
|
|
1235
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
|
1325
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 229</span>
|
|
1236
1326
|
|
|
1237
1327
|
<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>
|
|
1238
1328
|
<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>
|
|
@@ -1251,7 +1341,7 @@
|
|
|
1251
1341
|
</div>
|
|
1252
1342
|
|
|
1253
1343
|
<div id="footer">
|
|
1254
|
-
Generated on
|
|
1344
|
+
Generated on Thu Jun 19 11:38:16 2014 by
|
|
1255
1345
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1256
1346
|
0.8.7.4 (ruby-2.1.2).
|
|
1257
1347
|
</div>
|