lazier 3.3.1 → 3.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/Lazier/Boolean.html +1 -1
- data/doc/Lazier/Configuration.html +1 -1
- data/doc/Lazier/DateTime/ClassMethods.html +1 -1
- data/doc/Lazier/DateTime.html +1 -1
- data/doc/Lazier/Exceptions/Debug.html +1 -1
- data/doc/Lazier/Exceptions/MissingTranslation.html +1 -1
- data/doc/Lazier/Exceptions.html +1 -1
- data/doc/Lazier/Hash.html +1 -1
- data/doc/Lazier/I18n.html +1 -1
- data/doc/Lazier/Localizer.html +1 -1
- data/doc/Lazier/Math/ClassMethods.html +1 -1
- data/doc/Lazier/Math.html +1 -1
- data/doc/Lazier/Object.html +5 -5
- 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/ClassMethods.html +1 -1
- data/doc/Lazier/TimeZone.html +1 -1
- data/doc/Lazier/Version.html +2 -2
- data/doc/Lazier.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/lib/lazier/object.rb +1 -1
- data/lib/lazier/version.rb +1 -1
- metadata +2 -2
data/doc/Lazier/Boolean.html
CHANGED
@@ -288,7 +288,7 @@
|
|
288
288
|
</div>
|
289
289
|
|
290
290
|
<div id="footer">
|
291
|
-
Generated on Sat Jul 20 13:
|
291
|
+
Generated on Sat Jul 20 13:39:39 2013 by
|
292
292
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
293
293
|
0.8.6.2 (ruby-1.9.3).
|
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 Sat Jul 20 13:
|
389
|
+
Generated on Sat Jul 20 13:39:40 2013 by
|
390
390
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
391
391
|
0.8.6.2 (ruby-1.9.3).
|
392
392
|
</div>
|
@@ -1542,7 +1542,7 @@ Date.years(1, true, 2010, true)
|
|
1542
1542
|
</div>
|
1543
1543
|
|
1544
1544
|
<div id="footer">
|
1545
|
-
Generated on Sat Jul 20 13:
|
1545
|
+
Generated on Sat Jul 20 13:39:39 2013 by
|
1546
1546
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1547
1547
|
0.8.6.2 (ruby-1.9.3).
|
1548
1548
|
</div>
|
data/doc/Lazier/DateTime.html
CHANGED
@@ -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 Sat Jul 20 13:
|
724
|
+
Generated on Sat Jul 20 13:39:39 2013 by
|
725
725
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
726
726
|
0.8.6.2 (ruby-1.9.3).
|
727
727
|
</div>
|
@@ -124,7 +124,7 @@
|
|
124
124
|
</div>
|
125
125
|
|
126
126
|
<div id="footer">
|
127
|
-
Generated on Sat Jul 20 13:
|
127
|
+
Generated on Sat Jul 20 13:39:40 2013 by
|
128
128
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
129
129
|
0.8.6.2 (ruby-1.9.3).
|
130
130
|
</div>
|
@@ -238,7 +238,7 @@
|
|
238
238
|
</div>
|
239
239
|
|
240
240
|
<div id="footer">
|
241
|
-
Generated on Sat Jul 20 13:
|
241
|
+
Generated on Sat Jul 20 13:39:40 2013 by
|
242
242
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
243
243
|
0.8.6.2 (ruby-1.9.3).
|
244
244
|
</div>
|
data/doc/Lazier/Exceptions.html
CHANGED
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on Sat Jul 20 13:
|
119
|
+
Generated on Sat Jul 20 13:39:40 2013 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.8.6.2 (ruby-1.9.3).
|
122
122
|
</div>
|
data/doc/Lazier/Hash.html
CHANGED
@@ -212,7 +212,7 @@
|
|
212
212
|
</div>
|
213
213
|
|
214
214
|
<div id="footer">
|
215
|
-
Generated on Sat Jul 20 13:
|
215
|
+
Generated on Sat Jul 20 13:39:38 2013 by
|
216
216
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
217
217
|
0.8.6.2 (ruby-1.9.3).
|
218
218
|
</div>
|
data/doc/Lazier/I18n.html
CHANGED
@@ -1056,7 +1056,7 @@
|
|
1056
1056
|
</div>
|
1057
1057
|
|
1058
1058
|
<div id="footer">
|
1059
|
-
Generated on Sat Jul 20 13:
|
1059
|
+
Generated on Sat Jul 20 13:39:38 2013 by
|
1060
1060
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1061
1061
|
0.8.6.2 (ruby-1.9.3).
|
1062
1062
|
</div>
|
data/doc/Lazier/Localizer.html
CHANGED
@@ -536,7 +536,7 @@
|
|
536
536
|
</div>
|
537
537
|
|
538
538
|
<div id="footer">
|
539
|
-
Generated on Sat Jul 20 13:
|
539
|
+
Generated on Sat Jul 20 13:39:40 2013 by
|
540
540
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
541
541
|
0.8.6.2 (ruby-1.9.3).
|
542
542
|
</div>
|
@@ -321,7 +321,7 @@
|
|
321
321
|
</div>
|
322
322
|
|
323
323
|
<div id="footer">
|
324
|
-
Generated on Sat Jul 20 13:
|
324
|
+
Generated on Sat Jul 20 13:39:39 2013 by
|
325
325
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
326
326
|
0.8.6.2 (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 Sat Jul 20 13:
|
124
|
+
Generated on Sat Jul 20 13:39:38 2013 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
126
|
0.8.6.2 (ruby-1.9.3).
|
127
127
|
</div>
|
data/doc/Lazier/Object.html
CHANGED
@@ -210,7 +210,7 @@
|
|
210
210
|
<li class="public ">
|
211
211
|
<span class="summary_signature">
|
212
212
|
|
213
|
-
<a href="#ensure_array-instance_method" title="#ensure_array (instance method)">- (Array) <strong>ensure_array</strong>(default_value = nil, uniq = false, compact = false, flatten =
|
213
|
+
<a href="#ensure_array-instance_method" title="#ensure_array (instance method)">- (Array) <strong>ensure_array</strong>(default_value = nil, uniq = false, compact = false, flatten = false, sanitizer = nil, &block) </a>
|
214
214
|
|
215
215
|
|
216
216
|
|
@@ -663,7 +663,7 @@
|
|
663
663
|
<div class="method_details ">
|
664
664
|
<h3 class="signature " id="ensure_array-instance_method">
|
665
665
|
|
666
|
-
- (<tt>Array</tt>) <strong>ensure_array</strong>(default_value = nil, uniq = false, compact = false, flatten =
|
666
|
+
- (<tt>Array</tt>) <strong>ensure_array</strong>(default_value = nil, uniq = false, compact = false, flatten = false, sanitizer = nil, &block)
|
667
667
|
|
668
668
|
|
669
669
|
|
@@ -739,7 +739,7 @@
|
|
739
739
|
<span class='type'>(<tt><span class='object_link'><a href="Boolean.html" title="Lazier::Boolean (module)">Boolean</a></span></tt>)</span>
|
740
740
|
|
741
741
|
|
742
|
-
<em class="default">(defaults to: <tt>
|
742
|
+
<em class="default">(defaults to: <tt>false</tt>)</em>
|
743
743
|
|
744
744
|
|
745
745
|
—
|
@@ -818,7 +818,7 @@
|
|
818
818
|
<td>
|
819
819
|
<pre class="code"><span class="info file"># File 'lib/lazier/object.rb', line 82</span>
|
820
820
|
|
821
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='lparen'>(</span><span class='id identifier rubyid_default_value'>default_value</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_uniq'>uniq</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_compact'>compact</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_flatten'>flatten</span> <span class='op'>=</span> <span class='kw'>
|
821
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='lparen'>(</span><span class='id identifier rubyid_default_value'>default_value</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_uniq'>uniq</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_compact'>compact</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_flatten'>flatten</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_sanitizer'>sanitizer</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
822
822
|
<span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Array</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_dup'>dup</span> <span class='op'>:</span> <span class='lparen'>(</span><span class='id identifier rubyid_default_value'>default_value</span> <span class='op'>||</span> <span class='lbracket'>[</span><span class='kw'>self</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
823
823
|
<span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_collect!'>collect!</span><span class='lparen'>(</span><span class='op'>&</span><span class='lparen'>(</span><span class='id identifier rubyid_block'>block</span> <span class='op'>||</span> <span class='id identifier rubyid_sanitizer'>sanitizer</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
824
824
|
<span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_uniq!'>uniq!</span> <span class='kw'>if</span> <span class='id identifier rubyid_uniq'>uniq</span>
|
@@ -2079,7 +2079,7 @@
|
|
2079
2079
|
</div>
|
2080
2080
|
|
2081
2081
|
<div id="footer">
|
2082
|
-
Generated on Sat Jul 20 13:
|
2082
|
+
Generated on Sat Jul 20 13:39:39 2013 by
|
2083
2083
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2084
2084
|
0.8.6.2 (ruby-1.9.3).
|
2085
2085
|
</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 Sat Jul 20 13:
|
216
|
+
Generated on Sat Jul 20 13:39:40 2013 by
|
217
217
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
218
218
|
0.8.6.2 (ruby-1.9.3).
|
219
219
|
</div>
|
data/doc/Lazier/Settings.html
CHANGED
@@ -2405,7 +2405,7 @@
|
|
2405
2405
|
</div>
|
2406
2406
|
|
2407
2407
|
<div id="footer">
|
2408
|
-
Generated on Sat Jul 20 13:
|
2408
|
+
Generated on Sat Jul 20 13:39:40 2013 by
|
2409
2409
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2410
2410
|
0.8.6.2 (ruby-1.9.3).
|
2411
2411
|
</div>
|
data/doc/Lazier/String.html
CHANGED
@@ -563,7 +563,7 @@
|
|
563
563
|
</div>
|
564
564
|
|
565
565
|
<div id="footer">
|
566
|
-
Generated on Sat Jul 20 13:
|
566
|
+
Generated on Sat Jul 20 13:39:39 2013 by
|
567
567
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
568
568
|
0.8.6.2 (ruby-1.9.3).
|
569
569
|
</div>
|
@@ -1015,7 +1015,7 @@ DateTime.parameterize_zone(ActiveSupport::TimeZone["Pacific Time (US & Canad
|
|
1015
1015
|
</div>
|
1016
1016
|
|
1017
1017
|
<div id="footer">
|
1018
|
-
Generated on Sat Jul 20 13:
|
1018
|
+
Generated on Sat Jul 20 13:39:40 2013 by
|
1019
1019
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1020
1020
|
0.8.6.2 (ruby-1.9.3).
|
1021
1021
|
</div>
|
data/doc/Lazier/TimeZone.html
CHANGED
@@ -1663,7 +1663,7 @@
|
|
1663
1663
|
</div>
|
1664
1664
|
|
1665
1665
|
<div id="footer">
|
1666
|
-
Generated on Sat Jul 20 13:
|
1666
|
+
Generated on Sat Jul 20 13:39:40 2013 by
|
1667
1667
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1668
1668
|
0.8.6.2 (ruby-1.9.3).
|
1669
1669
|
</div>
|
data/doc/Lazier/Version.html
CHANGED
@@ -149,7 +149,7 @@
|
|
149
149
|
|
150
150
|
</div>
|
151
151
|
</dt>
|
152
|
-
<dd><pre class="code"><span class='int'>
|
152
|
+
<dd><pre class="code"><span class='int'>2</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 Sat Jul 20 13:
|
183
|
+
Generated on Sat Jul 20 13:39:39 2013 by
|
184
184
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
185
185
|
0.8.6.2 (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 Sat Jul 20 13:
|
972
|
+
Generated on Sat Jul 20 13:39:38 2013 by
|
973
973
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
974
974
|
0.8.6.2 (ruby-1.9.3).
|
975
975
|
</div>
|
data/doc/_index.html
CHANGED
@@ -333,7 +333,7 @@
|
|
333
333
|
</div>
|
334
334
|
|
335
335
|
<div id="footer">
|
336
|
-
Generated on Sat Jul 20 13:
|
336
|
+
Generated on Sat Jul 20 13:39:38 2013 by
|
337
337
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
338
338
|
0.8.6.2 (ruby-1.9.3).
|
339
339
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -105,7 +105,7 @@ See documentation for more informations.</p>
|
|
105
105
|
</div></div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on Sat Jul 20 13:
|
108
|
+
Generated on Sat Jul 20 13:39:38 2013 by
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
110
|
0.8.6.2 (ruby-1.9.3).
|
111
111
|
</div>
|
data/doc/index.html
CHANGED
@@ -105,7 +105,7 @@ See documentation for more informations.</p>
|
|
105
105
|
</div></div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on Sat Jul 20 13:
|
108
|
+
Generated on Sat Jul 20 13:39:38 2013 by
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
110
|
0.8.6.2 (ruby-1.9.3).
|
111
111
|
</div>
|
@@ -103,7 +103,7 @@
|
|
103
103
|
</div>
|
104
104
|
|
105
105
|
<div id="footer">
|
106
|
-
Generated on Sat Jul 20 13:
|
106
|
+
Generated on Sat Jul 20 13:39:38 2013 by
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
108
108
|
0.8.6.2 (ruby-1.9.3).
|
109
109
|
</div>
|
data/lib/lazier/object.rb
CHANGED
@@ -79,7 +79,7 @@ module Lazier
|
|
79
79
|
# @param sanitizer [Symbol|nil] If not `nil`, the method to use to sanitize entries of the array. *Ignored if a block is present.*
|
80
80
|
# @param block [Proc] A block to sanitize entries. It must accept the value as unique argument.
|
81
81
|
# @return [Array] If the object is an array, then the object itself, a single element array containing the object otherwise.
|
82
|
-
def ensure_array(default_value = nil, uniq = false, compact = false, flatten =
|
82
|
+
def ensure_array(default_value = nil, uniq = false, compact = false, flatten = false, sanitizer = nil, &block)
|
83
83
|
rv = is_a?(::Array) ? dup : (default_value || [self])
|
84
84
|
rv.collect!(&(block || sanitizer))
|
85
85
|
rv.uniq! if uniq
|
data/lib/lazier/version.rb
CHANGED
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.3.
|
4
|
+
version: 3.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
191
|
version: '0'
|
192
192
|
segments:
|
193
193
|
- 0
|
194
|
-
hash:
|
194
|
+
hash: 3144305154282815686
|
195
195
|
requirements: []
|
196
196
|
rubyforge_project: lazier
|
197
197
|
rubygems_version: 1.8.25
|