lazier 3.5.0 → 3.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 978254a214fff223e7131dc86622875b3fb86adf
4
- data.tar.gz: 9e28d70c6818dc11a2bbdbdf836a34f7d53c6e56
3
+ metadata.gz: 11713d0eaf0a881ce620fd5dbaa60f73e9399398
4
+ data.tar.gz: b74418c3196b10096e814adfc8aba572748b8c04
5
5
  SHA512:
6
- metadata.gz: 817de72185f75362dcddb1c6454df301492f4625377c604ae7f34c08a3d87276a3d831991ff515cf3bff41dc3a268b71ae6da501438ae285769ed9a7c6f37474
7
- data.tar.gz: 3ac68744df6f81de54f60104cd359f55e6f5607a418ced2adf8a23eed01a724aa44cc29664c6e9fa5a3d9d9530ff534908cf549fec700cc5a885b7469e3b8ae0
6
+ metadata.gz: 17d4d41f45d8f93611c9ab7c4aeeefd0a0dff94939a221e38e694bd51bb8825cc4026dadd3af2c35a8251e3b2a1fde9bd25e14a2d15f4f99b170cb10af582040
7
+ data.tar.gz: e9f12f30159b45c855e0f0c598c983e96c81e41537a2db7587de0bfe92209ce729f6a4b7d6154b9c3531df7ea6a8b5ab1e101b850c91e4678403ee5073a2bd79
data/.DS_Store ADDED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 3.5.1 / 2014-02-16
2
+
3
+ * `Lazier::Hash#ensure_access` now supports multiple accesses.
4
+
1
5
  ### 3.5.0 / 2014-02-16
2
6
 
3
7
  * Added `Lazier::String#split_tokens`.
data/doc/Lazier.html CHANGED
@@ -1166,7 +1166,7 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
1166
1166
  </div>
1167
1167
 
1168
1168
  <div id="footer">
1169
- Generated on Sun Feb 16 13:46:55 2014 by
1169
+ Generated on Sun Feb 23 15:47:02 2014 by
1170
1170
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1171
1171
  0.8.7.3 (ruby-2.1.0).
1172
1172
  </div>
@@ -288,7 +288,7 @@
288
288
  </div>
289
289
 
290
290
  <div id="footer">
291
- Generated on Sun Feb 16 13:46:56 2014 by
291
+ Generated on Sun Feb 23 15:47:03 2014 by
292
292
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
293
293
  0.8.7.3 (ruby-2.1.0).
294
294
  </div>
@@ -386,7 +386,7 @@ Options are as follows:</p>
386
386
  </div>
387
387
 
388
388
  <div id="footer">
389
- Generated on Sun Feb 16 13:46:56 2014 by
389
+ Generated on Sun Feb 23 15:47:04 2014 by
390
390
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
391
391
  0.8.7.3 (ruby-2.1.0).
392
392
  </div>
@@ -721,7 +721,7 @@ DateTime.civil(2013, 6, 1).in_months(2011)
721
721
  </div>
722
722
 
723
723
  <div id="footer">
724
- Generated on Sun Feb 16 13:46:56 2014 by
724
+ Generated on Sun Feb 23 15:47:03 2014 by
725
725
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
726
726
  0.8.7.3 (ruby-2.1.0).
727
727
  </div>
@@ -1542,7 +1542,7 @@ Date.years(1, true, 2010, true)
1542
1542
  </div>
1543
1543
 
1544
1544
  <div id="footer">
1545
- Generated on Sun Feb 16 13:46:56 2014 by
1545
+ Generated on Sun Feb 23 15:47:03 2014 by
1546
1546
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1547
1547
  0.8.7.3 (ruby-2.1.0).
1548
1548
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Sun Feb 16 13:46:56 2014 by
119
+ Generated on Sun Feb 23 15:47:03 2014 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.8.7.3 (ruby-2.1.0).
122
122
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Sun Feb 16 13:46:56 2014 by
127
+ Generated on Sun Feb 23 15:47:03 2014 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.7.3 (ruby-2.1.0).
130
130
  </div>
@@ -238,7 +238,7 @@
238
238
  </div>
239
239
 
240
240
  <div id="footer">
241
- Generated on Sun Feb 16 13:46:56 2014 by
241
+ Generated on Sun Feb 23 15:47:03 2014 by
242
242
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
243
243
  0.8.7.3 (ruby-2.1.0).
244
244
  </div>
data/doc/Lazier/Hash.html CHANGED
@@ -99,6 +99,33 @@
99
99
 
100
100
 
101
101
  </div>
102
+ <h2>Constant Summary</h2>
103
+
104
+ <dl class="constants">
105
+
106
+ <dt id="VALID_ACCESSES-constant" class="">VALID_ACCESSES =
107
+ <div class="docstring">
108
+ <div class="discussion">
109
+ <p>The supported accesses for #ensure_access</p>
110
+
111
+
112
+ </div>
113
+ </div>
114
+ <div class="tags">
115
+
116
+
117
+ </div>
118
+ </dt>
119
+ <dd><pre class="code"><span class='lbrace'>{</span>
120
+ <span class='label'>strings:</span> <span class='symbol'>:stringify_keys</span><span class='comma'>,</span>
121
+ <span class='label'>symbols:</span> <span class='symbol'>:symbolize_keys</span><span class='comma'>,</span>
122
+ <span class='label'>indifferent:</span> <span class='symbol'>:with_indifferent_access</span><span class='comma'>,</span>
123
+ <span class='label'>dotted:</span> <span class='symbol'>:enable_dotted_access</span>
124
+ <span class='rbrace'>}</span></pre></dd>
125
+
126
+ </dl>
127
+
128
+
102
129
 
103
130
 
104
131
 
@@ -185,7 +212,7 @@
185
212
  <li class="public ">
186
213
  <span class="summary_signature">
187
214
 
188
- <a href="#ensure_access-instance_method" title="#ensure_access (instance method)">- (Hash) <strong>ensure_access</strong>(access) </a>
215
+ <a href="#ensure_access-instance_method" title="#ensure_access (instance method)">- (Hash) <strong>ensure_access</strong>(*accesses) </a>
189
216
 
190
217
 
191
218
 
@@ -276,13 +303,13 @@
276
303
  <pre class="lines">
277
304
 
278
305
 
279
- 16
280
- 17
281
- 18
282
- 19</pre>
306
+ 24
307
+ 25
308
+ 26
309
+ 27</pre>
283
310
  </td>
284
311
  <td>
285
- <pre class="code"><span class="info file"># File 'lib/lazier/hash.rb', line 16</span>
312
+ <pre class="code"><span class="info file"># File 'lib/lazier/hash.rb', line 24</span>
286
313
 
287
314
  <span class='kw'>def</span> <span class='id identifier rubyid_compact'>compact</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_validator'>validator</span><span class='rparen'>)</span>
288
315
  <span class='id identifier rubyid_validator'>validator</span> <span class='op'>||=</span> <span class='tlambda'>-&gt;</span><span class='lparen'>(</span><span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span> <span class='tlambeg'>{</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span> <span class='rbrace'>}</span>
@@ -337,13 +364,13 @@
337
364
  <pre class="lines">
338
365
 
339
366
 
340
- 24
341
- 25
342
- 26
343
- 27</pre>
367
+ 32
368
+ 33
369
+ 34
370
+ 35</pre>
344
371
  </td>
345
372
  <td>
346
- <pre class="code"><span class="info file"># File 'lib/lazier/hash.rb', line 24</span>
373
+ <pre class="code"><span class="info file"># File 'lib/lazier/hash.rb', line 32</span>
347
374
 
348
375
  <span class='kw'>def</span> <span class='id identifier rubyid_compact!'>compact!</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_validator'>validator</span><span class='rparen'>)</span>
349
376
  <span class='id identifier rubyid_validator'>validator</span> <span class='op'>||=</span> <span class='tlambda'>-&gt;</span><span class='lparen'>(</span><span class='id identifier rubyid__'>_</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span> <span class='tlambeg'>{</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span> <span class='rbrace'>}</span>
@@ -417,26 +444,26 @@
417
444
  <pre class="lines">
418
445
 
419
446
 
420
- 42
421
- 43
422
- 44
423
- 45
424
- 46
425
- 47
426
- 48
427
- 49
428
- 50
429
- 51
430
- 52
431
447
  53
432
448
  54
433
449
  55
434
450
  56
435
451
  57
436
- 58</pre>
452
+ 58
453
+ 59
454
+ 60
455
+ 61
456
+ 62
457
+ 63
458
+ 64
459
+ 65
460
+ 66
461
+ 67
462
+ 68
463
+ 69</pre>
437
464
  </td>
438
465
  <td>
439
- <pre class="code"><span class="info file"># File 'lib/lazier/hash.rb', line 42</span>
466
+ <pre class="code"><span class="info file"># File 'lib/lazier/hash.rb', line 53</span>
440
467
 
441
468
  <span class='kw'>def</span> <span class='id identifier rubyid_enable_dotted_access'>enable_dotted_access</span><span class='lparen'>(</span><span class='id identifier rubyid_readonly'>readonly</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
442
469
  <span class='id identifier rubyid_extend'>extend</span><span class='lparen'>(</span><span class='const'>Hashie</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>MethodReader</span><span class='rparen'>)</span>
@@ -463,7 +490,7 @@
463
490
  <div class="method_details ">
464
491
  <h3 class="signature " id="ensure_access-instance_method">
465
492
 
466
- - (<tt><span class='object_link'><a href="" title="Lazier::Hash (module)">Hash</a></span></tt>) <strong>ensure_access</strong>(access)
493
+ - (<tt><span class='object_link'><a href="" title="Lazier::Hash (module)">Hash</a></span></tt>) <strong>ensure_access</strong>(*accesses)
467
494
 
468
495
 
469
496
 
@@ -482,10 +509,10 @@
482
509
 
483
510
  <li>
484
511
 
485
- <span class='name'>access</span>
512
+ <span class='name'>accesses</span>
486
513
 
487
514
 
488
- <span class='type'>(<tt>Symbol|NilClass</tt>)</span>
515
+ <span class='type'>(<tt>Array</tt>)</span>
489
516
 
490
517
 
491
518
 
@@ -521,17 +548,23 @@
521
548
  <pre class="lines">
522
549
 
523
550
 
524
- 33
525
- 34
526
- 35
527
- 36</pre>
551
+ 41
552
+ 42
553
+ 43
554
+ 44
555
+ 45
556
+ 46
557
+ 47</pre>
528
558
  </td>
529
559
  <td>
530
- <pre class="code"><span class="info file"># File 'lib/lazier/hash.rb', line 33</span>
560
+ <pre class="code"><span class="info file"># File 'lib/lazier/hash.rb', line 41</span>
531
561
 
532
- <span class='kw'>def</span> <span class='id identifier rubyid_ensure_access'>ensure_access</span><span class='lparen'>(</span><span class='id identifier rubyid_access'>access</span><span class='rparen'>)</span>
533
- <span class='id identifier rubyid_method'>method</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='label'>strings:</span> <span class='symbol'>:stringify_keys</span><span class='comma'>,</span> <span class='label'>symbols:</span> <span class='symbol'>:symbolize_keys</span><span class='comma'>,</span> <span class='label'>indifferent:</span> <span class='symbol'>:with_indifferent_access</span><span class='comma'>,</span> <span class='label'>dotted:</span> <span class='symbol'>:enable_dotted_access</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='id identifier rubyid_access'>access</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
534
- <span class='id identifier rubyid_method'>method</span> <span class='op'>?</span> <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='kw'>self</span>
562
+ <span class='kw'>def</span> <span class='id identifier rubyid_ensure_access'>ensure_access</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_accesses'>accesses</span><span class='rparen'>)</span>
563
+ <span class='id identifier rubyid_accesses'>accesses</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span><span class='period'>.</span><span class='id identifier rubyid_inject'>inject</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_rv'>rv</span><span class='comma'>,</span> <span class='id identifier rubyid_access'>access</span><span class='op'>|</span>
564
+ <span class='id identifier rubyid_method'>method</span> <span class='op'>=</span> <span class='const'>VALID_ACCESSES</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='id identifier rubyid_access'>access</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
565
+ <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_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_method'>method</span>
566
+ <span class='id identifier rubyid_rv'>rv</span>
567
+ <span class='kw'>end</span>
535
568
  <span class='kw'>end</span></pre>
536
569
  </td>
537
570
  </tr>
@@ -543,7 +576,7 @@
543
576
  </div>
544
577
 
545
578
  <div id="footer">
546
- Generated on Sun Feb 16 13:46:55 2014 by
579
+ Generated on Sun Feb 23 15:47:03 2014 by
547
580
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
548
581
  0.8.7.3 (ruby-2.1.0).
549
582
  </div>
data/doc/Lazier/I18n.html CHANGED
@@ -1070,7 +1070,7 @@
1070
1070
  </div>
1071
1071
 
1072
1072
  <div id="footer">
1073
- Generated on Sun Feb 16 13:46:55 2014 by
1073
+ Generated on Sun Feb 23 15:47:03 2014 by
1074
1074
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1075
1075
  0.8.7.3 (ruby-2.1.0).
1076
1076
  </div>
@@ -536,7 +536,7 @@
536
536
  </div>
537
537
 
538
538
  <div id="footer">
539
- Generated on Sun Feb 16 13:46:56 2014 by
539
+ Generated on Sun Feb 23 15:47:03 2014 by
540
540
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
541
541
  0.8.7.3 (ruby-2.1.0).
542
542
  </div>
data/doc/Lazier/Math.html CHANGED
@@ -121,7 +121,7 @@
121
121
  </div>
122
122
 
123
123
  <div id="footer">
124
- Generated on Sun Feb 16 13:46:55 2014 by
124
+ Generated on Sun Feb 23 15:47:03 2014 by
125
125
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
126
126
  0.8.7.3 (ruby-2.1.0).
127
127
  </div>
@@ -321,7 +321,7 @@
321
321
  </div>
322
322
 
323
323
  <div id="footer">
324
- Generated on Sun Feb 16 13:46:55 2014 by
324
+ Generated on Sun Feb 23 15:47:03 2014 by
325
325
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
326
326
  0.8.7.3 (ruby-2.1.0).
327
327
  </div>
@@ -2203,7 +2203,7 @@
2203
2203
  </div>
2204
2204
 
2205
2205
  <div id="footer">
2206
- Generated on Sun Feb 16 13:46:56 2014 by
2206
+ Generated on Sun Feb 23 15:47:03 2014 by
2207
2207
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2208
2208
  0.8.7.3 (ruby-2.1.0).
2209
2209
  </div>
@@ -213,7 +213,7 @@ Pathname.new("/usr/bin/ruby").components
213
213
  </div>
214
214
 
215
215
  <div id="footer">
216
- Generated on Sun Feb 16 13:46:56 2014 by
216
+ Generated on Sun Feb 23 15:47:03 2014 by
217
217
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
218
218
  0.8.7.3 (ruby-2.1.0).
219
219
  </div>
@@ -2405,7 +2405,7 @@
2405
2405
  </div>
2406
2406
 
2407
2407
  <div id="footer">
2408
- Generated on Sun Feb 16 13:46:56 2014 by
2408
+ Generated on Sun Feb 23 15:47:03 2014 by
2409
2409
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2410
2410
  0.8.7.3 (ruby-2.1.0).
2411
2411
  </div>
@@ -723,7 +723,7 @@
723
723
  </div>
724
724
 
725
725
  <div id="footer">
726
- Generated on Sun Feb 16 13:46:56 2014 by
726
+ Generated on Sun Feb 23 15:47:03 2014 by
727
727
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
728
728
  0.8.7.3 (ruby-2.1.0).
729
729
  </div>
@@ -1663,7 +1663,7 @@
1663
1663
  </div>
1664
1664
 
1665
1665
  <div id="footer">
1666
- Generated on Sun Feb 16 13:46:56 2014 by
1666
+ Generated on Sun Feb 23 15:47:03 2014 by
1667
1667
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1668
1668
  0.8.7.3 (ruby-2.1.0).
1669
1669
  </div>
@@ -1015,7 +1015,7 @@ DateTime.parameterize_zone(ActiveSupport::TimeZone["Pacific Time (US &amp; Canad
1015
1015
  </div>
1016
1016
 
1017
1017
  <div id="footer">
1018
- Generated on Sun Feb 16 13:46:56 2014 by
1018
+ Generated on Sun Feb 23 15:47:03 2014 by
1019
1019
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1020
1020
  0.8.7.3 (ruby-2.1.0).
1021
1021
  </div>
@@ -149,7 +149,7 @@
149
149
 
150
150
  </div>
151
151
  </dt>
152
- <dd><pre class="code"><span class='int'>0</span></pre></dd>
152
+ <dd><pre class="code"><span class='int'>1</span></pre></dd>
153
153
 
154
154
  <dt id="STRING-constant" class="">STRING =
155
155
  <div class="docstring">
@@ -180,7 +180,7 @@
180
180
  </div>
181
181
 
182
182
  <div id="footer">
183
- Generated on Sun Feb 16 13:46:56 2014 by
183
+ Generated on Sun Feb 23 15:47:03 2014 by
184
184
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
185
185
  0.8.7.3 (ruby-2.1.0).
186
186
  </div>
data/doc/_index.html CHANGED
@@ -333,7 +333,7 @@
333
333
  </div>
334
334
 
335
335
  <div id="footer">
336
- Generated on Sun Feb 16 13:46:55 2014 by
336
+ Generated on Sun Feb 23 15:47:02 2014 by
337
337
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
338
338
  0.8.7.3 (ruby-2.1.0).
339
339
  </div>
data/doc/file.README.html CHANGED
@@ -106,7 +106,7 @@ See documentation for more informations.</p>
106
106
  </div></div>
107
107
 
108
108
  <div id="footer">
109
- Generated on Sun Feb 16 13:46:55 2014 by
109
+ Generated on Sun Feb 23 15:47:02 2014 by
110
110
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
111
111
  0.8.7.3 (ruby-2.1.0).
112
112
  </div>
data/doc/index.html CHANGED
@@ -106,7 +106,7 @@ See documentation for more informations.</p>
106
106
  </div></div>
107
107
 
108
108
  <div id="footer">
109
- Generated on Sun Feb 16 13:46:55 2014 by
109
+ Generated on Sun Feb 23 15:47:02 2014 by
110
110
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
111
111
  0.8.7.3 (ruby-2.1.0).
112
112
  </div>
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Sun Feb 16 13:46:55 2014 by
106
+ Generated on Sun Feb 23 15:47:02 2014 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
108
  0.8.7.3 (ruby-2.1.0).
109
109
  </div>