friendly_numbers 0.3.0 → 0.4.0

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: 97dfbb299d7c618df8fa9acfc1345de6a55697ea
4
- data.tar.gz: f98f23f9c9636ae41eefc3ffc0730235e1dc0250
3
+ metadata.gz: cc423e789c43c4e7b5c650ae51fd15993f6c478f
4
+ data.tar.gz: 421d730d7e267fec4eea8f17499295ef8418bf54
5
5
  SHA512:
6
- metadata.gz: 9d057dd64cd6ea14272cfcc2b5b13004735e866063596313bc5e8eb3b709e130010e50f759169e335aa60f1f19c6b241729349d2cde2d2deab43e7954f557617
7
- data.tar.gz: aae84bbd59e47d0bcf39e822f1be3adef8f7ef0c49574a6a0b088a98a6b66492cc137aaada0d8d3a827ff8c5beaeab01cefd232e0a371423e856de95a2c8be0b
6
+ metadata.gz: ac1fa9f9341bd851091bfeeaab13ed71b34f2008f9d8971b9ccd996c600f3a5f756e06018d0323c431bd8a0c93c983f6549bb81d1b169933316ba5eda3119a94
7
+ data.tar.gz: 816710690f913be3dab54817bf7775f185e877b95a7f5b14af9a98dae411a8d7c63cd3d06064b30ead385130ecff9a536ab7eb86dfb982afb90a220507dad4be
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # master
2
2
 
3
+ # 0.4.0 (2017-11-16)
4
+ - Ignore rational when passed to seconds_to_time
5
+
3
6
  # 0.3.0 (2017-04-22)
4
7
  - Add seconds_to_time helper.
5
8
 
@@ -16,6 +16,8 @@ module FriendlyNumbers
16
16
  def convert(seconds, options) # :nodoc:
17
17
  options = DEFAULTS.merge(options)
18
18
 
19
+ seconds = seconds.to_i
20
+
19
21
  minutes, seconds = seconds.divmod(60)
20
22
  hours, minutes = minutes.divmod(60)
21
23
 
@@ -1,3 +1,3 @@
1
1
  module FriendlyNumbers
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: friendly_numbers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Daniels
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-23 00:00:00.000000000 Z
11
+ date: 2017-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  requirements: []
101
101
  rubyforge_project:
102
- rubygems_version: 2.6.8
102
+ rubygems_version: 2.5.2
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: Friendly number helpers for your non-Rails/Padrino apps.