lazier 3.0.1 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile CHANGED
@@ -14,6 +14,7 @@ gem "rake", "~> 10.0.4"
14
14
 
15
15
  # Documentation
16
16
  gem "simplecov", ">= 0.7.1"
17
+ gem "coveralls", "~> 0.6.7", require: false
17
18
  gem "pry", ">= 0"
18
19
  gem "yard", ">= 0.8.6"
19
20
  gem "kramdown", ">= 1.0.2"
@@ -288,7 +288,7 @@
288
288
  </div>
289
289
 
290
290
  <div id="footer">
291
- Generated on Sun May 19 15:32:41 2013 by
291
+ Generated on Thu May 23 10:33:27 2013 by
292
292
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
293
293
  0.8.6.1 (ruby-1.9.3).
294
294
  </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 May 19 15:32:41 2013 by
1545
+ Generated on Thu May 23 10:33:27 2013 by
1546
1546
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1547
1547
  0.8.6.1 (ruby-1.9.3).
1548
1548
  </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 May 19 15:32:41 2013 by
724
+ Generated on Thu May 23 10:33:27 2013 by
725
725
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
726
726
  0.8.6.1 (ruby-1.9.3).
727
727
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Sun May 19 15:32:42 2013 by
127
+ Generated on Thu May 23 10:33:28 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.6.1 (ruby-1.9.3).
130
130
  </div>
@@ -238,7 +238,7 @@
238
238
  </div>
239
239
 
240
240
  <div id="footer">
241
- Generated on Sun May 19 15:32:42 2013 by
241
+ Generated on Thu May 23 10:33:28 2013 by
242
242
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
243
243
  0.8.6.1 (ruby-1.9.3).
244
244
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Sun May 19 15:32:42 2013 by
119
+ Generated on Thu May 23 10:33:28 2013 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.8.6.1 (ruby-1.9.3).
122
122
  </div>
data/doc/Lazier/Hash.html CHANGED
@@ -111,7 +111,7 @@
111
111
  </div>
112
112
 
113
113
  <div id="footer">
114
- Generated on Sun May 19 15:32:41 2013 by
114
+ Generated on Thu May 23 10:33:26 2013 by
115
115
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
116
116
  0.8.6.1 (ruby-1.9.3).
117
117
  </div>
data/doc/Lazier/I18n.html CHANGED
@@ -1056,7 +1056,7 @@
1056
1056
  </div>
1057
1057
 
1058
1058
  <div id="footer">
1059
- Generated on Sun May 19 15:32:41 2013 by
1059
+ Generated on Thu May 23 10:33:26 2013 by
1060
1060
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1061
1061
  0.8.6.1 (ruby-1.9.3).
1062
1062
  </div>
@@ -536,7 +536,7 @@
536
536
  </div>
537
537
 
538
538
  <div id="footer">
539
- Generated on Sun May 19 15:32:42 2013 by
539
+ Generated on Thu May 23 10:33:28 2013 by
540
540
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
541
541
  0.8.6.1 (ruby-1.9.3).
542
542
  </div>
@@ -321,7 +321,7 @@
321
321
  </div>
322
322
 
323
323
  <div id="footer">
324
- Generated on Sun May 19 15:32:41 2013 by
324
+ Generated on Thu May 23 10:33:26 2013 by
325
325
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
326
326
  0.8.6.1 (ruby-1.9.3).
327
327
  </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 May 19 15:32:41 2013 by
124
+ Generated on Thu May 23 10:33:26 2013 by
125
125
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
126
126
  0.8.6.1 (ruby-1.9.3).
127
127
  </div>
@@ -187,7 +187,7 @@
187
187
  <li class="public ">
188
188
  <span class="summary_signature">
189
189
 
190
- <a href="#analyze-instance_method" title="#analyze (instance method)">- (String) <strong>analyze</strong>(format = :yaml, as_exception = true) </a>
190
+ <a href="#ensure-instance_method" title="#ensure (instance method)">- (String) <strong>ensure</strong>(default_value, verifier = :blank?) </a>
191
191
 
192
192
 
193
193
 
@@ -201,7 +201,7 @@
201
201
 
202
202
 
203
203
 
204
- <span class="summary_desc"><div class='inline'><p>Inspects an object.</p>
204
+ <span class="summary_desc"><div class='inline'><p>Makes sure that the object is set to something meaningful.</p>
205
205
  </div></span>
206
206
 
207
207
  </li>
@@ -210,7 +210,7 @@
210
210
  <li class="public ">
211
211
  <span class="summary_signature">
212
212
 
213
- <a href="#ensure-instance_method" title="#ensure (instance method)">- (String) <strong>ensure</strong>(default_value, verifier = :blank?) </a>
213
+ <a href="#ensure_array-instance_method" title="#ensure_array (instance method)">- (Array) <strong>ensure_array</strong>(default_value = nil, uniq = false, compact = false, sanitizer = nil, &amp;block) </a>
214
214
 
215
215
 
216
216
 
@@ -224,7 +224,7 @@
224
224
 
225
225
 
226
226
 
227
- <span class="summary_desc"><div class='inline'><p>Makes sure that the object is set to something meaningful.</p>
227
+ <span class="summary_desc"><div class='inline'><p>Makes sure that the object is an array.</p>
228
228
  </div></span>
229
229
 
230
230
  </li>
@@ -233,7 +233,7 @@
233
233
  <li class="public ">
234
234
  <span class="summary_signature">
235
235
 
236
- <a href="#ensure_array-instance_method" title="#ensure_array (instance method)">- (Array) <strong>ensure_array</strong>(default_value = nil, uniq = false, compact = false, sanitizer = nil, &amp;block) </a>
236
+ <a href="#ensure_hash-instance_method" title="#ensure_hash (instance method)">- (Hash) <strong>ensure_hash</strong>(default_value = nil, sanitizer = nil) </a>
237
237
 
238
238
 
239
239
 
@@ -247,7 +247,7 @@
247
247
 
248
248
 
249
249
 
250
- <span class="summary_desc"><div class='inline'><p>Makes sure that the object is an array.</p>
250
+ <span class="summary_desc"><div class='inline'><p>Makes sure that the object is an hash.</p>
251
251
  </div></span>
252
252
 
253
253
  </li>
@@ -256,7 +256,7 @@
256
256
  <li class="public ">
257
257
  <span class="summary_signature">
258
258
 
259
- <a href="#ensure_hash-instance_method" title="#ensure_hash (instance method)">- (Hash) <strong>ensure_hash</strong>(default_value = nil, sanitizer = nil) </a>
259
+ <a href="#ensure_string-instance_method" title="#ensure_string (instance method)">- (String) <strong>ensure_string</strong>(default_value = &quot;&quot;, stringifier = :to_s) </a>
260
260
 
261
261
 
262
262
 
@@ -270,7 +270,7 @@
270
270
 
271
271
 
272
272
 
273
- <span class="summary_desc"><div class='inline'><p>Makes sure that the object is an hash.</p>
273
+ <span class="summary_desc"><div class='inline'><p>Makes sure that the object is a string.</p>
274
274
  </div></span>
275
275
 
276
276
  </li>
@@ -279,7 +279,7 @@
279
279
  <li class="public ">
280
280
  <span class="summary_signature">
281
281
 
282
- <a href="#ensure_string-instance_method" title="#ensure_string (instance method)">- (String) <strong>ensure_string</strong>(default_value = &quot;&quot;, stringifier = :to_s) </a>
282
+ <a href="#for_debug-instance_method" title="#for_debug (instance method)">- (String) <strong>for_debug</strong>(format = :yaml, as_exception = true) </a>
283
283
 
284
284
 
285
285
 
@@ -293,7 +293,7 @@
293
293
 
294
294
 
295
295
 
296
- <span class="summary_desc"><div class='inline'><p>Makes sure that the object is a string.</p>
296
+ <span class="summary_desc"><div class='inline'><p>Inspects an object.</p>
297
297
  </div></span>
298
298
 
299
299
  </li>
@@ -566,116 +566,7 @@
566
566
 
567
567
 
568
568
  <div class="method_details first">
569
- <h3 class="signature first" id="analyze-instance_method">
570
-
571
- - (<tt><span class='object_link'><a href="String.html" title="Lazier::String (module)">String</a></span></tt>) <strong>analyze</strong>(format = :yaml, as_exception = true)
572
-
573
-
574
-
575
-
576
-
577
- </h3><div class="docstring">
578
- <div class="discussion">
579
- <p>Inspects an object.</p>
580
-
581
-
582
- </div>
583
- </div>
584
- <div class="tags">
585
- <p class="tag_title">Parameters:</p>
586
- <ul class="param">
587
-
588
- <li>
589
-
590
- <span class='name'>format</span>
591
-
592
-
593
- <span class='type'></span>
594
-
595
-
596
- <em class="default">(defaults to: <tt>:yaml</tt>)</em>
597
-
598
-
599
- &mdash;
600
- <div class='inline'><p>The format to use.</p>
601
- </div>
602
-
603
- </li>
604
-
605
- <li>
606
-
607
- <span class='name'>as_exception</span>
608
-
609
-
610
- <span class='type'>(<tt><span class='object_link'><a href="Boolean.html" title="Lazier::Boolean (module)">Boolean</a></span></tt>)</span>
611
-
612
-
613
- <em class="default">(defaults to: <tt>true</tt>)</em>
614
-
615
-
616
- &mdash;
617
- <div class='inline'><p>If raise an exception.</p>
618
- </div>
619
-
620
- </li>
621
-
622
- </ul>
623
-
624
- <p class="tag_title">Returns:</p>
625
- <ul class="return">
626
-
627
- <li>
628
-
629
-
630
- <span class='type'>(<tt><span class='object_link'><a href="String.html" title="Lazier::String (module)">String</a></span></tt>)</span>
631
-
632
-
633
-
634
- &mdash;
635
- <div class='inline'><p>The object inspected and formatted.</p>
636
- </div>
637
-
638
- </li>
639
-
640
- </ul>
641
-
642
- </div><table class="source_code">
643
- <tr>
644
- <td>
645
- <pre class="lines">
646
-
647
-
648
- 191
649
- 192
650
- 193
651
- 194
652
- 195
653
- 196
654
- 197
655
- 198
656
- 199
657
- 200</pre>
658
- </td>
659
- <td>
660
- <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 191</span>
661
-
662
- <span class='kw'>def</span> <span class='id identifier rubyid_analyze'>analyze</span><span class='lparen'>(</span><span class='id identifier rubyid_format'>format</span> <span class='op'>=</span> <span class='symbol'>:yaml</span><span class='comma'>,</span> <span class='id identifier rubyid_as_exception'>as_exception</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
663
- <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='kw'>case</span> <span class='id identifier rubyid_format'>format</span>
664
- <span class='kw'>when</span> <span class='symbol'>:pretty_json</span>
665
- <span class='op'>::</span><span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_pretty_generate'>pretty_generate</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
666
- <span class='kw'>else</span>
667
- <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>to_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_format'>format</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
668
- <span class='kw'>end</span>
669
-
670
- <span class='id identifier rubyid_as_exception'>as_exception</span> <span class='op'>?</span> <span class='id identifier rubyid_raise'>raise</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Exceptions</span><span class='op'>::</span><span class='const'>Debug</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_rv'>rv</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_rv'>rv</span>
671
- <span class='kw'>end</span></pre>
672
- </td>
673
- </tr>
674
- </table>
675
- </div>
676
-
677
- <div class="method_details ">
678
- <h3 class="signature " id="ensure-instance_method">
569
+ <h3 class="signature first" id="ensure-instance_method">
679
570
 
680
571
  - (<tt><span class='object_link'><a href="String.html" title="Lazier::String (module)">String</a></span></tt>) <strong>ensure</strong>(default_value, verifier = :blank?)
681
572
 
@@ -1141,6 +1032,115 @@
1141
1032
  </td>
1142
1033
  </tr>
1143
1034
  </table>
1035
+ </div>
1036
+
1037
+ <div class="method_details ">
1038
+ <h3 class="signature " id="for_debug-instance_method">
1039
+
1040
+ - (<tt><span class='object_link'><a href="String.html" title="Lazier::String (module)">String</a></span></tt>) <strong>for_debug</strong>(format = :yaml, as_exception = true)
1041
+
1042
+
1043
+
1044
+
1045
+
1046
+ </h3><div class="docstring">
1047
+ <div class="discussion">
1048
+ <p>Inspects an object.</p>
1049
+
1050
+
1051
+ </div>
1052
+ </div>
1053
+ <div class="tags">
1054
+ <p class="tag_title">Parameters:</p>
1055
+ <ul class="param">
1056
+
1057
+ <li>
1058
+
1059
+ <span class='name'>format</span>
1060
+
1061
+
1062
+ <span class='type'></span>
1063
+
1064
+
1065
+ <em class="default">(defaults to: <tt>:yaml</tt>)</em>
1066
+
1067
+
1068
+ &mdash;
1069
+ <div class='inline'><p>The format to use.</p>
1070
+ </div>
1071
+
1072
+ </li>
1073
+
1074
+ <li>
1075
+
1076
+ <span class='name'>as_exception</span>
1077
+
1078
+
1079
+ <span class='type'>(<tt><span class='object_link'><a href="Boolean.html" title="Lazier::Boolean (module)">Boolean</a></span></tt>)</span>
1080
+
1081
+
1082
+ <em class="default">(defaults to: <tt>true</tt>)</em>
1083
+
1084
+
1085
+ &mdash;
1086
+ <div class='inline'><p>If raise an exception.</p>
1087
+ </div>
1088
+
1089
+ </li>
1090
+
1091
+ </ul>
1092
+
1093
+ <p class="tag_title">Returns:</p>
1094
+ <ul class="return">
1095
+
1096
+ <li>
1097
+
1098
+
1099
+ <span class='type'>(<tt><span class='object_link'><a href="String.html" title="Lazier::String (module)">String</a></span></tt>)</span>
1100
+
1101
+
1102
+
1103
+ &mdash;
1104
+ <div class='inline'><p>The object inspected and formatted.</p>
1105
+ </div>
1106
+
1107
+ </li>
1108
+
1109
+ </ul>
1110
+
1111
+ </div><table class="source_code">
1112
+ <tr>
1113
+ <td>
1114
+ <pre class="lines">
1115
+
1116
+
1117
+ 191
1118
+ 192
1119
+ 193
1120
+ 194
1121
+ 195
1122
+ 196
1123
+ 197
1124
+ 198
1125
+ 199
1126
+ 200</pre>
1127
+ </td>
1128
+ <td>
1129
+ <pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 191</span>
1130
+
1131
+ <span class='kw'>def</span> <span class='id identifier rubyid_for_debug'>for_debug</span><span class='lparen'>(</span><span class='id identifier rubyid_format'>format</span> <span class='op'>=</span> <span class='symbol'>:yaml</span><span class='comma'>,</span> <span class='id identifier rubyid_as_exception'>as_exception</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
1132
+ <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='kw'>case</span> <span class='id identifier rubyid_format'>format</span>
1133
+ <span class='kw'>when</span> <span class='symbol'>:pretty_json</span>
1134
+ <span class='op'>::</span><span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_pretty_generate'>pretty_generate</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
1135
+ <span class='kw'>else</span>
1136
+ <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>to_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_format'>format</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1137
+ <span class='kw'>end</span>
1138
+
1139
+ <span class='id identifier rubyid_as_exception'>as_exception</span> <span class='op'>?</span> <span class='id identifier rubyid_raise'>raise</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Lazier</span><span class='op'>::</span><span class='const'>Exceptions</span><span class='op'>::</span><span class='const'>Debug</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_rv'>rv</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_rv'>rv</span>
1140
+ <span class='kw'>end</span></pre>
1141
+ </td>
1142
+ </tr>
1143
+ </table>
1144
1144
  </div>
1145
1145
 
1146
1146
  <div class="method_details ">
@@ -2039,7 +2039,7 @@
2039
2039
  </div>
2040
2040
 
2041
2041
  <div id="footer">
2042
- Generated on Sun May 19 15:32:41 2013 by
2042
+ Generated on Thu May 23 10:33:27 2013 by
2043
2043
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2044
2044
  0.8.6.1 (ruby-1.9.3).
2045
2045
  </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 May 19 15:32:42 2013 by
216
+ Generated on Thu May 23 10:33:28 2013 by
217
217
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
218
218
  0.8.6.1 (ruby-1.9.3).
219
219
  </div>
@@ -2405,7 +2405,7 @@
2405
2405
  </div>
2406
2406
 
2407
2407
  <div id="footer">
2408
- Generated on Sun May 19 15:32:42 2013 by
2408
+ Generated on Thu May 23 10:33:28 2013 by
2409
2409
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2410
2410
  0.8.6.1 (ruby-1.9.3).
2411
2411
  </div>
@@ -460,7 +460,7 @@
460
460
  </div>
461
461
 
462
462
  <div id="footer">
463
- Generated on Sun May 19 15:32:41 2013 by
463
+ Generated on Thu May 23 10:33:27 2013 by
464
464
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
465
465
  0.8.6.1 (ruby-1.9.3).
466
466
  </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 May 19 15:32:42 2013 by
1018
+ Generated on Thu May 23 10:33:28 2013 by
1019
1019
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1020
1020
  0.8.6.1 (ruby-1.9.3).
1021
1021
  </div>
@@ -1663,7 +1663,7 @@
1663
1663
  </div>
1664
1664
 
1665
1665
  <div id="footer">
1666
- Generated on Sun May 19 15:32:42 2013 by
1666
+ Generated on Thu May 23 10:33:27 2013 by
1667
1667
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1668
1668
  0.8.6.1 (ruby-1.9.3).
1669
1669
  </div>
@@ -134,7 +134,7 @@
134
134
 
135
135
  </div>
136
136
  </dt>
137
- <dd><pre class="code"><span class='int'>0</span></pre></dd>
137
+ <dd><pre class="code"><span class='int'>1</span></pre></dd>
138
138
 
139
139
  <dt id="PATCH-constant" class="">PATCH =
140
140
  <div class="docstring">
@@ -149,7 +149,7 @@
149
149
 
150
150
  </div>
151
151
  </dt>
152
- <dd><pre class="code"><span class='int'>1</span></pre></dd>
152
+ <dd><pre class="code"><span class='int'>0</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 May 19 15:32:41 2013 by
183
+ Generated on Thu May 23 10:33:27 2013 by
184
184
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
185
185
  0.8.6.1 (ruby-1.9.3).
186
186
  </div>
data/doc/Lazier.html CHANGED
@@ -969,7 +969,7 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
969
969
  </div>
970
970
 
971
971
  <div id="footer">
972
- Generated on Sun May 19 15:32:41 2013 by
972
+ Generated on Thu May 23 10:33:26 2013 by
973
973
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
974
974
  0.8.6.1 (ruby-1.9.3).
975
975
  </div>
data/doc/_index.html CHANGED
@@ -326,7 +326,7 @@
326
326
  </div>
327
327
 
328
328
  <div id="footer">
329
- Generated on Sun May 19 15:32:40 2013 by
329
+ Generated on Thu May 23 10:33:26 2013 by
330
330
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
331
331
  0.8.6.1 (ruby-1.9.3).
332
332
  </div>
data/doc/file.README.html CHANGED
@@ -104,7 +104,7 @@ See documentation for more informations.</p>
104
104
  </div></div>
105
105
 
106
106
  <div id="footer">
107
- Generated on Sun May 19 15:32:40 2013 by
107
+ Generated on Thu May 23 10:33:26 2013 by
108
108
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
109
109
  0.8.6.1 (ruby-1.9.3).
110
110
  </div>
data/doc/index.html CHANGED
@@ -104,7 +104,7 @@ See documentation for more informations.</p>
104
104
  </div></div>
105
105
 
106
106
  <div id="footer">
107
- Generated on Sun May 19 15:32:40 2013 by
107
+ Generated on Thu May 23 10:33:26 2013 by
108
108
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
109
109
  0.8.6.1 (ruby-1.9.3).
110
110
  </div>
data/doc/method_list.html CHANGED
@@ -53,137 +53,137 @@
53
53
 
54
54
 
55
55
  <li class="r2 ">
56
- <span class='object_link'><a href="Lazier/Object.html#analyze-instance_method" title="Lazier::Object#analyze (method)">#analyze</a></span>
57
- <small>Lazier::Object</small>
58
- </li>
59
-
60
-
61
- <li class="r1 ">
62
56
  <span class='object_link'><a href="Lazier/Settings.html#boolean_names-instance_method" title="Lazier::Settings#boolean_names (method)">#boolean_names</a></span>
63
57
  <small>Lazier::Settings</small>
64
58
  </li>
65
59
 
66
60
 
67
- <li class="r2 ">
61
+ <li class="r1 ">
68
62
  <span class='object_link'><a href="Lazier/TimeZone/ClassMethods.html#compare-instance_method" title="Lazier::TimeZone::ClassMethods#compare (method)">#compare</a></span>
69
63
  <small>Lazier::TimeZone::ClassMethods</small>
70
64
  </li>
71
65
 
72
66
 
73
- <li class="r1 ">
67
+ <li class="r2 ">
74
68
  <span class='object_link'><a href="Lazier/Pathname.html#components-instance_method" title="Lazier::Pathname#components (method)">#components</a></span>
75
69
  <small>Lazier::Pathname</small>
76
70
  </li>
77
71
 
78
72
 
79
- <li class="r2 ">
73
+ <li class="r1 ">
80
74
  <span class='object_link'><a href="Lazier/TimeZone.html#current_alias-instance_method" title="Lazier::TimeZone#current_alias (method)">#current_alias</a></span>
81
75
  <small>Lazier::TimeZone</small>
82
76
  </li>
83
77
 
84
78
 
85
- <li class="r1 ">
79
+ <li class="r2 ">
86
80
  <span class='object_link'><a href="Lazier/TimeZone.html#current_offset-instance_method" title="Lazier::TimeZone#current_offset (method)">#current_offset</a></span>
87
81
  <small>Lazier::TimeZone</small>
88
82
  </li>
89
83
 
90
84
 
91
- <li class="r2 ">
85
+ <li class="r1 ">
92
86
  <span class='object_link'><a href="Lazier/DateTime/ClassMethods.html#custom_format-instance_method" title="Lazier::DateTime::ClassMethods#custom_format (method)">#custom_format</a></span>
93
87
  <small>Lazier::DateTime::ClassMethods</small>
94
88
  </li>
95
89
 
96
90
 
97
- <li class="r1 ">
91
+ <li class="r2 ">
98
92
  <span class='object_link'><a href="Lazier/Settings.html#date_formats-instance_method" title="Lazier::Settings#date_formats (method)">#date_formats</a></span>
99
93
  <small>Lazier::Settings</small>
100
94
  </li>
101
95
 
102
96
 
103
- <li class="r2 ">
97
+ <li class="r1 ">
104
98
  <span class='object_link'><a href="Lazier/Settings.html#date_names-instance_method" title="Lazier::Settings#date_names (method)">#date_names</a></span>
105
99
  <small>Lazier::Settings</small>
106
100
  </li>
107
101
 
108
102
 
109
- <li class="r1 ">
103
+ <li class="r2 ">
110
104
  <span class='object_link'><a href="Lazier/DateTime/ClassMethods.html#days-instance_method" title="Lazier::DateTime::ClassMethods#days (method)">#days</a></span>
111
105
  <small>Lazier::DateTime::ClassMethods</small>
112
106
  </li>
113
107
 
114
108
 
115
- <li class="r2 ">
109
+ <li class="r1 ">
116
110
  <span class='object_link'><a href="Lazier/TimeZone.html#dst_correction-instance_method" title="Lazier::TimeZone#dst_correction (method)">#dst_correction</a></span>
117
111
  <small>Lazier::TimeZone</small>
118
112
  </li>
119
113
 
120
114
 
121
- <li class="r1 ">
115
+ <li class="r2 ">
122
116
  <span class='object_link'><a href="Lazier/TimeZone.html#dst_name-instance_method" title="Lazier::TimeZone#dst_name (method)">#dst_name</a></span>
123
117
  <small>Lazier::TimeZone</small>
124
118
  </li>
125
119
 
126
120
 
127
- <li class="r2 ">
121
+ <li class="r1 ">
128
122
  <span class='object_link'><a href="Lazier/TimeZone.html#dst_offset-instance_method" title="Lazier::TimeZone#dst_offset (method)">#dst_offset</a></span>
129
123
  <small>Lazier::TimeZone</small>
130
124
  </li>
131
125
 
132
126
 
133
- <li class="r1 ">
127
+ <li class="r2 ">
134
128
  <span class='object_link'><a href="Lazier/TimeZone.html#dst_period-instance_method" title="Lazier::TimeZone#dst_period (method)">#dst_period</a></span>
135
129
  <small>Lazier::TimeZone</small>
136
130
  </li>
137
131
 
138
132
 
139
- <li class="r2 ">
133
+ <li class="r1 ">
140
134
  <span class='object_link'><a href="Lazier/DateTime/ClassMethods.html#easter-instance_method" title="Lazier::DateTime::ClassMethods#easter (method)">#easter</a></span>
141
135
  <small>Lazier::DateTime::ClassMethods</small>
142
136
  </li>
143
137
 
144
138
 
145
- <li class="r1 ">
139
+ <li class="r2 ">
146
140
  <span class='object_link'><a href="Lazier/Object.html#ensure-instance_method" title="Lazier::Object#ensure (method)">#ensure</a></span>
147
141
  <small>Lazier::Object</small>
148
142
  </li>
149
143
 
150
144
 
151
- <li class="r2 ">
145
+ <li class="r1 ">
152
146
  <span class='object_link'><a href="Lazier/Object.html#ensure_array-instance_method" title="Lazier::Object#ensure_array (method)">#ensure_array</a></span>
153
147
  <small>Lazier::Object</small>
154
148
  </li>
155
149
 
156
150
 
157
- <li class="r1 ">
151
+ <li class="r2 ">
158
152
  <span class='object_link'><a href="Lazier/Object.html#ensure_hash-instance_method" title="Lazier::Object#ensure_hash (method)">#ensure_hash</a></span>
159
153
  <small>Lazier::Object</small>
160
154
  </li>
161
155
 
162
156
 
163
- <li class="r2 ">
157
+ <li class="r1 ">
164
158
  <span class='object_link'><a href="Lazier/Object.html#ensure_string-instance_method" title="Lazier::Object#ensure_string (method)">#ensure_string</a></span>
165
159
  <small>Lazier::Object</small>
166
160
  </li>
167
161
 
168
162
 
169
- <li class="r1 ">
163
+ <li class="r2 ">
170
164
  <span class='object_link'><a href="Lazier/TimeZone/ClassMethods.html#find-instance_method" title="Lazier::TimeZone::ClassMethods#find (method)">#find</a></span>
171
165
  <small>Lazier::TimeZone::ClassMethods</small>
172
166
  </li>
173
167
 
174
168
 
175
- <li class="r2 ">
169
+ <li class="r1 ">
176
170
  <span class='object_link'><a href="Lazier.html#find_class-class_method" title="Lazier.find_class (method)">find_class</a></span>
177
171
  <small>Lazier</small>
178
172
  </li>
179
173
 
180
174
 
181
- <li class="r1 ">
175
+ <li class="r2 ">
182
176
  <span class='object_link'><a href="Lazier/DateTime/ClassMethods.html#find_timezone-instance_method" title="Lazier::DateTime::ClassMethods#find_timezone (method)">#find_timezone</a></span>
183
177
  <small>Lazier::DateTime::ClassMethods</small>
184
178
  </li>
185
179
 
186
180
 
181
+ <li class="r1 ">
182
+ <span class='object_link'><a href="Lazier/Object.html#for_debug-instance_method" title="Lazier::Object#for_debug (method)">#for_debug</a></span>
183
+ <small>Lazier::Object</small>
184
+ </li>
185
+
186
+
187
187
  <li class="r2 ">
188
188
  <span class='object_link'><a href="Lazier/Object.html#format_boolean-instance_method" title="Lazier::Object#format_boolean (method)">#format_boolean</a></span>
189
189
  <small>Lazier::Object</small>
@@ -191,14 +191,14 @@
191
191
 
192
192
 
193
193
  <li class="r1 ">
194
- <span class='object_link'><a href="Lazier/Settings.html#format_number-instance_method" title="Lazier::Settings#format_number (method)">#format_number</a></span>
195
- <small>Lazier::Settings</small>
194
+ <span class='object_link'><a href="Lazier/Object.html#format_number-instance_method" title="Lazier::Object#format_number (method)">#format_number</a></span>
195
+ <small>Lazier::Object</small>
196
196
  </li>
197
197
 
198
198
 
199
199
  <li class="r2 ">
200
- <span class='object_link'><a href="Lazier/Object.html#format_number-instance_method" title="Lazier::Object#format_number (method)">#format_number</a></span>
201
- <small>Lazier::Object</small>
200
+ <span class='object_link'><a href="Lazier/Settings.html#format_number-instance_method" title="Lazier::Settings#format_number (method)">#format_number</a></span>
201
+ <small>Lazier::Settings</small>
202
202
  </li>
203
203
 
204
204
 
@@ -209,14 +209,14 @@
209
209
 
210
210
 
211
211
  <li class="r2 ">
212
- <span class='object_link'><a href="Lazier/I18n.html#i18n-instance_method" title="Lazier::I18n#i18n (method)">#i18n</a></span>
213
- <small>Lazier::I18n</small>
212
+ <span class='object_link'><a href="Lazier/Settings.html#i18n-instance_method" title="Lazier::Settings#i18n (method)">#i18n</a></span>
213
+ <small>Lazier::Settings</small>
214
214
  </li>
215
215
 
216
216
 
217
217
  <li class="r1 ">
218
- <span class='object_link'><a href="Lazier/Settings.html#i18n-instance_method" title="Lazier::Settings#i18n (method)">#i18n</a></span>
219
- <small>Lazier::Settings</small>
218
+ <span class='object_link'><a href="Lazier/I18n.html#i18n-instance_method" title="Lazier::I18n#i18n (method)">#i18n</a></span>
219
+ <small>Lazier::I18n</small>
220
220
  </li>
221
221
 
222
222
 
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Sun May 19 15:32:40 2013 by
106
+ Generated on Thu May 23 10:33:26 2013 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
108
  0.8.6.1 (ruby-1.9.3).
109
109
  </div>
data/lib/lazier/object.rb CHANGED
@@ -188,7 +188,7 @@ module Lazier
188
188
  # @param format The format to use.
189
189
  # @param as_exception [Boolean] If raise an exception.
190
190
  # @return [String] The object inspected and formatted.
191
- def analyze(format = :yaml, as_exception = true)
191
+ def for_debug(format = :yaml, as_exception = true)
192
192
  rv = case format
193
193
  when :pretty_json
194
194
  ::JSON.pretty_generate(self)
@@ -13,10 +13,10 @@ module Lazier
13
13
  MAJOR = 3
14
14
 
15
15
  # The minor version.
16
- MINOR = 0
16
+ MINOR = 1
17
17
 
18
18
  # The patch version.
19
- PATCH = 1
19
+ PATCH = 0
20
20
 
21
21
  # The current version of lazier.
22
22
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
@@ -6,7 +6,10 @@
6
6
 
7
7
  require "pathname"
8
8
  require "simplecov"
9
-
9
+ require "coveralls"
10
+
11
+ Coveralls.wear!
12
+
10
13
  SimpleCov.start do
11
14
  root = Pathname.new(File.dirname(__FILE__)) + ".."
12
15
 
@@ -303,16 +303,16 @@ describe Lazier::Object do
303
303
  end
304
304
  end
305
305
 
306
- describe "#analyze" do
306
+ describe "#for_debug" do
307
307
  it "should return the correct representation for an object" do
308
308
  reference = {a: "b"}
309
- expect(reference.analyze(:json, false)).to eq(reference.to_json)
310
- expect(reference.analyze(:pretty_json, false)).to eq(::JSON.pretty_generate(reference))
311
- expect(reference.analyze(:yaml, false)).to eq(reference.to_yaml)
309
+ expect(reference.for_debug(:json, false)).to eq(reference.to_json)
310
+ expect(reference.for_debug(:pretty_json, false)).to eq(::JSON.pretty_generate(reference))
311
+ expect(reference.for_debug(:yaml, false)).to eq(reference.to_yaml)
312
312
  end
313
313
 
314
314
  it "should raise an exception if requested" do
315
- expect { {a: "b"}.analyze }.to raise_error(::Lazier::Exceptions::Debug)
315
+ expect { {a: "b"}.for_debug }.to raise_error(::Lazier::Exceptions::Debug)
316
316
  end
317
317
  end
318
318
  end
data/spec/lazier_spec.rb CHANGED
@@ -31,7 +31,7 @@ describe Lazier do
31
31
  end
32
32
 
33
33
  it "for Object" do
34
- expect(0).to respond_to("analyze")
34
+ expect(0).to respond_to("for_debug")
35
35
  end
36
36
 
37
37
  it "for Pathname" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazier
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-19 00:00:00.000000000 Z
12
+ date: 2013-05-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  version: '0'
189
189
  segments:
190
190
  - 0
191
- hash: -4341221469039409142
191
+ hash: 1620014046015545895
192
192
  requirements: []
193
193
  rubyforge_project: lazier
194
194
  rubygems_version: 1.8.25