bootstripe 0.2.13 → 0.2.14

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.
@@ -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' : (days == 1 ? ' seconds' : ' second')
29
+ suffix = abbreviated ? 's' : (seconds == 1 ? ' second' : ' seconds')
30
30
  elements << "#{seconds}#{suffix}"
31
31
  end
32
32
 
@@ -1,3 +1,3 @@
1
1
  module Bootstripe
2
- VERSION = "0.2.13"
2
+ VERSION = "0.2.14"
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.13
4
+ version: 0.2.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: