ballast 1.1.1 → 1.1.2
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/Ballast.html +1 -1
- data/doc/Ballast/Concerns.html +1 -1
- data/doc/Ballast/Concerns/Ajax.html +1 -1
- data/doc/Ballast/Concerns/Common.html +6 -4
- data/doc/Ballast/Concerns/ErrorsHandling.html +1 -1
- data/doc/Ballast/Concerns/View.html +1 -1
- data/doc/Ballast/Context.html +1 -1
- data/doc/Ballast/Errors.html +1 -1
- data/doc/Ballast/Errors/BaseError.html +1 -1
- data/doc/Ballast/Errors/InvalidDomain.html +1 -1
- data/doc/Ballast/Errors/PerformError.html +1 -1
- data/doc/Ballast/Errors/ValidationError.html +1 -1
- data/doc/Ballast/Middlewares.html +1 -1
- data/doc/Ballast/Middlewares/DefaultHost.html +1 -1
- data/doc/Ballast/Operation.html +1 -1
- data/doc/Ballast/OperationsChain.html +1 -1
- data/doc/Ballast/RequestDomainMatcher.html +1 -1
- data/doc/Ballast/Version.html +2 -2
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/lib/ballast/concerns/common.rb +1 -1
- data/lib/ballast/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90752416d3960380afc5cd5d0a3816080d308dc3
|
4
|
+
data.tar.gz: a9e14654abd5fa74c46c6fb99261e05705ea8c59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b68c31697bc02ae9c7d26bad19b04c7188e42b91c6c1195652d7a7f4da36bdc603af1d4cbaf7693c8c0675105c0020a7e885190d081dcf178bfcf6bd71e4c74f
|
7
|
+
data.tar.gz: 4edd006dfd2b1c014f5d961d16a35b596ddf8afe744a4ac726825783ddb1255a35972f707a9837dc39272186f679e4114ad608fe9e2f0d7ecf0852e7e9898b0c
|
data/CHANGELOG.md
CHANGED
data/doc/Ballast.html
CHANGED
@@ -121,7 +121,7 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on Wed Dec 25 14:
|
124
|
+
Generated on Wed Dec 25 14:50:04 2013 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.0.0).
|
127
127
|
</div>
|
data/doc/Ballast/Concerns.html
CHANGED
@@ -118,7 +118,7 @@
|
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div id="footer">
|
121
|
-
Generated on Wed Dec 25 14:
|
121
|
+
Generated on Wed Dec 25 14:50:04 2013 by
|
122
122
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
123
123
|
0.8.7.3 (ruby-2.0.0).
|
124
124
|
</div>
|
@@ -797,7 +797,7 @@
|
|
797
797
|
</div>
|
798
798
|
|
799
799
|
<div id="footer">
|
800
|
-
Generated on Wed Dec 25 14:
|
800
|
+
Generated on Wed Dec 25 14:50:04 2013 by
|
801
801
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
802
802
|
0.8.7.3 (ruby-2.0.0).
|
803
803
|
</div>
|
@@ -158,7 +158,7 @@
|
|
158
158
|
<li class="public ">
|
159
159
|
<span class="summary_signature">
|
160
160
|
|
161
|
-
<a href="#format_short_amount-instance_method" title="#format_short_amount (instance method)">- (String) <strong>format_short_amount</strong>(amount, suffix) </a>
|
161
|
+
<a href="#format_short_amount-instance_method" title="#format_short_amount (instance method)">- (String) <strong>format_short_amount</strong>(amount, suffix = "") </a>
|
162
162
|
|
163
163
|
|
164
164
|
|
@@ -483,7 +483,7 @@ and <code>%:Z</code> for the zone name considering also DST.</p>
|
|
483
483
|
<div class="method_details ">
|
484
484
|
<h3 class="signature " id="format_short_amount-instance_method">
|
485
485
|
|
486
|
-
- (<tt>String</tt>) <strong>format_short_amount</strong>(amount, suffix)
|
486
|
+
- (<tt>String</tt>) <strong>format_short_amount</strong>(amount, suffix = "")
|
487
487
|
|
488
488
|
|
489
489
|
|
@@ -523,6 +523,8 @@ and <code>%:Z</code> for the zone name considering also DST.</p>
|
|
523
523
|
<span class='type'>(<tt>String</tt>)</span>
|
524
524
|
|
525
525
|
|
526
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
527
|
+
|
526
528
|
|
527
529
|
—
|
528
530
|
<div class='inline'><p>The suffix to add to the formatted amount.</p>
|
@@ -569,7 +571,7 @@ and <code>%:Z</code> for the zone name considering also DST.</p>
|
|
569
571
|
<td>
|
570
572
|
<pre class="code"><span class="info file"># File 'lib/ballast/concerns/common.rb', line 53</span>
|
571
573
|
|
572
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_format_short_amount'>format_short_amount</span><span class='lparen'>(</span><span class='id identifier rubyid_amount'>amount</span><span class='comma'>,</span> <span class='id identifier rubyid_suffix'>suffix</span><span class='rparen'>)</span>
|
574
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_format_short_amount'>format_short_amount</span><span class='lparen'>(</span><span class='id identifier rubyid_amount'>amount</span><span class='comma'>,</span> <span class='id identifier rubyid_suffix'>suffix</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
573
575
|
<span class='kw'>if</span> <span class='id identifier rubyid_amount'>amount</span> <span class='op'><</span> <span class='int'>1</span><span class='period'>.</span><span class='id identifier rubyid_minute'>minute</span> <span class='kw'>then</span>
|
574
576
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_amount'>amount</span><span class='period'>.</span><span class='id identifier rubyid_floor'>floor</span><span class='embexpr_end'>}</span><span class='tstring_content'>s</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_suffix'>suffix</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
575
577
|
<span class='kw'>elsif</span> <span class='id identifier rubyid_amount'>amount</span> <span class='op'><</span> <span class='int'>1</span><span class='period'>.</span><span class='id identifier rubyid_hour'>hour</span> <span class='kw'>then</span>
|
@@ -885,7 +887,7 @@ and <code>%:Z</code> for the zone name considering also DST.</p>
|
|
885
887
|
</div>
|
886
888
|
|
887
889
|
<div id="footer">
|
888
|
-
Generated on Wed Dec 25 14:
|
890
|
+
Generated on Wed Dec 25 14:50:04 2013 by
|
889
891
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
890
892
|
0.8.7.3 (ruby-2.0.0).
|
891
893
|
</div>
|
@@ -274,7 +274,7 @@
|
|
274
274
|
</div>
|
275
275
|
|
276
276
|
<div id="footer">
|
277
|
-
Generated on Wed Dec 25 14:
|
277
|
+
Generated on Wed Dec 25 14:50:04 2013 by
|
278
278
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
279
279
|
0.8.7.3 (ruby-2.0.0).
|
280
280
|
</div>
|
@@ -655,7 +655,7 @@
|
|
655
655
|
</div>
|
656
656
|
|
657
657
|
<div id="footer">
|
658
|
-
Generated on Wed Dec 25 14:
|
658
|
+
Generated on Wed Dec 25 14:50:04 2013 by
|
659
659
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
660
660
|
0.8.7.3 (ruby-2.0.0).
|
661
661
|
</div>
|
data/doc/Ballast/Context.html
CHANGED
@@ -408,7 +408,7 @@
|
|
408
408
|
</div>
|
409
409
|
|
410
410
|
<div id="footer">
|
411
|
-
Generated on Wed Dec 25 14:
|
411
|
+
Generated on Wed Dec 25 14:50:04 2013 by
|
412
412
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
413
413
|
0.8.7.3 (ruby-2.0.0).
|
414
414
|
</div>
|
data/doc/Ballast/Errors.html
CHANGED
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on Wed Dec 25 14:
|
119
|
+
Generated on Wed Dec 25 14:50:04 2013 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.0.0).
|
122
122
|
</div>
|
@@ -317,7 +317,7 @@
|
|
317
317
|
</div>
|
318
318
|
|
319
319
|
<div id="footer">
|
320
|
-
Generated on Wed Dec 25 14:
|
320
|
+
Generated on Wed Dec 25 14:50:04 2013 by
|
321
321
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
322
322
|
0.8.7.3 (ruby-2.0.0).
|
323
323
|
</div>
|
@@ -148,7 +148,7 @@
|
|
148
148
|
</div>
|
149
149
|
|
150
150
|
<div id="footer">
|
151
|
-
Generated on Wed Dec 25 14:
|
151
|
+
Generated on Wed Dec 25 14:50:04 2013 by
|
152
152
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
153
153
|
0.8.7.3 (ruby-2.0.0).
|
154
154
|
</div>
|
@@ -148,7 +148,7 @@
|
|
148
148
|
</div>
|
149
149
|
|
150
150
|
<div id="footer">
|
151
|
-
Generated on Wed Dec 25 14:
|
151
|
+
Generated on Wed Dec 25 14:50:04 2013 by
|
152
152
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
153
153
|
0.8.7.3 (ruby-2.0.0).
|
154
154
|
</div>
|
@@ -148,7 +148,7 @@
|
|
148
148
|
</div>
|
149
149
|
|
150
150
|
<div id="footer">
|
151
|
-
Generated on Wed Dec 25 14:
|
151
|
+
Generated on Wed Dec 25 14:50:04 2013 by
|
152
152
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
153
153
|
0.8.7.3 (ruby-2.0.0).
|
154
154
|
</div>
|
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on Wed Dec 25 14:
|
119
|
+
Generated on Wed Dec 25 14:50:04 2013 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.0.0).
|
122
122
|
</div>
|
@@ -345,7 +345,7 @@
|
|
345
345
|
</div>
|
346
346
|
|
347
347
|
<div id="footer">
|
348
|
-
Generated on Wed Dec 25 14:
|
348
|
+
Generated on Wed Dec 25 14:50:05 2013 by
|
349
349
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
350
350
|
0.8.7.3 (ruby-2.0.0).
|
351
351
|
</div>
|
data/doc/Ballast/Operation.html
CHANGED
@@ -1295,7 +1295,7 @@ as owner will be created.</p>
|
|
1295
1295
|
</div>
|
1296
1296
|
|
1297
1297
|
<div id="footer">
|
1298
|
-
Generated on Wed Dec 25 14:
|
1298
|
+
Generated on Wed Dec 25 14:50:05 2013 by
|
1299
1299
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1300
1300
|
0.8.7.3 (ruby-2.0.0).
|
1301
1301
|
</div>
|
@@ -576,7 +576,7 @@ as owner will be created.</p>
|
|
576
576
|
</div>
|
577
577
|
|
578
578
|
<div id="footer">
|
579
|
-
Generated on Wed Dec 25 14:
|
579
|
+
Generated on Wed Dec 25 14:50:05 2013 by
|
580
580
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
581
581
|
0.8.7.3 (ruby-2.0.0).
|
582
582
|
</div>
|
@@ -908,7 +908,7 @@
|
|
908
908
|
</div>
|
909
909
|
|
910
910
|
<div id="footer">
|
911
|
-
Generated on Wed Dec 25 14:
|
911
|
+
Generated on Wed Dec 25 14:50:05 2013 by
|
912
912
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
913
913
|
0.8.7.3 (ruby-2.0.0).
|
914
914
|
</div>
|
data/doc/Ballast/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 Wed Dec 25 14:
|
183
|
+
Generated on Wed Dec 25 14:50:04 2013 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.0.0).
|
186
186
|
</div>
|
data/doc/_index.html
CHANGED
@@ -303,7 +303,7 @@
|
|
303
303
|
</div>
|
304
304
|
|
305
305
|
<div id="footer">
|
306
|
-
Generated on Wed Dec 25 14:
|
306
|
+
Generated on Wed Dec 25 14:50:04 2013 by
|
307
307
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
308
308
|
0.8.7.3 (ruby-2.0.0).
|
309
309
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -106,7 +106,7 @@
|
|
106
106
|
</div></div>
|
107
107
|
|
108
108
|
<div id="footer">
|
109
|
-
Generated on Wed Dec 25 14:
|
109
|
+
Generated on Wed Dec 25 14:50:04 2013 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.0.0).
|
112
112
|
</div>
|
data/doc/index.html
CHANGED
@@ -106,7 +106,7 @@
|
|
106
106
|
</div></div>
|
107
107
|
|
108
108
|
<div id="footer">
|
109
|
-
Generated on Wed Dec 25 14:
|
109
|
+
Generated on Wed Dec 25 14:50:04 2013 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.0.0).
|
112
112
|
</div>
|
@@ -103,7 +103,7 @@
|
|
103
103
|
</div>
|
104
104
|
|
105
105
|
<div id="footer">
|
106
|
-
Generated on Wed Dec 25 14:
|
106
|
+
Generated on Wed Dec 25 14:50:04 2013 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.0.0).
|
109
109
|
</div>
|
@@ -50,7 +50,7 @@ module Ballast
|
|
50
50
|
# @param amount [Fixnum] The amount to format.
|
51
51
|
# @param suffix [String] The suffix to add to the formatted amount.
|
52
52
|
# @return [String] The formatted amount.
|
53
|
-
def format_short_amount(amount, suffix)
|
53
|
+
def format_short_amount(amount, suffix = "")
|
54
54
|
if amount < 1.minute then
|
55
55
|
"#{amount.floor}s#{suffix}"
|
56
56
|
elsif amount < 1.hour then
|
data/lib/ballast/version.rb
CHANGED