lazier 3.5.5 → 3.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/doc/Lazier.html +2 -2
- data/doc/Lazier/Boolean.html +2 -2
- data/doc/Lazier/Configuration.html +2 -2
- data/doc/Lazier/DateTime.html +2 -2
- data/doc/Lazier/DateTime/ClassMethods.html +2 -2
- 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/Hash.html +2 -2
- data/doc/Lazier/I18n.html +2 -2
- data/doc/Lazier/Localizer.html +2 -2
- data/doc/Lazier/Math.html +2 -2
- data/doc/Lazier/Math/ClassMethods.html +2 -2
- data/doc/Lazier/Object.html +2 -2
- 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 +153 -63
- data/doc/Lazier/TimeZone/ClassMethods.html +2 -2
- data/doc/Lazier/Version.html +3 -3
- data/doc/_index.html +2 -2
- data/doc/file.README.html +2 -2
- data/doc/index.html +2 -2
- data/doc/method_list.html +104 -98
- data/doc/top-level-namespace.html +2 -2
- 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: 289ddb6d41b5082a37145f8f1262784827f1c346
|
4
|
+
data.tar.gz: e03d89919db7dfbaa327725ddcab4608f2604df4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2302a8d789db2957d9556ef8022704cdbf1845de4ac22432cf8d5edee826fac52b09023f870aca60d37eb2fce9d924ebc87d5768c84e3d397581c1668ad31dc3
|
7
|
+
data.tar.gz: 4818de3255c3879402b275d24ec095f2fcac67502a29e2977ee89e331c5bdc2b757a395d4871bf1e0495f24386c01e5e1e161e7ca8eec064ff159c33810e781d
|
data/CHANGELOG.md
CHANGED
data/doc/Lazier.html
CHANGED
@@ -1154,9 +1154,9 @@ Otherwise the class of the object will returned.</p>
|
|
1154
1154
|
</div>
|
1155
1155
|
|
1156
1156
|
<div id="footer">
|
1157
|
-
Generated on
|
1157
|
+
Generated on Thu Jun 19 11:34:24 2014 by
|
1158
1158
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1159
|
-
0.8.7.4 (ruby-2.1.
|
1159
|
+
0.8.7.4 (ruby-2.1.2).
|
1160
1160
|
</div>
|
1161
1161
|
|
1162
1162
|
</body>
|
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 Thu Jun 19 11:34:24 2014 by
|
292
292
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
293
|
-
0.8.7.4 (ruby-2.1.
|
293
|
+
0.8.7.4 (ruby-2.1.2).
|
294
294
|
</div>
|
295
295
|
|
296
296
|
</body>
|
@@ -386,9 +386,9 @@ Options are as follows:</p>
|
|
386
386
|
</div>
|
387
387
|
|
388
388
|
<div id="footer">
|
389
|
-
Generated on
|
389
|
+
Generated on Thu Jun 19 11:34:25 2014 by
|
390
390
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
391
|
-
0.8.7.4 (ruby-2.1.
|
391
|
+
0.8.7.4 (ruby-2.1.2).
|
392
392
|
</div>
|
393
393
|
|
394
394
|
</body>
|
data/doc/Lazier/DateTime.html
CHANGED
@@ -721,9 +721,9 @@ DateTime.civil(2013, 6, 1).in_months(2011)
|
|
721
721
|
</div>
|
722
722
|
|
723
723
|
<div id="footer">
|
724
|
-
Generated on
|
724
|
+
Generated on Thu Jun 19 11:34:24 2014 by
|
725
725
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
726
|
-
0.8.7.4 (ruby-2.1.
|
726
|
+
0.8.7.4 (ruby-2.1.2).
|
727
727
|
</div>
|
728
728
|
|
729
729
|
</body>
|
@@ -1554,9 +1554,9 @@ Date.years(1, true, 2010, true)
|
|
1554
1554
|
</div>
|
1555
1555
|
|
1556
1556
|
<div id="footer">
|
1557
|
-
Generated on
|
1557
|
+
Generated on Thu Jun 19 11:34:24 2014 by
|
1558
1558
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1559
|
-
0.8.7.4 (ruby-2.1.
|
1559
|
+
0.8.7.4 (ruby-2.1.2).
|
1560
1560
|
</div>
|
1561
1561
|
|
1562
1562
|
</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 Thu Jun 19 11:34:24 2014 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
|
-
0.8.7.4 (ruby-2.1.
|
121
|
+
0.8.7.4 (ruby-2.1.2).
|
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 Thu Jun 19 11:34:25 2014 by
|
128
128
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
129
|
-
0.8.7.4 (ruby-2.1.
|
129
|
+
0.8.7.4 (ruby-2.1.2).
|
130
130
|
</div>
|
131
131
|
|
132
132
|
</body>
|
@@ -238,9 +238,9 @@
|
|
238
238
|
</div>
|
239
239
|
|
240
240
|
<div id="footer">
|
241
|
-
Generated on
|
241
|
+
Generated on Thu Jun 19 11:34:25 2014 by
|
242
242
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
243
|
-
0.8.7.4 (ruby-2.1.
|
243
|
+
0.8.7.4 (ruby-2.1.2).
|
244
244
|
</div>
|
245
245
|
|
246
246
|
</body>
|
data/doc/Lazier/Hash.html
CHANGED
@@ -688,9 +688,9 @@
|
|
688
688
|
</div>
|
689
689
|
|
690
690
|
<div id="footer">
|
691
|
-
Generated on
|
691
|
+
Generated on Thu Jun 19 11:34:24 2014 by
|
692
692
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
693
|
-
0.8.7.4 (ruby-2.1.
|
693
|
+
0.8.7.4 (ruby-2.1.2).
|
694
694
|
</div>
|
695
695
|
|
696
696
|
</body>
|
data/doc/Lazier/I18n.html
CHANGED
@@ -1076,9 +1076,9 @@
|
|
1076
1076
|
</div>
|
1077
1077
|
|
1078
1078
|
<div id="footer">
|
1079
|
-
Generated on
|
1079
|
+
Generated on Thu Jun 19 11:34:24 2014 by
|
1080
1080
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1081
|
-
0.8.7.4 (ruby-2.1.
|
1081
|
+
0.8.7.4 (ruby-2.1.2).
|
1082
1082
|
</div>
|
1083
1083
|
|
1084
1084
|
</body>
|
data/doc/Lazier/Localizer.html
CHANGED
@@ -536,9 +536,9 @@
|
|
536
536
|
</div>
|
537
537
|
|
538
538
|
<div id="footer">
|
539
|
-
Generated on
|
539
|
+
Generated on Thu Jun 19 11:34:25 2014 by
|
540
540
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
541
|
-
0.8.7.4 (ruby-2.1.
|
541
|
+
0.8.7.4 (ruby-2.1.2).
|
542
542
|
</div>
|
543
543
|
|
544
544
|
</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 Thu Jun 19 11:34:24 2014 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
|
-
0.8.7.4 (ruby-2.1.
|
126
|
+
0.8.7.4 (ruby-2.1.2).
|
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 Thu Jun 19 11:34:24 2014 by
|
325
325
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
326
|
-
0.8.7.4 (ruby-2.1.
|
326
|
+
0.8.7.4 (ruby-2.1.2).
|
327
327
|
</div>
|
328
328
|
|
329
329
|
</body>
|
data/doc/Lazier/Object.html
CHANGED
@@ -2317,9 +2317,9 @@ Passing <code>nil</code> is equal to pass an empty Hash.</p>
|
|
2317
2317
|
</div>
|
2318
2318
|
|
2319
2319
|
<div id="footer">
|
2320
|
-
Generated on
|
2320
|
+
Generated on Thu Jun 19 11:34:24 2014 by
|
2321
2321
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2322
|
-
0.8.7.4 (ruby-2.1.
|
2322
|
+
0.8.7.4 (ruby-2.1.2).
|
2323
2323
|
</div>
|
2324
2324
|
|
2325
2325
|
</body>
|
data/doc/Lazier/Pathname.html
CHANGED
@@ -213,9 +213,9 @@ 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:34:24 2014 by
|
217
217
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
218
|
-
0.8.7.4 (ruby-2.1.
|
218
|
+
0.8.7.4 (ruby-2.1.2).
|
219
219
|
</div>
|
220
220
|
|
221
221
|
</body>
|
data/doc/Lazier/Settings.html
CHANGED
@@ -2429,9 +2429,9 @@
|
|
2429
2429
|
</div>
|
2430
2430
|
|
2431
2431
|
<div id="footer">
|
2432
|
-
Generated on
|
2432
|
+
Generated on Thu Jun 19 11:34:24 2014 by
|
2433
2433
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2434
|
-
0.8.7.4 (ruby-2.1.
|
2434
|
+
0.8.7.4 (ruby-2.1.2).
|
2435
2435
|
</div>
|
2436
2436
|
|
2437
2437
|
</body>
|
data/doc/Lazier/String.html
CHANGED
@@ -723,9 +723,9 @@
|
|
723
723
|
</div>
|
724
724
|
|
725
725
|
<div id="footer">
|
726
|
-
Generated on
|
726
|
+
Generated on Thu Jun 19 11:34:24 2014 by
|
727
727
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
728
|
-
0.8.7.4 (ruby-2.1.
|
728
|
+
0.8.7.4 (ruby-2.1.2).
|
729
729
|
</div>
|
730
730
|
|
731
731
|
</body>
|
data/doc/Lazier/TimeZone.html
CHANGED
@@ -166,6 +166,29 @@
|
|
166
166
|
<span class="summary_desc"><div class='inline'><p>Returns the current alias for this timezone.</p>
|
167
167
|
</div></span>
|
168
168
|
|
169
|
+
</li>
|
170
|
+
|
171
|
+
|
172
|
+
<li class="public ">
|
173
|
+
<span class="summary_signature">
|
174
|
+
|
175
|
+
<a href="#current_alias%3D-instance_method" title="#current_alias= (instance method)">- (Object) <strong>current_alias=</strong>(new_alias) </a>
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
</span>
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<span class="summary_desc"><div class='inline'><p>Sets the current alias.</p>
|
190
|
+
</div></span>
|
191
|
+
|
169
192
|
</li>
|
170
193
|
|
171
194
|
|
@@ -543,25 +566,92 @@
|
|
543
566
|
173
|
544
567
|
174
|
545
568
|
175
|
546
|
-
176
|
569
|
+
176
|
570
|
+
177
|
571
|
+
178
|
572
|
+
179
|
573
|
+
180</pre>
|
547
574
|
</td>
|
548
575
|
<td>
|
549
576
|
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 166</span>
|
550
577
|
|
551
578
|
<span class='kw'>def</span> <span class='id identifier rubyid_current_alias'>current_alias</span>
|
552
|
-
<span class='
|
579
|
+
<span class='kw'>if</span> <span class='ivar'>@current_alias</span>
|
580
|
+
<span class='ivar'>@current_alias</span>
|
581
|
+
<span class='kw'>else</span>
|
582
|
+
<span class='id identifier rubyid_identifier'>identifier</span> <span class='op'>=</span> <span class='id identifier rubyid_tzinfo'>tzinfo</span><span class='period'>.</span><span class='id identifier rubyid_identifier'>identifier</span>
|
553
583
|
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
584
|
+
<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>
|
585
|
+
<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>
|
586
|
+
<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>
|
587
|
+
<span class='kw'>end</span>
|
558
588
|
|
559
|
-
|
589
|
+
<span class='id identifier rubyid_aliases'>aliases</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
|
590
|
+
<span class='kw'>end</span>
|
560
591
|
<span class='kw'>end</span>
|
561
592
|
<span class='kw'>end</span></pre>
|
562
593
|
</td>
|
563
594
|
</tr>
|
564
595
|
</table>
|
596
|
+
</div>
|
597
|
+
|
598
|
+
<div class="method_details ">
|
599
|
+
<h3 class="signature " id="current_alias=-instance_method">
|
600
|
+
|
601
|
+
- (<tt><span class='object_link'><a href="Object.html" title="Lazier::Object (module)">Object</a></span></tt>) <strong>current_alias=</strong>(new_alias)
|
602
|
+
|
603
|
+
|
604
|
+
|
605
|
+
|
606
|
+
|
607
|
+
</h3><div class="docstring">
|
608
|
+
<div class="discussion">
|
609
|
+
<p>Sets the current alias.</p>
|
610
|
+
|
611
|
+
|
612
|
+
</div>
|
613
|
+
</div>
|
614
|
+
<div class="tags">
|
615
|
+
<p class="tag_title">Parameters:</p>
|
616
|
+
<ul class="param">
|
617
|
+
|
618
|
+
<li>
|
619
|
+
|
620
|
+
<span class='name'>new_alias</span>
|
621
|
+
|
622
|
+
|
623
|
+
<span class='type'>(<tt><span class='object_link'><a href="String.html" title="Lazier::String (module)">String</a></span></tt>)</span>
|
624
|
+
|
625
|
+
|
626
|
+
|
627
|
+
—
|
628
|
+
<div class='inline'><p>The new current alias.</p>
|
629
|
+
</div>
|
630
|
+
|
631
|
+
</li>
|
632
|
+
|
633
|
+
</ul>
|
634
|
+
|
635
|
+
|
636
|
+
</div><table class="source_code">
|
637
|
+
<tr>
|
638
|
+
<td>
|
639
|
+
<pre class="lines">
|
640
|
+
|
641
|
+
|
642
|
+
185
|
643
|
+
186
|
644
|
+
187</pre>
|
645
|
+
</td>
|
646
|
+
<td>
|
647
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 185</span>
|
648
|
+
|
649
|
+
<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>
|
650
|
+
<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>
|
651
|
+
<span class='kw'>end</span></pre>
|
652
|
+
</td>
|
653
|
+
</tr>
|
654
|
+
</table>
|
565
655
|
</div>
|
566
656
|
|
567
657
|
<div class="method_details ">
|
@@ -743,12 +833,12 @@
|
|
743
833
|
<pre class="lines">
|
744
834
|
|
745
835
|
|
746
|
-
|
747
|
-
|
748
|
-
|
836
|
+
229
|
837
|
+
230
|
838
|
+
231</pre>
|
749
839
|
</td>
|
750
840
|
<td>
|
751
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
841
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 229</span>
|
752
842
|
|
753
843
|
<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>
|
754
844
|
<span class='id identifier rubyid_dst_offset'>dst_offset</span><span class='lparen'>(</span><span class='id identifier rubyid_rational'>rational</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span><span class='comma'>,</span> <span class='symbol'>:std_offset</span><span class='rparen'>)</span>
|
@@ -855,12 +945,12 @@
|
|
855
945
|
<pre class="lines">
|
856
946
|
|
857
947
|
|
858
|
-
|
859
|
-
|
860
|
-
|
948
|
+
251
|
949
|
+
252
|
950
|
+
253</pre>
|
861
951
|
</td>
|
862
952
|
<td>
|
863
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
953
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 251</span>
|
864
954
|
|
865
955
|
<span class='kw'>def</span> <span class='id identifier rubyid_dst_name'>dst_name</span><span class='lparen'>(</span><span class='id identifier rubyid_dst_label'>dst_label</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
866
956
|
<span class='id identifier rubyid_uses_dst?'>uses_dst?</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span> <span class='op'>||</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_dst_label'>dst_label</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>(DST)</span><span class='tstring_end'>"</span></span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='op'>:</span> <span class='kw'>nil</span>
|
@@ -967,14 +1057,14 @@
|
|
967
1057
|
<pre class="lines">
|
968
1058
|
|
969
1059
|
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
1060
|
+
239
|
1061
|
+
240
|
1062
|
+
241
|
1063
|
+
242
|
1064
|
+
243</pre>
|
975
1065
|
</td>
|
976
1066
|
<td>
|
977
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
1067
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 239</span>
|
978
1068
|
|
979
1069
|
<span class='kw'>def</span> <span class='id identifier rubyid_dst_offset'>dst_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_year'>year</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_method'>method</span> <span class='op'>=</span> <span class='symbol'>:utc_total_offset</span><span class='rparen'>)</span>
|
980
1070
|
<span class='id identifier rubyid_period'>period</span> <span class='op'>=</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='rparen'>)</span>
|
@@ -1049,19 +1139,19 @@
|
|
1049
1139
|
<pre class="lines">
|
1050
1140
|
|
1051
1141
|
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1142
|
+
201
|
1143
|
+
202
|
1144
|
+
203
|
1145
|
+
204
|
1146
|
+
205
|
1147
|
+
206
|
1148
|
+
207
|
1149
|
+
208
|
1150
|
+
209
|
1151
|
+
210</pre>
|
1062
1152
|
</td>
|
1063
1153
|
<td>
|
1064
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
1154
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 201</span>
|
1065
1155
|
|
1066
1156
|
<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>
|
1067
1157
|
<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_today'>today</span><span class='period'>.</span><span class='id identifier rubyid_year'>year</span>
|
@@ -1141,12 +1231,12 @@
|
|
1141
1231
|
<pre class="lines">
|
1142
1232
|
|
1143
1233
|
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1234
|
+
193
|
1235
|
+
194
|
1236
|
+
195</pre>
|
1147
1237
|
</td>
|
1148
1238
|
<td>
|
1149
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
1239
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 193</span>
|
1150
1240
|
|
1151
1241
|
<span class='kw'>def</span> <span class='id identifier rubyid_offset'>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='rparen'>)</span>
|
1152
1242
|
<span class='id identifier rubyid_rational'>rational</span> <span class='op'>?</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_rationalize_offset'>rationalize_offset</span><span class='lparen'>(</span><span class='id identifier rubyid_utc_offset'>utc_offset</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_utc_offset'>utc_offset</span>
|
@@ -1236,12 +1326,12 @@
|
|
1236
1326
|
<pre class="lines">
|
1237
1327
|
|
1238
1328
|
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1329
|
+
260
|
1330
|
+
261
|
1331
|
+
262</pre>
|
1242
1332
|
</td>
|
1243
1333
|
<td>
|
1244
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
1334
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 260</span>
|
1245
1335
|
|
1246
1336
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_str'>to_str</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_colon'>colon</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
1247
1337
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>(GMT</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_formatted_offset'>formatted_offset</span><span class='lparen'>(</span><span class='id identifier rubyid_colon'>colon</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>) </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span> <span class='op'>||</span> <span class='id identifier rubyid_current_alias'>current_alias</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
@@ -1331,12 +1421,12 @@
|
|
1331
1421
|
<pre class="lines">
|
1332
1422
|
|
1333
1423
|
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1424
|
+
279
|
1425
|
+
280
|
1426
|
+
281</pre>
|
1337
1427
|
</td>
|
1338
1428
|
<td>
|
1339
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
1429
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 279</span>
|
1340
1430
|
|
1341
1431
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_str_parameterized'>to_str_parameterized</span><span class='lparen'>(</span><span class='id identifier rubyid_with_offset'>with_offset</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1342
1432
|
<span class='op'>::</span><span class='const'>ActiveSupport</span><span class='op'>::</span><span class='const'>TimeZone</span><span class='period'>.</span><span class='id identifier rubyid_parameterize_zone'>parameterize_zone</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span> <span class='op'>||</span> <span class='id identifier rubyid_to_str'>to_str</span><span class='comma'>,</span> <span class='id identifier rubyid_with_offset'>with_offset</span><span class='rparen'>)</span>
|
@@ -1443,12 +1533,12 @@
|
|
1443
1533
|
<pre class="lines">
|
1444
1534
|
|
1445
1535
|
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1536
|
+
270
|
1537
|
+
271
|
1538
|
+
272</pre>
|
1449
1539
|
</td>
|
1450
1540
|
<td>
|
1451
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
1541
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 270</span>
|
1452
1542
|
|
1453
1543
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_str_with_dst'>to_str_with_dst</span><span class='lparen'>(</span><span class='id identifier rubyid_dst_label'>dst_label</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1454
1544
|
<span class='id identifier rubyid_uses_dst?'>uses_dst?</span><span class='lparen'>(</span><span class='id identifier rubyid_year'>year</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>(GMT</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_seconds_to_utc_offset'>seconds_to_utc_offset</span><span class='lparen'>(</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='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_utc_total_offset'>utc_total_offset</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>) </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span> <span class='op'>||</span> <span class='id identifier rubyid_current_alias'>current_alias</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_dst_label'>dst_label</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>(DST)</span><span class='tstring_end'>"</span></span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='op'>:</span> <span class='kw'>nil</span>
|
@@ -1555,13 +1645,13 @@
|
|
1555
1645
|
<pre class="lines">
|
1556
1646
|
|
1557
1647
|
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1648
|
+
289
|
1649
|
+
290
|
1650
|
+
291
|
1651
|
+
292</pre>
|
1562
1652
|
</td>
|
1563
1653
|
<td>
|
1564
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
1654
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 289</span>
|
1565
1655
|
|
1566
1656
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_str_with_dst_parameterized'>to_str_with_dst_parameterized</span><span class='lparen'>(</span><span class='id identifier rubyid_dst_label'>dst_label</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1567
1657
|
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_to_str_with_dst'>to_str_with_dst</span><span class='lparen'>(</span><span class='id identifier rubyid_dst_label'>dst_label</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
@@ -1635,16 +1725,16 @@
|
|
1635
1725
|
<pre class="lines">
|
1636
1726
|
|
1637
1727
|
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1728
|
+
216
|
1729
|
+
217
|
1730
|
+
218
|
1731
|
+
219
|
1732
|
+
220
|
1733
|
+
221
|
1734
|
+
222</pre>
|
1645
1735
|
</td>
|
1646
1736
|
<td>
|
1647
|
-
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line
|
1737
|
+
<pre class="code"><span class="info file"># File 'lib/lazier/timezone.rb', line 216</span>
|
1648
1738
|
|
1649
1739
|
<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>
|
1650
1740
|
<span class='kw'>if</span> <span class='id identifier rubyid_reference'>reference</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:year</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_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:utc</span><span class='rparen'>)</span> <span class='comment'># This is a date like object
|
@@ -1663,9 +1753,9 @@
|
|
1663
1753
|
</div>
|
1664
1754
|
|
1665
1755
|
<div id="footer">
|
1666
|
-
Generated on
|
1756
|
+
Generated on Thu Jun 19 11:34:24 2014 by
|
1667
1757
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1668
|
-
0.8.7.4 (ruby-2.1.
|
1758
|
+
0.8.7.4 (ruby-2.1.2).
|
1669
1759
|
</div>
|
1670
1760
|
|
1671
1761
|
</body>
|