bootstripe 0.2.13 → 0.2.14
Sign up to get free protection for your applications and to get access to all the features.
@@ -26,7 +26,7 @@ class Numeric
|
|
26
26
|
elements << "#{minutes}#{suffix}"
|
27
27
|
end
|
28
28
|
if seconds > 0 and (detailed or (days == 0 and hours == 0))
|
29
|
-
suffix = abbreviated ? 's' : (
|
29
|
+
suffix = abbreviated ? 's' : (seconds == 1 ? ' second' : ' seconds')
|
30
30
|
elements << "#{seconds}#{suffix}"
|
31
31
|
end
|
32
32
|
|
data/lib/bootstripe/version.rb
CHANGED
@@ -24,6 +24,7 @@ describe Numeric do
|
|
24
24
|
3600.to_period(true, false).should eq '1 hour'
|
25
25
|
7260.to_period(true, false).should eq '2 hours, 1 minute'
|
26
26
|
(86400 + 10).to_period(true, false).should eq '1 day, 10 seconds'
|
27
|
+
(86400 + 1).to_period(true, false).should eq '1 day, 1 second'
|
27
28
|
end
|
28
29
|
|
29
30
|
end
|