working_times 0.7.0 → 0.7.1
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.
- checksums.yaml +4 -4
- data/lib/working_times/constants.rb +1 -1
- data/lib/working_times/invoice.rb +5 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76cb5534d5b60eb0d925b1074cb4fa9e66e7f2cf15b550d2d7a2d0962ec96dc8
|
4
|
+
data.tar.gz: 514b549b049d238ccaa39c162455895a52925b2a9d4d708548daca51668b06df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3c972fe288582c6b800bdd52acc760a9481773a8cd17d973de611d768749e66d01cf6b99c4a27a3855b04004fe4b90695a9fec5a65eb4cdb1fac25513ffad39
|
7
|
+
data.tar.gz: b9e85ae2997ec2239834f0d2d883b2531e89a4c8f1dfc2f960b7633e4ce46161210ab6d626962935273bf6702bcc0e5338e24e524ed62be18ee827b6a71b169f
|
@@ -111,10 +111,12 @@ module WorkingTimes
|
|
111
111
|
"#{worktime.nil? ? '-' : parse_second_to_hm_str(worktime)} \\\\ \\hline"
|
112
112
|
end
|
113
113
|
|
114
|
+
# second : Float
|
114
115
|
def parse_second_to_hm_str(second)
|
115
|
-
|
116
|
-
|
117
|
-
|
116
|
+
second = second.to_i
|
117
|
+
h = second / 3600
|
118
|
+
m = (second - 3600 * h) / 60
|
119
|
+
"#{h}:#{m.to_s.rjust(2, '0')}"
|
118
120
|
end
|
119
121
|
|
120
122
|
def parse_second_to_hh_str(second)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: working_times
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aoshi Fujioka
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|