toggl-worktime 0.1.6 → 0.1.7

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: 145ec982c592fc482e71954ae7868b0d223e0d63
4
- data.tar.gz: c820648ad85b0ac6ee3ea967c02b746a17a0a6ad
3
+ metadata.gz: 6d146e480307d85867a024267770fdbaabfda76c
4
+ data.tar.gz: cf1ecc5ab73dd545ed6335c797efbbd1b0bfaff9
5
5
  SHA512:
6
- metadata.gz: 066c63d7e8a0f5a0f382d515e9a8b8b673ed322fb9448c726ca0dcba0cbe0c74765c78fcd46199281fd604f18f9f08d41a66cc961dbc51b47bc7806c18b69f1d
7
- data.tar.gz: 07023fa7dfd214bc3f7405751e85a4c979424f106391e6015ca9b43631a391651634a45a0ea86007b7b148802a7893076b57e861afb92dfbd7ac24fa5b325722
6
+ metadata.gz: e782f7ec2b5c0791bf183c244ad8f470e5583a16dec99d79a6be3de933c779fc4d5e3021f7f0af8dde51e55e08f0564751ecb0788c3fe7d5481564df23737b3f
7
+ data.tar.gz: 967c2341c85c91428ddea523bf46534d86f3cf0bcaa72c8f34890579217e3912a81fb5969b5af072860137433652d904726514665756d26a0ecf80b858cc0098
@@ -44,7 +44,7 @@ module Toggl
44
44
 
45
45
  def total_time
46
46
  time = @merger.total_time
47
- total_seconds = time.numerator
47
+ total_seconds = (time * 86400).to_i
48
48
  hours = total_seconds / (60 * 60)
49
49
  minutes = (total_seconds - (hours * 60 * 60)) / 60
50
50
  seconds = total_seconds % 60
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Toggl
4
4
  module Worktime
5
- VERSION = '0.1.6'
5
+ VERSION = '0.1.7'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toggl-worktime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomoya KABE