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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96bbf671f803a5034149d924d4030cdb89582fe5
4
- data.tar.gz: eabe6347f93c5cb97f58f7cb1b1cedc73dda934e
3
+ metadata.gz: 90752416d3960380afc5cd5d0a3816080d308dc3
4
+ data.tar.gz: a9e14654abd5fa74c46c6fb99261e05705ea8c59
5
5
  SHA512:
6
- metadata.gz: 4e3e3b9026d53322563e9c2b685ce8d8cdfe7ae36f57b9b97ac13c34af6e625f9e72ea9b9914c7dab068eb56ce2c36cda355e3cddea3b7f8b7b27aeb81dafc7b
7
- data.tar.gz: d90d12d537af952daea0803499cc2a648eebbbdffa8c2e910f67285581e3064509bceac335d35067b9e41cff4c3d8f0bbee9d8851ff0046a066585669b4507b4
6
+ metadata.gz: b68c31697bc02ae9c7d26bad19b04c7188e42b91c6c1195652d7a7f4da36bdc603af1d4cbaf7693c8c0675105c0020a7e885190d081dcf178bfcf6bd71e4c74f
7
+ data.tar.gz: 4edd006dfd2b1c014f5d961d16a35b596ddf8afe744a4ac726825783ddb1255a35972f707a9837dc39272186f679e4114ad608fe9e2f0d7ecf0852e7e9898b0c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.1.2 / 2013-12-25
2
+
3
+ * Made Concerns::Common#format_short_amount second parameter optional.
4
+
1
5
  ### 1.1.1 / 2013-12-25
2
6
 
3
7
  * Fixed authentication error handling.
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:38:16 2013 by
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>
@@ -118,7 +118,7 @@
118
118
  </div>
119
119
 
120
120
  <div id="footer">
121
- Generated on Wed Dec 25 14:38:16 2013 by
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:38:16 2013 by
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 = &quot;&quot;) </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 = &quot;&quot;)
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>&quot;&quot;</tt>)</em>
527
+
526
528
 
527
529
  &mdash;
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'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
573
575
  <span class='kw'>if</span> <span class='id identifier rubyid_amount'>amount</span> <span class='op'>&lt;</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'>&quot;</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'>&quot;</span></span>
575
577
  <span class='kw'>elsif</span> <span class='id identifier rubyid_amount'>amount</span> <span class='op'>&lt;</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:38:16 2013 by
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:38:16 2013 by
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:38:16 2013 by
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>
@@ -408,7 +408,7 @@
408
408
  </div>
409
409
 
410
410
  <div id="footer">
411
- Generated on Wed Dec 25 14:38:16 2013 by
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>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Wed Dec 25 14:38:16 2013 by
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:38:16 2013 by
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:38:16 2013 by
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:38:16 2013 by
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:38:16 2013 by
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:38:16 2013 by
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:38:16 2013 by
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>
@@ -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:38:16 2013 by
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:38:16 2013 by
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:38:16 2013 by
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>
@@ -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'>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:38:16 2013 by
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:38:15 2013 by
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:38:16 2013 by
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:38:16 2013 by
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:38:16 2013 by
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
@@ -16,7 +16,7 @@ module Ballast
16
16
  MINOR = 1
17
17
 
18
18
  # The patch version.
19
- PATCH = 1
19
+ PATCH = 2
20
20
 
21
21
  # The current version of ballast.
22
22
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ballast
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shogun